Skip to content
In-house anti-DDoS, included on VPS, game servers and web hosting · hosted in France · cancel anytime See our plans
CloudFive
Log in

01

Where to read the errors

According to the official Project Zomboid wiki, a dedicated server writes its log to server-console.txt, at the root of the Zomboid folder of the user running it (/home/pzserver/Zomboid if you followed the guide create a Project Zomboid server). The wiki advises searching it for STACK TRACE: the lines that follow give the error and, often, the mod responsible.

grep -n -A 12 "STACK TRACE" /home/pzserver/Zomboid/server-console.txt | tail -n 60

The same folder holds logs.zip, which bundles the logs of the latest launches, the settings and the mod list: it is the file you will be asked for when seeking help on the official forum or Discord.

02

The server does not start

Java memory is badly set. The server's memory is set by the -Xms (starting memory) and -Xmx (maximum) options, in ProjectZomboid64.json on Linux or in StartServer64.bat on Windows. The official wiki warns that this Windows file reserves 16 GB at startup by default, and asks you to adapt these values to the machine, otherwise the server fails to start with memory errors. Three rules:

  • -Xmx stays below about 80% of the machine's memory, as the wiki advises;
  • -Xms is never larger than -Xmx;
  • an update can restore the original values: check them after every SteamCMD run.
grep -oE -- '-Xm[sx][0-9]+[gGmM]' /home/pzserver/pz/ProjectZomboid64.json

The service never really starts. On the very first launch, the server asks you to choose the password for the admin account. Started directly as a service, it cannot receive that answer. The wiki therefore asks you to start the server once by hand, enter the password, and only then create the service.

The server stops with this error:

java.lang.NullPointerException: Cannot invoke "zombie.characters.Role.hasCapability(zombie.characters.Capability)" because "player.role" is null

The official wiki's support page links it to the username disguise settings. With the server stopped, set UsernameDisguises and HideDisguisedUserName to false in the server's .ini file, then start it again.

03

Players cannot connect

Nobody can get in. The server waits for players on two UDP ports, set in the .ini file: 16261 (DefaultPort) and 16262 (UDPPort). Open both in the firewall (see game server ports). A server started with -nosteam only accepts players who also start the game with -nosteam, and the other way round.

A version error. The official wiki quotes a message of the form Client version (x) doesn't match server (y): the player's game and the server do not have the same version. If the client number is lower, the player must update their game; if it is higher, the server must be updated. The wiki points out that the server does not update while it is running:

sudo systemctl stop zomboid
sudo -iu pzserver /usr/games/steamcmd +force_install_dir /home/pzserver/pz +login anonymous +app_update 380870 validate +quit
sudo systemctl start zomboid

SteamCMD confirms a successful install with Success! App '380870' fully installed. To stay on the older Build 41, add -beta legacy41 to +app_update; a world started in Build 41 does not load in Build 42.

Players are kicked as soon as they connect. With DoLuaChecksum=true, the server kicks players whose game files do not match its own. The player should have Steam verify their files. The wiki also reports a bug that produces false positives on Linux servers: if up-to-date players with no different mods are rejected, it is probably this. Setting this option to false removes the check, at the cost of security: do it knowingly.

A player stays stuck on "Loading the world". The official wiki describes this bug since version 42.20; their log then contains Cannot invoke "zombie.savefile.PlayerDB.importPlayersFromVehiclesDB()". Until the fix, the player deletes the server's folder on their side in Zomboid/Saves/Multiplayer (it is named after the server's address), and an admin removes them from the Users list in the admin panel. It sometimes has to be repeated.

Everyone has to create a new character. The server compares ResetID and ServerPlayerID with the ones players have kept: if these numbers change, existing characters are no longer recognised. The wiki advises noting these two values and backing them up, for example with a copy of the .ini file.

04

Crashes, lag, mods and backups

The server crashes when players arrive. The wiki first points to a lack of memory. Usage grows with the explored map, the zombies and above all the mods: raise -Xmx within the machine's limits, or reduce the load. The wiki also warns that above 32 players (MaxPlayers), map streaming and synchronisation can degrade. If players are kicked for their latency, check PingLimit: 0 disables this kick.

The server refuses to start after adding a mod. A mod is declared on two lines of the .ini file, separated by semicolons: its Workshop number in WorkshopItems= and its ID in Mods=, plus its map folder in Map= for a map mod. A forgotten or mistyped ID on either line is enough to block everything. Add mods one at a time and search for STACK TRACE in server-console.txt: the trace almost always names the mod responsible. The guide mods on a Project Zomboid server details the method.

Players are rejected after a mod update. The server downloads its mods at startup: until it restarts, it keeps the old version and players who have the new one no longer match. Restart the server after every mod update.

Hours of play lost after a shutdown. According to the wiki, stopping the server with Ctrl+C or by closing the window prevents it from saving the world properly. Type quit in the console, or let the service send it. Built-in backups are set in the .ini file: BackupsCount (5 by default), BackupsOnStart and BackupsOnVersionChange (on by default) and BackupsPeriod. Also keep copies of Zomboid/Saves/Multiplayer, Zomboid/Server and Zomboid/db off the machine.

To kick or ban a player from the console, see Project Zomboid admin commands. If everyone drops at the same time while the console keeps running, look at the network: see protecting a game server from DDoS attacks.

05

On CloudFive

CloudFive has no ready-made Project Zomboid plan: the server is installed on a VPS, and this guide applies as is. The gaming VPS, from €5.99 per month, is well suited:

  • an AMD Ryzen 9 9950X, with DDR5 memory and NVMe storage: single-core speed matters for the simulation, and memory is chosen according to your mods;
  • root access and a dedicated IPv4 address, to set up Java, ports and backups as in this guide;
  • basic anti-DDoS protection included. A game-specific filter is part of Premium Protection, a paid option.

The servers are in France, on our own network, monthly with no commitment, with support in French 7 days a week, by ticket, on Discord and by phone.

06

Frequently asked questions

Where are the logs of a Project Zomboid server?

In server-console.txt, at the root of the Zomboid folder of the user running the server. Search it for STACK TRACE: the lines that follow give the error and often name the mod responsible.

What does "Client version doesn't match server" mean?

The player's game and the server do not have the same version. If the client number is lower, the player must update their game; otherwise, stop the server, update it with SteamCMD (app 380870) and start it again.

How much memory should a Project Zomboid server get?

No figure fits every server: usage depends on the explored map, the zombies and above all the mods. Set -Xmx below about 80% of the machine's memory, keep -Xms lower or equal, and raise it if the server crashes when players arrive.

Which ports should I open for a Project Zomboid server?

Ports 16261 and 16262 in UDP by default, set by DefaultPort and UDPPort in the server's .ini file. The RCON port should not be open to the whole Internet.

How do I stop a Project Zomboid server without losing the game?

Type quit in the server console, or let your service send it. Ctrl+C or closing the window can prevent the world from being saved and lose hours of play.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay