[GH-ISSUE #2669] [BUG] Don't restart server after update (duplicate) #1931

Closed
opened 2026-02-27 02:59:52 +03:00 by kerem · 16 comments
Owner

Originally created by @BlackYuzia on GitHub (Jan 7, 2020).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2669

@borzaka
In this update I get the same bug with didn't restart servers like in this issue: #2025
Issue was closed, but I can't reopen it, so I create this one...

Scripts logs:

Log with bug:
csgoserver-script.log
Log without bug:
csgoserver-script.log

I can give more logs with the same trouble after today update and without it.
Just say what logs do u need.

Originally created by @BlackYuzia on GitHub (Jan 7, 2020). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2669 @borzaka In this update I get the same bug with didn't restart servers like in this issue: #2025 Issue was closed, but I can't reopen it, so I create this one... Scripts logs: > Log with bug: [csgoserver-script.log](https://github.com/GameServerManagers/LinuxGSM/files/4029768/csgoserver-script.log) > Log without bug: [csgoserver-script.log](https://github.com/GameServerManagers/LinuxGSM/files/4029776/csgoserver-script.log) I can give more logs with the same trouble after today update and without it. **Just say what logs do u need.**
kerem 2026-02-27 02:59:52 +03:00
  • closed this issue
  • added the
    type: bug
    label
Author
Owner

@issue-label-bot[bot] commented on GitHub (Jan 7, 2020):

Issue-Label Bot is automatically applying the label type: bug to this issue, with a confidence of 0.99. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

<!-- gh-comment-id:571504349 --> @issue-label-bot[bot] commented on GitHub (Jan 7, 2020): Issue-Label Bot is automatically applying the label `type: bug` to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! Links: [app homepage](https://github.com/marketplace/issue-label-bot), [dashboard](https://mlbot.net/data/GameServerManagers/LinuxGSM) and [code](https://github.com/hamelsmu/MLapp) for this bot.
Author
Owner

@borzaka commented on GitHub (Jan 7, 2020):

Can you show us your cronjobs? My new guess is that you are running a job at every 5 to 10 minutes, and the update is not able to finish during this time period and therefore the break.

BTW, you should probably use https://github.com/GameServerManagers/LinuxGSM-Support for support, or the Discord channel for asking for help.

GitHub
LinuxGSM Support Forum for general game server issues - GameServerManagers/LinuxGSM-Support
<!-- gh-comment-id:571749231 --> @borzaka commented on GitHub (Jan 7, 2020): Can you show us your cronjobs? My new guess is that you are running a job at every 5 to 10 minutes, and the update is not able to finish during this time period and therefore the break. BTW, you should probably use https://github.com/GameServerManagers/LinuxGSM-Support for support, or the Discord channel for asking for help. <blockquote><img src="https://repository-images.githubusercontent.com/159491092/95c69a00-8bab-11e9-858c-fc22cd6f6af3" width="48" align="right"><div><img src="https://github.githubassets.com/favicon.ico" height="14"> GitHub</div><div><strong><a href="https://github.com/GameServerManagers/LinuxGSM-Support">GameServerManagers/LinuxGSM-Support</a></strong></div><div>LinuxGSM Support Forum for general game server issues - GameServerManagers/LinuxGSM-Support</div></blockquote>
Author
Owner

@BlackYuzia commented on GitHub (Jan 8, 2020):

@borzaka

Can you show us your cronjobs?

image
On both servers (where have and didn't have this bug) crontabs the same.

My new guess is that you are running a job at every 5 to 10 minutes, and the update is not able to finish during this time period and therefore the break.

I think what LGSM have check, if update is didn't complete. Didn't do anything. No?

<!-- gh-comment-id:571886401 --> @BlackYuzia commented on GitHub (Jan 8, 2020): @borzaka > Can you show us your cronjobs? ![image](https://user-images.githubusercontent.com/25010528/71950424-d89f2d80-31df-11ea-910c-14cd3bcdaa93.png) **On both servers** (where have and didn't have this bug) **crontabs the same.** > My new guess is that you are running a job at every 5 to 10 minutes, and the update is not able to finish during this time period and therefore the break. I think what LGSM have check, if update is didn't complete. Didn't do anything. No?
Author
Owner

@borzaka commented on GitHub (Jan 10, 2020):

In my opinion, you shouldn't monitor your csgoserver in every 5 minutes. No need to. Because they are rarely crashes, and if so, they automatically restart. I haven't setup a monitor command for my community csgoservers. And they are stable.
I'am almost sure, when an update happens, a monitor command kicks in, and starts the server with an unfinished update.

LGSM didn't know that an update is happening. monitor command just sees that a server is not running and starts is.
Correct me, if I'am wrong, but I'am sure, that the 5 minute monitor is unnecessary.

<!-- gh-comment-id:573017573 --> @borzaka commented on GitHub (Jan 10, 2020): In my opinion, you shouldn't monitor your csgoserver in every 5 minutes. No need to. Because they are rarely crashes, and if so, they automatically restart. I haven't setup a monitor command for my community csgoservers. And they are stable. I'am almost sure, when an update happens, a monitor command kicks in, and starts the server with an unfinished update. LGSM didn't know that an update is happening. monitor command just sees that a server is not running and starts is. Correct me, if I'am wrong, but I'am sure, that the 5 minute monitor is unnecessary.
Author
Owner

@dgibbs64 commented on GitHub (Jan 10, 2020):

@borzaka monitor should detect when an update is happening and do nothing. If not then there may be a bug

<!-- gh-comment-id:573052463 --> @dgibbs64 commented on GitHub (Jan 10, 2020): @borzaka monitor should detect when an update is happening and do nothing. If not then there may be a bug
Author
Owner

@BlackYuzia commented on GitHub (Jan 10, 2020):

if so, they automatically restart.

two words about "always auto restart".
Is not true. I get second time trouble, when server just freeze and don't restart.

So, how I think, monitor functin is need. But ... maybe delay should be 10 min or more...
SETUP IT TO 1 MIN

<!-- gh-comment-id:573072653 --> @BlackYuzia commented on GitHub (Jan 10, 2020): > if so, they automatically restart. two words about "always auto restart". Is not true. I get second time trouble, when server just freeze and don't restart. **So, how I think, monitor functin is need**. But ... maybe delay should be 10 min or more... ~~SETUP IT TO 1 MIN~~
Author
Owner

@borzaka commented on GitHub (Jan 11, 2020):

In my experience when a csgoserver crashes (segmentation fault for example), it auto restarts, and sometimes crashes again :) So it can stuck in restart loops. This can be because some update broke the games 3rd party plugins. Only way to fix this is to update the plugins, or disable them
Yes, probably it can freeze too for good.

If someone interested, this is my cronjobs for a csgoserver:

# #Counter-Strike: Global Offensive
@reboot su - csgoserver -c '/home/csgoserver/csgoserver monitor' > /dev/null 2>&1
30 3 * * * su - csgoserver -c '/home/csgoserver/csgoserver update' > /dev/null 2>&1
0 0 * * 0 su - csgoserver -c '/home/csgoserver/csgoserver update-functions' > /dev/null 2>&1

I don't use monitor frequently, because I'am afraid that if a monitor checks my instance, it will find that it's not running and tries to start it:

  • during updates
  • sometimes I have slow map changes, during this 1-2 minutes my server became unresponsive
<!-- gh-comment-id:573307145 --> @borzaka commented on GitHub (Jan 11, 2020): In my experience when a csgoserver crashes (segmentation fault for example), it auto restarts, and sometimes crashes again :) So it can stuck in restart loops. This can be because some update broke the games 3rd party plugins. Only way to fix this is to update the plugins, or disable them Yes, probably it can freeze too for good. If someone interested, this is my cronjobs for a csgoserver: ``` # #Counter-Strike: Global Offensive @reboot su - csgoserver -c '/home/csgoserver/csgoserver monitor' > /dev/null 2>&1 30 3 * * * su - csgoserver -c '/home/csgoserver/csgoserver update' > /dev/null 2>&1 0 0 * * 0 su - csgoserver -c '/home/csgoserver/csgoserver update-functions' > /dev/null 2>&1 ``` I don't use monitor frequently, because I'am afraid that if a monitor checks my instance, it will find that it's not running and tries to start it: - during updates - sometimes I have slow map changes, during this 1-2 minutes my server became unresponsive
Author
Owner

@CrazyHackGUT commented on GitHub (Jan 11, 2020):

@borzaka you can't open crontab for your user or what?)
If you like executing commands as root user, you should discover optional argument -user for crontab command. https://linux.die.net/man/1/crontab or man crontab in shell.

Crontab is the program used to install, remove or list the tables used to drive the cron(8) daemon. Each user can have their own crontab, and though these ...
<!-- gh-comment-id:573316501 --> @CrazyHackGUT commented on GitHub (Jan 11, 2020): @borzaka you can't open crontab for your user or what?) If you like executing commands as `root` user, you should discover optional argument `-user` for crontab command. https://linux.die.net/man/1/crontab or `man crontab` in shell. <blockquote><img src="/favicon.ico" width="48" align="right"><div><strong><a href="https://linux.die.net/man/1/crontab">crontab(1) - Linux man page</a></strong></div><div>Crontab is the program used to install, remove or list the tables used to drive the cron(8) daemon. Each user can have their own crontab, and though these ...</div></blockquote>
Author
Owner

@borzaka commented on GitHub (Jan 11, 2020):

I have multiple game modes separated into different users, so it's easier to my me to handle the cronjobs in one place.
I got this from the official docs:
https://docs.linuxgsm.com/configuration/cronjobs#real-life-multiple-servers-example

How would you change my cronjobs according to your recommendation?

<!-- gh-comment-id:573317094 --> @borzaka commented on GitHub (Jan 11, 2020): I have multiple game modes separated into different users, so it's easier to my me to handle the cronjobs in one place. I got this from the official docs: https://docs.linuxgsm.com/configuration/cronjobs#real-life-multiple-servers-example How would you change my cronjobs according to your recommendation?
Author
Owner

@BlackYuzia commented on GitHub (Jan 30, 2020):

@borzaka @dgibbs64 today (01/29) csgo has been update.

How we can see, do not all servers get fully update. (actualy - restart)
2020-01-30_071943
If we try check update by command: ./csgoserver u
We get message about already up to date:
image
after restart server, version was changed.

This is Bug with a monitor? 🤔

<!-- gh-comment-id:580089277 --> @BlackYuzia commented on GitHub (Jan 30, 2020): @borzaka @dgibbs64 today (01/29) csgo has been update. How we can see, do not all servers get fully update. (actualy - restart) ![2020-01-30_071943](https://user-images.githubusercontent.com/25010528/73422419-97f38980-4331-11ea-9469-be71bde5688f.png) If we try check update by command: `./csgoserver u` We get message about already up to date: ![image](https://user-images.githubusercontent.com/25010528/73422451-b22d6780-4331-11ea-9cfb-e223decf01eb.png) after restart server, version was changed. This is Bug with a monitor? :thinking:
Author
Owner

@BlackYuzia commented on GitHub (Jan 30, 2020):

After restart all servers (execute selected, he didn't update, I get different version of current build... maybe my fail) version of build was changed:
image

<!-- gh-comment-id:580091143 --> @BlackYuzia commented on GitHub (Jan 30, 2020): After restart all servers (execute selected, he didn't update, I get different version of current build... maybe my fail) version of build was changed: ![image](https://user-images.githubusercontent.com/25010528/73422895-1997e700-4333-11ea-9d33-d9cd25d385f7.png)
Author
Owner

@dgibbs64 commented on GitHub (Mar 10, 2020):

@BlackYuzia looking at your logs in issue #2700 I think you may not be running the latest version of LinuxGSM for one for your servers that are having an issue. Please can you make sure your servers are fully up to date ./csgoserver update-lgsm.

<!-- gh-comment-id:597188520 --> @dgibbs64 commented on GitHub (Mar 10, 2020): @BlackYuzia looking at your logs in issue #2700 I think you may not be running the latest version of LinuxGSM for one for your servers that are having an issue. Please can you make sure your servers are fully up to date `./csgoserver update-lgsm`.
Author
Owner

@BlackYuzia commented on GitHub (Mar 10, 2020):

Okey. I check (and update) all servers to latest (LGSM) vesrion (maybe again?).
Then, on update I will feedback again.

<!-- gh-comment-id:597190331 --> @BlackYuzia commented on GitHub (Mar 10, 2020): Okey. I check (and update) all servers to latest (LGSM) vesrion (maybe again?). Then, on update I will feedback again.
Author
Owner

@dgibbs64 commented on GitHub (Mar 10, 2020):

@BlackYuzia thanks. I am unsure if that will help. But I am also not sure how best to resolve this problem.

It appears to me that the issue is that an update fails to complete but is reporting to LinuxGSM that it has updated. Meaning that when the update checks again it thinks the server has updated when it hasnt.

<!-- gh-comment-id:597192048 --> @dgibbs64 commented on GitHub (Mar 10, 2020): @BlackYuzia thanks. I am unsure if that will help. But I am also not sure how best to resolve this problem. It appears to me that the issue is that an update fails to complete but is reporting to LinuxGSM that it has updated. Meaning that when the update checks again it thinks the server has updated when it hasnt.
Author
Owner

@dgibbs64 commented on GitHub (Jul 29, 2020):

Work has been done on resolving issues with updating for multiple instances. This should hopefully be resolved now

<!-- gh-comment-id:665670768 --> @dgibbs64 commented on GitHub (Jul 29, 2020): Work has been done on resolving issues with updating for multiple instances. This should hopefully be resolved now
Author
Owner

@github-actions[bot] commented on GitHub (Jul 30, 2021):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:889533933 --> @github-actions[bot] commented on GitHub (Jul 30, 2021): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#1931
No description provided.