docker-gameserver icon indicating copy to clipboard operation
docker-gameserver copied to clipboard

pzserver hangs on startup asking for an admin password

Open mrd0ll4r opened this issue 1 year ago • 2 comments

When starting the server, I eventually end up in a situation like this:

pzserver  | LOG  : General     , 1726515032194> 1,220,115,395> User 'admin' not found, creating it
pzserver  | LOG  : General     , 1726515032194> 1,220,115,395> Command line admin password: null
pzserver  | LOG  : General     , 1726515032194> 1,220,115,395> Enter new administrator password:

which then hangs.

I fixed this by modifying the start parameters to

startparameters="-servername ${selfname} -adminpassword ${adminpassword}"

mrd0ll4r avatar Sep 16 '24 19:09 mrd0ll4r

Would you mind explain a little how u did this workaround? Just encounter the same problem, thanks for the help.

colgrave34 avatar Jan 26 '25 19:01 colgrave34

I modified /data/config-lgsm/pzserver/pzserver.cfg with the above mentioned:

startparameters="-servername ${selfname} -adminpassword ${adminpassword}"

Where exactly that file is on your machine depends on where you mounted /data of the container. If you use a bind mount, you'll find it in there. If you use a named volume, it'll be a bit more annoying.

Good luck!

mrd0ll4r avatar Jan 26 '25 19:01 mrd0ll4r