Nextcloud Update Fails with Error: "500"

Hardware: YNH Running on my server at home
YunoHost version: 11.2.3

Trying to update Nextcloud from 25.0.6~ynh1 to 27.0.1~ynh1

When I run the upgrade it fails with the following:

Full Logs here: https://removed

Can someone point me in a direction? I’ve never had any problem with updates.


1 Like

This is actually good to see. I’m brand new to Yunohost and have tried installing Nextcloud a few times but am receiving the same error and message on the logs. I was convinced it was something I was doing wrong.

Edit: ah, thanks to the commenter below, I see where mine is breaking and it is indeed a different issue. Onward!


This is what causes the update to fail
2023-08-01 21:36:59,288: DEBUG - App “Mail” cannot be installed because it is not compatible with this version of the server.

You need to deactivate the mail app in nextcloud, perform the update, then reactivate it.

1 Like

Worked perfectly. I didn’t think to check for updates within Nextcloud before upgrading. Thank you!

I have the same problem, but don’t have app mail installed in nextcloud, what could it be?
Actually I get something in the logs that i don’t understand what’s the problem:

2023-08-02 15:36:57,230: DEBUG - 1406 processing action [387166.1]: yunohost.backup.create with args={'name': 'nextcloud-pre-upgrade2', 'description': None, 'output_directory': None, 'methods': None, 'system': None, 'apps': ['nextcloud'], 'dry_run': False}
2023-08-02 15:36:57,280: DEBUG - 1457 action [387166.1] executed in 0.050s
2023-08-02 15:36:57,281: WARNING - 1457 A backup archive with this name already exists.
2023-08-02 15:36:57,441: DEBUG - + ynh_die '--message=Backup failed, the upgrade process was aborted.'

But then I tried creating a backup from terminal and I get:

# yunohost backup create --apps nextcloud
Info: Collecting files to be backed up for nextcloud...
Info: Loading installation settings...
Info: Declaring files to be backed up...
Info: Backing up the MySQL database...
Info: Backing up data directory...
Info: Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).
Info: Creating a backup archive from the collected files...
Info: The archive will contain about 25.1GB of data.
Error: Could not add the files '/var/www/nextcloud' (named in the archive 'apps/nextcloud/backup/var/www/nextcloud') to be backed up into the compressed archive '/home/yunohost.backup/archives/20230802-144008.tar'
Info: The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20230802-144008-backup_create' to get help
Error: Could not create the backup archive

Please help

Please share the full log of this operation using the command 'yunohost log share 20230802-144008-backup_create to get help

Try to delete the existing Nextcloud backup before launching this update.

Already tried that, nothing changed.

here is the full log:

Can you check disk storage space with a df -hT

$ df -hT
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/root      ext4      918G   77G  804G   9% /
devtmpfs       devtmpfs  3.6G     0  3.6G   0% /dev
tmpfs          tmpfs     3.9G  128K  3.9G   1% /dev/shm
tmpfs          tmpfs     1.6G  984K  1.6G   1% /run
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
/dev/sdb       ext4      113G   56G   52G  52% /mnt/hdd
/dev/sda1      vfat      255M   31M  225M  13% /boot
tmpfs          tmpfs     782M     0  782M   0% /run/user/1007

I thought the problem was related to disk space, due to the message

Error: Could not add the files '/var/www/nextcloud' (named in the archive 'apps/nextcloud/backup/var/www/nextcloud')

I have still plenty of disk space…not sure what’s the problem in that line either.

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