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

Server crash with BepInEx and mods to true after around 5min of playing #579

Closed J0HNN1E closed 1 year ago

J0HNN1E commented 1 year ago

Hi everybody!

I tryed to launch a server following lloesche's tutorial,, which worked well for me... for around 5min. I mean I was able to play on the server then after 4-5min, the server crashed (everytime I checked, around 12 or 13 times).

Here are the lines the server is stucked on, in the bash I mean :

valheim_1 | Feb 3 16:15:58 supervisord: valheim-server WackysDatabase Jsons files have changed and access is either on a dedicated server or singleplayer with autoreload on therefore reloading everything valheim_1 | Feb 3 16:15:58 supervisord: valheim-server [Debug :WackysDatabase] CustomSyncEventDetected was called valheim_1 | Feb 3 16:15:58 supervisord: valheim-server WackysDatabase You did reload SERVER Files valheim_1 | Feb 3 16:15:58 supervisord: valheim-server WackysDatabase You are not an admin

There are few cfg's lines in json following, I can paste here if needed.

I tryed some env variables different and some other things, nothing worked.

NB: The server is running well on Windows (I just went to Ubuntu few days ago on my dedicated server because I wanted to run multiple servers modded and for it, I need docker) or a VM but it should be less well-optimized. NB2: I'm admin working ingame with "devcommands" and lot of others commands ("upgrade world mod", "edit world" from JereKusela and so on..), so don't know why there's this "echo" of a non admin state.. Thanks for your time :) ! Cya

JOHNN1E bug_linux_wackydb.txt

wcdanh2 commented 1 year ago

If you can please post your config, and mod list I can try to recreate this on my machine.

J0HNN1E commented 1 year ago

If you can please post your config, and mod list I can try to recreate this on my machine.

Thanks for your fast answer! I run it on Ubuntu 20.04 LTS on OVH DEDICATED SERVER (64Go RAM & AMD Ryzen 5 5600X)

Here is all the folder of the container "docker_valheim-server_community" https://pastebin.com/wqYCakXt

Here is the logfile also, attached piece. LogOutput.log

I can ZIP the admin client also, if needed. Don't forget to change my STEAMID64 in config/bepinex/adminlist.txt with yours. :)

You can pm me on discord if needed JOHNN1E#1885. Cya!

wcdanh2 commented 1 year ago

Looks like an issue with mods, particularly the WackysDatabase based on your log. Can you try running without that mod (and related mods) and see if it still crashes?

J0HNN1E commented 1 year ago

Yep I’ll try without, but the strange thing is this is perfectly running on Windows Server 2019 but not on Ubuntu Server 20.04 LTS

J0HNN1E commented 1 year ago

Issue resolved, the updater was crashing the server when it tries to reload (when server online). Thanks a lot to @wcdanh2 for your help!