mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 22:25:59 +03:00
[GH-ISSUE #181] [LGSM] autoupdate working? #144
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @medic917 on GitHub (Sep 25, 2014).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/181
Originally assigned to: @dgibbs64 on GitHub.
Hi Daniel,
I saw that you enabled -autoupdate (unless I'm incorrect).
I keep getting steam directory is missing error, have anyone used it successfully with Daniel's script?
By any chance can you make a query script like your monitor query script, so when steam gives the server needs an update message it will auto trigger an update?
willing to donate if you can do this, it has become a pain to see my servers empty since the game devs did an update mid-day.
@dgibbs64 commented on GitHub (Sep 25, 2014):
Hello,
Yes I have put -autoupdate as part of the default parms for all steamCMD based scripts. It may be possible to do what you are requesting however I would prefer it that the -autoupdate function built in to SteamCMD does the job instead. Please can you send me the log files with the error message as this will be useful in getting -autoupdate working if it is not.
Thank you
@ghost commented on GitHub (Sep 27, 2014):
Running a TF2 server I get this during a debug start:
Auto detecting CPU
Using default binary: ./srcds_linux
Enabling debug mode
Server will auto-restart if there is a crash.
ERROR: -autoupdate requires -steam_dir and -steamcmd_script.
Sat Sep 27 11:42:58 JST 2014: Server Failed
Removing -autoupdate fixes that and the start completes successfully.
Also spotted this during start:
WARNING: Failed to load 32-bit libtinfo.so.5 or libncurses.so.5.
Please install (lib32tinfo5 / ncurses-libs.i686 / equivalent) to enable readline.
Which can be solved by installing lib32tinfo5 and lib32ncurses5 via apt-get install in Ubuntu Server 14.04.
@medic917 commented on GitHub (Sep 27, 2014):
Hey daniel!
Again thanks for your generosity in helping us.
I don't have a way to get the log file right now (got lost somewhere xD) but I'll try to recreate it again the next time I get the chance!
It's similar to what Philip has above, I just don't get the missing binaries or those two files he listed.
To be honest though, finding a way to auto shut down server whenever the console says it needs an update, and making your monitor cronjob script to start the server is a great way to go about it, rather than an autoupdate script, where one has to manually restart the server (which we don't need since we can do this already with your script ./tf2server update-restart.)
I already got something like this working for tf2 with a plugin that recognizes an update is needed and I edited it to make the server quit without restarting. Then monitor recognizes it is down (I took out the lock file) and it updates the server before starting (I edited your script so it updates first then starts the server on ./tf2server start).
The only thing is, that plugin is only for tf2, does not work for any other game no matter what I try haha. Only if we can get one that isn't sourcemod plugin dependent, like your awesome monitor query script that is very useful, we can finally have a truly useful autoupdate method for all games.
@dgibbs64 commented on GitHub (Sep 27, 2014):
I have removed this feature while I decide how to best go about this problem
@dgibbs64 commented on GitHub (Dec 8, 2014):
Found the log message for required update.
It may be possible for me to look for this message and initiate an update automaticly.
@Rob-123 commented on GitHub (Dec 16, 2014):
It would be great to have an option to force the server to check for updates every time it starts (without using -autoupdate). Basically having the script do 'update' instead of 'start' after gsquery detects it is down. I'm currently using a sourcemod plugin to detect updates and force shut down the server, so this would be the final step towards automation
Thanks for all the work on the script, been a really useful tool for hosting.
@dgibbs64 commented on GitHub (Dec 16, 2014):
@Rob-123 love the idea. I think I will add a variable in the scripts to turn on an option like this. Something like updateonstart=yes for example. I will be adding your idea as a feature to add.
edit: created feature request #244
@dgibbs64 commented on GitHub (Dec 17, 2014):
Found a possible option for auto updates as well. The website https://steamdb.info provides details when steam apps are updated. This means the server could query the website for version changes.
@dgibbs64 commented on GitHub (Jan 4, 2015):
New feature released for auto updates. The script can now check for updates and only restart the server if required.
@lock[bot] commented on GitHub (Jul 20, 2018):
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.