[Bug]: update-lgsm prints "fn_print_plain_flush: command not found" when updating from before v26.5.0
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
調査の方向性
lgsm/modules/core_exit.shの22行目付近から始め、fn_print_plain_flushの呼び出しを、core_modules.shにあるfn_fetch_core_dlのガードと比較してください。Issueの説明どおりにv26.4.0のインスタンスを作成し、masterに対してupdate-lgsmを実行して再現します。この最初の更新がシェルエラーなしで完了し、正常終了すれば完了です。
索引モデルが 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分
- マージ済み PR(30日)
- 100
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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