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

Rcon-cli ShowPlayers doesn't return anything #97

Closed frey-er closed 9 months ago

frey-er commented 9 months ago

Describe the bug

when running : docker exec -it palworld-server rcon-cli "ShowPlayers"

Of course the docker name is correct because i can run other cmd

To Reproduce

docker exec -it palworld-server rcon-cli "ShowPlayers"

Expected behavior

Returning the list of player

Desktop (please complete the following information)

From the terminal of the ubuntu 22.04 running docker

docker-compose.yml contents

services:
   palworld:
      image: thijsvanloef/palworld-server-docker:latest
      restart: unless-stopped
      ports:
        - 8211:8211/udp
        - 27011:27015/udp
      environment:
         - PUID=1000
         - PGID=1000
         - PORT=8211 # Optional but recommended
         - PLAYERS=2 # Optional but recommended
         - MULTITHREADING=true
         - RCON_ENABLED=true
         - RCON_PORT=25575
         - ADMIN_PASSWORD=""
         - COMMUNITY=false
         - SERVER_PASSWORD=""
         - SERVER_NAME=""
         - PUBLIC_PORT=8211
         - UPDATE_ON_BOOT=true
      labels:
         - "com.centurylinklabs.watchtower.enable=true"
      volumes:
         - palworld_server_test:/palworld/
volumes:
  palworld_server_test:  # Volume definition
    driver: local
dream-north commented 9 months ago

I have the same problem

AntiMoron commented 9 months ago

same here. try sudo docker logs {your container id}, I guess you will see this:

image

Here's my guess, the script uses steam api to fetch user data and the steam api failed initialization. 1 out of 5 times, I can succeed, most times, I just get failures.

frey-er commented 9 months ago

Yes i also have this line, but those are "normal" from what I read.

Also, i have a test server running the dev branch of this project and the cmd return at least a empty list if any player. So i did a update from the docker image on the prod server. But still this problem append.

The other rcon-cli cmd works perfectly on both instances

bbung224 commented 9 months ago

From what I understand, RCON has issues with UTF-8 support. In my server, if there are users using character names (ex. Korean) other than English + numbers, the ShowPlayers command fails. However, before it was changed to rcon-cli (when it was separated in docker-complse.yml), it responded even if an error occurred, but after changing to rcon-cli, it does not respond at all.