lloesche / valheim-server-docker

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
https://hub.docker.com/r/lloesche/valheim-server
Apache License 2.0
1.93k stars 271 forks source link

waiting for valheim-server to die #683

Closed MojotheShaman closed 4 months ago

MojotheShaman commented 4 months ago

Hi together,

unfortunately, the Valheim server keeps dying. What could be the reason for this? I would like to run the server 24/7. Here are the last lines from the container log.

2024-05-26 11:39:43,980 INFO exited: syslogd (terminated by SIGTERM; not expected)
2024-05-26 11:39:43,988 INFO exited: crond (terminated by SIGTERM; not expected)
2024-05-26 11:39:43,988 INFO reaped unknown pid 131 (terminated by SIGTERM)
2024-05-26 11:39:43,988 WARN received SIGTERM indicating exit request
2024-05-26 11:39:44,001 INFO waiting for valheim-backup, valheim-updater, valheim-server to die
2024-05-26 11:39:44,015 INFO exited: valheim-updater (exit status 143; not expected)
2024-05-26 11:39:44,015 INFO exited: valheim-backup (exit status 0; expected)
2024-05-26 11:39:44,016 INFO reaped unknown pid 128 (terminated by SIGTERM)
2024-05-26 11:39:47,021 INFO waiting for valheim-server to die

I'm using podman version 3.4.4 to deploy the container.

docker run -d \
    --name valheim-server \
    --cap-add=sys_nice \
    --stop-timeout 120 \
    -p 2456-2457:2456-2457/udp \
    -v $HOME/valheim-server/config:/config \
    -v $HOME/valheim-server/data:/opt/valheim \
    -e SERVER_NAME="Nothing to see" \
    -e WORLD_NAME="Nothing to see" \
    -e SERVER_PASS="Nothing to see" \
    ghcr.io/lloesche/valheim-server

Thank you for your help.

MojotheShaman commented 4 months ago

I think I was able to find the problem myself. I have now installed Docker and started the container with docker and not with podman. For some reason it seems to be podman. The scripts are not compatible with podman. The server has now been running for a good 24 hours without any problems.

MojotheShaman commented 4 months ago

Not compatible with podman use docker ;-)