Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

feat(monitor): explain why a query failed (port not listening vs. no reply)

Abierto
#4,995 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
linux, shell
Área
devops

Línea de trabajo

The monitor query path lives in the LinuxGSM shell modules under lgsm/modules, where the failed-query restart and the fn_script_log_* logging helpers are called. Read the monitor code first, then check how ss output could be parsed for the listening port. Done when a failed query logs one of the two hints, to both the screen and the script log, covering both the not-listening and in-use cases.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

command: monitor type: feature

Problem

When a monitor query fails, the log only says the query failed and the server is restarted. Admins can't tell why. Common causes include:

  • The server never opened the query port (it didn't finish booting, or another program already holds a port it needs).
  • Something is listening on the port but doesn't answer the query, for example because queryport is wrong or the query type/protocol doesn't match.

Proposal

After a failed query attempt, check the port with ss and log a hint:

  • Port not in use: the server isn't listening on queryport. Check the console, port settings and port conflicts.
  • Port in use: name the process listening on it. If the query got no reply, suggest checking queryport and the query mode/type.

Hints should go to the script log (fn_script_log_*) as well as the screen, so they appear in the monitor log.

Originally proposed by @jusito in #4155 (closed, written against the pre-lgsm/modules monitor).

Lenguaje dominante
Shell
Estrellas
4.9k
Forks
870
Merge medio
14 h 50 min
PR fusionados (30 d)
109

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de GameServerManagers/LinuxGSM

Todos los issues de GameServerManagers/LinuxGSM

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.