"Check for expected files" error during upgrade 17.0.2 to 17.0.3

Nextcloud version : 17.0.2
Operating system and version : #1 SMP Debian 4.19.98-1 (2020-01-26)
PHP version : 7.3.11-1~deb10u1

Hi all,

I tried to upgrade my nextcloud instance then I had this error:

all my nextcloud folder is detained by www-data user, into the www-data group:
And I gave to ‘storage’ folder all the right I can :slight_smile:

storage folder is an external storage correctly attached to var/www/nextcloud/storage/

I tried:

  • chown -R www-data:www-data nextcloud/ if I had forget some extra folders/files (so all the content of /storage is correctly owned by www-data)
  • sudo -u www-data php occ upgrade
  • reboot (To update without the device mounted, but it didn’t worked)

Thanks for your help,

You should never add any additional folders to the Nextcloud document root. Move the “storage” folder a directory outside of the document root and the problem should be solved.

1 Like

It is not complaining about no access.
It is complaining about “there is something I don’t know”
So is storage your data directory or something special?
If not connected with content (unmount external storage) remove before upgrade - else move the directory, upgrade, move directory back

1 Like

Thanks, I didn’t know that I must not add my external storage here. It works perfectly now :slight_smile: