Update to Nextcloud 21.0.9 (Create backup stage failed)

During update I got this error:

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[:heavy_check_mark:] Check for expected files
[:heavy_check_mark:] Check for write permissions
[✘] Create backup failed
RecursiveDirectoryIterator::__construct(/cloud-disk/nextcloud/updater/…/data/lost+found): failed to open dir: Permission denied

Update failed. To resume or retry just execute the updater again.

image

You didn’t show the permissions for that. For the lost+find folder:

Thanks a lot for your help.

root@cloud2:/# ls -ltrh /cloud-disk/nextcloud/data/ | grep lost+found
drwx------ 2 root root 4.0K Sep 16 2021 lost+found

Resolved via this :
root@cloud2:/# chown www-data:www-data /cloud-disk/nextcloud/data/lost+found