[Bug]: update-lgsm prints "fn_print_plain_flush: command not found" when updating from before v26.5.0
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 84/100
调研方向
从第 22 行附近的 lgsm/modules/core_exit.sh 开始,将其对 fn_print_plain_flush 的调用与 core_modules.sh 中针对 fn_fetch_core_dl 的保护条件进行比较。按照 issue 中的描述,创建一个 v26.4.0 实例并对 master 运行 update-lgsm,以重现问题。当首次更新在没有 shell 错误的情况下完成并成功退出时,任务即完成。
由索引模型根据 Issue 内容生成。
描述
Severity
severity: low
Reproducibility
reproducible: always
Regression
regression: yes
Affects latest release
latest-release: yes
User story
As a server admin who updates an old LinuxGSM install, I want update-lgsm to finish without a shell error, so that I can tell the update worked.
Script name
cs2server (reproduced with ts3server; any server is affected)
Game
Counter-Strike 2
Linux distro
Debian 13
Command
command: update-lgsm
Expected behavior
update-lgsm prints [ OK ] Updating LinuxGSM <server>: Updating modules and exits.
Actual behavior
Right after that line it prints core_exit.sh: line 22: fn_print_plain_flush: command not found. The exit code is still 0.
Further information
update-lgsm replaces the modules on disk while the running script still has the old core_messages.sh loaded. It then runs core_exit.sh, which is now the new file. Since #5117 (v26.5.0), core_exit.sh calls fn_print_plain_flush unconditionally, and an old core_messages.sh does not define it. This happens once, when updating from a version older than v26.5.0. Guarding the call with type, as core_modules.sh does for fn_fetch_core_dl, avoids it.
Pre-checks
- I ran update and validate before reporting this issue.
Not run: reproduced by running update-lgsm itself on a new test instance.
Relevant log output
# ts3server created from v26.4.0, Debian 13 (WSL2), modulesversion="v26.4.0".
$ LGSM_GITHUBBRANCH=master ./ts3server update-lgsm
checking GitHub module [ install_logs.sh ] ... UPDATE
fetching GitHub [ install_logs.sh ] ... OK
[ OK ] Updating LinuxGSM ts3server: Updating modules
/home/user/ts3server/lgsm/modules/core_exit.sh: line 22: fn_print_plain_flush: command not found
$ echo $?
0
# A second update-lgsm prints no error.
Steps to reproduce
- Create an instance from v26.4.0:
curl -Lo linuxgsm.sh https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/v26.4.0/linuxgsm.sh && chmod +x linuxgsm.sh && LGSM_GITHUBBRANCH=v26.4.0 bash linuxgsm.sh ts3server. - Run one command so the v26.4.0 modules are downloaded:
LGSM_GITHUBBRANCH=v26.4.0 ./ts3server details. - Run
LGSM_GITHUBBRANCH=master ./ts3server update-lgsm. The error is printed afterUpdating modules.
🤖 Generated with Claude Code
- 主要语言
- Shell
- 星标
- 4.9k
- 派生
- 866
- 平均合并
- 17 小时 58 分钟
- 30 天内合并 PR
- 100
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GameServerManagers/LinuxGSM 的其他 Issue
-
distro: Debian distro: Ubuntu engine: spark game: Natural Selection 2 priority: high scope: single game type: feature
难度 4/5 3-5 天 新手友好度 45/100
GameServerManagers/LinuxGSM#5241 ·
维护者通常 1 天内回复
-
command: send distro: Ubuntu engine: spark game: Natural Selection 2 priority: high scope: single game type: feature
难度 4/5 3-5 天 新手友好度 48/100
GameServerManagers/LinuxGSM#5240 ·
维护者通常 1 天内回复
-
command: monitor distro: Ubuntu engine: spark game: Natural Selection 2 info: query reproducible: unable severity: critical type: bug
难度 3/5 1-2 天 新手友好度 35/100
GameServerManagers/LinuxGSM#5238 ·
维护者通常 1 天内回复
-
engine: null game: Teamspeak 3
难度 3/5 半天 新手友好度 66/100
GameServerManagers/LinuxGSM#5237 ·
维护者通常 1 天内回复
-
command: install command: monitor command: start priority: medium scope: all servers type: feature
难度 3/5 1-2 天 新手友好度 68/100
GameServerManagers/LinuxGSM#5204 ·
维护者通常 1 天内回复
查看 GameServerManagers/LinuxGSM 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 80/100
nolte/claude-goose#18 ·
-
decision
难度 2/5 1-3 小时 新手友好度 72/100
btclib-org/claude-process#609 · 1 条评论 ·
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 84/100
varnish/helm-varnish#173 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100