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

[BUG] server restarting by itself #543

Closed ghost closed 1 year ago

ghost commented 1 year ago

OS: Linux server Valheim game version: 0.212.7 V+ Mod Version: 0.9.9.11 describe the bug From now on the Valheim-server restarts internally in Docker both KVM Ubuntu 20.04 x64 and Docker health are ok the problem is found internally. OS: Linux server Valheim game version: 0.212.7 V+ Mod Version: 0.9.9.11 describe the bug From now on the Valheim-server restarts internally in Docker both KVM Ubuntu 20.04 x64 and Docker health are ok the problem is found internally.

_valheim_logs.txt valheim_plus.txt

I already removed all mods and the problem persists I currently only have the Advize_PlantEverything mod active on the server side.

"Translated by google translator"

ryanturcotte commented 1 year ago

I'm having a similar problem with a docker instance on an amazon ec2. No mods. valheim-server-log-12-17-22.txt

mzrimsek commented 1 year ago

By default the server restarts every day at 5am. You need to overwrite the environment variable for the container to disable the restarts.

ryanturcotte commented 1 year ago

By default the server restarts every day at 5am. You need to overwrite the environment variable for the container to disable the restarts.

That could be the OP's problem. I'll make a new issue if mine keeps persisting. Haven't been using the server much.

ghost commented 1 year ago

By default the server restarts every day at 5am. You need to overwrite the environment variable for the container to disable the restarts.

Thanks for listening,

what I noticed was that every 1h the world restarted when the system backed up.

my way out was to eliminate kvm ubuntu and run debian 11 I stopped having this problem.

before I had deleted 100% of the docker plus the image and I still had the problem.

I restored my world in debian 11 docker and for now it's ok. I'll keep monitoring to see if the problem comes back.

Thank you all.

"Translated by google translator"

lloesche commented 1 year ago

The most common reason for unexpected restarts is not enough RAM. Then every time the updater runs, the Kernel's OOM killer will remove the process that currently consumes the most RAM (i.e. valheim-server itself).

If the issue is happening on older Linux Kernels check if the :debian10 version of the container works. We also just merged a PR that should fix any 32bit library issues in the debian11 container.