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.42k stars 295 forks source link

many errors `cli: execute: rcon: read tcp 127.0.0.1:PORT->127.0.0.1:25575: i/o timeout` and disconnected #492

Closed DesistDaydream closed 5 months ago

DesistDaydream commented 6 months ago

Describe the bug

After the first player logs in, the following content will continue to be output

cli: execute: rcon: read tcp 127.0.0.1:46026->127.0.0.1:25575: i/o timeout
cli: execute: rcon: read tcp 127.0.0.1:44320->127.0.0.1:25575: i/o timeout
cli: execute: rcon: read tcp 127.0.0.1:56154->127.0.0.1:25575: i/o timeout
cli: execute: rcon: read tcp 127.0.0.1:49222->127.0.0.1:25575: i/o timeout
cli: execute: rcon: read tcp 127.0.0.1:47212->127.0.0.1:25575: i/o timeout
cli: execute: rcon: read tcp 127.0.0.1:56456->127.0.0.1:25575: i/o timeout
cli: execute: rcon: read tcp 127.0.0.1:49470->127.0.0.1:25575: i/o timeout
cli: execute: rcon: read tcp 127.0.0.1:52900->127.0.0.1:25575: i/o timeout
cli: execute: rcon: read tcp 127.0.0.1:42510->127.0.0.1:25575: i/o timeout
cli: execute: rcon: read tcp 127.0.0.1:39202->127.0.0.1:25575: i/o timeout
cli: execute: rcon: read tcp 127.0.0.1:60108->127.0.0.1:25575: i/o timeout
......MORE AND MORE

The second player to log in disconnects after a while in the game

To Reproduce

Steps to reproduce the behavior:

  1. run cmd
docker compose up

Expected behavior

  1. There shouldn't be so many error logs
  2. The second player should not disconnect at irregular intervals

Actual behavior

Describe the bug

Screenshots

image

OS information

Hardware information

docker-compose.yml contents

services:
  palworld:
    image: thijsvanloef/palworld-server-docker:latest
    restart: unless-stopped
    container_name: palworld-server-home
    stop_grace_period: 30s
    ports:
      - 8213:8211/udp
      - 27017:27015/udp  # Required if you want your server to show up in the community servers tab
    environment:
      PUID: 1000
      PGID: 1000
      PORT: 8211  # Optional but recommended
      PLAYERS: 4  # Optional but recommended
      SERVER_PASSWORD: "home"  # Optional but recommended
      MULTITHREADING: true
      RCON_ENABLED: true
      RCON_PORT: 25575
      TZ: "CST"
      ADMIN_PASSWORD: "home"
      COMMUNITY: false  # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
      SERVER_NAME: "HomeServer"
      SERVER_DESCRIPTION: "Home PalWorld"
    volumes:
      - ./palworld:/palworld/

Container/Host Logs

Describe the bug

Additional context

None

thijsvanloef commented 6 months ago

Could you share the logging from the server starting?

DesistDaydream commented 6 months ago

image

sonroyaalmerol commented 6 months ago

I believe this is a known issue with Palworld's implementation of the rcon protocol. Non-ascii characters is causing it to timeout and is something only Pocketpair can fix. See https://github.com/gorcon/rcon-cli/issues/35

pipixi commented 6 months ago

have same error too

DesistDaydream commented 6 months ago

I saw PalWorld’s official explanation of this issue on this

As for the second user's disconnection after playing the game for a while, I wonder if there is a direct causal relationship with the player's name?

thijsvanloef commented 5 months ago

As @sonroyaalmerol mentioned, this is not something I am able to fix, I'm marking this issue as wontfix.