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.41k stars 298 forks source link

Server fails to start after updating Docker to v0.29 #465

Closed CruiseTian closed 2 months ago

CruiseTian commented 5 months ago

Describe the bug

After updating to the latest version (v0.29) of Docker, the server fails to start. The stderr.txt file in the Steam/log folder shows the following error: src/tier0/threadtools.cpp (3830) : Assertion Failed: Failed to create thread (error 0x1), The complete content in stderr.txt is as follows:

02/28 00:10:26 Init: Installing breakpad exception handler for appid(steam)/version(1705108307)/tid(31)
src/tier0/threadtools.cpp (3830) : Assertion Failed: Failed to create thread (error 0x1)
assert_20240228001026_4.dmp[34]: Uploading dump (out-of-process)
/tmp/dumps/assert_20240228001026_4.dmp
assert_20240228001026_4.dmp[34]: Finished uploading minidump (out-of-process): success = no
assert_20240228001026_4.dmp[34]: error: libcurl.so: cannot open shared object file: No such file or directory
assert_20240228001026_4.dmp[34]: file ''/tmp/dumps/assert_20240228001026_4.dmp'', upload no: ''libcurl.so: cannot open shared object file: No such file or directory''

To Reproduce

Steps to reproduce the behavior:

  1. Pull the latest image
  2. Backup the old server using docker exec palworld-server backup
  3. Recreate the new container using docker-compose up -d
  4. See error

Expected behavior

Server restart successfully.

Actual behavior

Server can not start and steamcmd get Assertion Failed error

Screenshots

OS information

Hardware information

docker-compose.yml contents

version: '3'
services:
   palworld:
      image: thijsvanloef/palworld-server-docker:latest
      restart: unless-stopped
      container_name: palworld-server
      ports:
        - 8211:8211/udp
        - 27015:27015/udp
        - 25575:25575/tcp
      environment:
         - TZ=Asia/Shanghai
         - PUID=1000
         - PGID=1000
         - PORT=8211 # Optional but recommended
         - PLAYERS=8 # Optional but recommended
         - MULTITHREADING=true
         - PLAYER_STOMACH_DECREASE_RATE=0.200000
         - PALYER_STAMINA_DECREASE_RATE=0.200000
         - PLAYER_AUTO_HP_REGEN_RATE=2.000000
         - PAL_STOMACH_DECREASE_RATE=0.200000
         - PAL_STAMINA_DECREASE_RATE=0.200000
         - PAL_AUTO_HP_REGEN_RATE=2.000000
         - COLLECTION_OBJECT_RESPAWN_SPEED_RATE=0.500000
         - BASE_CAMP_WORKER_MAXNUM=20
         - PAL_EGG_DEFAULT_HATCHING_TIME=0.000000
         - DEATH_PENALTY="None"
         - WORK_SPEED_RATE=2.000000
         - UPDATE_ON_BOOT=false
         - RCON_ENABLED=true
         - RCON_PORT=25575
         - ADMIN_PASSWORD="********"
         - COMMUNITY=false  # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
         - SERVER_NAME="********"
         - BACKUP_CRON_EXPRESION=0 4 * * *
         - BACKUP_ENABLED=true
         - DELETE_OLD_BACKUPS=true
         - OLD_BACKUP_DAYS=7
         - AUTO_UPDATE_CRON_EXPRESSION=0 */2 * * *
         - AUTO_UPDATE_ENABLED=true
         - AUTO_UPDATE_WARN_MINUTES=15
      volumes:
         - ./palworld:/palworld/

Container/Host Logs

****EXECUTING USERMOD****
usermod: no changes
Server installation not detected.
****Starting Installation****
tid(31) burning pthread_key_t == 0 so we never use it
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
Logging directory: '/home/steam/Steam/logs'

Additional context

My previously used docker image version is v0.24.0, and it works perfect.

burkewm commented 5 months ago

Same issue here

thijsvanloef commented 5 months ago

If you delete your steamapps folder inside the palworld directory and restart the server, do you still have the same issue? Please make sure you backup your folder before doing so.

CruiseTian commented 5 months ago

I executed docker-compose up -d in a brand new folder (without the palworld folder in it) and still have this problem.

thijsvanloef commented 5 months ago

I can't seem to reproduce, if you use the thijsvanloef/palworld-server-docker:v0.28.2 image does it work?

CruiseTian commented 5 months ago

I'm sorry, but the v0.28.2 version doesn't work for me either.

Also, this seems to be a steamcmd issue, because when I tried to install the Palworld game using a steamcmd image, it also showed this error. image

CruiseTian commented 5 months ago

I checked out the steamcmd repo and noticed that two weeks ago the latest docker image of steamcmd was upgraded from Debian 11 to Debian 12. After that, I pulled the Debian 11 image provided by steamcmd using docker pull cm2network/steamcmd:steam-bullseye. And I successfully installed, and launched the Palworld server.

Could you please provide an image based on the steamcmd:steam-bullseye version to fix this issue?

CruiseTian commented 5 months ago

@burkewm If needed, you can temporarily avoid this issue by using the image I just built based on steamcmd:steam-bullseye using docker pull cruisetian/palworld-server-docker:v0.29-bullseye, it works fine for me.

thijsvanloef commented 2 months ago

Sadly I am not planning on supporting older versions of debian