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

segfault while managing backups #633

Open Yoda-BZH opened 1 year ago

Yoda-BZH commented 1 year ago

Hello,

Since 2023-06-15 (at 00:45:00), I have the following segfault in /var/log/kern.log every 15 minutes:

Jun 15 00:45:29 servername kernel: [2742948.067844] IPC:CSteamEngin[3940117]: segfault at 4 ip 00000000f4bdf21a sp 00000000f41eb880 error 4 in steamclient.so[f49ff000+22cb000]
Jun 15 00:45:29 demineuse kernel: [2742948.067984] Code: 5b 5e 5f 5d c3 8d 76 00 8d 87 cc 0b 00 00 89 44 24 0c 8d b6 00 00 00 00 8d 2c 76 c1 e5 03 8d 04 2a 8b 48 14 80 79 2d 00 74 66 <8b> 48 04 83 f9 ff 75 3e 8b 40 08 89 f1 89 c6 eb 15 8d 74 26 00 90

I was using the docker image at a6a810470f1e4

root@demineuse ~ # docker images
REPOSITORY                            TAG       IMAGE ID       CREATED         SIZE
lloesche/valheim-server               latest    a6a810470f1e   16 months ago   523MB

I updated the image:

root@demineuse ~ # docker pull lloesche/valheim-server
Using default tag: latest
latest: Pulling from lloesche/valheim-server
f03b40093957: Pull complete 
c3b8e20248d6: Pull complete 
ffdaa2ab5f37: Pull complete 
45743077b2cb: Pull complete 
db3f23abdb79: Pull complete 
35939bb5b3f5: Pull complete 
50fb25403e58: Pull complete 
Digest: sha256:97404ab536d435f9f71f4775a68d3ff1f95ddfd6b5618b1e3954c3515ac223ac
Status: Downloaded newer image for lloesche/valheim-server:latest
docker.io/lloesche/valheim-server:latest

and restarted the image.

I the docker logs, I have :

