[Solved] [Valheim] Random Stop Command and No Lockfile found #3323
-
My server runs for about a day then goes offline. Monitor can't restart it and reports No lockfile found. It looks like the server may have gotten a "stop"/^C command somehow, even though I didn't intend for any command to be issued. I'm running vhserver from a systemd unit as my user. I copied the service file from the docs Running on Boot (https://docs.linuxgsm.com/configuration/running-on-boot). Can anyone help me figure out why the server is stopping/deleting the lockfile and how to keep it running? Logs/Details below. Thanks!
Console Log:
Script Log
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Were you using the linuxgsm console command and exited it using CTRL+C rather than the suggested CTRL+B followed by D? The logs do suggest that on line 2552 a CTRL+C input was received. If this happens when in the interactive console of linuxgsm it can stop the server. https://docs.linuxgsm.com/commands/console#exiting-the-console EDIT - Thank you for providing such comprehensive logs btw 🙂 |
Beta Was this translation helpful? Give feedback.
-
Running as a system unit (copy the vhserver.service file to /etc/systemd/system/ and run with
This is the intended behavior for user units, and thus they are not a good way to run a persistent server. Thanks for your help resolving this. |
Beta Was this translation helpful? Give feedback.
Running as a system unit (copy the vhserver.service file to /etc/systemd/system/ and run with
sudo systemctl start vhserver
) seems to resolve this issue. Re-reading the arch systemd user wiki I found this part I overlooked about user units:This is the intended behavior for user units, and thus they are not a good way to run a persistent server. Thanks for your help resolving this.