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

Aperta
#5,127 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dgibbs64 ci sta già lavorando.

Dal 1/11/2026.

  • #5128 di @dgibbs64 — integrata

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Shell
Stelle
4.9k
Fork
871
Merge medio
1g 7h
PR unite (30g)
133

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GameServerManagers/LinuxGSM

Tutte le issue di GameServerManagers/LinuxGSM

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.