A failed `app_api:app:update` command can leave the ExApp stopped with no way to retry
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 42/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- PHP
- Étoiles
- 202
- Forks
- 30
- Merge moyen
- 3 j 20 h
- PR mergées (30 j)
- 24
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de nextcloud/app_api
-
bug docker
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Daemon delete dialog: "Remove all ExApps" checkbox and `removeExApps` parameter have no effectOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
Meta ex-app updates issueOuvertedeploy discussion
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
nextcloud/app_api#1236 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
deploy docker enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 Une demi-journée Accessibilité débutants 62/100
nextcloud/app_api#1212 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de nextcloud/app_api
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
enhancement priority: low
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
magicsunday/webtrees-statistics#664 ·
Les mainteneurs répondent en général sous 1 jour
-
sync-en
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
sync-en
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 2 jours
-
Перевод устарел
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour