Fix a Project Zomboid server that won't start after adding mods
Three ways mods stop a Build 42 server, with the log lines for each: Server Terminated, required mod not found, and a Workshop update that fails.
When a Build 42 server stops starting after you change its mods, the log says which mod did it. Mods fail in three different ways, and each leaves its own lines. Find yours below.
Open the server log
Everything below is in the server's console output. The game also writes it to Zomboid/Logs, in a file named after the start, ending in _DebugLog-server.txt. Each new start moves the previous files into a logs_… folder beside them, so after a failed start and a retry, the run that failed is in that folder.
"Server Terminated." and nothing more
The log ends with GameServer.main> Exception thrown and Server Terminated., and the server never opens. The process keeps running, so it looks stuck rather than stopped. A normal shutdown ends with Shutdown handling finished instead.
The world could not load because a mod's script names something this game version does not have. The reason is further up, at the first line like this one:
ERROR: General f:0 st:23,001,693> ScriptManager.PostWorldDictionaryInit> Exception thrown
java.lang.Exception: Fluid not found: Alcohol. line: fluid 0.1 [Alcohol] Here a recipe asked for a fluid called Alcohol. The mod was last updated for Build 42.0, and by 42.21 the game calls that fluid RubbingAlcohol. One line was enough to stop the whole server.
- Find the first
Exception thrownline that comes fromScriptManager, and copy what followsline:. - Search the server's Workshop folder for that text to see which mod it is in. On Linux:
The number aftergrep -rlF "fluid 0.1 [Alcohol]" steamapps/workshop/content/108600108600/in the path it prints is the mod's Workshop ID. - Remove that mod from
WorkshopItems=andMods=, or look on its Workshop page for an update or a patch. - Stop the server process yourself, then start it again. The game stops at the first bad script, so a second mod may be next.
Errors about missing actiongroups, a ladderW property or an AdvancedAnimator file that was not found also show up on servers that start fine. They are not the cause.
required mod "…" not found
This one is a warning. The server starts and reaches SERVER STARTED, but without that mod, so players join and find it missing. The name in the message is the mod the game skipped, not a mod you forgot to add. It skips a mod for one of three reasons:
- It needs another mod that is not on the server. Its
mod.infohas arequire=line, and the mod named there is missing. Vehicle mods that share a library mod are the usual case. Add the library's Workshop ID and Mod ID, in front of the mod that needs it. - It does not allow your game version. A
mod.infocan setversionMinandversionMax. This happens right after a game update: Project Viewpoint, for one, allows a single game version, so it and its add-ons are skipped until their authors update them. Wait for the mod's update. - It has no Build 42 files. The item has only a
mod.infoat its root, with no42orcommonfolder. It is a Build 41 mod, and Build 42 does not load it. Remove it.
The server exits after a mod was updated
The server starts, then shuts down by itself with no error, often the day after it ran fine. The log has lines like these:
Installed status but timeUpdated doesn't match!!!
Workshop: onItemNotDownloaded itemID=1234567890 result=10
Workshop: item state DownloadPending -> Fail ID=1234567890
Shutdown handling started
Server exited The mod's author published an update. The game saw that the server's copy was out of date, deleted it and tried to download the new one itself. Steam answered that it was busy (result=10) or unreachable (result=3), and the game shut down rather than start without the mod.
- Start the server again. Steam is often reachable the second time.
- If it keeps failing, download the item with SteamCMD first, with the Workshop ID from the
ID=in the log, then start the server:steamcmd +login anonymous +workshop_download_item 108600 1234567890 +quit result=9orresult=15means the item was removed from the Workshop or made private. No retry brings it back: take it out ofWorkshopItems=andMods=.
No error, but the mod is not in the game
Its Mod ID is missing from Mods=, or the Workshop ID and the Mod ID were mixed up. See adding Workshop mods to a Build 42 server.
Still stuck: find the mod by halves
Copy the save first. Take out half of the mods you added and start the server. If it starts, the problem is in the half you removed; if not, in the half you kept. Repeat on that half. Ten mods take four starts, a hundred take seven.
HostForge reads the log for you
When a start fails over a mod, the server page names the mod that stopped it. Before every start, HostForge updates the Workshop items that changed on Steam, so the game does not have to. When the game skips a mod, the Mods tab says why and offers the fix as one button: add the mod it requires, or remove an item that cannot load.