NextCloud 12.0.1 upgrade. This is crazy

This is getting crazy. I’ve been updating Nextcloud with no issues now updating to NextCloud 12.0.1 all the sudden all HELL breaks loose. Nothing has changed on my server and now I have a disaster on my hands.

  1. Running the Update I first got the assets folder issue. It’s always been there! so all the sudden I have to delete it?

Well got past first issue now I have a freaking permissions issues. WTF is going on?

Check for write permissions
The following places can not be written to:

Haven’t changed anything since the last time I updated NextCloud. Now all the sudden this crap!

Now how do I fix this? Since I haven’t changed anything???

Hi @rickinfl

Be cool! :wink: I don’t see a disaster here.
Obviously the file don’t have write permissions.

Please run the follow commands and adapt them to your environment (in this example I’m assuming you use apache and run the process with user www-data):

chown -R www-data:www-data /var/www/nextcloud
find /var/www/nextcloud/ -type f -print0 | xargs -0 chmod 0640
find /var/www/nextcloud/ -type d -print0 | xargs -0 chmod 0750 

After that retry the update.

Earlier the Hardening and Security Guidance ( contained tips to restrict access to the Nextcloud files. This was no longer applicable however and was removed from the guide. Maybe you followed it in the past.
Possible is also that the commands to restrict access is placed in a cron job. This could be a reason why access is restricted even though you didn’t make any changes after the last update.
Please check that to avoid the same problem to occur in the future again.

1 Like

Oops, I think you meant

chown -R www-data:www-data /var/www/nextcloud
1 Like

Oh, thank you! Yeah, you’re absolutely right :smiley:
I changed it in my post.

1 Like