[Bug]: Checks that fail before the log directory exists exit with 0
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
Línea de trabajo
Empieza con check_system_dir.sh, check_executable.sh, core_steamcmd.sh y core_exit.sh; después, sigue el orden en que check.sh ejecuta estas comprobaciones antes de que check_logs.sh cree el directorio de registros. Confirma el código de salida de cada error notificado cuando no existe el directorio de registros, incluida una consulta fallida de la IP pública o una descarga fallida del módulo. La tarea estará completa cuando las comprobaciones devuelvan el estado distinto de cero esperado independientemente de si existe el directorio de registros.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Shell
- Estrellas
- 4.9k
- Forks
- 870
- Merge medio
- 18 h 44 min
- PR fusionados (30 d)
- 148
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de GameServerManagers/LinuxGSM
-
command: start engine: unreal4 game: The Front reproducible: always severity: medium type: bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
GameServerManagers/LinuxGSM#5185 ·
Los mantenedores suelen responder en 1 día
-
bug(ins): server fails to start, srcds_run has CRLF line endings and needs bashPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertodistro: Ubuntu engine: source game: Insurgency status: fixed in develop
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
GameServerManagers/LinuxGSM#5153 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: cs2server ignores the GSLT entered during installPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertocommand: install command: start distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: high type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
GameServerManagers/LinuxGSM#5106 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: A failed command exits with 0 when core_exit.sh is downloaded on exitPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertocommand: start distro: Debian engine: null game: Teamspeak 3 info: tmux reproducible: always severity: low status: fixed in develop type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
GameServerManagers/LinuxGSM#5191 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: install passes a leftover forcedl value instead of each server's force settingPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertocommand: install info: steamcmd reproducible: unable severity: low status: fixed in develop type: bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 25/100
GameServerManagers/LinuxGSM#5189 ·
Los mantenedores suelen responder en 1 día
Todos los issues de GameServerManagers/LinuxGSM
Issues similares
-
Isha NarulaAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
dataplat/DataSpeakers#178 ·
-
[BUG] mo clean deletes Cypress test runner binaries in ~/Library/Caches/CypressPosiblemente ocupada @viniciusdsandrade la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Min. CMake job: CMAKE_POLICY_VERSION_MINIMUM is not passed for CMake 3.16 (follow-up to #358)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
enhancement security severity:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Battle-Cattle/BCUK-Bot-4#959 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
mattabate/life-distributable#153 ·
Los mantenedores suelen responder en 1 día