Minecraft World Locked: Check session.lock and Duplicate Processes
Check the process, instance, and actual world path behind a session.lock message; distinguish a lock notice from access or storage errors before changing files.
When a Java server reports that the world is locked, first check the process, instance, and actual world path being loaded. Do not repeatedly restart the server or blindly delete session.lock.
Record the Error Message and Affected World
Read the first relevant message in the server console and, if available, in logs/latest.log. Paper identifies latest.log as the first place to look for startup errors (PaperMC: Basic Troubleshooting). Note the exact message, time, Minecraft version, server software, and world path named in the log. Share complete logs only with someone you trust: they may contain names and internal directory paths.
In Mojang’s original Java 26.3 server artifact, the code opens session.lock in the selected world folder for writing, writes a marker, and then calls FileChannel.tryLock(). Only when tryLock() returns null does this code produce the message already locked (possibly by other Minecraft instance?). The Java documentation associates null with an overlapping lock from another program. When Minecraft shuts down cleanly, it releases the lock and closes the file but does not delete it. The mere presence of session.lock is therefore not a reason to remove it. This code finding applies to the examined Mojang Java 26.3 artifact; other versions and forks may differ (Mojang: Java 26.3 version metadata and server artifact, Java SE 25: FileChannel.tryLock).
Check the Process and Instance
- Do not start a second instance. First check whether the server is still running in the panel or console. For a local Java world, save and close Minecraft through the game menu. If someone else operates the instance, ask them before stopping anything.
- Cleanly stop only your own, known server. For your own server instance, use the normal stop function in the console or panel and wait until the process is shown as stopped. Do not end unknown Java processes or use the forced “Sofort beenden” (“Force Quit”) option just to bypass the message. The running process may still be writing world data.
- Check the exact world path. Paper uses
level-nameinserver.propertiesas the world folder name. Startup arguments such as--worldor--level-namecan override that name;--world-diror--world-containersets the parent folder (PaperMC: server.properties, PaperMC: CLI Arguments). Compare these values with the path in the startup script or panel. Similarly named folders can be separate worlds. - Identify duplicate instances; do not terminate them. Use the available status display or process list to check whether the same world is running in a second server window, launcher, panel, or startup script. If it is not clear that you own the process name or working directory, do not stop it yourself; give the operator the error message, time, and world path.
If the Conflict Started After a Change
Note whether the error started directly after an update, a restore, or creation of a test copy. For a test instance, check that it really points to its own world folder and does not open the same source as the previous instance. Compare the name from level-name and the startup argument with the folder shown in the file area. Copy a world only when the process is fully stopped, and keep the source unchanged. A copy made while the game or server is running may contain an intermediate state; that alone does not tell you whether files are missing or a process still has access to them.
What the File Does and Does Not Tell You
An OverlappingFileLockException is distinct from Mojang’s message: it denotes an overlapping lock held by the same Java VM or a thread waiting in that VM. It does not prove there is a second separate server process. According to the Java SE API, another cause during the lock attempt produces an exception rather than a null result (Java SE 25: FileChannel, Java SE 25: OverlappingFileLockException).
Startup can also fail before the actual lock attempt: Minecraft creates the world folder, opens session.lock with write access, writes to it, and synchronizes the file before it calls tryLock(). An AccessDeniedException or another IOException may therefore point to missing permissions or a problem creating, opening, writing, or saving the file. Read the first exception and its Caused by entry in latest.log; check the named world path and whether that exact server process can write there. For mounted or remote storage, also have the operator check its lock support and status. Java notes that locking behavior depends on the operating system and file system and requires extra care on network storage (Java SE 25: AccessDeniedException, Java SE 25: FileLock and platform dependencies). Do not change permissions broadly or delete the file as a standard measure.
Before making further changes, create a complete backup and keep it separate; Create a Minecraft server backup describes the backup process.
If the same error continues even though the process responsible for this world is confirmed to be stopped, do not manipulate files. Check the first error message again and ask the operator to check which process and actual directory are still connected. If you cannot inspect the files yourself, see Game server files over SFTP; for other startup problems, Minecraft startup error checklist is the next step. At AeonHost, you can describe what happened through /contact; a support request does not replace a direct check of the running process by the operator.
Technical Sources
- Mojang: official Java 26.3 version metadata and associated server artifact — the version metadata gives the expected SHA-1
33680f5f2ac32864d6d7cf5e56a705fdb3e05f4c; the embedded server JAR entry was statically inspected, not a running server. - Java SE 25:
FileChannel.tryLock,AccessDeniedException,OverlappingFileLockException, andFileLock— return values, exceptions, and limitations of platform- or network-dependent file locks. - PaperMC: server.properties
- PaperMC: CLI Arguments
- PaperMC: Basic Troubleshooting
Did this guide help? We are happy to help personally.