Hypersomnia icon indicating copy to clipboard operation
Hypersomnia copied to clipboard

If the server is started via Systemd, then it will not start when rebooting via RCON.

Open Timofei302 opened this issue 2 years ago • 10 comments

Systemd service config: Screenshot_20231017_190858

Timofei302 avatar Oct 17 '23 16:10 Timofei302

I see. I haven't really designed it yet to be run as a service, will have to look into it later. Would probably need a separate flag --as-service and have a separate restart logic for it. Do you think a service can update and restart itself though? Especially with additional flags?

geneotech avatar Oct 17 '23 16:10 geneotech

Actually wouldn't it be enough for the game to return 1; since you've set Restart=on-failure?

geneotech avatar Oct 17 '23 16:10 geneotech

Actually wouldn't it be enough for the game to return 1; since you've set Restart=on-failure?

Logically, this should be enough, but I think it's worth doing research first by making a script that will return exit code 1 and see how systemd behaves.

Timofei302 avatar Oct 17 '23 16:10 Timofei302

Hey, I think your server keeps restarting or perhaps has a high send_heartbeat_to_server_list_once_every_secs set (I should probably clamp the value automatically), because the server list detects it as a new server once every few minutes, and it keeps spamming new server notifications :) The timeout for a server to be removed from the server list is 60 seconds.

geneotech avatar Oct 17 '23 18:10 geneotech

Hey, I think your server keeps restarting or perhaps has a high send_heartbeat_to_server_list_once_every_secs set (I should probably clamp the value automatically), because the server list detects it as a new server once every few minutes, and it keeps spamming new server notifications :) The timeout for a server to be removed from the server list is 60 seconds.

idk what caused this, since everything is fine with my settings (at least everything was fine), and I am not reconfiguring the server now (so that when I configure the server, I often reboot hypersomnia via systemctl).

Screenshot_20231017-212317.jpg

Timofei302 avatar Oct 17 '23 18:10 Timofei302

Screenshot_20231017-213115.jpg

Timofei302 avatar Oct 17 '23 18:10 Timofei302

It seems the problem is fixed, it now sends the heartbeats correctly :+1:

geneotech avatar Oct 17 '23 18:10 geneotech

The server still goes missing every 5 minutes :/

Timofei302 avatar Oct 17 '23 18:10 Timofei302

Yeah, just noticed, not sure what could be the cause, perhaps packet loss? What if you set send_heartbeat_to_server_list_once_every_secs to e.g. 3?

geneotech avatar Oct 17 '23 18:10 geneotech

Yeah, just noticed, not sure what could be the cause, perhaps packet loss? What if you set send_heartbeat_to_server_list_once_every_secs to e.g. 3?

Hmm. By default, my server is already configured to send a "heartbeat" every 10 seconds. Screenshot_20231017-220755.jpg

Therefore, there are two possible reasons - my hosting provider is still under ddos attack and this has started to negatively affect the operation of my vds, or someone or something is trying to break the connection of my vds with your master server on your side.

I can't think of any other assumptions.

Timofei302 avatar Oct 17 '23 19:10 Timofei302