Question session.lock error

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

Erdbeerbaum

New member
Jul 27, 2024
1
0
1
Hi, i set up a minecraft server yesterday (i run CasaOS and in Casa the Crafty "app") now i tried using our old world fiels from the previous server, i got the fiel through SCP with the host provided log-in data. after starting the server i hab a weird Session.lock error. i tried deleting the Session.lock file but it didn't work. anything else i could try?

Log:
[06:12:32] [ServerMain/INFO]: [bootstrap] Running Java 21 (OpenJDK 64-Bit Server VM 21.0.2+13-Ubuntu-122.04.1; Private Build null) on Linux 6.1.0-23-amd64 (amd64)
[06:12:32] [ServerMain/INFO]: [bootstrap] Loading Paper 1.21-109-master@5a5035b (2024-07-23T08:16:30Z) for Minecraft 1.21
[06:12:32] [ServerMain/INFO]: [PluginInitializerManager] Initializing plugins...
[06:12:32] [ServerMain/INFO]: [PluginInitializerManager] Initialized 1 plugin
[06:12:32] [ServerMain/INFO]: [PluginInitializerManager] Bukkit plugins (1):
- playit-gg (0.1.4)
[06:12:36] [ServerMain/INFO]: Environment: Environment[sessionHost=[URL]https://sessionserver.mojang.com[/URL], servicesHost=https://api.minecraftservices.com, name=PROD]
[06:12:36] [ServerMain/ERROR]: Failed to start the minecraft server
java.nio.file.AccessDeniedException: ./world/session.lock
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
at java.base/sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:224) ~[?:?]
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:309) ~[?:?]
at java.base/java.nio.channels.FileChannel.open(FileChannel.java:369) ~[?:?]
at net.minecraft.util.DirectoryLock.create(DirectoryLock.java:23) ~[paper-1.21.jar:1.21-109-5a5035b]
at net.minecraft.world.level.storage.LevelStorageSource$LevelStorageAccess.<init>(LevelStorageSource.java:522) ~[paper-1.21.jar:1.21-109-5a5035b]
at net.minecraft.world.level.storage.LevelStorageSource.validateAndCreateAccess(LevelStorageSource.java:428) ~[paper-1.21.jar:1.21-109-5a5035b]
at net.minecraft.server.Main.main(Main.java:197) ~[paper-1.21.jar:1.21-109-5a5035b]
at io.papermc.paper.PaperBootstrap.boot(PaperBootstrap.java:21) ~[paper-1.21.jar:1.21-109-5a5035b]
at org.bukkit.craftbukkit.Main.main(Main.java:287) ~[paper-1.21.jar:1.21-109-5a5035b]
at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42) ~[app:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]