You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realize that this is probably not your issue. But it highlights some code that perhaps you shouldn't use, or at least want to think about changing.
I'm getting a weird error in a server I tried to copy. Made a modpack server in a docker container using itzg's minecraft-server image. After some work, it runs fine. Spun up the same image again in a new folder so I could experiment with changes on the clone before writing them to the original. When I dump in the mod files from the original server (that still works fine) I get this:
[bspkrsCore]: Initializing ModVersionChecker for mod bspkrsCore
java.util.prefs.FileSystemPreferences$1 run
WARNING: Couldn't create user preferences directory. User preferences are unusable.
Then, I get these two errors every 30 seconds. No exaggeration. I timed it.
WARNING: Could not lock User prefs. Unix error code 2.
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
My searching suggests that this has something to do with user permissions. The weirdest part on my end is that for one server there is no problem while the copy does this. Spoke with Itzg, who is looking into how his image handles permissions and such. Meanwhile, it raises the question: does your mod need to be writing directly to a file in the user's /home/user directory? This might not normally be a problem in the usual course of things. But it makes me (a total backseat coder. I know) ask if that is necessary.
If nothing else, thought I'd toss you this FYI.
Cheers.
The text was updated successfully, but these errors were encountered:
I realize that this is probably not your issue. But it highlights some code that perhaps you shouldn't use, or at least want to think about changing.
I'm getting a weird error in a server I tried to copy. Made a modpack server in a docker container using itzg's minecraft-server image. After some work, it runs fine. Spun up the same image again in a new folder so I could experiment with changes on the clone before writing them to the original. When I dump in the mod files from the original server (that still works fine) I get this:
[bspkrsCore]: Initializing ModVersionChecker for mod bspkrsCore
java.util.prefs.FileSystemPreferences$1 run
WARNING: Couldn't create user preferences directory. User preferences are unusable.
Then, I get these two errors every 30 seconds. No exaggeration. I timed it.
WARNING: Could not lock User prefs. Unix error code 2.
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
My searching suggests that this has something to do with user permissions. The weirdest part on my end is that for one server there is no problem while the copy does this. Spoke with Itzg, who is looking into how his image handles permissions and such. Meanwhile, it raises the question: does your mod need to be writing directly to a file in the user's /home/user directory? This might not normally be a problem in the usual course of things. But it makes me (a total backseat coder. I know) ask if that is necessary.
If nothing else, thought I'd toss you this FYI.
Cheers.
The text was updated successfully, but these errors were encountered: