What app is this about, and its version: Nextcloud 34.0.2-ynh1
What YunoHost version are you running: 12.1.40.1
What type of hardware are you using: VPS bought online
Describe your issue
Hi all,
I tried to update Nextcloud to the lastest version 34.0.2 from 34.0.1 and the upgrade failed. But the main issue is that the existing version is no more running and I can’t restore the backup file (error 500 in both cases).
Thanks a lot for your help !
Share relevant logs or error messages
I can’t use paste.yunohost yet so here is only an extract of the restore logs (because I really need to get an operationnal Nextcloud)
ended_at: 2026-07-24 06:22:19.165796
env:
BASH_XTRACEFD: ‘7’
YNH_APP_ACTION: restore
YNH_APP_BACKUP_DIR: /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup
YNH_APP_BASEDIR: /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/settings
YNH_APP_ID: nextcloud
YNH_APP_INSTANCE_NAME: nextcloud
YNH_APP_INSTANCE_NUMBER: ‘1’
YNH_APP_MANIFEST_VERSION: 34.0.1~ynh1
YNH_APP_PACKAGING_FORMAT: ‘2.0’
YNH_ARCH: amd64
YNH_BACKUP_CSV: /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/backup.csv
YNH_BACKUP_DIR: /home/yunohost.backup/tmp/nextcloud-pre-upgrade2
YNH_CWD: /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup
YNH_DEBIAN_VERSION: bookworm
YNH_DEFAULT_PHP_VERSION: ‘8.2’
YNH_HELPERS_VERSION: ‘2.1’
YNH_INTERFACE: api
YNH_STDRETURN: /tmp/tmp8hd_1yat/stdreturn
error: An error occured inside the app restore script
interface: api
operation: backup_restore_app
parent: null
related_to:
-
- app
- nextcloud
started_at: 2026-07-24 06:21:25.483195
started_by: ******
success: false
yunohost_version: 12.1.40.1
============
2026-07-24 06:21:26,528: INFO - Restoring nextcloud…
2026-07-24 06:21:26,552: DEBUG - Loading migration 0032_firewall_config…
2026-07-24 06:21:26,552: DEBUG - Loading migration 0031_terms_of_services…
2026-07-24 06:21:26,552: DEBUG - Loading migration 0028_delete_legacy_xmpp_permission…
2026-07-24 06:21:26,553: DEBUG - Loading migration 0033_rework_permission_infos…
2026-07-24 06:21:26,553: DEBUG - Loading migration 0030_rebuild_python_venv_in_bookworm…
2026-07-24 06:21:26,553: DEBUG - Loading migration 0027_migrate_to_bookworm…
2026-07-24 06:21:26,553: DEBUG - Loading migration 0034_fix_missing_admins_aliases…
2026-07-24 06:21:26,553: DEBUG - Loading migration 0035_fix_apps_nodejs_version…
2026-07-24 06:21:26,554: DEBUG - Loading migration 0029_postgresql_13_to_15…
2026-07-24 06:21:26,673: DEBUG - Restoring the app ‘nextcloud’…
2026-07-24 06:21:26,763: INFO - Provisioning sources…
2026-07-24 06:21:26,764: INFO - Provisioning system_user…
2026-07-24 06:21:27,730: INFO - Provisioning install_dir…
2026-07-24 06:21:27,762: INFO - Provisioning data_dir…
2026-07-24 06:21:27,784: INFO - Provisioning permissions…
2026-07-24 06:21:27,798: DEBUG - Permission ‘nextcloud.main’ updated
2026-07-24 06:21:27,805: DEBUG - Permission ‘nextcloud.main’ updated
2026-07-24 06:21:27,825: DEBUG - Permission ‘nextcloud.api’ updated
2026-07-24 06:21:27,847: DEBUG - Permission ‘nextcloud.api’ updated
2026-07-24 06:21:27,929: DEBUG - Creating LDAP perm nextcloud.api
2026-07-24 06:21:27,935: DEBUG - Creating LDAP perm nextcloud.main
2026-07-24 06:21:27,961: DEBUG - Permissions were resynchronized to LDAP
2026-07-24 06:21:28,022: DEBUG - Formating result in ‘export’ mode
2026-07-24 06:21:28,027: DEBUG - SSO and portal configurations regenerated
2026-07-24 06:21:28,027: INFO - Provisioning ports…
2026-07-24 06:21:28,038: INFO - Provisioning apt…
2026-07-24 06:21:28,058: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./provision_or_update_apt” 7>&1’]’
(…)
2026-07-24 06:22:14,116: DEBUG - + default_character_set=()
2026-07-24 06:22:14,117: DEBUG - + [[ -n nextcloud ]]
2026-07-24 06:22:14,117: DEBUG - + default_character_set=(–default-character-set “$(mysql -B “$database” <<< ‘show variables like “character_set_database”;’ | tail -n1 | cut -f2)”)
2026-07-24 06:22:14,118: DEBUG - ++ cut -f2
2026-07-24 06:22:14,118: DEBUG - ++ mysql -B nextcloud
2026-07-24 06:22:14,119: DEBUG - ++ tail -n1
2026-07-24 06:22:14,131: DEBUG - + mysql --default-character-set utf8mb4 -B nextcloud
2026-07-24 06:22:18,539: WARNING - --------------
2026-07-24 06:22:18,540: WARNING - INSERT INTO oc_reactions VALUES
2026-07-24 06:22:18,542: WARNING - (1,150,151,‘guests’,‘sample’,‘?’),
2026-07-24 06:22:18,543: WARNING - (2,150,152,‘guests’,‘sample’,‘?’),
2026-07-24 06:22:18,543: WARNING - (3,219,220,‘guests’,‘sample’,‘?’),
2026-07-24 06:22:18,546: WARNING - (4,219,221,‘guests’,‘sample’,‘?’),
2026-07-24 06:22:18,548: DEBUG - + ynh_exit_properly
2026-07-24 06:22:18,548: WARNING - (5,289,290,‘guests’,‘sample’,‘?’),
2026-07-24 06:22:18,550: WARNING - (6,289,291,‘guests’,‘sample’,‘?’),
2026-07-24 06:22:18,551: DEBUG - + [[ restore =~ ^install$|^upgrade$|^restore$ ]]
2026-07-24 06:22:18,551: WARNING - (7,308,309,‘guests’,‘sample’,‘?’),
2026-07-24 06:22:18,552: WARNING - (8,308,310,‘guests’,‘sample’,‘?’),
2026-07-24 06:22:18,553: WARNING - (9,323,324,‘guests’,‘sample’,‘?’),
2026-07-24 06:22:18,554: WARNING - (10,323,325,‘guests’,‘sample’,‘?’)
2026-07-24 06:22:18,556: WARNING - --------------
2026-07-24 06:22:18,557: DEBUG -
2026-07-24 06:22:18,558: WARNING - ERROR 1180 (HY000) at line 189461: Got error 1 “Operation not permitted” during COMMIT
2026-07-24 06:22:19,164: ERROR - Could not restore nextcloud: An error occured inside the app restore script
