A failed `app_api:app:update` command can leave the ExApp stopped with no way to retry
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with lib/Command/ExApp/Update.php, especially the update sequence around lines 166–203 linked in the report. Trace how image pulling, container replacement, heartbeat checks, and metadata writes are handled, then check the Kubernetes path because the issue says its update flow may differ. Done means a failed update leaves the old ExApp usable and retryable, while a successful update commits the new metadata and removes the old container.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
The command disables and stops the app, replaces its routes and translations, and writes the new version to the database. It only pulls and deploys the new image after all of that:
https://github.com/nextcloud/app_api/blob/634729d75dbca75a76dada69962e5bf99154a149/lib/Command/ExApp/Update.php#L166-L203
This results in the ex-app being down for the time the image is downloaded, and if the pull fails, the metadata is already lost, and the previous ex-app is left disabled.
The ex-app cannot be updated now since the metadata says it's already updated. The only way to update it is to unregister+register it.
A possible order:
- Pull the new image first, before touching the running app.
- Stop the old container and rename it instead of removing it, then start the new one.
- Only after the heartbeat passes, write the version, routes and translations and remove the old container.
- If any step fails, restore the old container.
For kubernetes things could look different, I'm not sure.
Steps/Code to Reproduce
/
Expected Results
/
Actual Results
/
Setup configuration
app_api = 36.0.0-dev.0
nextcloud = 36.0.0
- 主要语言
- PHP
- 星标
- 202
- 派生
- 30
- 平均合并
- 3 天 20 小时
- 30 天内合并 PR
- 24
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/app_api 的其他 Issue
-
bug docker
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
deploy discussion
难度 5/5 一周以上 新手友好度 20/100
nextcloud/app_api#1236 · 1 个 reaction ·
维护者通常 1 天内回复
-
deploy docker enhancement
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 62/100
nextcloud/app_api#1212 · 1 条评论 ·
维护者通常 1 天内回复
查看 nextcloud/app_api 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
enhancement priority: low
难度 2/5 1-3 小时 新手友好度 82/100
magicsunday/webtrees-statistics#664 ·
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
Перевод устарел
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复