[Bug]: install passes a leftover forcedl value instead of each server's force setting
Maintainers usually reply within 1 day
A pull request for this has already been merged.
- #5190 by @borzaka — merged
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 25/100
Research direction
Read lgsm/modules/install_server_files.sh around line 233 and check the force= assignments in its server branches. The issue identifies the mismatch: the fn_fetch_file call passes ${forcedl} instead of ${force}. Confirm the expected argument with the reported samp reproduction; done means the call passes the branch’s noforce setting.
Written by the indexing model from the issue text.
Description
Severity
severity: low
Reproducibility
reproducible: unable
Regression
regression: no
Affects latest release
latest-release: yes
User story
As a LinuxGSM maintainer, I want fn_install_server_files to pass the download setting each server defines, so that install does not depend on a value left over from an earlier download.
Script name
all servers installed by fn_install_server_files
Game
Other
Linux distro
Other
Command
command: install
Expected behavior
fn_fetch_file gets the force="noforce" value that each of the 27 server branches in fn_install_server_files sets.
Actual behavior
The call in lgsm/modules/install_server_files.sh line 233 passes ${forcedl}, which no branch sets, so it gets whatever the last fn_fetch_file call left in the global forcedl. Today that is always noforce: the module is loaded by fn_fetch_module just before, and the downloads in between (EULA, SteamCMD) also pass noforce. There is no visible effect today.
Further information
85290d6b ("corrected download settings", 2017-05-14) changed the argument in the call from ${force} to ${forcedl} but did not rename the force= assignments, and it has stayed that way since (the file later moved from lgsm/functions to lgsm/modules). The bug is latent: if a download that passes "forcedl" (for example install_config.sh or an update module) ever ran just before this function, install would download the archive again despite force="noforce". The fix is to pass ${force} in the call; force is not used anywhere else in lgsm/.
Pre-checks
- I ran update and validate before reporting this issue.
Not applicable: found by code review of develop, not on a live server.
Relevant log output
# fn_install_server_files with shortname=samp and forcedl="forcedl" left from an earlier call,
# fn_fetch_file stubbed to print its 9th argument
develop (b3d24bec): fn_fetch_file arg9 (forcedl) = forcedl
Steps to reproduce
- Source
fn_install_server_filesfromlgsm/modules/install_server_files.shwithfn_fetch_file,fn_dl_extractandfn_clear_tmpstubbed. - Set
shortname=sampandforcedl="forcedl", then callfn_install_server_files. fn_fetch_filereceivesforcedlinstead of the branch'snoforce.
🤖 Generated with Claude Code
- Dominant language
- Shell
- Stars
- 4.9k
- Forks
- 870
- Avg merge
- 18h 44m
- Merged PRs (30d)
- 148
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GameServerManagers/LinuxGSM
-
command: start distro: Debian engine: null game: Teamspeak 3 reproducible: always severity: low type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
GameServerManagers/LinuxGSM#5193 ·
Maintainers usually reply within 1 day
-
command: start engine: unreal4 game: The Front reproducible: always severity: medium type: bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
GameServerManagers/LinuxGSM#5185 ·
Maintainers usually reply within 1 day
-
bug(ins): server fails to start, srcds_run has CRLF line endings and needs bashPossibly taken A pull request linked to this issue is open or already merged. Opendistro: Ubuntu engine: source game: Insurgency status: fixed in develop
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GameServerManagers/LinuxGSM#5153 ·
Maintainers usually reply within 1 day
-
[Bug]: cs2server ignores the GSLT entered during installPossibly taken A pull request linked to this issue is open or already merged. Opencommand: install command: start distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: high type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
GameServerManagers/LinuxGSM#5106 ·
Maintainers usually reply within 1 day
-
[Bug]: A failed command exits with 0 when core_exit.sh is downloaded on exitPossibly taken A pull request linked to this issue is open or already merged. Opencommand: start distro: Debian engine: null game: Teamspeak 3 info: tmux reproducible: always severity: low status: fixed in develop type: bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
GameServerManagers/LinuxGSM#5191 ·
Maintainers usually reply within 1 day
All issues in GameServerManagers/LinuxGSM
Similar issues
-
Isha NarulaOpen
Difficulty 1/5 Under an hour Newbie friendliness 72/100
dataplat/DataSpeakers#178 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
btclib-org/claude-process#341 ·
-
install: a relative or space-containing --tools-home writes a hook that cannot run, with no warningOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
[BUG] mo clean deletes Cypress test runner binaries in ~/Library/Caches/CypressPossibly taken @viniciusdsandrade claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100