Minecraft – How to fix the “Failed to check session lock for world” error

minecraft-java-edition

I got the following error when I tried to start my Minecraft server:

16.09 20:06:02 [Server] INFO [20:06:02 WARN]: net.minecraft.server.v1_7_R4.ExceptionWorldConflict: Failed to check session lock for world located at ./..., aborting. Stop the server and delete the session.lock in this world to prevent further issues.

What does this error mean?

Best Answer

The session.lock file is a critical file needed in order to run a world. The error above means that this session.lock file can't be opened.

The error message says:

Stop the server and delete the session.lock in this world to prevent further issues.

But in many cases, this may not work. What worked for me was setting the permissions of the session.lock file to 777. You must have SSH access to your server (otherwise you should contact your host). Run:

chmod 777 session.lock

Make sure that you're in the world which contains the session.lock file the server has issues with.

This should make Minecraft be able to write and read the file.

If it still doesn't work, try running:

chmod 777 [world]

Replace [world] with the name of the world you're having issues with.