Skip to content

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

Description

@dgibbs64

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.

Activity

  1. added this to the v26.5.0 milestone on Nov 1, 2026
  2. added a commit that references this issue on Nov 1, 2026
    0fb301a
  3. dgibbs64 commented on Nov 1, 2026

    @dgibbs64
    MemberAuthor

    Fixed in #5128, which will be in the next release.

  4. moved this from 🆕 New Issues to ✅ Done in LinuxGSM Backlogon Nov 1, 2026
  5. moved this from ✅ Done to 📋 Sentenced Issues in LinuxGSM Backlogon Nov 1, 2026
  6. moved this from 📋 Sentenced Issues to 👀 In Review in LinuxGSM Backlogon Nov 1, 2026
  7. moved this from 👀 In Review to ✅ Done in LinuxGSM Backlogon Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions