thijsvanloef / palworld-server-docker

A Docker Container to easily run a Palworld dedicated server.
https://hub.docker.com/r/thijsvanloef/palworld-server-docker
MIT License
2.43k stars 295 forks source link

Cannot connect to server #81

Closed Moddingear closed 9 months ago

Moddingear commented 9 months ago

Describe the bug

I can't connect to the server. Locally or remotely.

To Reproduce

Use the given docker-compose I have a clean palworld container and volume (using docker system prune -a) I have ufw inactive

Expected behavior

I should be able to connect

Desktop (please complete the following information):

docker-compose.yml contents

services:
   palworld:
      image: thijsvanloef/palworld-server-docker:latest
      restart: unless-stopped
      container_name: palworld-server
      ports:
        - 8211:8211/tcp
        - 8211:8211/udp
        - 27015:27015/udp
      environment:
         - PUID=1000
         - PGID=1000
         - PORT=8211 # Optional but recommended
         - PLAYERS=16 # Optional but recommended
         - MULTITHREADING=true
         - RCON_ENABLED=false
         #- RCON_PORT=25575
         #- ADMIN_PASSWORD="adminPasswordHere"
         - COMMUNITY=false  # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
         # Enable the environment variables below if you have COMMUNITY=true
         # - SERVER_PASSWORD="worldofpals"
         # - SERVER_NAME="World of Pals"
      volumes:
         - /mnt/ssd/palworld:/palworld/

Container/Host Logs

Attaching to palworld-server
palworld-server | *****EXECUTING USERMOD*****
palworld-server | usermod: no changes
palworld-server | *****STARTING INSTALL/UPDATE*****
palworld-server | tid(22) burning pthread_key_t == 0 so we never use it
palworld-server | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
palworld-server | Logging directory: '/home/steam/Steam/logs'
palworld-server | [  0%] Checking for available updates...
palworld-server | [----] Verifying installation...
palworld-server | [  0%] Downloading update...
palworld-server | [  0%] Checking for available updates...
palworld-server | [----] Download complete.
palworld-server | [----] Extracting package...
palworld-server | [----] Extracting package...
palworld-server | [----] Extracting package...
palworld-server | [----] Extracting package...
palworld-server | [----] Installing update...
palworld-server | [----] Installing update...
palworld-server | [----] Installing update...
palworld-server | [----] Installing update...
palworld-server | [----] Installing update...
palworld-server | [----] Installing update...
palworld-server | [----] Installing update...
palworld-server | [----] Installing update...
palworld-server | [----] Cleaning up...
palworld-server | [----] Update complete, launching Steamcmd...
palworld-server | tid(34) burning pthread_key_t == 0 so we never use it
palworld-server | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
palworld-server | Logging directory: '/home/steam/Steam/logs'
palworld-server | [  0%] Checking for available updates...
palworld-server | [----] Verifying installation...
palworld-server | Steam Console Client (c) Valve Corporation - version 1705108307
palworld-server | -- type 'quit' to exit --
palworld-server | Loading Steam API...OK
palworld-server | 
palworld-server | Connecting anonymously to Steam Public...OK
palworld-server | Waiting for client config...OK
palworld-server | Waiting for user info...OK
palworld-server |  Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
palworld-server |  Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
palworld-server |  Update state (0x61) downloading, progress: 1.02 (48234496 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 3.81 (180412994 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 8.25 (390014426 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 18.92 (895023037 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 25.90 (1224946307 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 36.19 (1711783108 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 50.62 (2394072707 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 60.94 (2882277322 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 65.73 (3108715499 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 67.08 (3172443402 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 68.25 (3227665188 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 69.22 (3273614944 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 70.39 (3328853204 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 71.73 (3392272567 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 72.90 (3447860448 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 74.26 (3512245081 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 75.74 (3581894092 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 77.00 (3641632532 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 78.22 (3699415954 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 79.44 (3757150787 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 80.68 (3815750609 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 82.22 (3888598267 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 83.49 (3948567618 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 84.72 (4006822579 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 86.07 (4070630781 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 87.46 (4136427368 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 88.71 (4195574287 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 90.10 (4261024516 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 91.47 (4326106183 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 92.80 (4388858861 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 94.18 (4453991792 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 95.44 (4513907539 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 96.70 (4573370361 / 4729437191)
palworld-server |  Update state (0x61) downloading, progress: 98.01 (4635228011 / 4729437191)
palworld-server |  Update state (0x81) verifying update, progress: 1.10 (51844912 / 4729437191)
palworld-server |  Update state (0x81) verifying update, progress: 18.91 (894485310 / 4729437191)
palworld-server |  Update state (0x81) verifying update, progress: 37.34 (1765954367 / 4729437191)
palworld-server |  Update state (0x81) verifying update, progress: 55.52 (2625861427 / 4729437191)
palworld-server |  Update state (0x81) verifying update, progress: 73.76 (3488350837 / 4729437191)
palworld-server |  Update state (0x81) verifying update, progress: 91.91 (4346953063 / 4729437191)
palworld-server | Success! App '2394010' fully installed.
palworld-server | *****CHECKING FOR EXISTING CONFIG*****
palworld-server | *****GENERATING CONFIG*****
palworld-server | [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
palworld-server | CAppInfoCacheReadFromDiskThread took 3 milliseconds to initialize
palworld-server | Setting breakpad minidump AppID = 2394010
palworld-server | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
palworld-server | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
palworld-server | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
palworld-server | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.
palworld-server | RCON_ENABLED=false
palworld-server | RCON_PORT=25575
palworld-server | *****STARTING SERVER*****
palworld-server | ./PalServer.sh -port=8211 -players=16 -queryport=27015 -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
palworld-server | [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
palworld-server | Shutdown handler: initalize.
palworld-server | Increasing per-process limit of core file size to infinity.
palworld-server | - Existing per-process limit (soft=18446744073709551615, hard=18446744073709551615) is enough for us (need only 18446744073709551615)
palworld-server | CAppInfoCacheReadFromDiskThread took 5 milliseconds to initialize
palworld-server | Setting breakpad minidump AppID = 2394010
palworld-server | [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded.
palworld-server | [S_API FAIL] Tried to access Steam interface SteamFriends017 before SteamAPI_Init succeeded.
palworld-server | [S_API FAIL] Tried to access Steam interface STEAMAPPS_INTERFACE_VERSION008 before SteamAPI_Init succeeded.
palworld-server | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded.

Additional context

I have tried other containers but have only had the same issue

thijsvanloef commented 9 months ago

Hi @Moddingear Thanks for taking the time to fill out a bug report, the information is very helpfull, could you run: netstat -a on the host machine while the server is running and post the output?

Moddingear commented 9 months ago

Sure, here you go.

Note : I also have a seafile server, a minecraft server, a valheim server and I am connected via xRDP, so this might not be the shortest netstat ever netstata.txt

thijsvanloef commented 9 months ago

First off, I noticed that it is listening on port 8211/TCP, this is not necessary as Palworld uses UDP.

tcp        0      0 0.0.0.0:8211            0.0.0.0:*               LISTEN 

If possible, could you check if the issue persists if you temporarily shut down the other servers on your server (all except Palworld)?

Moddingear commented 9 months ago

Ok so I'm dumb but I'm also not : I just changed motherboard on my server (it died). So that changed the MAC on my ethernet. So my server didn't get the same IP from the router. So the IP was wrong, explaining why I couldn't connect... I'm sorry to have bothered you, thanks for your help !

thijsvanloef commented 9 months ago

@Moddingear no worries, glad I could help