A failed `app_api:app:update` command can leave the ExApp stopped with no way to retry
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
調査の方向性
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時間
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 1週間以上 初心者へのやさしさ 20/100
nextcloud/app_api#1236 · リアクション 1 件 ·
メンテナーはふだん 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 日以内に返信