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.89k stars 269 forks source link

After the auto restart (daily or due to update), players are unable to connect #648

Open Ricket opened 8 months ago

Ricket commented 8 months ago

This issue started probably a month or two ago. I have bepinex enabled.

I had the daily restart enabled, but every day players reported they could not connect to the server and so I had to restart the whole container.

Eventually I disabled the daily restart, and now, whenever a Valheim update happens and the container does the internal restart, again players can't connect and I have to restart the container.

XC3N commented 8 months ago

I have been having this issue for the past two days, the server does the update and get stuck waiting on itself to shutdown

lonely-lockley commented 7 months ago

+1 for the issue. Server gets stuck on reboot every night

valheim    | Nov 24 05:00:14 supervisord: valheim-updater Redirecting stderr to '/home/valheim/Steam/logs/stderr.txt'
valheim    | Nov 24 05:00:14 supervisord: valheim-updater Logging directory: '/home/valheim/Steam/logs'
valheim    | Nov 24 05:00:14 supervisord: valheim-updater [  0%] Checking for available updates...
valheim    | Nov 24 05:00:14 supervisord: valheim-updater [----] Verifying installation...
valheim    | Nov 24 05:00:14 supervisord: valheim-updater Steam Console Client (c) Valve Corporation - version 1700160359
valheim    | Nov 24 05:00:14 supervisord: valheim-updater -- type 'quit' to exit --
valheim    | Nov 24 05:00:14 supervisord: valheim-updater Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
valheim    | Nov 24 05:00:14 supervisord: valheim-updater OK
valheim    | Nov 24 05:00:14 supervisord: valheim-updater 
valheim    | Nov 24 05:00:14 supervisord: valheim-updater Connecting anonymously to Steam Public...
valheim    | 2023-11-24 05:00:14,799 INFO waiting for valheim-server to stop
valheim    | Nov 24 05:00:14 supervisord: valheim-backup  (deflated 69%)
valheim    | Nov 24 05:00:14 supervisord: valheim-backup   adding: <xxxxxx>
valheim    | Nov 24 05:00:14 supervisord: valheim-backup  (deflated 8%)
valheim    | Nov 24 05:00:14 supervisord: valheim-backup   adding: <xxxxxx>
valheim    | Nov 24 05:00:15 supervisord: valheim-server Memory Statistics:
valheim    | Nov 24 05:00:15 supervisord: valheim-server [ALLOC_TEMP_TLS] TLS Allocator
valheim    | Nov 24 05:00:15 supervisord: valheim-server   StackAllocators : 
valheim    | Nov 24 05:00:15 supervisord: valheim-server     [ALLOC_TEMP_MAIN]
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Peak usage frame count: [0-1.0 KB]: 276429 frames, [1.0 KB-2.0 KB]: 2 frames, [2.0 KB-4.0 KB]: 3 frames, [4.0 KB-8.0 KB]: 4 frames, [8.0 KB-16.0 KB]: 2 frames, [16.0 KB-32.0 KB]: 1306187 frames, [32.0 KB-64.0 KB]: 2 frames, [64.0 KB-128.0 KB]: 411 frames, [256.0 KB-0.5 MB]: 26 frames, [0.5 MB-1.0 MB]: 1 frames, [2.0 MB-4.0 MB]: 1 frames, [4.0 MB-8.0 MB]: 14 frames
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Initial Block Size 4.0 MB
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Current Block Size 7.7 MB
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Peak Allocated Bytes 7.7 MB
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Overflow Count 210
valheim    | Nov 24 05:00:15 supervisord: valheim-server     [ALLOC_TEMP_Background Job.worker 4]
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Initial Block Size 32.0 KB
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Current Block Size 32.0 KB
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Peak Allocated Bytes 0 B
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Overflow Count 0
valheim    | Nov 24 05:00:15 supervisord: valheim-server     [ALLOC_TEMP_Loading.PreloadManager]
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Initial Block Size 256.0 KB
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Current Block Size 0.5 MB
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Peak Allocated Bytes 511.0 KB
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Overflow Count 176217
valheim    | Nov 24 05:00:15 supervisord: valheim-server     [ALLOC_TEMP_Background Job.worker 3]
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Initial Block Size 32.0 KB
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Current Block Size 32.0 KB
valheim    | Nov 24 05:00:15 supervisord: valheim-server       Peak Allocated Bytes 0 B
valheim exited with code 137

Not sure if it's a docker image issue, but can't find any reports regarding the server bugs

XC3N commented 7 months ago

it seems this is no longer maintained, I switched over to https://github.com/mbround18/valheim-docker, took all of 5 mins to set up and is maintained regularly

Pysis868 commented 7 months ago

Last commit for this one is 2023-06-10. For the new one in the link, 2023-11-18, so yea. Just some other issues now.

chewara commented 6 months ago

same problem here. so the solution is to switch to the other docker?

lonely-lockley commented 5 months ago

I switched to the image supposed by @XC3N, works fine

danielkinahan commented 2 months ago

I'm having this issue as well. I just set up a cron job to run docker compose -f valheim/compose.yml restart