Error updating Next Cloud, certificate issue

When updating the Next Cloud with the command:
sudo -u www-data php /var/www/nextcloud/updater/updater.for --no-interaction
I get the error:

[✘] Check for expected files failed
The following extra files have been found:
certificate.crt

Update failed. To resume or retry just execute the updater again.
Here are all the certificates that are used in my NextCloud:

/var/www/nextcloud-data/updater-oc0rho9614d4/backups/nextcloud-24.0.8.2-1671441558/apps/nextcloud_announcements/appinfo/certificate.crt
/var/www/nextcloud-data/updater-oc0rho9614d4/backups/nextcloud-28.0.2.5-1709276060/apps/nextcloud_announcements/appinfo/certificate.crt
/var/www/nextcloud-data/updater-oc0rho9614d4/backups/nextcloud-25.0.9.2-1691725297/apps/nextcloud_announcements/appinfo/certificate.crt
/var/www/nextcloud/certificate.crt
/var/www/nextcloud/apps/nextcloud_announcements/appinfo/certificate.crt

I solved the problem by searching for the certificate and deleting it from the found directories.
Here’s how to do it:

sudo find /var/www/nextcloud-data/ -name "certificate.crt" -type f -delete
sudo find /var/www/nextcloud/ -name "certificate.crt" -type f -delete

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