So our library server crashed while the minecraft session was active last week, It happened after the last backup so i've been trying to restore the map from backup and no matter what I try, it says session.lock is permission denied.
So far I've tried:
* sudo chown -R user:user /path/to/world/folder
* setting the chmod of the file to 777or 755
* Redownloading/reinstalling all the server files, remaking all the configs, etc. No change.
Here's the log in case I missed something:
[15:08:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[15:08:35] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[15:08:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[15:08:35] [main/INFO] [FML]: Forge Mod Loader version 14.23.3.2655 for Minecraft 1.12.2 loading
[15:08:35] [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_161, running on Linux:amd64:3.10.0-693.21.1.el7.x86_64, installed at /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64/jre
[15:08:35] [main/INFO] [FML]: Loading tweaker org.spongepowered.asm.launch.MixinTweaker from spongeforge-1.12.2-2655-7.1.0-BETA-3105.jar
[15:08:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:08:35] [main/INFO] [LaunchWrapper]: Loading tweak class name org.spongepowered.asm.launch.MixinTweaker
[15:08:35] [main/INFO] [mixin]: SpongePowered MIXIN Subsystem Version=0.7.4 Source=file:/var/lib/pufferd/servers/f25dd5d1-5d84-461d-9b79-5e962d6e8c8c/mods/spongeforge-1.12.2-2655-7.1.0-BETA-3105.jar Service=LaunchWrapper Env=SERVER
[15:08:35] [main/INFO] [mixin]: Compatibility level set to JAVA_8
[15:08:35] [main/INFO] [mixin]: Adding new token provider org.spongepowered.mod.SpongeCoremod$TokenProvider to MixinEnvironment[DEFAULT]
[15:08:35] [main/INFO] [mixin]: Adding new token provider org.spongepowered.mod.SpongeCoremod$TokenProvider to MixinEnvironment[PREINIT]
[15:08:35] [main/INFO] [mixin]: Adding new token provider org.spongepowered.mod.SpongeCoremod$TokenProvider to MixinEnvironment[INIT]
[15:08:35] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[15:08:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:08:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:08:35] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:08:37] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[15:08:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:08:37] [main/INFO] [LaunchWrapper]: Calling tweak class org.spongepowered.asm.launch.MixinTweaker
[15:08:37] [main/INFO] [mixin]: Initialised Mixin FML Remapper Adapter with net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper@6b410923
[15:08:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[15:08:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[15:08:38] [main/INFO] [LaunchWrapper]: Loading tweak class name org.spongepowered.asm.mixin.EnvironmentStateTweaker
[15:08:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[15:08:38] [main/INFO] [LaunchWrapper]: Calling tweak class org.spongepowered.asm.mixin.EnvironmentStateTweaker
[15:08:45] [main/WARN] [mixin]: Static binding violation: PRIVATE overwrite method initializeConnectionToPlayer in mixins.common.core.json:server.MixinPlayerList cannot reduce visibiliy of PUBLIC target method, visibility will be upgraded.
[15:08:45] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer}
[15:08:53] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Starting minecraft server version 1.12.2
[15:08:53] [Server thread/INFO] [FML]: MinecraftForge v14.23.3.2655 Initialized
[15:08:53] [Server thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[15:08:53] [Server thread/INFO] [FML]: Replaced 1036 ore ingredients
[15:08:54] [Server thread/INFO] [Sponge]: Found mcmod.info at jar:file:/var/lib/pufferd/servers/f25dd5d1-5d84-461d-9b79-5e962d6e8c8c/mods/spongeforge-1.12.2-2655-7.1.0-BETA-3105.jar!/mcmod.info
[15:08:54] [Server thread/INFO] [Sponge]: Creating injector in stage 'PRODUCTION'
[15:09:01] [Server thread/WARN] [Sponge]: sponge: It is no longer required to include the plugin id when specifying a Key id through Key.Builder#id. This is deprecated and may be removed later. The plugin id will be retrieved from the current PluginContainer in the cause stack.
[15:09:09] [Server thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[15:09:09] [Server thread/INFO] [FML]: Searching /var/lib/pufferd/servers/f25dd5d1-5d84-461d-9b79-5e962d6e8c8c/mods for mods
[15:09:10] [Server thread/INFO] [FML]: Forge Mod Loader has identified 11 mods to load
[15:09:10] [Server thread/WARN] [FML]: Missing English translation for FML: assets/fml/lang/en_us.lang
[15:09:10] [Server thread/WARN] [FML]: Missing English translation for spongeapi: assets/spongeapi/lang/en_us.lang
[15:09:10] [Server thread/WARN] [FML]: Missing English translation for k4lib: assets/k4lib/lang/en_us.lang
[15:09:10] [Server thread/WARN] [FML]: Missing English translation for minereset: assets/minereset/lang/en_us.lang
[15:09:10] [Server thread/WARN] [FML]: Missing English translation for pvptoggle: assets/pvptoggle/lang/en_us.lang
[15:09:10] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, spongeapi, sponge, journeymap, k4lib, minereset, pvptoggle, securitycraft] at CLIENT
[15:09:10] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, spongeapi, sponge, journeymap, k4lib, minereset, pvptoggle, securitycraft] at SERVER
[15:09:11] [Server thread/INFO] [FML]: Processing ObjectHolder annotations
[15:09:11] [Server thread/INFO] [FML]: Found 1168 ObjectHolder annotations
[15:09:11] [Server thread/INFO] [FML]: Identifying ItemStackHolder annotations
[15:09:11] [Server thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[15:09:11] [Server thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[15:09:11] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[15:09:12] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null
[15:09:12] [Forge Version Check/INFO] [forge.VersionCheck]: [securitycraft] Starting version check at https://www.github.com/Geforce132/SecurityCraft/raw/master/Updates/Forge.json
[15:09:13] [Forge Version Check/INFO] [forge.VersionCheck]: [securitycraft] Found status: UP_TO_DATE Target: null
[15:09:16] [Server thread/INFO] [pvptoggle]: PVP Toggle starting up!
[15:09:16] [Server thread/INFO] [pvptoggle]: Initialized PVPToggle API
[15:09:16] [Server thread/INFO] [FML]: Applying holder lookups
[15:09:16] [Server thread/INFO] [FML]: Holder lookups applied
[15:09:16] [Server thread/INFO] [FML]: Applying holder lookups
[15:09:16] [Server thread/INFO] [FML]: Holder lookups applied
[15:09:16] [Server thread/INFO] [FML]: Applying holder lookups
[15:09:16] [Server thread/INFO] [FML]: Holder lookups applied
[15:09:16] [Server thread/INFO] [FML]: Applying holder lookups
[15:09:16] [Server thread/INFO] [FML]: Holder lookups applied
[15:09:16] [Server thread/INFO] [FML]: Injecting itemstacks
[15:09:16] [Server thread/INFO] [FML]: Itemstack injection complete
[15:09:16] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Loading properties
[15:09:16] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Default game type: SURVIVAL
[15:09:16] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Generating keypair
[15:09:16] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Starting Minecraft server on 192.168.10.120:25566
[15:09:16] [Server thread/INFO] [net.minecraft.network.NetworkSystem]: Using epoll channel type
[15:09:17] [Server thread/INFO] [FML]: Applying holder lookups
[15:09:17] [Server thread/INFO] [FML]: Holder lookups applied
[15:09:17] [Server thread/INFO] [FML]: Injecting itemstacks
[15:09:17] [Server thread/INFO] [FML]: Itemstack injection complete
[15:09:17] [Server thread/INFO] [FML]: Forge Mod Loader has successfully loaded 11 mods
[15:09:17] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Preparing level "world"
[15:09:17] [Server thread/INFO] [Sponge]: Checking for worlds that need to be migrated...
[15:09:17] [Server thread/INFO] [Sponge]: No worlds were found in need of migration.
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: java.io.FileNotFoundException: ./world/session.lock (Permission denied)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at java.io.FileOutputStream.open0(Native Method)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at java.io.FileOutputStream.open(FileOutputStream.java:270)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at net.minecraft.world.storage.SaveHandler.func_75766_h(SaveHandler.java:62)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at net.minecraft.world.storage.SaveHandler.<init>(SaveHandler.java:54)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at net.minecraft.world.chunk.storage.AnvilSaveHandler.<init>(AnvilSaveHandler.java:18)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at net.minecraft.world.chunk.storage.AnvilSaveConverter.func_75804_a(SourceFile:84)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at org.spongepowered.common.world.WorldManager.loadAllWorlds(WorldManager.java:694)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:3528)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:270)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
[15:09:18] [Server thread/INFO] [STDERR]: [net.minecraft.world.storage.SaveHandler:func_75766_h:75]: at java.lang.Thread.run(Thread.java:748)
[15:09:18] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: Encountered an unexpected exception
java.lang.RuntimeException: Failed to check session lock, aborting
at net.minecraft.world.storage.SaveHandler.func_75766_h(SaveHandler.java:76) ~[bfb.class:?]
at net.minecraft.world.storage.SaveHandler.<init>(SaveHandler.java:54) ~[bfb.class:?]
at net.minecraft.world.chunk.storage.AnvilSaveHandler.<init>(AnvilSaveHandler.java:18) ~[bey.class:?]
at net.minecraft.world.chunk.storage.AnvilSaveConverter.func_75804_a(SourceFile:84) ~[bez.class:?]
at org.spongepowered.common.world.WorldManager.loadAllWorlds(WorldManager.java:694) ~[WorldManager.class:1.12.2-2655-7.1.0-BETA-3105]
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:3528) ~[MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:270) ~[nz.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
[15:09:18] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: This crash report has been saved to: /var/lib/pufferd/servers/f25dd5d1-5d84-461d-9b79-5e962d6e8c8c/./crash-reports/crash-2018-05-24_15.09.18-server.txt
[15:09:18] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server
[15:09:18] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players
[15:09:18] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving worlds
[15:09:18] [Server thread/INFO] [FML]: Applying holder lookups
[15:09:18] [Server thread/INFO] [FML]: Holder lookups applied
[15:09:18] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
[15:09:18] [Server Shutdown Thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server
[15:09:18] [Server Shutdown Thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players
[15:09:18] [Server Shutdown Thread/INFO] [net.minecraft.server.MinecraftServer]: Saving worlds
And here's the crash report:
[/p]
[p]---- Minecraft Crash Report ----[/p]
[p]WARNING: coremods are present:
SpongeCoremod (spongeforge-1.12.2-2655-7.1.0-BETA-3105.jar)
Contact their authors BEFORE contacting forge[/p]
[p]// There are four lights![/p]
[p]Time: 5/24/18 3:09 PM
Description: Exception in server tick loop[/p]
[p]java.lang.RuntimeException: Failed to check session lock, aborting
at net.minecraft.world.storage.SaveHandler.func_75766_h(SaveHandler.java:76)
at net.minecraft.world.storage.SaveHandler.<init>(SaveHandler.java:54)
at net.minecraft.world.chunk.storage.AnvilSaveHandler.<init>(AnvilSaveHandler.java:18)
at net.minecraft.world.chunk.storage.AnvilSaveConverter.func_75804_a(SourceFile:84)
at org.spongepowered.common.world.WorldManager.loadAllWorlds(WorldManager.java:694)
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:3528)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:270)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
at java.lang.Thread.run(Thread.java:748)[/p]
[p]A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------[/p]
[p]-- Head --
Thread: Server thread
Stacktrace:
at net.minecraft.world.storage.SaveHandler.func_75766_h(SaveHandler.java:76)
at net.minecraft.world.storage.SaveHandler.<init>(SaveHandler.java:54)
at net.minecraft.world.chunk.storage.AnvilSaveHandler.<init>(AnvilSaveHandler.java:18)
at net.minecraft.world.chunk.storage.AnvilSaveConverter.func_75804_a(SourceFile:84)[/p]
[p]-- Sponge PhaseTracker --
Details:
Phase Stack: [Empty stack]
Stacktrace:
at net.minecraft.server.MinecraftServer.handler$onCrashReport$zjg000(MinecraftServer.java:3985)
at net.minecraft.server.MinecraftServer.func_71230_b(MinecraftServer.java:887)
at net.minecraft.server.dedicated.DedicatedServer.func_71230_b(DedicatedServer.java:370)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:556)
at java.lang.Thread.run(Thread.java:748)[/p]
[p]-- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Linux (amd64) version 3.10.0-693.21.1.el7.x86_64
Java Version: 1.8.0_161, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1964831760 bytes (1873 MB) / 3718250496 bytes (3546 MB) up to 7456948224 bytes (7111 MB)
JVM Flags: 1 total; -Xmx8000M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.42 Powered by Forge 14.23.3.2655 11 mods loaded, 11 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored[/p]
[p]| State | ID | Version | Source | Signature |
|:------- |:------------- |:--------------------------- |:------------------------------------------- |:---------------------------------------- |
| UCHIJAA | minecraft | 1.12.2 | minecraft.jar | None |
| UCHIJAA | mcp | 9.42 | minecraft.jar | None |
| UCHIJAA | FML | 8.0.99.99 | server.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 |
| UCHIJAA | forge | 14.23.3.2655 | server.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 |
| UCHIJAA | spongeapi | 7.1.0-SNAPSHOT-43d8496 | spongeforge-1.12.2-2655-7.1.0-BETA-3105.jar | None |
| UCHIJAA | sponge | 1.12.2-2655-7.1.0-BETA-3105 | spongeforge-1.12.2-2655-7.1.0-BETA-3105.jar | 6729a677746f8cf63ef31881f913ed15d431b7f0 |
| UCHIJAA | journeymap | 1.12.2-5.5.2 | journeymap-1.12.2-5.5.2.jar | None |
| UCHIJAA | k4lib | 1.12.1-2.1.81 | k4lib-1.12.1-2.1.81-universal.jar | None |
| UCHIJAA | minereset | 1.0.12 | MineReset-1.0.12.jar | None |
| UCHIJAA | pvptoggle | 1.12.1-2.0.38 | pvpToggle-1.12.1-2.0.38-universal.jar | None |
| UCHIJAA | securitycraft | v1.8.4.1 | SecurityCraftv1.8.4.1.jar | None |[/p]
[p]Loaded coremods (and transformers):
SpongeCoremod (spongeforge-1.12.2-2655-7.1.0-BETA-3105.jar)
org.spongepowered.common.launch.transformer.SpongeSuperclassTransformer
Profiler Position: N/A (disabled)
Player Count: 0 / 20; []
Is Modded: Definitely; Server brand changed to 'fml,forge,sponge'
Type: Dedicated Server (map_server.txt)[/p]
[p]
The next minecraft session is tomorrow, the kids are gonna be crushed if they found out they lost their world file again, I thought I was doing everything to make sure that never happened again but something isn't right.
Looks like your server is being overloaded/ or there is something bugging out tricky to say without a timings report also looks like your startup script is incomplete as it only has your max ram configured
Thanks! I deleted and rebuilt the server files again, made sure it made a new world on its own fine this time, then brought in my world file, and I also figured out another way to check permissions of files using sftp that clued me in to why I might be getting permission denied errors and its working now! thank you!
For those who might be in the same situation in the future:
I'm using pufferpanel to manage my server, I thought the files needed to have the server owner as the file owner which was a generic user I created, but I found looking at it through sftp there is a pufferpanel specific user as an option that it created that needed to own the file. I swapped owners to that user and now everything works!
So our library server crashed while the minecraft session was active last week, It happened after the last backup so i've been trying to restore the map from backup and no matter what I try, it says session.lock is permission denied.
So far I've tried:
* sudo chown -R user:user /path/to/world/folder
* setting the chmod of the file to 777or 755
* Redownloading/reinstalling all the server files, remaking all the configs, etc. No change.
Here's the log in case I missed something:
And here's the crash report:
The next minecraft session is tomorrow, the kids are gonna be crushed if they found out they lost their world file again, I thought I was doing everything to make sure that never happened again but something isn't right.
Looks like your server is being overloaded/ or there is something bugging out tricky to say without a timings report also looks like your startup script is incomplete as it only has your max ram configured
Thanks! I deleted and rebuilt the server files again, made sure it made a new world on its own fine this time, then brought in my world file, and I also figured out another way to check permissions of files using sftp that clued me in to why I might be getting permission denied errors and its working now! thank you!
For those who might be in the same situation in the future:
I'm using pufferpanel to manage my server, I thought the files needed to have the server owner as the file owner which was a generic user I created, but I found looking at it through sftp there is a pufferpanel specific user as an option that it created that needed to own the file. I swapped owners to that user and now everything works!