[Bug]: Checks that fail before the log directory exists exit with 0
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
Bắt đầu với check_system_dir.sh, check_executable.sh, core_steamcmd.sh và core_exit.sh; sau đó theo dõi thứ tự check.sh thực hiện các bước kiểm tra này trước khi check_logs.sh tạo thư mục nhật ký. Xác nhận mã thoát cho từng lỗi được báo cáo khi thư mục nhật ký không tồn tại, bao gồm cả trường hợp tra cứu IP công khai hoặc tải mô-đun thất bại. Công việc hoàn tất khi các bước kiểm tra trả về trạng thái khác không như mong đợi, bất kể thư mục nhật ký có tồn tại hay không.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Severity
severity: low
Reproducibility
reproducible: always
Regression
regression: no
Affects latest release
latest-release: yes
User story
As a server admin who runs LinuxGSM from scripts, I want a failed check to return a non-zero exit code even when the log directory does not exist yet, so that the failure is not reported as success.
Script name
ts3server (any server is affected)
Game
Teamspeak 3
Linux distro
Debian 13
Command
command: start
Expected behavior
Cannot access .../serverfiles: No such directory and executable was not found exit with 1, as they do once the log directory exists.
Actual behavior
If the log directory does not exist (a new instance before install, a deleted log directory, or an LGSM_LOGDIR that does not exist), these checks print [ FAIL ] but exit with 0. If the public IP lookup failed, they exit with 2.
Further information
check_system_dir.sh, check_executable.sh and fn_check_steamcmd_user (core_steamcmd.sh) call fn_script_log_fail only if [ -d "${lgsmlogdir}" ], and only fn_script_log_fail sets exitcode=1. core_exit.sh then exits with whatever an earlier step left: the public IP lookup in info_game.sh (0, or 2 when it fails), or the local exitcode in fn_fetch_file (0) when the module was downloaded on this run. check.sh runs these checks before check_logs.sh, which creates the log directory. fn_script_log already skips writing when the log directory is missing, so the guard is not needed. check_root.sh has the same guard but sets exitcode=1 itself. Related: #5191.
Pre-checks
- I ran update and validate before reporting this issue.
Not run: reproduced on a new develop instance, which has nothing to update or validate yet.
Relevant log output
# New ts3server instance from develop (eb8f34ae), Debian 13 (WSL2).
$ ./ts3server start; echo $?
[ FAIL ] Starting ts3server: Cannot access /home/borzaka/lgsm-test/.../serverfiles: No such directory
0
# Installed instance, log directory and executable removed:
$ ./ts3server start; echo $?
[ FAIL ] Starting ts3server: executable was not found
* /home/borzaka/lgsm-test/.../serverfiles/ts3server
0
Steps to reproduce
- Create a new instance:
curl -Lo linuxgsm.sh https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/develop/linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh ts3server. - Without installing, run
./ts3server start; echo $?(orstop,monitor). It prints[ FAIL ] ... Cannot access .../serverfilesand 0. - On an installed instance (log directory present), move
serverfilesaway and run./ts3server start; echo $?. The same error exits with 1. Movelogaway too and it exits with 0 again.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Shell
- Star
- 4.9k
- Fork
- 870
- Merge trung bình
- 18 giờ 44 phút
- Pull request đã merge (30 ngày)
- 148
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GameServerManagers/LinuxGSM
-
command: start engine: unreal4 game: The Front reproducible: always severity: medium type: bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
GameServerManagers/LinuxGSM#5185 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug(ins): server fails to start, srcds_run has CRLF line endings and needs bashCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởdistro: Ubuntu engine: source game: Insurgency status: fixed in develop
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
GameServerManagers/LinuxGSM#5153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: cs2server ignores the GSLT entered during installCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcommand: install command: start distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: high type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
GameServerManagers/LinuxGSM#5106 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: A failed command exits with 0 when core_exit.sh is downloaded on exitCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcommand: start distro: Debian engine: null game: Teamspeak 3 info: tmux reproducible: always severity: low status: fixed in develop type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
GameServerManagers/LinuxGSM#5191 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: install passes a leftover forcedl value instead of each server's force settingCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcommand: install info: steamcmd reproducible: unable severity: low status: fixed in develop type: bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 25/100
GameServerManagers/LinuxGSM#5189 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của GameServerManagers/LinuxGSM
Issue tương tự
-
Isha NarulaĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
dataplat/DataSpeakers#178 ·
-
[BUG] mo clean deletes Cypress test runner binaries in ~/Library/Caches/CypressCó thể đã có người làm @viniciusdsandrade đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Min. CMake job: CMAKE_POLICY_VERSION_MINIMUM is not passed for CMake 3.16 (follow-up to #358)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
enhancement security severity:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Battle-Cattle/BCUK-Bot-4#959 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
mattabate/life-distributable#153 ·
Maintainer thường phản hồi trong vòng 1 ngày