Restart update after failure

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 21.x
Operating system and version (eg, Ubuntu 20.04): TrueNAS BSD 12.2
Apache or nginx version (eg, Apache 2.4.25): ngine
PHP version (eg, 7.4): 7.4.22

The issue you are facing: Restarting after discovering failure was permission related

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Start update
  2. Update fails to install new files
  3. hours of searching revealed : Message: Could not rename /usr/local/www/nextcloud/data/updater-ocficli3lf0w/downloads/nextcloud/apps/privacy/composer.json to /usr/local/www/nextcloud/updater/…/apps/privacy/composer.json

Message: Could not rename /usr/local/www/nextcloud/data/updater-ocficli3lf0w/downloads/nextcloud/apps/privacy/l10n/fi.json to /usr/local/www/nextcloud/updater/…/apps/privacy/l10n/fi.json

Message: Could not rename /usr/local/www/nextcloud/data/updater-ocficli3lf0w/downloads/nextcloud/apps/privacy/l10n/sr.js to /usr/local/www/nextcloud/updater/…/apps/privacy/l10n/sr.js

Message: Could not rename /usr/local/www/nextcloud/data/updater-ocficli3lf0w/downloads/nextcloud/apps/privacy/l10n/sv.json to /usr/local/www/nextcloud/updater/…/apps/privacy/l10n/sv.json

Message: Could not rename /usr/local/www/nextcloud/data/updater-ocficli3lf0w/downloads/nextcloud/apps/firstrunwizard/templates/page.apps.php to /usr/local/www/nextcloud/updater/…/apps/firstrunwizard/templates/page.apps.php

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


The output of your Apache/nginx/system log in /var/log/____: