[GH-ISSUE #4282] [Bug]: Rust server does not update or restart when updateonstart="on" #2690

Closed
opened 2026-02-27 03:04:45 +03:00 by kerem · 2 comments
Owner

Originally created by @ghstridr on GitHub (Aug 3, 2023).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4282

User story

As a admin, I want updateonstart to run steamcmd update and then start the rust server so that the rust server always starts with the latest code

Game

Rust

Linux distro

Ubuntu 20.04

Command

command: start, command: restart

Further information

LinuxGSM - Rust - Version v23.4.0
Setting updateonstart="on" in rustserver.cfg and then either stopping/starting or restarting the server results in:

steam@buddha:~$ ./rustserver start
[ INFO ] Starting rustserver: Running Carbon environment.sh
[  OK  ] Updating rustserver: Checking local build: SteamCMD/home/steam/.steam/steamcmd/steamcmd.sh: line 38: /: Is a directory
[  OK  ] Updating rustserver: Checking for update: SteamCMD

Update available
* Local build: 11859563
* Remote build:
* Branch: public
https://steamdb.info/app/258550/

[ START ] Updating rustserver: SteamCMD
Branch: public
/home/steam/.steam/steamcmd/steamcmd.sh: line 38: /: Is a directory
/home/steam/.steam/steamcmd
steamcmd
Linux
Complete! Updating rustserver: SteamCMD

Relevant log output

Output from rustserver details (certain details redacted):

steam@buddha:~$ ./rustserver details

Distro Details
==================================================================================================================================================================================================================================================================
Date:      Thu 03 Aug 2023 03:05:38 PM PDT
Distro:    Ubuntu 20.04.6 LTS
Arch:      x86_64
Kernel:    5.4.0-155-generic
Hostname:  buddha
Uptime:    0d, 22h, 16m
tmux:      tmux 3.0a
glibc:     2.31

Server Resource
==================================================================================================================================================================================================================================================================
CPU
Model:      Intel(R) Core(TM) i7 CPU         870  @ 2.93GHz
Cores:      8
Frequency:  1320.367MHz
Avg Load:   0.09, 0.15, 0.58

Memory
Mem:       total  used   free  cached  available
Physical:  16GB   1.9GB  14GB  6.5GB   14GB
Swap:      16GB   45MB   16GB

Storage
Filesystem:  /dev/md128
Total:       901G
Used:        88G
Available:   723G

Network
IP:           0.0.0.0
Internet IP:  XxX.XxX.XxX.XxX

Game Server Resource Usage
==================================================================================================================================================================================================================================================================
CPU Used:  0%
Mem Used:  0%  0MB

Storage
Total:        7.5G
Serverfiles:  7.2G

Rust Server Details
==================================================================================================================================================================================================================================================================
Server name:    Rust
App ID:         258550
Server IP:      0.0.0.0:28015
Internet IP:    73.140.137.250:28015
RCON password:  !Sh@ruq!
RCON web:       1
Maxplayers:     20
Game mode:      vanilla
Tick rate:      30
Save interval:  300s
Seed:           117393840
Salt:           0
World size:     2400m
Status:         STOPPED

rustserver Script Details
==================================================================================================================================================================================================================================================================
Script name:            rustserver
LinuxGSM version:       v23.4.0
glibc required:         2.15
Discord alert:          off
Email alert:            off
Gotify alert:           off
IFTTT alert:            off
Mailgun (email) alert:  off
Pushbullet alert:       off
Pushover alert:         off
Rocketchat alert:       off
Slack alert:            off
Telegram alert:         on
Update on start:        off
User:                   steam
Location:               /home/steam
Config file:            /home/steam/serverfiles/server/rustserver/cfg/server.cfg

Backups
==================================================================================================================================================================================================================================================================
No Backups created

Command-line Parameters
==================================================================================================================================================================================================================================================================
 ./RustDedicated -batchmode +app.listenip 0.0.0.0 +app.port 28082 +server.ip 0.0.0.0 +server.port 28015 +server.queryport 28017 +server.tickrate 30 +server.hostname "Rust" +server.identity "rustserver" +server.gamemode vanilla +server.level "Procedural Map" +server.seed 117393840 +server.salt 0 +server.maxplayers 20 +server.worldsize 2400 +server.saveinterval 300 +rcon.web 1 +rcon.ip 0.0.0.0 +rcon.port 28016 +rcon.password "XXXXXXXXXXXXXXXXXXXXXXX" -logfile

Ports
==================================================================================================================================================================================================================================================================
Change ports by editing the parameters in:
/home/steam/lgsm/config-lgsm/rustserver

Useful port diagnostic command:
ss -tuplwn | grep RustDedicated

DESCRIPTION  PORT   PROTOCOL  LISTEN
Game         28015  udp       0
Query        28017  udp       0
RCON         28016  tcp       0
App          28082  tcp       0

Status: STOPPED


### Steps to reproduce

1. Edit lgsm/config-lgsm/rustserver/rustserver.cfg and add updateonstart="on"
2. Start rust server if stopped or restart (./rustserver start|restart)
3. Receive messages as shown above.

To go back to prior operating conditions, comment out updateonstart from rustserver.cfg or change 'on' to 'off' to return to default behavior.
Originally created by @ghstridr on GitHub (Aug 3, 2023). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4282 ### User story As a admin, I want updateonstart to run steamcmd update and then start the rust server so that the rust server always starts with the latest code ### Game Rust ### Linux distro Ubuntu 20.04 ### Command command: start, command: restart ### Further information LinuxGSM - Rust - Version v23.4.0 Setting updateonstart="on" in rustserver.cfg and then either stopping/starting or restarting the server results in: ``` steam@buddha:~$ ./rustserver start [ INFO ] Starting rustserver: Running Carbon environment.sh [ OK ] Updating rustserver: Checking local build: SteamCMD/home/steam/.steam/steamcmd/steamcmd.sh: line 38: /: Is a directory [ OK ] Updating rustserver: Checking for update: SteamCMD Update available * Local build: 11859563 * Remote build: * Branch: public https://steamdb.info/app/258550/ [ START ] Updating rustserver: SteamCMD Branch: public /home/steam/.steam/steamcmd/steamcmd.sh: line 38: /: Is a directory /home/steam/.steam/steamcmd steamcmd Linux Complete! Updating rustserver: SteamCMD ``` ### Relevant log output ```shell Output from rustserver details (certain details redacted): steam@buddha:~$ ./rustserver details Distro Details ================================================================================================================================================================================================================================================================== Date: Thu 03 Aug 2023 03:05:38 PM PDT Distro: Ubuntu 20.04.6 LTS Arch: x86_64 Kernel: 5.4.0-155-generic Hostname: buddha Uptime: 0d, 22h, 16m tmux: tmux 3.0a glibc: 2.31 Server Resource ================================================================================================================================================================================================================================================================== CPU Model: Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz Cores: 8 Frequency: 1320.367MHz Avg Load: 0.09, 0.15, 0.58 Memory Mem: total used free cached available Physical: 16GB 1.9GB 14GB 6.5GB 14GB Swap: 16GB 45MB 16GB Storage Filesystem: /dev/md128 Total: 901G Used: 88G Available: 723G Network IP: 0.0.0.0 Internet IP: XxX.XxX.XxX.XxX Game Server Resource Usage ================================================================================================================================================================================================================================================================== CPU Used: 0% Mem Used: 0% 0MB Storage Total: 7.5G Serverfiles: 7.2G Rust Server Details ================================================================================================================================================================================================================================================================== Server name: Rust App ID: 258550 Server IP: 0.0.0.0:28015 Internet IP: 73.140.137.250:28015 RCON password: !Sh@ruq! RCON web: 1 Maxplayers: 20 Game mode: vanilla Tick rate: 30 Save interval: 300s Seed: 117393840 Salt: 0 World size: 2400m Status: STOPPED rustserver Script Details ================================================================================================================================================================================================================================================================== Script name: rustserver LinuxGSM version: v23.4.0 glibc required: 2.15 Discord alert: off Email alert: off Gotify alert: off IFTTT alert: off Mailgun (email) alert: off Pushbullet alert: off Pushover alert: off Rocketchat alert: off Slack alert: off Telegram alert: on Update on start: off User: steam Location: /home/steam Config file: /home/steam/serverfiles/server/rustserver/cfg/server.cfg Backups ================================================================================================================================================================================================================================================================== No Backups created Command-line Parameters ================================================================================================================================================================================================================================================================== ./RustDedicated -batchmode +app.listenip 0.0.0.0 +app.port 28082 +server.ip 0.0.0.0 +server.port 28015 +server.queryport 28017 +server.tickrate 30 +server.hostname "Rust" +server.identity "rustserver" +server.gamemode vanilla +server.level "Procedural Map" +server.seed 117393840 +server.salt 0 +server.maxplayers 20 +server.worldsize 2400 +server.saveinterval 300 +rcon.web 1 +rcon.ip 0.0.0.0 +rcon.port 28016 +rcon.password "XXXXXXXXXXXXXXXXXXXXXXX" -logfile Ports ================================================================================================================================================================================================================================================================== Change ports by editing the parameters in: /home/steam/lgsm/config-lgsm/rustserver Useful port diagnostic command: ss -tuplwn | grep RustDedicated DESCRIPTION PORT PROTOCOL LISTEN Game 28015 udp 0 Query 28017 udp 0 RCON 28016 tcp 0 App 28082 tcp 0 Status: STOPPED ``` ``` ### Steps to reproduce 1. Edit lgsm/config-lgsm/rustserver/rustserver.cfg and add updateonstart="on" 2. Start rust server if stopped or restart (./rustserver start|restart) 3. Receive messages as shown above. To go back to prior operating conditions, comment out updateonstart from rustserver.cfg or change 'on' to 'off' to return to default behavior.
Author
Owner

@dgibbs64 commented on GitHub (Sep 2, 2023):

Unsure of the cause of this but I tested on the latest develop version of LinuxGSM and it is working. So if it is still not working it should be working by the next release.

<!-- gh-comment-id:1703569490 --> @dgibbs64 commented on GitHub (Sep 2, 2023): Unsure of the cause of this but I tested on the latest develop version of LinuxGSM and it is working. So if it is still not working it should be working by the next release.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 2, 2024):

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:2323553418 --> @github-actions[bot] commented on GitHub (Sep 2, 2024): 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#2690
No description provided.