Project Zomboid server running, AMP says it's still starting

OS Name/Version: Windows Server 2022 Standard

Product Name/Version: 2.3.3.0

Problem Description:
The server has already started and I can connect to it, but AMP still shows “Application State: Starting” indefinitely.

Steps to reproduce:

  • Create a new PZ server instance and update it
  • Configuration doesn’t matter, even default config doesn’t work
  • Start the server

Actions taken to resolve so far:
Tried messing with the config, reinstalling java and tried all different options in RCON settings.

Can you share the AMP logs from a time after you hit start? I just double checked and the server shows it started fine on my end.

They are too big for code block, don’t know how else to send it.

https://pastebin.com/5Z5inpDc

Alright, there’s an issue there. The devs added a space as a separator too for some reason. I created a PR on GitHub to fix the issue, but that won’t help you right now. To fix yours you can go into ADS File Manager. Find the instance and open the GenericModule.kvp. Replace these lines you have with the ones below and restart the instance. Should work fine then.

Console.AppReadyRegex=^LOG\s+: Network\s+, \d+> [\d,.\s]+> \*+ SERVER STARTED \*+$
Console.UserJoinRegex=^LOG\s+: Network\s+, \d+> [\d,.\s]+> Connected new client (?<username>.+?) ID # (?<userid>.+?) and assigned DL port (?<userport>.+?)$
Console.UserLeaveRegex=^LOG\s+: (Network|General)\s+, \d+> [\d,.\s]+> (Disconnected player "(?<username>.+?)" |\d+ znet: Disconnecting client #(?<userid>.+?) SteamID=)\d+$

Hmm, the regex seems to match now but for some reason it still doesn’t work… (still the same behaviour)
New log

Here’s my entire GenericModule.kvp file in case it helps somehow

Meta.DisplayName=Project Zomboid
Meta.Description=Project Zomboid Dedicated Server
Meta.OS=Windows, Linux
Meta.Arch=x86_64
Meta.Author=Greelan, IceOfWraith, Dhraz
Meta.URL=https://projectzomboid.com
Meta.DisplayImageSource=steam:108600
Meta.EndpointURIFormat=steam://connect/{ip}:{GenericModule.App.ApplicationPort2}
Meta.ConfigManifest=project-zomboidconfig.json
Meta.MetaConfigManifest=project-zomboidmetaconfig.json
Meta.ConfigRoot=project-zomboid.kvp
Meta.MinAMPVersion=2.3.3.0
Meta.SpecificDockerImage=
Meta.DockerRequired=False
Meta.ContainerPolicy=Supported
Meta.Prerequsites=[]
Meta.ConfigReleaseState=NotSpecified
App.DisplayName=Project Zomboid
App.RootDir=./project-zomboid/
App.BaseDirectory=./project-zomboid/380870/
App.ExecutableWin=380870\jre64\bin\java.exe
App.ExecutableLinux=380870/ProjectZomboid64
App.WorkingDir=380870
App.LinuxCommandLineArgs=-Dzomboid.steam={{SteamInt}} -Duser.home=./ -Xmx{{MaxMemory}}m {{CustomJavaArgs}} --
App.WindowsCommandLineArgs=-Djava.awt.headless=true -Dzomboid.znetlog=1 -Dzomboid.steam={{SteamInt}} -Duser.home=./ -Xmx{{MaxMemory}}m {{JavaGCAlgo}} -XX:-CreateCoredumpOnCrash -XX:-OmitStackTraceInFastThrow -Djava.library.path=natives/;natives/win64/;. {{CustomJavaArgs}} -cp java/*;java/ zombie.network.GameServer -statistic 0 --
App.CommandLineArgs={{$PlatformArgs}} -port {{$ApplicationPort1}} -steamport1 {{$ApplicationPort2}} -steamport2 {{$ApplicationPort3}} {{CustomServerArgs}} {{$FormattedArgs}}
App.UseLinuxIOREDIR=False
App.AppSettings={"$ApplicationPort1":"16261","$ApplicationPort2":"8766","$ApplicationPort3":"8767","$RemoteAdminPort":"27015","PublicName":"ENY","Public":"true","PublicDescription":"","Password":"Riba123","adminpassword":"","RCONPassword":"1ab07447-a13f-451f-86f1-ddc2a260ef3e","ServerWelcomeMessage":"Welcome to Project Zomboid Multiplayer! <LINE> <LINE> To interact with the Chat panel: press Tab, T, or Enter. <LINE> <LINE> The Tab key will change the target stream of the message. <LINE> <LINE> Global Streams: /all <LINE> Local Streams: /say, /yell <LINE> Special Streams: /whisper, /safehouse, /faction. <LINE> <LINE> Press the Up arrow to cycle through your message history. Click the Gear icon to customize chat. <LINE> <LINE> Happy surviving!","$MaxUsers":"32","Open":"true","AutoCreateUserInWhiteList":"false","MaxMemory":"4096","JavaGCAlgo":"-XX:+UseZGC","SteamVAC":"true","SteamInt":"1","Map":"Rosewood, KY; Muldraugh, KY","Mods":"","WorkshopItems":"","DisplayUserName":"true","ShowFirstAndLastName":"false","SteamScoreboard":"true","PauseEmpty":"true","SaveWorldEveryMinutes":"15","UPnP":"false","CustomJavaArgs":"","servername":"servertest","CustomServerArgs":"","SpawnPoint":"8345,11742,0","SpawnItems":"","PVP":"false","SafetySystem":"true","ShowSafety":"true","SafetyToggleTimer":"2","SafetyCooldownTimer":"3","Faction":"true","FactionDaySurvivedToCreate":"0","GlobalChat":"true","nightlengthmodifier":"1.0","NoFire":"false","AnnounceDeath":"true","MinutesPerPage":"1.0","HoursForLootRespawn":"0","MaxItemsForLootRespawn":"4","ConstructionPreventsLootRespawn":"true","PlayerSafehouse":"true","AdminSafehouse":"false","SafehouseAllowTrepass":"true","SafehouseAllowFire":"true","SafehouseAllowLoot":"true","SafehouseAllowRespawn":"true","SafehouseDaySurvivedToClaim":"0","SafeHouseRemovalTime":"999","AllowDestructionBySledgehammer":"true","SledgehammerOnlyInSafehouse":"false","SleepAllowed":"true","SleepNeeded":"false","DiscordEnable":"false","DiscordToken":"","DiscordChannel":"","DiscordChannelID":"","EnableBeta":"false","BetaBranch":""}
App.EnvironmentVariables={"PATH":"./jre64/bin:%PATH%","LD_LIBRARY_PATH":"./linux64:./natives:./:./jre64/lib/amd64:%LD_LIBRARY_PATH%","LD_PRELOAD":"./jre64/lib/libjsig.so","PZ_CLASSPATH":"java/*;java/","SteamAppId":"108600"}
App.CommandLineParameterFormat=-{0} {1}
App.CommandLineParameterDelimiter= 
App.ExitMethod=String
App.ExitTimeout=30
App.ExitString=quit
App.ExitFile=app_exit.lck
App.HasWriteableConsole=True
App.HasReadableConsole=True
App.SupportsLiveSettingsChanges=False
App.LiveSettingChangeCommandFormat=set {0} "{1}"
App.ApplicationIPBinding=0.0.0.0
App.Ports=[{"Protocol":2,"Port":19132,"Offset":0,"Range":1,"Ref":"ApplicationPort1","Name":"Application Port 1","Description":"","ChildPorts":null},{"Protocol":2,"Port":8767,"Offset":0,"Range":1,"Ref":"ApplicationPort2","Name":"Application Port 2","Description":"","ChildPorts":null},{"Protocol":2,"Port":8768,"Offset":0,"Range":1,"Ref":"ApplicationPort3","Name":"Application Port 3","Description":"","ChildPorts":null},{"Protocol":2,"Port":27018,"Offset":0,"Range":1,"Ref":"RemoteAdminPort","Name":"Application Admin Port","Description":"","ChildPorts":null}]
App.ApplicationPort1=19132
App.ApplicationPort2=8767
App.ApplicationPort3=8768
App.RemoteAdminPort=27018
App.AdminPortRef=RemoteAdminPort
App.PrimaryApplicationPortRef=ApplicationPort1
App.UniversalSleepApplicationUDPPortRef=ApplicationPort1
App.UniversalSleepSteamQueryPortRef=ApplicationPort2
App.MaxUsers=32
App.UseRandomAdminPassword=False
App.RemoteAdminPassword=Password123
App.AdminMethod=STDIO
App.AdminLoginTransform=None
App.RCONConnectDelaySeconds=5
App.RCONConnectRetrySeconds=5
App.RCONHeartbeatMinutes=0
App.RCONHeartbeatCommand=ping
App.TelnetLoginFormat={0}
App.UpdateSources=[{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":31,"UpdateSource":4,"UpdateSourceData":"380870","UpdateSourceArgs":null,"UpdateSourceVersion":"public","UpdateSourceTarget":null,"UnzipUpdateSource":false,"OverwriteExistingFiles":false,"ForceDownloadPlatform":0,"UpdateSourceConditionSetting":"EnableBeta","UpdateSourceConditionValue":"false","DeleteAfterExtract":false},{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":31,"UpdateSource":4,"UpdateSourceData":"380870","UpdateSourceArgs":null,"UpdateSourceVersion":"{{BetaBranch}}","UpdateSourceTarget":null,"UnzipUpdateSource":false,"OverwriteExistingFiles":false,"ForceDownloadPlatform":0,"UpdateSourceConditionSetting":"EnableBeta","UpdateSourceConditionValue":"true","DeleteAfterExtract":false},{"UpdateStageName":"Mods Directory Creation","UpdateSourcePlatform":31,"UpdateSource":1024,"UpdateSourceData":null,"UpdateSourceArgs":"./project-zomboid/380870/Zomboid/mods","UpdateSourceVersion":null,"UpdateSourceTarget":null,"UnzipUpdateSource":false,"OverwriteExistingFiles":false,"ForceDownloadPlatform":0,"UpdateSourceConditionSetting":null,"UpdateSourceConditionValue":null,"DeleteAfterExtract":false}]
App.Compatibility=None
App.SteamUpdateAnonymousLogin=True
App.SteamForceLoginPrompt=False
App.RapidStartup=False
App.MonitorChildProcess=False
App.MonitorChildProcessWaitMs=100
App.MonitorChildProcessName=
App.SupportsUniversalSleep=False
App.WakeupMode=Any
App.ApplicationReadyMode=RegexMatch
App.TemplateMatchRegex={{(\$?[\w]+)}}
Console.FilterMatchRegex=
Console.FilterMatchReplacement=
Console.ThrowawayMessageRegex=^(WARNING|ERROR): Shader.+$
Console.AppReadyRegex=^LOG\s+: Network\s+, \d+> [\d,.\s]+> \*+ SERVER STARTED \*+$
Console.UserJoinRegex=^LOG\s+: Network\s+, \d+> [\d,.\s]+> Connected new client (?<username>.+?) ID # (?<userid>.+?) and assigned DL port (?<userport>.+?)$
Console.UserLeaveRegex=^LOG\s+: (Network|General)\s+, \d+> [\d,.\s]+> (Disconnected player "(?<username>.+?)" |\d+ znet: Disconnecting client #(?<userid>.+?) SteamID=)\d+$
Console.UserChatRegex=^\[\d\d:\d\d:\d\d\] \[CHAT\] <(?<username>.+?)> (?<message>.+)$
Console.UpdateAvailableRegex=^\[\d\d:\d\d:\d\d\] \[INFO\] A new server update is available! v[\d\.]+.$
Console.MetricsRegex=
Console.SuppressLogAtStart=False
Console.ActivateLogRegex=
Console.UserActions={}
Limits.SleepMode=False
Limits.SleepOnStart=False
Limits.SleepDelayMinutes=5
Limits.DozeDelay=7
Limits.AutoRetryCount=5
Limits.SleepStartThresholdSeconds=25

Hmmm… I just tried and it matches against what your logs showed. Did you restart the instance? Make sure the changes stuck?

Yes, the instance was stopped when I was editing it and the changes stuck after I started it.

I also tried to launch it with “App.ApplicationReadyMode=Immediate” and the regex for users joining doesn’t work either.

I assume that’s because it’s possibly using a different character for that space. If you’re on Discord you can send me the log file directly as it comes from the AMP folder rather than any kind of copy/pasting the contents which might change the format.

Just an update here, we solved it on Discord using an updated regex.

I am having the same issue, could you please post the updated regex here?

OS Linux
Platform Linux Mint 20.3
System Type x86_64
Virtualization None
Module ADSModule
Loaded Plugins FileManagerPlugin, EmailSenderPlugin, WebRequestPlugin, LocalFileBackupPlugin, CommonCorePlugin
Application Name AMP
Application Version 2.3.3.4
Release Stream Release
Build Date 06/06/2022 18:55

This should be it

Console.AppReadyRegex=^LOG\s+: Network\s+, \d+>.*> \*+ SERVER STARTED \*+$
Console.UserJoinRegex=^LOG\s+: Network\s+, \d+>.*> Connected new client (?<username>.+?) ID # (?<userid>.+?) and assigned DL port (?<userport>.+?)$
Console.UserLeaveRegex=^LOG\s+: (Network|General)\s+, \d+>.*> (Disconnected player "(?<username>.+?)" |\d+ znet: Disconnecting client #(?<userid>.+?) SteamID=)\d+$