GameServerManagers / GameServerManagers/LinuxGSM
[Bug]: Server isn't starting after update
- Dominant language
- Shell
- Stars
- 4.9k
- Forks
- 864
- PR merge metrics
- No merged PRs in 30d
Description
### User story
As a user I want that the server starts after update
### Game
gmodserver
### Linux distro
Ubuntu 22.04
### Command
command: start, command: restart, command: update
### Further information
if you have configured your server with `updateonstart="on"` and the server finds an update, than it doesn't continue to start after the update. The `monitor` command detects it and starts it later, but it should start directly.
### Relevant log output
```shell
$ ./gmodserver r
[ OK ] Stopping gmodserver: Graceful: sending "quit": 2: OK
[ OK ] Updating gmodserver: Checking for update: SteamCMD
Update available
* Local build: 12963082
* Remote build: 12963522
* Branch: x86-64
https://steamdb.info/app/4020/
[ START ] Updating gmodserver: SteamCMD
Branch: x86-64
Redirecting stderr to '/home/ttt/.local/share/Steam/logs/stderr.txt'
Logging directory: '/home/ttt/.local/share/Steam/logs'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1702079268
-- type 'quit' to exit --
Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
OK
Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Success! App '4020' fully installed.
Complete! Updating gmodserver: SteamCMD
$ ./gmodserver dt
Distro Details
================================================================================
Date: Thu Dec 14 05:11:54 PM CET 2023
Distro: Ubuntu 22.04.3 LTS
Arch: x86_64
Kernel: 5.15.0-91-generic
Hostname: ttt
Environment: kvm
Uptime: 1d, 0h, 6m
tmux: 3.2a
glibc: 2.35
Server Resource
================================================================================
CPU
Model: AMD EPYC Processor
Cores: 3
Frequency: 2495.312MHz
Avg Load: 0.00, 0.01, 0.00
Memory
Mem: total used free cached available
Physical: 3.8GB 264MB 3.3GB 2.5GB 3.3GB
Swap: 0B 0B 0B
Storage
Filesystem: /dev/sda1
Total: 75G
Used: 16G
Available: 56G
Network
Interface: eth0
Link Speed: Unknown!
IP: 159.69.147.50
Garry's Mod Resource Usage
================================================================================
CPU Used: 0%
Mem Used: 0% 0MB
Storage
Total: 13G
Serverfiles: 9.0G
Backups: 68K
Garry's Mod Server Details
================================================================================
Server name: [EU] Mightful Noobs | TTT2 | Whitelisted
App ID: 4020
Branch: x86-64
Server IP: 159.69.147.50:27015
Server password: NOT SET
RCON password: xxxx
Maxplayers: 20
Default map: ttt_nighttrap
Game mode: terrortown
Tick rate: 66
Master server: not listed
Status: STOPPED
gmodserver Script Details
================================================================================
Script name: gmodserver
LinuxGSM version: v23.7.1
glibc required: 2.15
Discord alert: off
Email alert: off
Gotify alert: off
IFTTT alert: off
Pushbullet alert: off
Pushover alert: off
Rocketchat alert: off
Slack alert: off
Telegram alert: off
Update on start: on
User: ttt
Location: /home/ttt
Config file: /home/ttt/serverfiles/garrysmod/cfg/gmodserver.cfg
Backups
================================================================================
No Backups created
Command-line Parameters
================================================================================
./srcds_run_x64 -game garrysmod -strictportbind -ip 159.69.147.50 -port 27015 -tickrate 66 +host_workshop_collection 600164891 +clientport 27005 +tv_port 27020 +gamemode terrortown +map ttt_nighttrap +sv_setsteamaccount FB4B8CD792AF5ABC45C84E14A34385B1 +servercfgfile gmodserver.cfg -maxplayers 20 -disableluarefresh
Ports
================================================================================
Change ports by editing the parameters in:
/home/ttt/lgsm/config-lgsm/gmodserver
Useful port diagnostic command:
ss -tuplwn | grep srcds_linux
DESCRIPTION PORT PROTOCOL LISTEN
Game 27015 udp 0
Query 27015 tcp 0
RCON 27015 tcp 0
SourceTV 27020 udp 0
Client 27005 udp 0
Status: STOPPED
```
### Steps to reproduce
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.