feat(monitor): explain why a query failed (port not listening vs. no reply)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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 内容生成。
描述
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
queryportis 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
queryportand 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
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 68
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GameServerManagers/LinuxGSM 的其他 Issue
-
type: bug
难度 3/5 半天 新手友好度 42/100
GameServerManagers/LinuxGSM#5048 ·
维护者通常 1 天内回复
-
engine: unity3d engine: unreal4 Epic game: 7 Days to Die game: ARK: Survival Evolved game: Rust info: dependency type: feature
难度 5/5 一周以上 新手友好度 8/100
GameServerManagers/LinuxGSM#5047 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: libstdc++5:i386 is not available on Ubuntu 26.04 (cod, cod2, coduo, mohaa, bfv)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭distro: Ubuntu engine: idtech3 engine: iw2.0 engine: refractor game: Battlefield: Vietnam game: Call of Duty game: Call of Duty 2 game: Call of Duty: United Offensive game: Medal of Honor: Allied Assault info: dependency info: docker type: bug
难度 3/5 半天 新手友好度 42/100
GameServerManagers/LinuxGSM#5026 ·
维护者通常 1 天内回复
-
feat(core): report a clear error when the configured branch doesn't exist可能已有人在做 @dgibbs64 于 2 天前认领。 未关闭type: feature
难度 3/5 半天 新手友好度 45/100
GameServerManagers/LinuxGSM#4994 ·
维护者通常 1 天内回复
-
command: console distro: Debian info: website regression: yes reproducible: always severity: medium type: bug
难度 3/5 1-2 天 新手友好度 68/100
GameServerManagers/LinuxGSM#4962 · 2 条评论 ·
维护者通常 1 天内回复
查看 GameServerManagers/LinuxGSM 的全部 Issue
相似的 Issue
-
agent/quality help wanted origin/quality quality stage/010-actionable testing
难度 2/5 1-3 小时 新手友好度 75/100
hivecommons/hotshot#227 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 74/100
sleeyax/promptfiles#20 ·
-
Add Photocraft未关闭enhancement
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
-
bug
难度 2/5 1-3 小时 新手友好度 62/100