[Bug]: GoldSrc update or validate can uninstall the shared Half-Life content

未关闭
#5,161 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

已经有一个关联 PR 被合并了。

  • #5162 来自 @dgibbs64 —— 已合并

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
bash, linux, shell
领域
cli, devops

调研方向

Start by tracing the validate and update commands in the ahlserver scripts and how they invoke SteamCMD with AppID 90 and the steam_legacy branch. Compare that flow with the reported content_log.txt entries and shared AppID 70/10 files to locate how shared content is handled. Done means repeated update and validate runs leave the shared Half-Life content installed and the server starts and answers queries.

由索引模型根据 Issue 内容生成。

描述

distro: Ubuntu engine: goldsrc game: Action Half-Life info: docker info: steamcmd status: fixed in develop type: bug
Severity

High: the server starts but never loads a map or answers queries

Reproducibility

Sometimes

Regression

Unknown. Seen after switching ahlserver to the steam_legacy branch.

Affects latest release

Yes

User story

As a GoldSrc server owner, I want update and validate to leave the shared Half-Life content in place, so that the server keeps loading its map.

Script name

ahlserver (any server that uses AppID 90 can be affected)

Game

Action Half-Life

Linux distro

Ubuntu 26.04 (the gameserver:ahl docker image)

Command

validate, update

Expected behavior

After SteamCMD finishes, the shared content from AppID 70 (Half-Life) and AppID 10 (Counter-Strike) is still installed, and the server starts normally.

Actual behavior

SteamCMD sometimes decides the shared depots of AppID 70 and AppID 10 are no longer wanted for AppID 90 and uninstalls them, but it still reports success. serverfiles/valve shrinks from about 516 MB to under 10 MB, and valve/valve.rc (which holds stuffcmds) is deleted. Without it, +map never runs: the console stops after couldn't exec banned.cfg and the server never answers a query. Only steamapps/appmanifest_90.acf is left.

On a test server this happened twice: on the first update after the switch to steam_legacy, and again on a later validate, 22 minutes after a previous validate had restored the files. Seven attempts to reproduce it on fresh and copied installs did not trigger it, so it looks intermittent on the Steam side. A second validate restores the content.

Further information

+app_set_config 90 mod cstrike +app_update 90 -beta steam_legacy validate is the command LinuxGSM runs, which is correct.

Relevant log output

From content_log.txt:

AppID 70 config changed : removed depots 1,71
AppID 10 config changed : removed depots 11
AppID 10 starting commit ... : 0 updated, 0 moved, 1188 deleted files
AppID 70 starting commit ... : 0 updated, 0 moved, 4322 deleted files
AppID 10 finished uninstall (No Error)
AppID 70 finished uninstall (No Error)
Steps to reproduce
  1. Install ahlserver (branch steam_legacy).
  2. Run ./ahlserver validate or ./ahlserver update repeatedly.
  3. Sometimes steamapps/appmanifest_70.acf and valve/valve.rc disappear and the server stops answering queries.
主要语言
Shell
星标
4.9k
派生
870
平均合并
20 小时 11 分钟
30 天内合并 PR
135

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GameServerManagers/LinuxGSM 的其他 Issue

查看 GameServerManagers/LinuxGSM 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。