background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Kategorie

Fixing Project Zomboid Server Crashes

zomboid pz crash memory 0 uživatelům to pomohlo

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.

This guide covers server-side crashes only. If your server is running and players are experiencing client crashes or freezes inside the game, see your game's own crash logs on your local machine. If you cannot connect at all but the server is running, see How to Connect to Your Project Zomboid Server.

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

  1. Log in to GPanel.
  2. Select your Project Zomboid server from the server list.
  3. Click the Console tab.
  4. Scroll to the bottom of the output. Look for lines marked ERROR, FATAL, OutOfMemoryError, or Exception. The last 20–30 lines before the server stopped are usually the most relevant.
  5. 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.

  1. In GPanel, go to the File Manager tab.
  2. Navigate to /.cache/Logs/. You will see files named like debug.log, DebugLog-server.txt, or dated log files.
  3. Open the most recent log file. Use Ctrl+End or scroll to the very bottom and read upward from there.
  4. Look for the keywords OutOfMemoryError, IOException, NullPointerException, or SandboxVars. 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)

Build 42 known issue: Project Zomboid B42 (specifically version 42.x) has a confirmed memory bug where the server allocates approximately 9 GB of RAM during startup, even on small worlds with no players. This is significantly higher than B41 and is a bug in the game itself, not a configuration error.

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 space or GC 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

  1. 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.
  2. 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.
  3. If your plan already has 10 GB or more and the server still crashes on startup, go to the Startup tab in GPanel.
  4. 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.
  5. Click Save on the Startup tab, then restart your server.
  6. Watch the console during startup. If the server reaches the line SERVER STARTED or LuaManager: Loading lua files... completes without crashing, the memory allocation is now sufficient.
Why does B42 need so much RAM? Build 42 introduced a significantly expanded map with multi-floor buildings. During startup the server loads large portions of the map index and Lua sandbox into memory at once. The Indie Stone have acknowledged this as an area they are actively optimizing. Monitor the Project Zomboid news on Steam for patches that reduce startup memory usage.

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.log contains errors like IOException: No space left on device or 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 /tmp fills again).

Steps — Disable BackupsOnStart

  1. In GPanel, go to the File Manager tab.
  2. Navigate to /.cache/server/. Look for your server configuration file — it is typically named servertest.ini or whatever your server name is followed by .ini (e.g., MyServer.ini).
  3. Open the .ini file for editing.
  4. Use your browser's find function (Ctrl+F) to search for BackupsOnStart.
  5. Change the value from true to false:
    BackupsOnStart=false
  6. While in the file, also check the BackupsOnVersionChange setting and set it to false if disk space is a concern:
    BackupsOnVersionChange=false
  7. Save the file and restart your server. Monitor the console to confirm the server reaches the SERVER STARTED line.
Manual backups: Disabling automatic backups means you will need to back up your world data manually. To do this, use GPanel's File Manager to download a copy of the /.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 .ini file or SandboxVars.lua directly.
  • The server may show Bad argument #1 to or similar Lua runtime errors.

Steps — Check and Repair SandboxVars.lua

  1. In GPanel, go to File Manager and navigate to /.cache/saves/multiplayer/<YourServerName>/.
  2. Open SandboxVars.lua for editing.
  3. Check that the file starts with VERSION = 1, (or similar) inside a SandboxVars = { block, and ends with a closing }. Any missing comma, unclosed brace, or stray character will cause a parse failure.
  4. If you cannot identify the error, the safest fix is to delete SandboxVars.lua entirely. 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.
  5. Also check the .ini file in /.cache/server/ for similar issues if you recently edited it by hand. Ensure every line follows the Key=Value format with no blank lines inside a value.
  6. Save changes and restart the server.
Recommended: Avoid editing 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.log may contain a reference to the admin account or password validation.

Steps

  1. In GPanel, click your server and go to the Startup tab.
  2. Look for a field labeled Admin Password or RCON Password. Confirm it contains a value — it must not be blank.
  3. 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.
  4. Click Save and restart the server.
  5. As a secondary check, open the .ini file in /.cache/server/ and confirm the line AdminPassword= has a value after the equals sign.

Fix 5 — Reset the World (Last Resort for Persistent Crashes)

This action permanently deletes all world progress. Player characters, buildings, loot state, and map changes will be lost. Player accounts (whitelist, ban list) are stored separately and are not affected. Only do this if all other fixes have failed and you are prepared to start a new world.

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

  1. Stop your server in GPanel before making any changes to the save files. Editing files on a running server can cause further corruption.
  2. In GPanel, go to the File Manager tab.
  3. Navigate to /.cache/saves/multiplayer/.
  4. 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.
  5. Delete the folder matching your server name inside Multiplayer/. Do not delete the Multiplayer folder itself.
  6. Also navigate to /.cache/db/ and delete the <YourServerName>.db file. This database holds player statistics and may reference the old world — regenerating it avoids mismatches.
  7. Start your server. It will generate a fresh world using the settings in your .ini file.
Keep your settings: Deleting the world save does not delete your server configuration. Your .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.log or DebugLog-server.txt file
  • 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.


Byl pro vás tento článek užitečný?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.