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

Đang mở
#5,127 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@dgibbs64 đang làm issue này rồi.

Từ ngày 1/11/2026.

  • #5128 của @dgibbs64 — đã merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Shell
Star
4.9k
Fork
871
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
133

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GameServerManagers/LinuxGSM

Tất cả issue của GameServerManagers/LinuxGSM

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.