Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Issues with migrated ingame project zomboid server to linuxGSM docker container #4321

Open
RagingFlames opened this issue Sep 29, 2023 · 6 comments

Comments

@RagingFlames
Copy link

User story

As a project zomboid server host, I want to be able to use the server console without errors, so that I can run and/or shutdown the server.

Game

Project Zomboid

Linux distro

Ubuntu 22.04, Debian 11

Command

command: console

Further information

The server is running debian 11, the docker container reports as Ubuntu.

I was running a project zomboid server thru the ingame server hosting feature. I wanted to switch to a dedicated server, so I moved over the ingame data to the new dedicated server I was setting up. Initially I was having trouble with our player data not transferring but I found this guide and that straightened everything out. After fixing that I started playing with my friends on the server and immediately ran into problems.

First, whenever I would run a command, like to make someone an admin, the server would show an sql error, and then say that I need to whitelist that player in order to make them an admin. If I tried to whitelist a player, it would just show an sql error. Interestingly, if the player I wanted to make an admin was online, it would actually make them an admin, but this setting would not persist.

Second, I've left the server running for 2 weeks now and I came back to it to try and shut it down and maybe move to a different solution. However, when I tried to access the server console I got this.

image

So I can no longer change anything about the server. I can't provide screenshots of the first problem, because I didn't save any and can't access the server anymore. And I can't provide logs because I can't access the server.

Relevant log output

No response

Steps to reproduce

  1. Setup the linuxGSM ProjectZomboid docker server
  2. Transfer a save from the ingame host to the new dedicated host
  3. Try to make someone an admin
  4. Try to white list someone
  5. Try to access the server console
@dgibbs64
Copy link
Member

Just noticed your version of LinuxGSM is out of date. you need to update your docker image

@RagingFlames
Copy link
Author

I updated the docker yaml to have it update on launch

version: '3'
services:
  lgsm-zomboid:
    image: gameservermanagers/gameserver:pz
    pull_policy: always
    container_name: lgsm-zomboid
    restart: unless-stopped
    network_mode: host
    ports:
    - "16261:16261"
    - "16262:16262"
    volumes:
    - /home/my-name/zomboid:/data

It did update but I have the same problem

image
image

@RagingFlames
Copy link
Author

Some updates on this, so I learned that the problem was that the LGSM_SERVERFILES environment variable wasn't getting set. I have no idea why. I set it manually when I launch the container for now. I can at least run the pz server script now, but I have a new problem.

image

The server is absolutely 100% running. I can connect to it and play. If I tell the script to start the server, it'll start a second instance of the pzserver, that will fail to startup.

@dgibbs64
Copy link
Member

How odd the env variables are not working for you. I am having no issues with my servers. Are you have the latest image by using docker pull?

docker pull gameservermanagers/gameserver:pz

@RagingFlames
Copy link
Author

How odd the env variables are not working for you. I am having no issues with my servers. Are you have the latest image by using docker pull?

docker pull gameservermanagers/gameserver:pz

I get this back
image

I updated the docker yaml to have it update on launch

I updated my docker yaml to update whenever I launch it, so I should always be up to date.

@RagingFlames
Copy link
Author

I switched everything over to the official server software that's outlined on the wiki. Everything works perfectly now, so what ever was wrong it is something to do with LGSM or my container. If people want to mark this as closed, I'm fine with it, but the LGSM container still doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 New Issues
Development

No branches or pull requests

2 participants