Server crash on startup

Discussion in 'Spigot Help' started by brian310, Jul 6, 2018.

  1. Hey so whenever I try to startup my server with a new map that I uploaded, it keeps to crashing and I can't seem to find a way to fix it.. The server is running spigot 12.2.2 on multicraft.

    PHP:
    06.07 03:17:30 [Server] INFO Loading libraries, please wait...
    06.07 03:17:35 [Server] INFO Starting minecraft server version 1.12.2
    06.07 03:17:35 [Server] INFO Loading properties
    06.07 03:17:35 [Server] INFO Default game type: SURVIVAL
    06.07 03:17:35 [Server] INFO This server is running CraftBukkit version git-Spigot-3d850ec-809c399 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)
    06.07 03:17:35 [Server] INFO Server Ping Player Sample Count: 12
    06.07 03:17:35 [Server] INFO Using 4 threads for Netty based IO
    06.07 03:17:35 [Server] INFO Debug logging is disabled
    06.07 03:17:35 [Server] INFO Generating keypair
    06.07 03:17:35 [Server] INFO Starting Minecraft server on 0.0.0.0:25565
    06.07 03:17:35 [Server] INFO Using epoll channel type
    06.07 03:17:35 [Server] INFO **** Beginning UUID conversion, this may take A LONG time ****
    06.07 03:17:35 [Server] INFO Preparing level "Custom"
    06.07 03:17:35 [Server] WARN java.io.FileNotFoundException: ./Custom/session.lock (Permission denied)
    06.07 03:17:35 [Server] WARN at java.io.FileOutputStream.open0(Native Method)
    06.07 03:17:35 [Server] WARN at java.io.FileOutputStream.open(FileOutputStream.java:270)
    06.07 03:17:35 [Server] WARN at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
    06.07 03:17:35 [Server] WARN at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
    06.07 03:17:35 [Server] WARN at net.minecraft.server.v1_12_R1.WorldNBTStorage.i(WorldNBTStorage.java:53)
    06.07 03:17:35 [Server] WARN at net.minecraft.server.v1_12_R1.WorldNBTStorage.<init>(WorldNBTStorage.java:47)
    06.07 03:17:35 [Server] WARN at net.minecraft.server.v1_12_R1.ServerNBTManager.<init>(SourceFile:21)
    06.07 03:17:35 [Server] WARN at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:265)
    06.07 03:17:35 [Server] WARN at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272)
    06.07 03:17:35 [Server] WARN at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545)
    06.07 03:17:35 [Server] WARN at java.lang.Thread.run(Thread.java:748)
    06.07 03:17:35 [Server] ERROR Encountered an unexpected exception
    06.07 03:17:35 [Server] INFO java.lang.RuntimeException: Failed to check session lock for world located at ./Custom, aborting. Stop the server and delete the session.lock in this world to prevent further issues.
    06.07 03:17:35 [Server] INFO at net.minecraft.server.v1_12_R1.WorldNBTStorage.i(WorldNBTStorage.java:63) ~[spigot.jar:git-Spigot-3d850ec-809c399]
    06.07 03:17:35 [Server] INFO at net.minecraft.server.v1_12_R1.WorldNBTStorage.<init>(WorldNBTStorage.java:47) ~[spigot.jar:git-Spigot-3d850ec-809c399]
    06.07 03:17:35 [Server] INFO at net.minecraft.server.v1_12_R1.ServerNBTManager.<init>(SourceFile:21) ~[spigot.jar:git-Spigot-3d850ec-809c399]
    06.07 03:17:35 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:265) ~[spigot.jar:git-Spigot-3d850ec-809c399]
    06.07 03:17:36 [Multicraft] Server shut down (starting)
    06.07 03:17:36 [Multicraft] Restarting crashed server in 5 seconds
    06.07 03:17:36 [Multicraft] Server stopped
    It says to delete sesson.lock and when I do so it says the same exact thing..
     
  2. electronicboy

    IRC Staff

    Your file permissions are set up improperly; you'll need to chown the folder over to the user who will be running the server, (no idea if multicraft has a script for this or not, really; don't upload files as root or any other user for that matter)
     
  3. When I chown it then the server keeps on saying the EULA isn't accepted even though it is.