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:

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


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.