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.94k stars 272 forks source link

GPU errors on startup until start retries are hit #532

Closed passivedragon closed 1 year ago

passivedragon commented 1 year ago

The server continuously restarts until maximum retries are hit.

I set up my configuration using docker-compose and tested this setup on multiple LXC containers with an ansible pipeline, I haven't been able to get it to work after a couple of days of tinkering with it.

I'd be grateful for any suggestions or pointers. My docker-compose.yaml is pretty basic, other than the environment variables. If needed/wanted, I'm happy to post it as well.


Dec  8 18:20:47 supervisord: valheim-server DEBUG - [597] - Valheim server with PID 601 stopped
Dec  8 18:20:47 supervisord: valheim-server INFO - Releasing PID file /var/run/valheim/valheim-server.pid
Dec  8 18:20:47 supervisord: valheim-server INFO - Shutdown complete
2022-12-08 18:20:49,709 INFO reaped unknown pid 609 (exit status 0)
2022-12-08 18:20:57,726 INFO spawned: 'valheim-server' with pid 647
Dec  8 18:20:57 supervisord: valheim-server INFO - Running Valheim Server
Dec  8 18:20:57 supervisord: valheim-server DEBUG - [647] - Server config is name: "My Server", port: 2456/udp, world: "MyWorldName", public: 1, mod: none
Dec  8 18:20:57 supervisord: valheim-server DEBUG - [647] - Waiting for server to listen on UDP port 2456
Dec  8 18:20:57 supervisord: valheim-server I1208 18:20:57.755545     658 main.go:76] Configuring Valheim server log filter
Dec  8 18:20:57 supervisord: valheim-server I1208 18:20:57.755716     658 main.go:96] Removing log lines starting with '(Filename:'
Dec  8 18:20:57 supervisord: valheim-server I1208 18:20:57.755732     658 main.go:89] Removing log lines matching ' '
Dec  8 18:20:57 supervisord: valheim-server I1208 18:20:57.755741     658 main.go:125] Removing invalid UTF-8 chars: true
Dec  8 18:20:57 supervisord: valheim-server I1208 18:20:57.755752     658 main.go:108] On log lines containing '"Got character ZDOID from"' running '{ read l; l=${l//*ZDOID from /}; l=${l// :*/}; msg=\"Player  spawned into the world\"; curl -sfSL -X POST -H \"Content-Type: application/json\" -d "{\"username\":\"Valheim\",\"content\":\"\"}" \"\"; }'
Dec  8 18:20:57 supervisord: valheim-server I1208 18:20:57.755774     658 main.go:122] Removing empty log lines: true
Dec  8 18:20:57 supervisord: valheim-server I1208 18:20:57.755788     658 main.go:96] Removing log lines starting with 'src/steamnetworkingsockets/clientlib/steamnetworkingsockets_lowlevel.cpp'
Dec  8 18:20:57 supervisord: valheim-server Mono path[0] = '/opt/valheim/server/valheim_server_Data/Managed'
Dec  8 18:20:57 supervisord: valheim-server Mono config path = '/opt/valheim/server/valheim_server_Data/MonoBleedingEdge/etc'
Dec  8 18:20:57 supervisord: valheim-server Preloaded 'libparty.so'
Dec  8 18:20:57 supervisord: valheim-server Preloaded 'libsteam_api.so'
Dec  8 18:20:57 supervisord: valheim-server Initialize engine version: 2020.3.33f1 (915a7af8b0d5)
Dec  8 18:20:57 supervisord: valheim-server [Subsystems] Discovering subsystems at path /opt/valheim/server/valheim_server_Data/UnitySubsystems
Dec  8 18:20:57 supervisord: valheim-server Forcing GfxDevice: Null
Dec  8 18:20:57 supervisord: valheim-server GfxDevice: creating device client; threaded=0
Dec  8 18:20:57 supervisord: valheim-server NullGfxDevice:
Dec  8 18:20:57 supervisord: valheim-server     Version:  NULL 1.0 [1.0]
Dec  8 18:20:57 supervisord: valheim-server     Renderer: Null Device
Dec  8 18:20:57 supervisord: valheim-server     Vendor:   Unity Technologies
Dec  8 18:20:57 supervisord: valheim-server Begin MonoManager ReloadAssembly
Dec  8 18:20:57 supervisord: valheim-server - Completed reload, in  0.049 seconds
Dec  8 18:20:57 supervisord: valheim-server ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Dec  8 18:20:57 supervisord: valheim-server ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Dec  8 18:20:57 supervisord: valheim-server ERROR: Shader GUI/Text Shader shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Dec  8 18:20:57 supervisord: valheim-server UnloadTime: 0.621835 ms
Dec  8 18:20:57 supervisord: valheim-server 12/08/2022 18:20:57: Starting to load scene:start
Dec  8 18:20:57 supervisord: valheim-server ERROR: Shader UI/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Dec  8 18:20:58 supervisord: valheim-server Couldn't create a Convex Mesh from source mesh "default" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh.
Dec  8 18:20:58 supervisord: valheim-server Couldn't create a Convex Mesh from source mesh "default" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh.
2022-12-08 18:21:01,611 INFO exited: valheim-server (exit status 0; not expected)
2022-12-08 18:21:01,613 INFO reaped unknown pid 653 (exit status 0)
Dec  8 18:21:01 supervisord: valheim-server /usr/local/bin/valheim-server: line 122:   651 Killed                  LD_PRELOAD=$SERVER_LD_PRELOAD "$valheim_server" -nographics -batchmode -name "$SERVER_NAME" -port "$SERVER_PORT" -world "$WORLD_NAME" -public "$SERVER_PUBLIC" "${password_args[@]}" $SERVER_ARGS > >(filter) 2>&1
Dec  8 18:21:01 supervisord: valheim-server DEBUG - [647] - Valheim server with PID 651 stopped
Dec  8 18:21:01 supervisord: valheim-server INFO - Releasing PID file /var/run/valheim/valheim-server.pid
Dec  8 18:21:01 supervisord: valheim-server INFO - Shutdown complete
2022-12-08 18:21:01,616 INFO gave up: valheim-server entered FATAL state, too many start retries too quickly
2022-12-08 18:21:03,619 INFO reaped unknown pid 659 (exit status 0)```
passivedragon commented 1 year ago

The issue may have been RAM, after messing around with it for longer, I got it to run and connect after increasing RAM to above 4GB + SWAP.

If that was the only issue, the crashes were pretty intransparent (but understandably not this project's fault).

graysonlee123 commented 1 year ago

I'm running into this too. Any way you can show me your docker compose file? I tried adding RAM but I didn't have any luck.