mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 06:05:57 +03:00
[GH-ISSUE #4387] [Bug]: (Some) command/scripts don't utilize proper path(s) [running both PZ & SDTD servers. Same on both] #2742
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#2742
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 @irobot73 on GitHub (Nov 23, 2023).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4387
User story
As a server admin I want the included scripts to utilize the proper paths to execute properly & successfully
Game
SDTDServer
Linux distro
Ubuntu 22.04
Command
command: update, command: backup
Further information
Part of #4384 ??
(Some) Scripts/commands, when executed via console, would successfully execute & complete (though incomplete [backup])
Appears they are pointing to the /app folder & ignoring the /data
In the cron jobs screenshot, you can see I manually exec. one of the same scripts & it was successful in the log (last entry) while the same script via cron failed (top of log file)
Cron jobs & manual execution attempts:

Cron output:
crontab.log
Server setup:

Duped log files. Script creates new LOG paths, these exist under /DATA already (NOTE the symlink path):

Relevant log output
Steps to reproduce
@dgibbs64 commented on GitHub (Dec 4, 2023):
This is an issue with the docker container. Backup does need some changes made to work better with the container. however in general I recommend using 3rd party tools for regular backups like rsync as they are more efficient than the LinuxGSM just compress it solution 😄
@irobot73 commented on GitHub (Dec 6, 2023):
I understand the BACKUP script needs some tweaking, but the script execution (esp. via CRON) believes the SERVERFILES exist in the '/app' folder & NOT the '/data'.
Compose YML:
compose.txt
Server install & running:

My CRON changes (using Portainer):

The CRON log:
crontab.log
/data/serverfiles (proper) vs. CRON /app/serverfiles :
@irobot73 commented on GitHub (Dec 8, 2023):
I created another instance & set the SERVERFILES ENV variable
Brought up the container & initial logs sees/creates
Setup the CRON w/ logging:
& note the log. Scripts don't recognize variable:
crontab.log
@irobot73 commented on GitHub (Dec 23, 2023):
I ended up rolling my own, for now. Again, I did redirect, via CONFIG-LGSM, the BACKUP location so it too existed in the /DATA folder.
Could have changed the LSGM COMMAND_BACKUP script but every 'update-lgsm' would wipe it out & need to be redone. But you'd get the auto-rolling, purge & notifications (shrug)
tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "${excludedir}"...to
tar -czf "${backupdir}/${backupname}.tar.gz" -C / -T /data/bkup_include.txtCut down the (expected via LGSM) 15GB backup, as it was grabbing /SERVERFILES+, to ~420MB by removing the 'bloat' (no TMP, LOGs & SteamCMD files+)
Create & add the file/folder(s) I needed to '/data/bkup_include.txt'.
Reference the same file via new script that I could add to CRONTAB (chmod +x!!) [my_backup.sh]:
Crontab:
7 day rolling backup w/ any other logic/work:
Crontab.log
vs. Docker container where /DATA is mapped (IE: Only getting what I need)
@dgibbs64 commented on GitHub (Feb 28, 2024):
I have since added a symlink from
/app/serverfilesto/data/serverfilesthis should help resolve these issues. But I think more work may be required@github-actions[bot] commented on GitHub (Mar 3, 2025):
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.