-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Allow multiple instances of BDFR to run simultaneously. #306
Comments
Might just be a Windows only issue. I've run multiple instances from a Linux command line simultaneously without issue. |
@tayyyTF it is only a Windows issue. We spoke about it in a comment chain in #304 but Linux lets you have multiple processes writing to a single file. It makes the log file roughly useless but it doesn't throw an error like on Windows. It's the Linux philosophy: you can do whatever you want, even if it's a stupid idea. |
@StuffonGithub would you be able to post more of the logfile that causes this crash? I need the exact line of code at which it occurs to catch it gracefully. EDIT: Nevermind I was able to pull it from previous test runs |
@StuffonGithub It should be fixed now. If you use the |
@Serene-Arc Oh sorry for missing your request earlier. But glad to know you got it solved nevertheless. 😄 And wow, thanks for the quick implementation! Wasn't expecting you to work on it right away. Haha, thank you. ❤ I updated my BDFR but I'm getting a PermissionError if I include a
And not sure if it's related though, but I seem to still have no BDFR folder in my %APPDATA% directory despite the permission error I pasted on the main topic linking a supposed folder location. Maybe because of limited perms but it just continues the download without bothering to create the log file? Additionally, I know I haven't tested it yet but does the Thanks again for the really quick turnaround on this! |
For the first issue, try It's odd that there's still no folder. If you go through the logfile, there should be an entry that tells you where it's loading the configuration from. It might tell you where it is. The last place it checks is the default one provided with the package, but if that one is still being used then I'll need to look into why it's not creating the proper folder. No, so far the idea is that the log file is the same name. That's the only way we can make it rollover properly. Normally it does things like |
Thanks! Yeah, I still can't find any BDFR folder anywhere outside of where I have stored the BDFR files. I checked the newly created log though and it doesn't seem to show where it's loading the config from.
I agree that it can tend to bloat the storage with that kind of log naming. Interestingly, it made me check since I never bothered with it but, one of the log folders I had for BDFRv1 is apparently taking up over 10GB of my storage space. Haha. It is evidently inefficient. Nevertheless, I think it's more than fine the way it is now. I'm just realising I can simply rename the log file as .txt or .txt and with the way your logging works, it will work flawlessly and will be easily understood. |
Oops, I forgot that won't work anymore. Because we have to load the number of backup logs from the configuration file, the logfile isn't initialised when that logging message is broadcast. If you run it the BDFR with the |
uhh okay, that's a new one. Windows isn't my forte but thanks, I'll look into it |
Description
As requested. 😊
Running another instance of BDFR gives this error:
Would be nice if we can run several instances of BDFR at the same time. Thank you!
The text was updated successfully, but these errors were encountered: