Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#4,995 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
linux, shell
領域
devops

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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).

主要言語
Shell
スター
4.9k
フォーク
870
平均マージ
14時間 50分
マージ済み PR(30日)
109

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GameServerManagers/LinuxGSM のほかの issue

GameServerManagers/LinuxGSM の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。