Problem upgrade Nextcloud -- Cannot restore backup

What app is this about, and its version: update from Nextcloud v29 → v31
What YunoHost version are you running: 12.1.32
What type of hardware are you using: Raspberry Pi 3, 4+

Describe your issue

Hello,

I finally did the migration to bookworm and it got complicated but it finally worked. Then I wanted to update my Nextcloud which was running fine after the migration on version 29. I updated using the interface, but it failed (https://paste.yunohost.org/raw/esuwosixib)

I don’t understand the error, but, it’s probably because I tried to update from 29 to 31, skipping 30 (I thought it would update to 30 first and then to 31).

Worst is that now, no nextcloud app appear install from the webadmin…

So I want to restore the pre update backup with yunohost backup restore nextcloud-pre-upgrade1, but it failed during restoring the mySQL DB. See full log here : https://paste.yunohost.org/raw/woguzaxisa

Important part here :

Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/var/www/nextcloud /var/www/nextcloud
Info: DEBUG - + [[ /var/www/nextcloud == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]]
Info: INFO - [++..................] > Restoring the MySQL database...
Info: DEBUG - + ynh_mysql_connect_as --user=nextcloud --password=********** --database=nextcloud --default_character_set=utf8mb4
Info: DEBUG - + database=nextcloud
Info: DEBUG - + default_character_set=utf8mb4
Info: DEBUG - + '[' -n utf8mb4 ']'
Info: DEBUG - + default_character_set=--default-character-set=utf8mb4
Info: DEBUG - + mysql --user=nextcloud --password=********** --default-character-set=utf8mb4 --batch nextcloud
Info: WARNING - --------------
Info: WARNING - /*!50003 CREATE*/ /*!50017 DEFINER=`ncadmin`@`localhost`*/ /*!50003 TRIGGER memories_fcu_trg
Info: WARNING -                     AFTER UPDATE ON oc_filecache
Info: WARNING -                     FOR EACH ROW
Info: WARNING -                         UPDATE oc_memories
Info: WARNING -                         SET parent = NEW.parent
Info: WARNING -                         WHERE fileid = NEW.fileid */
Info: WARNING - --------------
Info: DEBUG -
Info: WARNING - ERROR 1227 (42000) at line 4499490: Access denied; you need (at least one of) the SUPER, SET USER privilege(s) for this operation
Info: DEBUG - + ynh_exit_properly

So, how can I fix this ? Thanks ! :pray:


Bonjour,

Après migration vers bookworm compliquée mais fonctionnelle, j’ai voulu mettre à jour nextcloud, qui fonctionnait ien après la migration en version 29. Je l’ai mis à jour via l’interface web, mais ça a échoué (https://paste.yunohost.org/raw/esuwosixib). Je ne comprends pas pourquoi, mais c’est probablement dû au fait que ça fait sauter une version (je pensais que ça mettrait à jour vers la version 30 puis 31, mais manifestement non.

Le pire, c’est que maintenante je n’ai plus du tout d’app nextcloud dans l’interface webadmin de ynh.

J’ai donc voulu restaurer le backup pré-update, avec yunohost backup restore nextcloud-pre-upgrade1, mais ça a échoué en restaurant la DB mySQL. Le log complet est là : https://paste.yunohost.org/raw/woguzaxisa

La partie importante est là :

Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/var/www/nextcloud /var/www/nextcloud
Info: DEBUG - + [[ /var/www/nextcloud == \/\e\t\c\/\n\g\i\n\x\/\c\o\n\f\.\d\/* ]]
Info: INFO - [++..................] > Restoring the MySQL database...
Info: DEBUG - + ynh_mysql_connect_as --user=nextcloud --password=********** --database=nextcloud --default_character_set=utf8mb4
Info: DEBUG - + database=nextcloud
Info: DEBUG - + default_character_set=utf8mb4
Info: DEBUG - + '[' -n utf8mb4 ']'
Info: DEBUG - + default_character_set=--default-character-set=utf8mb4
Info: DEBUG - + mysql --user=nextcloud --password=********** --default-character-set=utf8mb4 --batch nextcloud
Info: WARNING - --------------
Info: WARNING - /*!50003 CREATE*/ /*!50017 DEFINER=`ncadmin`@`localhost`*/ /*!50003 TRIGGER memories_fcu_trg
Info: WARNING -                     AFTER UPDATE ON oc_filecache
Info: WARNING -                     FOR EACH ROW
Info: WARNING -                         UPDATE oc_memories
Info: WARNING -                         SET parent = NEW.parent
Info: WARNING -                         WHERE fileid = NEW.fileid */
Info: WARNING - --------------
Info: DEBUG -
Info: WARNING - ERROR 1227 (42000) at line 4499490: Access denied; you need (at least one of) the SUPER, SET USER privilege(s) for this operation
Info: DEBUG - + ynh_exit_properly

Comment je peux régler ce problème ?

Merci ! :pray:

Share relevant logs or error messages

https://paste.yunohost.org/raw/woguzaxisa

Salut,

J’ai eu le même souci que toi, il y a quelques mois.

Je me suis connecté à la base de données de Nextcloud

mysql

Puis, (ma base de donnée s’appelle “nextcloud” :
MariaDB [(none)]> connect nextcloud;

Puis, j’ai vérifié que l’entrée ‘appstore’ était bien présente dans la table “oc_filecache” à l’aide de cette commande :

MariaDB [nextcloud]> SELECT * FROM oc_filecache WHERE name = 'appstore';

Ça devrait te donner un truc comme ça :

25-10-2025_17-42-18

J’ai supprimé la ligne avec cette commande :

DELETE FROM oc_filecache WHERE name = 'appstore';

En rechargeant la page de l’appstore de Nextcloud, ça m’a permis de recréer l’entrée et remettre à jour le fichier “apps.json” et j’ai pu retrouver mes applis.

Je ne sais pas si cela peut t’aider, mais voilà !

Merci pour la réponse.

ça me dit :

MariaDB [(none)]> connect nextcloud;
ERROR 1049 (42000): Unknown database 'nextcloud'

Mais j’imagine que c’est parce que à chaque échec, ça désinstalle nextcloud. Faudrait que je restore le backup manuellement je pense. Est-ce qu’il y a un protocole pour ça ?

Merci

Tu devrais restaurer la version qui fonctionnait de Nextcloud, puis, faire les mises à jour une à une (29, 30, 31…).

Ce que j’ai fait, c’est supprimer la dernière mise à jour :

yunohost app remove nextcloud

Puis, lancer la restauration de la version qui fonctionnait correctement.

Et télécharger le backup pre upgrade, en extraire la bdd, l’éditer à la main ou via phpmyadmin pour retirer les entrées problématiques (facile à dire;))? Puis la remettre dans le dossier compressé et le reimporter dans les archives (sous un autre nom).

Apparemment ce sont deux applications qui semblent poser problème: memories et recognize.

oui j’ai l’impression qu’il faut faire qqch comme ça, mais est-ce que vous savez comment retirer les entrées problématiques ? Je ne connais rien en sql.

Mais nextcloud est déjà pas installé :

Screenshot from 2025-10-25 18-39-23

Je vais regarder cela un peu plus tard et je te tiens au courant.

1 Like

Ok so I managed to get past the mysql problem.

  • I copied the nextcloud-pre-upgrade1.tar (from /home/yunohost.backup/archives) file in another directory and untar is : tar -x -f nextcloud-pre-upgrade1.tar
  • I found the db.sql which contains the offending command /*!50003 CREATE*/ /*!50017 DEFINER=ncadmin@localhost*/ /*!50003 TRIGGER memories_fcu_trg , and replace ncadmin with nextcloud
  • re tar what I untar : tar cvf nextcloud-pre-upgrade2.tar backup.csv info.json apps/
  • replace the old nextcloud-pre-upgrade1.tar with the new nextcloud-pre-upgrade2.tar
  • rerun yunohost backup restore nextcloud-pre-upgrade1, and tada :
Info: Preparing archive for restoration…
Info: Restoring nextcloud…
Info: Provisioning sources...
Info: Provisioning system_user...
Info: Provisioning install_dir...
Info: Provisioning data_dir...
Info: Provisioning permissions...
Info: Provisioning apt...
Info: Provisioning database...
Info: [....................] > Restoring the app main directory...
Info: [++..................] > Restoring the MySQL database...
Info: [##+++++++++++++.....] > Reconfiguring PHP-FPM...
Warning: grep: /etc/nginx/conf.d/server.tld.d/nextcloud.d: Is a directory
Info: [###############.....] > Restoring cron job...
Info: [###############.....] > Restoring the logrotate configuration...
Info: [###############+....] > Restoring data directory...
Info: [################+...] > Adding multimedia directories...
Info: [#################+..] > Restoring the Fail2Ban configuration...
Info: [##################+.] > Reloading NGINX web server...
Info: [####################] > Restoration completed for nextcloud
Success! Restoration completed
apps: 
  nextcloud: Success
system: 

So great. But then I got the error on the nextcloud page :

Your data directory is invalid Ensure there is a file called “.ocdata” in the root of the data directory.

Which is weird because this was never touched, unless during the update process something occurred there. In fact, I have .ncdata there. So I touch .ocdata in the root data dir (next to the .ncdata).

Now, the android and desktop app seem to work, but the web interface is still broken with this message :

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

The log saying (for instance)

{"reqId":"xPvyHAbcRbpUOp6obZ1f","level":0,"time":"2025-10-25T22:38:35+00:00","remoteAddr":"192.168.0.254","user":"Jean","app":"no app in context","method":"GET","url":"/apps/files/","message":"The loading of lazy AppConfig values have been requested","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0","version":"29.0.7.1","exception":{"Exception":"RuntimeException","Message":"ignorable exception","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1208,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":127,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AllConfig.php","line":196,"function":"getKeys","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":133,"function":"getAppKeys","class":"OC\\AllConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":74,"function":"getServersConfig","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":133,"function":"getServerConfigurationPrefixes","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":45,"function":"OCA\\User_LDAP\\AppInfo\\{closure}","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":50,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":124,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":200,"function":"boot","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":437,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":216,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":128,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1030,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppConfig.php","Line":1222,"message":"The loading of lazy AppConfig values have been requested","exception":{},"CustomMessage":"The loading of lazy AppConfig values have been requested"}}
{"reqId":"xPvyHAbcRbpUOp6obZ1f","level":3,"time":"2025-10-25T22:38:36+00:00","remoteAddr":"192.168.0.254","user":"Jean","app":"PHP","method":"GET","url":"/apps/files/","message":"file_get_contents(/home/yunohost.app/nextcloud/data/appdata_ocwp3tigdy6a/js/core/merged-template-prepend.js.deps): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#331","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0","version":"29.0.7.1","data":{"app":"PHP"}}
{"reqId":"xPvyHAbcRbpUOp6obZ1f","level":3,"time":"2025-10-25T22:38:36+00:00","remoteAddr":"192.168.0.254","user":"Jean","app":"index","method":"GET","url":"/apps/files/","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0","version":"29.0.7.1","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSCombiner.php","line":118,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSCombiner.php","line":93,"function":"isCached","class":"OC\\Template\\JSCombiner","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSResourceLocator.php","line":132,"function":"process","class":"OC\\Template\\JSCombiner","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSResourceLocator.php","line":91,"function":"cacheAndAppendCombineJsonIfExist","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/ResourceLocator.php","line":73,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":403,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":247,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":145,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":183,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1058,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"xPvyHAbcRbpUOp6obZ1f","level":3,"time":"2025-10-25T22:38:36+00:00","remoteAddr":"192.168.0.254","user":"Jean","app":"jsresourceloader","method":"GET","url":"/apps/files/","message":"Could not find resource text/js/.js to load","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0","version":"29.0.7.1","data":{"app":"jsresourceloader"}}
{"reqId":"xPvyHAbcRbpUOp6obZ1f","level":3,"time":"2025-10-25T22:38:36+00:00","remoteAddr":"192.168.0.254","user":"Jean","app":"PHP","method":"GET","url":"/apps/files/","message":"file_get_contents(/home/yunohost.app/nextcloud/data/appdata_ocwp3tigdy6a/js/core/merged-template-prepend.js.deps): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#331","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0","version":"29.0.7.1","data":{"app":"PHP"}}
{"reqId":"xPvyHAbcRbpUOp6obZ1f","level":3,"time":"2025-10-25T22:38:36+00:00","remoteAddr":"192.168.0.254","user":"Jean","app":"core","method":"GET","url":"/apps/files/","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0","version":"29.0.7.1","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSCombiner.php","line":118,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSCombiner.php","line":93,"function":"isCached","class":"OC\\Template\\JSCombiner","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSResourceLocator.php","line":132,"function":"process","class":"OC\\Template\\JSCombiner","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSResourceLocator.php","line":91,"function":"cacheAndAppendCombineJsonIfExist","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/ResourceLocator.php","line":73,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":403,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":247,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":145,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":183,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":331,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1058,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}
{"reqId":"xPvyHAbcRbpUOp6obZ1f","level":3,"time":"2025-10-25T22:38:36+00:00","remoteAddr":"192.168.0.254","user":"Jean","app":"core","method":"GET","url":"/apps/files/","message":"Exception thrown: OCP\\Files\\GenericFileException","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0","version":"29.0.7.1","exception":{"Exception":"OCP\\Files\\GenericFileException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":74,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSCombiner.php","line":118,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSCombiner.php","line":93,"function":"isCached","class":"OC\\Template\\JSCombiner","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSResourceLocator.php","line":132,"function":"process","class":"OC\\Template\\JSCombiner","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSResourceLocator.php","line":91,"function":"cacheAndAppendCombineJsonIfExist","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/ResourceLocator.php","line":73,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":403,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":247,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":145,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":320,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/index.php","line":114,"function":"printExceptionErrorPage","class":"OC_Template","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/File.php","Line":56,"CustomMessage":"Exception thrown: OCP\\Files\\GenericFileException"}}

Don’t know if you need more log or another log though. But I’m a bit stuck again :frowning:

Ok so I fixed this latter error by opening a shell as a nextcloud user : yunohost app shell nextcloud
And then I ran :
php occ maintenance:repair

And it worked !

The remaining problem is : how can I update the nextcloud !

I’m planning to :

  1. Update all the app
  2. Update to version 30 first in command line, and the to version 31.

If you have any other advices, I’d be happy to take them ! :slight_smile:

1 Like

:+1: Félicitations et content que ça ait marché !
Maintenant tu peux te faire une sauvegarde 100% fiable en cas de besoin de restauration.
Je supprimerais l’app recognize et je tenterais l’upgrade “normale”. C’est cette app qui a fait planter la première tentative.

oui mais tu penses pas que c’est parce qu’il faut mettre à jour l’app sur la version 30 avant de passer en 31 ?

Bon de toute façon, je trouve pas (encore) comment updater à la version 30 plutôt que 31.

Mais t’as raison, je vais quand mm creuser autour de cette app. Tu la supprimerais ou tu la désactiverais ?

Dans ton log n°1, tout se passait normalement dans la mise à jour vers 31 jusqu’au traitement de cette app.

Je la supprimerais pour la réinstaller ensuite. Elle contient des données essentielles ?
[edit] c’est peu être un peu radical: peut-être commencer par l’upgrader, puis la désactiver… du moment que tu peux compter sur un backup fiable en cas de pépin.

En fait c’est bizarre, dans le log, ça dit qu’il désactive recognize, et ça plante au moment où il met à jour text (il n’y a pas de Updated <text> to x.x.x)

2025-10-24 16:43:51,146: DEBUG - Setting log level to debug
2025-10-24 16:43:51,153: DEBUG - Turned on maintenance mode
2025-10-24 16:43:52,501: DEBUG - Updating database schema
2025-10-24 16:44:04,850: DEBUG - Updated database
2025-10-24 16:44:04,883: DEBUG - Disabled incompatible app: deck
2025-10-24 16:44:04,888: DEBUG - Disabled incompatible app: htmlviewer
2025-10-24 16:44:04,891: DEBUG - Disabled incompatible app: impersonate
2025-10-24 16:44:04,900: DEBUG - Disabled incompatible app: recognize
2025-10-24 16:44:04,905: DEBUG - Disabled incompatible app: workflow_script
2025-10-24 16:44:04,908: DEBUG - Updating <federation> ...
2025-10-24 16:44:04,943: DEBUG - Updated <federation> to 1.21.0
[...]
2025-10-24 16:44:33,752: DEBUG - Updating <survey_client> ...
2025-10-24 16:44:33,770: DEBUG - Updated <survey_client> to 3.0.0
2025-10-24 16:44:33,772: DEBUG - Updating <text> ...
2025-10-24 16:44:38,134: DEBUG - 
2025-10-24 16:44:38,135: DEBUG - + '[' 255 -eq 3 ']'
2025-10-24 16:44:38,136: DEBUG - 
2025-10-24 16:44:38,138: DEBUG - + ynh_die 'Unable to upgrade nextcloud'
2025-10-24 16:44:38,139: DEBUG - 
2025-10-24 16:44:38,142: DEBUG - 
2025-10-24 16:44:38,143: WARNING - PHP Fatal error:  Declaration of OCA\Recognize\Service\Logger::emergency($message, array $context = []) must be compatible with Psr\Log\LoggerInterface::emergency(Stringable|string $message, array $context = []): void in /var/www/nextcloud/apps/recognize/lib/Service/Logger.php on line 34
2025-10-24 16:44:38,260: WARNING - Unable to upgrade nextcloud
2025-10-24 16:44:38,868: ERROR - Failed to upgrade nextcloud: An error occurred inside the app upgrade script : Unable to upgrade nextcloud

Et ce 255 qui n’est pas égale à 3 me semble mystérieux aussi.

ça ressemble au retour PHP pour une erreur fatale.

1 Like

Tu dois basculer d’une version de php à une autre et il ne reconnaît pas un schéma.

Je supprimerais recognize

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