Nextcloud v30.0.6~ynh3 can not be updated because it can't be backed up

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.1.14 (stable)
What app is this about: Nextcloud

Describe your issue

When updating Nextcloud from version 30.0.6~ynh3 to 31.0.8~ynh1, the update failed after attempting to create a backup for Nextcloud. I found the following error message in /var/log/yunohost/operations/20250822-064744-backup_create.log:
2025-08-22 08:47:45,408: INFO - Sammeln von Dateien, die für nextcloud gesichert werden sollen…
2025-08-22 08:47:45,435: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “/var/cache/yunohost/app_tmp_work_dirs/app_605al2ll/scripts/backup” 7>&1’]’
2025-08-22 08:47:45,473: DEBUG - illegal environment variable name
2025-08-22 08:47:45,478: ERROR - Failed to collect files to backed up for nextcloud.

My guess is, that it is the “7>&1” part in the execution line, where the trouble comes from. My question is (besides if ever anybody experienced similarities), how and where can I change this, so that the backup is possible again and also the update?
Hope to find a solution soon and thanks for any helpful hint in advance.

Cheers
Aldicek

Share relevant logs or error messages

2025-08-22 08:47:45,408: INFO - Sammeln von Dateien, die für nextcloud gesichert werden sollen…
2025-08-22 08:47:45,435: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “/var/cache/yunohost/app_tmp_work_dirs/app_605al2ll/scripts/backup” 7>&1’]’
2025-08-22 08:47:45,473: DEBUG - illegal environment variable name
2025-08-22 08:47:45,478: ERROR - Failed to collect files to backed up for nextcloud.

Wouldn’t it be the same issue as reported in Configuration panel not accessible for an app (nextcloud) after making a change - #3 by e-Jim ?

Well, reminding of the configuration panel, I have an issue there too.


Maybe all this is connected. Thanks for the tip.
The mystery for me is, that the Nextcloud application itself works like a charm, as far as I can tell.

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