[Bug]: gamedig npm calls hang when the npm registry does not answer

Abierto
#5,127 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@dgibbs64 ya está trabajando en esto.

Desde el 1/11/2026.

  • #5128 de @dgibbs64 — fusionado

Evaluación

Este issue todavía no se ha evaluado.

Descripción

distro: Ubuntu info: docker info: query status: fixed in develop type: bug
Bug description

check_gamedig.sh runs npm install when gamedig is missing, and npm update > /dev/null 2>&1 on every monitor, start, stop, restart, details, update, validate and postdetails when it is present. When the npm registry accepts connections but does not answer, both calls wait. The npm update output is hidden, so a cron monitor just stalls with nothing on screen or in the log.

On a clean ubuntu-26.04 container with gamedig installed and the registry pointed at a listener that accepts connections and never answers (90 s limit):

Command Result
npm install timed out
npm install --no-audit done in 0 s
npm update timed out
npm update --no-audit timed out

npm install only waits on its audit request. npm update also waits on the version lookups it needs, so --no-audit alone does not help it. npm's defaults allow 5 minutes per request with 2 retries.

The same problem in the container entrypoint was fixed in GameServerManagers/docker-linuxgsm#113.

Steps to reproduce
  1. Install any server with Node.js 16+ so gamedig is installed.
  2. Make the npm registry accept connections but not answer.
  3. Run ./<server> monitor.
Expected behaviour

The gamedig check finishes quickly or gives up within a short time, and the command carries on.

Lenguaje dominante
Shell
Estrellas
4.9k
Forks
871
Merge medio
1 d 6 h
PR fusionados (30 d)
138

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.