Jump to content

Server not launching when auto updating but launch when someone updates it manually !

Recommended Posts

I made a server not long ago for a friend's discord server and i'm still managing it today. Here's the problem i have today.

I have scheduled an update script to launch everyday at 8AM which would first update the server, then update the mods, relaunch the server afterward and regenerate the world. Problem is, every time it tries to do all of this automatically, the server won't start. But it does start whenever I connect and launch the update script myself. I'm kinda stuck in an endless loop here.


Here's the update script:


Here's the logs i got from today:

For the master server:

Logs Master.txt

For the caves server:

Logs Caves.txt


If anyone got any idea on what the problem could be i would really apreciate it. I've been looking for an answer in so long but i guess google couldn't help me there.

Link to comment
Share on other sites

After quite some time, i finally managed to fix the problem. I'm still a little confused on what was the problem, but I have some ideas now.

The problem was in my update scripts. Turns out that the script did work automatically when the server was off, so in my opinion, it had either to with the way i closed the servers before updating them or the lack of pause in the script, making it probably update before the server was completely turned off.


I modificated the base of the script by:

-adding a 30 second delay before stopping the server while announcing in the server that it would stop for an update

-making it so the server will close normally like if someone would have manually put the "c_shutdown()" command in both servers

-removing the server launch with the -only_update_mods config that I thought would update my mods (spoiler: it was unnecessary, the server automatically does it when starting)

-Adding more pauses in the scripts to make sure it got time to do everything right before continuing

-Adding a little line that would make the server automatically regenerate so that after the daily update, the server start on a fresh world.


Here is how the script looks now:



I hope I was able to help some of you out there suffering from the same issue I had and I wish you all a great day/night depending on the time you read this. =)

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

  • Create New...