[Bug]: Update leaves old files behind (Gameserver detects mismatch)

已关闭
#4,920 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

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

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

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
shell
领域
cli, devops

调研方向

从 vintsserver update 命令开始,重现从 Vintage Story 1.22.1 升级到 1.22.2 的过程。检查如何处理 serverfiles/assets 中的文件,然后验证旧版本标记已被移除、新标记仍然存在,并且启动时不再在 console.log 中报告不匹配的文件。

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

描述

command: update distro: Ubuntu engine: vintagestory game: Vintage Story regression: yes reproducible: always severity: low type: bug
Severity

severity: low

Reproducibility

reproducible: always

Regression

regression: yes

Affects latest release

latest-release: yes

User story

As the updates are automated a check for left behind files should be implemented (or the whole serverfiles except for "data" removed).

Script name

vintsserver

Game

Vintage Story

Linux distro

Ubuntu 24.04

Command

command: update

Expected behavior

The server applies updates as expected to the newest version without errors.

Actual behavior

The update script leaves files from the old version behind which causes errors.

Further information

The server files (http://api.vintagestory.at/stable-unstable.json) include a specific empty "version-.txt" file. The name differs per version and won't be removed in case of an update via LinuxGSM.
At startup the Vintage Story Server checks for mismatched files and refuses to start.

Manual fix: Cleanup (rm version-.txt) and server restart

Pre-checks
  • I ran update and validate before reporting this issue.
Relevant log output
Manual download and diff:
diff -rq vs_server_linux-x64_1.22.1 vs_server_linux-x64_1.22.2 | grep "Only in"
Only in vs_server_linux-x64_1.22.1/assets: version-1.22.1.txt
Only in vs_server_linux-x64_1.22.2/assets: version-1.22.2.txt


[Server Error] Your Server installation still contains old files from a previous game version, which may break things. Please fully delete the /assets folder and then do a full reinstallation. Shutting down server.


ls serverfiles/assets/
creative  game  gameicon.ico  survival  version-1.22.1.txt  version-1.22.2.txt

LinuxGSM version:  v26.1.0
Steps to reproduce
  1. Install an older version (e.g. 1.22.1)
  2. Update to the newest version
  3. Start the server
  4. Check the console.log ("Your Server installation still contains old files")
  5. Check the serverfiles/assets directory for duplicate version files (version-1.22.1.txt version-1.22.2.txt)
主要语言
Shell
星标
4.9k
派生
871
平均合并
1 天 6 小时
30 天内合并 PR
138

环境准备

在 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 摘要。