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

Server not showing up and can't be connected to #48

Open
pcbmaster opened this issue Nov 12, 2022 · 8 comments
Open

Server not showing up and can't be connected to #48

pcbmaster opened this issue Nov 12, 2022 · 8 comments
Labels
config error An error created as a result of an invalid configuration.

Comments

@pcbmaster
Copy link

Having issues with the docker image. Everything seems to work fine, getting all the way to the end, ports are open, but I can't directly connect to the server, nor can I see it in the list.

version: "3.3"
services:
  zomboid:
    image: renegademaster/zomboid-dedicated-server:latest
    volumes:
      - /root/zomboid/ZomboidDedicatedServer:/home/steam/ZomboidDedicatedServer:rw
      - /root/zomboid/ZomboidConfig:/home/steam/Zomboid:rw
    ports:
      - 16261:16261
      - 16262:16262
    environment:
      ADMIN_PASSWORD: "blabla"
      ADMIN_USERNAME: "redacted"
      SERVER_NAME: "Me Server"
      SERVER_PASSWORD: "password"

apologies if it's something really obvious, but I followed all the instructions, including making the folders.

@Renegade-Master
Copy link
Owner

Hi, @pcbmaster!

Out of interest, does it work if you also expose (and Port-Forward) the port 8766?
I removed it because according to the docs, it was no longer required, but maybe that was a mistake on behalf of the documentation.

@Renegade-Master
Copy link
Owner

Also, when you created this issue, you must have deleted the template that I requested you to fill out. Not filling this out makes it harder for me to understand your issue.
image

@pcbmaster
Copy link
Author

Sorry boss, I used the blank issue.

Describe the bug
Docker container seemingly spins up fine, but server cannot be reached nor seen in the server listing.

To Reproduce
Steps to reproduce the behavior:

  1. Create the user folders
  2. Use the above docker-compose file

Expected behavior
Server should at least be reachable by direct IP, ideally show up in the server listings.

Desktop (please complete the following information):

  • OS: Debian 7
  • Docker version 20.10.5+dfsg1, build 55c4c88
  • Image Version latest

Additional context
All ports are open on the machine, adding 8766 did not solve the issue.

@donovanvanheerden
Copy link

I also am having this issue - forwarding the suggested port 8766 isn't working either.

@Renegade-Master
Copy link
Owner

Renegade-Master commented Nov 14, 2022

The current version is working for me.

I ran this command:

docker run --detach \                    
       --mount type=bind,source="$(pwd)/ZomboidDedicatedServer",target=/home/steam/ZomboidDedicatedServer \
       --mount type=bind,source="$(pwd)/ZomboidConfig",target=/home/steam/Zomboid \
       --publish 16261:16261/udp --publish 16262:16262/udp --publish 27015:27015/tcp \
       --name zomboid-server \
       docker.io/renegademaster/zomboid-dedicated-server:2.3.0

It produced the following logs:
zomboid-server-20221114T193048Z.log

This was it visible from my server browser:
image

I was able to join successfully.

Edit: I took a screenshot after having shut the server down for some reason. Updated with correct logs and screenshot.

@Renegade-Master
Copy link
Owner

Renegade-Master commented Nov 14, 2022

Having issues with the docker image. Everything seems to work fine, getting all the way to the end, ports are open, but I can't directly connect to the server, nor can I see it in the list.

version: "3.3"
services:
  zomboid:
    image: renegademaster/zomboid-dedicated-server:latest
    volumes:
      - /root/zomboid/ZomboidDedicatedServer:/home/steam/ZomboidDedicatedServer:rw
      - /root/zomboid/ZomboidConfig:/home/steam/Zomboid:rw
    ports:
      - 16261:16261
      - 16262:16262
    environment:
      ADMIN_PASSWORD: "blabla"
      ADMIN_USERNAME: "redacted"
      SERVER_NAME: "Me Server"
      SERVER_PASSWORD: "password"

apologies if it's something really obvious, but I followed all the instructions, including making the folders.

Is this your actual docker-compose.yaml file?
If so, you are forwarding TCP ports, not UDP ports.
The example docker-compose file that I provide in this repo represents them in the "full form" which is more verbose.

Change it to the following:

version: "3.3"
services:
  zomboid:
    image: renegademaster/zomboid-dedicated-server:latest
    volumes:
      - /root/zomboid/ZomboidDedicatedServer:/home/steam/ZomboidDedicatedServer:rw
      - /root/zomboid/ZomboidConfig:/home/steam/Zomboid:rw
    ports:
-      - 16261:16261
-      - 16262:16262
+      - 16261:16261/udp
+      - 16262:16262/udp
    environment:
      ADMIN_PASSWORD: "blabla"
      ADMIN_USERNAME: "redacted"
      SERVER_NAME: "Me Server"
      SERVER_PASSWORD: "password"

@Renegade-Master Renegade-Master added the config error An error created as a result of an invalid configuration. label Nov 14, 2022
@pcbmaster
Copy link
Author

The UDP forwarding in hindsight is pretty obvious, but this still didn't work until I explicitly set USE_STEAM: "true" Documentation seems to suggest this should default to true, but that doesn't seem to be the case.

@xBeEatNUx
Copy link

I wonder if this is related to 41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config error An error created as a result of an invalid configuration.
Projects
None yet
Development

No branches or pull requests

4 participants