Fail to upgrade nextcloud

Hallo.

I’ve tried to upgrade Nextcloud App, as the description:
current_version: 15.0.11~ynh1
id: nextcloud
label: Nextcloud
new_version: 15.0.12~ynh1

however, the upgrade failed with these warnings:

Blockquote
Info: Atualizando aplicação nextcloud…
Info: […] > Loading installation settings…
Info: [+…] > Ensuring downward compatibility…
Info: [#+++++++…] > Backing up the app before upgrading (may take a while)…
Aviso: 1363 O nome do arquivo de backup já existe (the backup file name already exists)
Aviso: Backup failed, the upgrade process was aborted.
Erro: Não foi possível atualizar nextcloud
Info: The operation ‘Upgrade ‘nextcloud’ application’ has failed! To get help, please share the full log of this operation using the command ‘yunohost log display 20191106-022628-app_upgrade-nextcloud --share’

This is the log: https://paste.yunohost.org/raw/gaweyekabu

What should I do to fix this?

Bonjour,
On dirait bien que cela provient de cette ligne, en effet :

2019-11-05 23:26:37,009: WARNING - 1363 O nome do arquivo de backup já existe

Peut-être, regarder dans les backups CORE_ONLY Nextcloud

old_backup_number=1
2019-11-05 23:26:35,497: DEBUG - + sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps nextcloud --name nextcloud-pre-upgrade2 --debug

les renommer et relancer l’ upgrade ?

Traduction anglaise deepl.com

Hello,
It looks like it comes from this line, indeed:

2019-11-05 23:26:37,009: WARNING - 1363 O nome do arquivo de backup já existe

Maybe, look in the CORE_ONLY Nextcloud backups

old_backup_number=1
2019-11-05 23:26:35,497: DEBUG - + sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps nextcloud --name nextcloud-pre-upgrade2 --debug

rename them and restart the upgrade?

Merci pour votre aide ! J’ai pu résoudre le problème en exécutant la commande <sudo yunohost backup delete …> pour supprimer les anciennes sauvegardes du système, puis en exécutant la commande <sudo yunohost tools upgrade --apps>. Finalement, tout s’est arrangé.

Obrigado pela ajuda! Consegui resolver o problema correndo o comando <sudo yunohost backup delete …> para apagar os backups antigos do sistema, para a seguir, correr o comando <sudo yunohost tools upgrade --apps>. Por fim, deu tudo certo.

Thanks for your help! I was able to solve the problem by running the <sudo yunohost backup delete …> command to delete the old system backups, then running the <sudo yunohost tools upgrade --apps> command. Finally, everything worked well.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.