How do I fix the "Failed to check session lock for world" error?

How do I fix the "Failed to check session lock for world" error? - Crop focused Asian engineer in white shirt using modern netbook while working with hardware

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.




Pictures about "How do I fix the "Failed to check session lock for world" error?"

How do I fix the "Failed to check session lock for world" error? - Side view crop concentrate African American male mechanic in jeans and white shirt using screw gun while working with hardware
How do I fix the "Failed to check session lock for world" error? - Side view of male workshop owner standing near messy workbench and fixing metal details while using instruments during work
How do I fix the "Failed to check session lock for world" error? - Concentrated African American technician wearing lab coat and conducting expertise of motherboard by using screwdrivers while working in service center





How to Fix \




More answers regarding how do I fix the "Failed to check session lock for world" error?

Answer 2

After moving .minecraft directory from ubuntu to kubuntu, same problem occured. For me this worked: Change owner of the 'saves'-directory from root to user's one. For instance with user sven (player's user):

christian@kubuntu-pc:~$ sudo chown sven:sven /home/sven/.minecraft/saves/ -R

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Field Engineer, Field Engineer, Andrea Piacquadio, RF._.studio