[...]
Jun 15 08:00:01 CRON[438]: pam_unix(cron:session): session closed for user root
Jun 15 08:00:06 supervisord: valheim-updater DEBUG - [36] - Received signal to check for update
Jun 15 08:00:06 supervisord: valheim-updater DEBUG - [36] - Kernel: Linux 415ea193ba4c 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux
Jun 15 08:00:06 supervisord: valheim-updater DEBUG - [36] - Found CPU with 2198.875 MHz
Jun 15 08:00:06 supervisord: valheim-updater DEBUG - [36] - Memory total/free/available: 65769508/8839128/49739544
Jun 15 08:00:06 supervisord: valheim-updater DEBUG - [36] - Storage configuration:
Jun 15 08:00:06 supervisord: valheim-updater Filesystem      Size  Used Avail Use% Mounted on
Jun 15 08:00:06 supervisord: valheim-updater overlay         436G  323G   91G  79% /
Jun 15 08:00:06 supervisord: valheim-updater /dev/md2        436G  323G   91G  79% /config
Jun 15 08:00:06 supervisord: valheim-updater overlay / overlay rw,relatime,lowerdir=/var/lib/docker/overlay2/l/GHQMJH6JXUGQH2KHYQU7C7JAYB:/var/lib/docker/overlay2/l/FYKTR4DTYMQG2HRVMRWHGMXPEX:/var/lib/docker/overlay2/l/6ZCG7ME3M5M4SADHZH2NMIULT5:/var/lib/docker/overlay2/l/336IEENBMKN7FTIWC6XXO3IQRJ:/var/lib/docker/overlay2/l/EQL5AH4RDSZQOKELMA7YIMIHTV:/var/lib/docker/overlay2/l/5FZWI7I6P3BWCTP5WTE4JDZREU:/var/lib/docker/overlay2/l/4IIENTSVGV6EZSTFWJTFTLCCBE:/var/lib/docker/overlay2/l/F3U262S4KYZW5B4U5O25ZHGQ25,upperdir=/var/lib/docker/overlay2/aa89f3840aa30e5cd7c3fe1dddc0220f15ea9e894ed9b1470031b3422e5d3236/diff,workdir=/var/lib/docker/overlay2/aa89f3840aa30e5cd7c3fe1dddc0220f15ea9e894ed9b1470031b3422e5d3236/work 0 0
Jun 15 08:00:06 supervisord: valheim-updater /dev/md2 /config ext4 rw,relatime 0 0
Jun 15 08:00:06 supervisord: valheim-updater /dev/md2 /opt/valheim ext4 rw,relatime 0 0
Jun 15 08:00:06 supervisord: valheim-updater DEBUG - [36] - No players connected to Valheim server
Jun 15 08:00:06 supervisord: valheim-updater INFO - Downloading/updating/validating Valheim server from Steam
Jun 15 08:00:08 supervisord: valheim-updater Redirecting stderr to '/home/valheim/Steam/logs/stderr.txt'
Jun 15 08:00:08 supervisord: valheim-updater [  0%] Checking for available updates...
Jun 15 08:00:08 supervisord: valheim-updater [----] Verifying installation...
Jun 15 08:00:08 supervisord: valheim-updater Steam Console Client (c) Valve Corporation - version 1686781763
Jun 15 08:00:08 supervisord: valheim-updater -- type 'quit' to exit --
Jun 15 08:00:08 supervisord: valheim-updater Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
Jun 15 08:00:08 supervisord: valheim-updater dlmopen libSDL3.so.0 failed: libSDL3.so.0: cannot open shared object file: No such file or directory
Jun 15 08:00:08 supervisord: valheim-updater OK
Jun 15 08:00:08 supervisord: valheim-updater 
Jun 15 08:00:08 supervisord: valheim-updater Connecting anonymously to Steam Public...
Jun 15 08:00:10 supervisord: valheim-updater OK
Jun 15 08:00:10 supervisord: valheim-updater Waiting for client config...OK
Jun 15 08:00:10 supervisord: valheim-updater Waiting for user info...
Jun 15 08:00:11 supervisord: valheim-backup DEBUG - [75] - Received signal to backup world
Jun 15 08:00:11 supervisord: valheim-backup INFO - Backing up Valheim server worlds to /config/backups/worlds-20230615-080011.zip
Jun 15 08:00:11 supervisord: valheim-backup   adding: config/worlds_local/ (stored 0%)
Jun 15 08:00:11 supervisord: valheim-backup   adding: config/worlds_local/Heidrun_backup_auto-20230611170027.fwl
Jun 15 08:00:11 supervisord: valheim-backup  (deflated 5%)
Jun 15 08:00:11 supervisord: valheim-backup   adding: config/worlds_local/Heidrun_backup_20230613-053006.fwl (deflated 5%)
Jun 15 08:00:11 supervisord: valheim-backup   adding: config/worlds_local/Heidrun_backup_20230614-053015.fwl (deflated 5%)
Jun 15 08:00:11 supervisord: valheim-backup   adding: config/worlds_local/Heidrun_backup_auto-20230611070019.fwl (deflated 5%)
Jun 15 08:00:11 supervisord: valheim-backup   adding: config/worlds_local/Heidrun.db
Jun 15 08:00:13 supervisord: valheim-backup  (deflated 46%)
Jun 15 08:00:13 supervisord: valheim-backup   adding: config/worlds_local/Heidrun_backup_20230612-124521.db
Jun 15 08:00:15 crash_20230615080015_19.dmp[498]: Uploading dump (out-of-process) /tmp/dumps/crash_20230615080015_19.dmp
Jun 15 08:00:15 supervisord: valheim-updater /opt/steamcmd/steamcmd.sh: line 39:   473 Segmentation fault      (core dumped) $DEBUGGER "$STEAMEXE" "$@"
Jun 15 08:00:15 supervisord: valheim-updater ERROR - Failed to update Valheim server from Steam - however an existing version was found locally - using it
Jun 15 08:00:15 supervisord: valheim-updater .d..t...... ./
Jun 15 08:00:15 supervisord: valheim-updater INFO - Valheim Server is already the latest version
Jun 15 08:00:17 crash_20230615080015_19.dmp[498]: Finished uploading minidump (out-of-process): success = yes
Jun 15 08:00:17 crash_20230615080015_19.dmp[498]: response: CrashID=bp-53298c3c-73ed-4e54-9a23-12af92230615
Jun 15 08:00:17 crash_20230615080015_19.dmp[498]: file ''/tmp/dumps/crash_20230615080015_19.dmp'', upload yes: ''CrashID=bp-53298c3c-73ed-4e54-9a23-12af92230615''
2023-06-15 08:00:17,673 INFO reaped unknown pid 498 (exit status 0)
Jun 15 08:00:17 supervisord: valheim-backup  (deflated 69%)
Jun 15 08:00:17 supervisord: valheim-backup   adding: config/worlds_local/Ravndal_backup_20230613-053016.db
Jun 15 08:00:18 supervisord: valheim-backup  (deflated 45%)
Jun 15 08:00:18 supervisord: valheim-backup   adding: config/worlds_local/Heidrun_backup_20230613-053006.db
Jun 15 08:00:21 supervisord: valheim-backup  (deflated 47%)
Jun 15 08:00:21 supervisord: valheim-backup   adding: config/worlds_local/Heidrun_backup_20230614-053015.db
Jun 15 08:00:24 supervisord: valheim-backup  (deflated 46%)
Jun 15 08:00:24 supervisord: valheim-backup   adding: config/worlds_local/Heidrun_backup_auto-20230614113020.fwl (deflated 5%)
Jun 15 08:00:24 supervisord: valheim-backup   adding: config/worlds_local/Heidrun_backup_auto-20230615070017.db
Jun 15 08:00:26 supervisord: valheim-backup  (deflated 46%)

I've been using this world/image for several months without any problem.

Using Debian 11. uname -a: Linux demineuse 5.10.0-23-amd64 #1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux docker version: 20.10.5+dfsg1-1+deb11u2

recursiveGecko commented 10 months ago

I'm seeing the same issue on a brand new Valheim Docker instance.

x64 Debian 11, Docker Engine 24.0.5, latest version of lloesche/valheim-server at the time of writing this comment.