Project Zomboid servers can crash or fail to start for several well-known reasons. This guide covers the most common causes seen across Legion Hosting support tickets — from a Build 42 memory bug that requires extra RAM on startup, to a backup overflow that fills /tmp, to corrupted configuration files. Work through the sections below in order.
Before You Begin — Locate Your Crash Logs
Almost every Project Zomboid crash leaves evidence in one of two places. Check both before attempting any fix, so you know which section of this guide applies to you.
GPanel Console Output
- Log in to GPanel.
- Select your Project Zomboid server from the server list.
- Click the Console tab.
- Scroll to the bottom of the output. Look for lines marked
ERROR,FATAL,OutOfMemoryError, orException. The last 20–30 lines before the server stopped are usually the most relevant. - If the console is empty, the server process terminated before it could write anything — this is itself a clue (see the B42 memory section below).
The Server debug.log File
Project Zomboid writes a detailed log to debug.log in the server's data directory. This file often contains a full Java stack trace that points directly to the crash cause.
- In GPanel, go to the File Manager tab.
- Navigate to
/.cache/Logs/. You will see files named likedebug.log,DebugLog-server.txt, or dated log files. - Open the most recent log file. Use Ctrl+End or scroll to the very bottom and read upward from there.
- Look for the keywords
OutOfMemoryError,IOException,NullPointerException, orSandboxVars. Copy the relevant lines — you will need them if you open a support ticket.
Fix 1 — Build 42 High Memory Usage on Startup (Known Game Bug)
If your server exits immediately on startup with no error in the console, or the console shows OutOfMemoryError or a Java heap space error, the server is running out of memory before the world finishes loading.
Symptoms
- Server starts, console scrolls for a few seconds, then stops with no player-facing error.
- Console shows
java.lang.OutOfMemoryError: Java heap spaceorGC overhead limit exceeded. - Server works on some restarts but not others (memory availability varies).
- Server ran fine on B41 but crashes consistently after upgrading to B42.
Steps
- In GPanel, click your server and go to the Console tab. Note your server's current RAM allocation shown in the resource bar or server info panel.
- If your plan includes less than 10 GB RAM, the server may crash during startup because B42 requires approximately 9 GB to initialize. You will need to upgrade your plan or wait for the Indie Stone to release a fix.
- If your plan already has 10 GB or more and the server still crashes on startup, go to the Startup tab in GPanel.
- Look for a field labeled Java Memory, Max RAM, or Xmx. Confirm it is set to no more than 80–85% of your total available RAM. For example, on a 12 GB plan, set this to
10240(10 GB in megabytes). Do not set it equal to or above your total RAM — the operating system and other processes also need memory. - Click Save on the Startup tab, then restart your server.
- Watch the console during startup. If the server reaches the line
SERVER STARTEDorLuaManager: Loading lua files...completes without crashing, the memory allocation is now sufficient.
Fix 2 — BackupsOnStart Overflowing /tmp (Startup Crash)
Project Zomboid can be configured to create a full world backup every time the server starts. When this backup is written to /tmp — which is limited in size on most Linux hosts — the server crashes mid-startup with a disk write error once /tmp fills up.
Symptoms
- Server crashes reliably on every restart, but was working previously.
- Console or
debug.logcontains errors likeIOException: No space left on deviceor mentions writing to/tmp/. - Crashes tend to get worse over time as the world save grows larger.
- Server sometimes starts if you try shortly after a clean reboot of the host node (before
/tmpfills again).
Steps — Disable BackupsOnStart
- In GPanel, go to the File Manager tab.
- Navigate to
/.cache/server/. Look for your server configuration file — it is typically namedservertest.inior whatever your server name is followed by.ini(e.g.,MyServer.ini). - Open the
.inifile for editing. - Use your browser's find function (Ctrl+F) to search for
BackupsOnStart. - Change the value from
truetofalse:BackupsOnStart=false - While in the file, also check the
BackupsOnVersionChangesetting and set it tofalseif disk space is a concern:BackupsOnVersionChange=false - Save the file and restart your server. Monitor the console to confirm the server reaches the
SERVER STARTEDline.
/.cache/saves/multiplayer/ folder periodically, or contact Legion Hosting support to ask about scheduled backup options on your plan.
Fix 3 — Corrupted SandboxVars.lua or Server Config
Project Zomboid stores world settings in a Lua file called SandboxVars.lua. If this file is edited manually and saved with a syntax error, or if a file transfer was interrupted, the server will crash immediately on startup when it tries to parse the file.
Symptoms
- Console shows
ERROR: SandboxVars,LuaManager error, or a Lua parse error with a line number. - The crash started happening right after you edited settings in the
.inifile orSandboxVars.luadirectly. - The server may show
Bad argument #1 toor similar Lua runtime errors.
Steps — Check and Repair SandboxVars.lua
- In GPanel, go to File Manager and navigate to
/.cache/saves/multiplayer/<YourServerName>/. - Open
SandboxVars.luafor editing. - Check that the file starts with
VERSION = 1,(or similar) inside aSandboxVars = {block, and ends with a closing}. Any missing comma, unclosed brace, or stray character will cause a parse failure. - If you cannot identify the error, the safest fix is to delete
SandboxVars.luaentirely. The server will regenerate it with default values on the next startup. Note: this resets your sandbox settings (loot, zombie count, etc.) to defaults — your map data and player data are not affected. - Also check the
.inifile in/.cache/server/for similar issues if you recently edited it by hand. Ensure every line follows theKey=Valueformat with no blank lines inside a value. - Save changes and restart the server.
SandboxVars.lua directly. Instead, use the in-game admin panel or the server settings UI in GPanel if available. Direct edits are error-prone and can break the server with a single missed comma.
Fix 4 — Empty Admin Password Causing Crash
Project Zomboid requires a non-empty admin password to start a multiplayer server. If the password field is blank, the server process exits immediately after attempting to initialize the admin account.
Symptoms
- Brand new server or recently reset server fails on every start attempt.
- Console output is very short — the server prints a few initialization lines and then stops.
debug.logmay contain a reference to the admin account or password validation.
Steps
- In GPanel, click your server and go to the Startup tab.
- Look for a field labeled Admin Password or RCON Password. Confirm it contains a value — it must not be blank.
- If the field is empty, enter a password. Use at least 8 characters. Avoid special characters like
!,#,$, or@in the admin password, as some PZ versions fail to parse them correctly in the startup arguments. - Click Save and restart the server.
- As a secondary check, open the
.inifile in/.cache/server/and confirm the lineAdminPassword=has a value after the equals sign.
Fix 5 — Reset the World (Last Resort for Persistent Crashes)
If a world save becomes corrupted — for example after a hard server crash, a failed update, or file system errors — the save data itself may be unrecoverable. In this case, deleting the world and starting fresh is the only option.
Steps
- Stop your server in GPanel before making any changes to the save files. Editing files on a running server can cause further corruption.
- In GPanel, go to the File Manager tab.
- Navigate to
/.cache/saves/multiplayer/. - You will see one or more folders with your server name (e.g.,
servertest). Before deleting, optionally download the folder as a backup by selecting it and using the download option — even a corrupted save may be partially recoverable later. - Delete the folder matching your server name inside
Multiplayer/. Do not delete theMultiplayerfolder itself. - Also navigate to
/.cache/db/and delete the<YourServerName>.dbfile. This database holds player statistics and may reference the old world — regenerating it avoids mismatches. - Start your server. It will generate a fresh world using the settings in your
.inifile.
.ini file, admin password, mod list, and port settings are all preserved. The next startup will use exactly the same settings to generate a new world.
Quick Diagnostic Reference
| What you see in the log | Most likely cause | Fix |
|---|---|---|
OutOfMemoryError or Java heap space |
Not enough RAM for B42 startup | Fix 1 — B42 Memory Bug |
IOException: No space left on device |
BackupsOnStart filling /tmp |
Fix 2 — BackupsOnStart |
SandboxVars error or Lua parse error |
Corrupted or hand-edited config file | Fix 3 — SandboxVars.lua |
| Server exits immediately, very short console output | Empty admin password | Fix 4 — Admin Password |
| Crashes consistently regardless of config changes | Corrupted world save | Fix 5 — World Reset |
Still Crashing After All Steps?
If your server is still crashing after working through every fix above, open a support ticket with Legion Hosting. Include the following to help the support team diagnose the issue quickly:
- The last 50 lines of your GPanel console output at the time of the crash
- The full contents of the most recent
debug.logorDebugLog-server.txtfile - Your server's Project Zomboid build version (shown in the console on startup, e.g.
Build 42.x.x) - Your RAM allocation as shown in GPanel
- Whether the crash is on every startup or only after the server has been running for a while
- Any changes you made before the crash started (mod additions, config edits, game updates)
Open a support ticket and include your server ID and the error messages from the GPanel console.