AIO upgrade failed: UnexpectedValueException: The files of the app "activity" were not correctly replaced before running the update Update failed

The Basics

  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 13
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • last night
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Nextcloud AIO v15.0.2

Summary of the issue you are facing:

Upgrade failed. Same issue occured apparently 7 years ago, unfortunately without a documented solution:

Steps to replicate it (hint: details matter!):

# docker exec --user www-data -it nextcloud-aio-nextcloud php occ upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
UnexpectedValueException: The files of the app "activity" were not correctly replaced before running the update
Update failed
Maintenance mode is kept active
Resetting log level

Thx for any hint how to fix it. :slight_smile:

Hi, please restore a backup from before the update and restart the containers multiple times to try the update again.

Unfortunately, I was to quick in assuming that restoring from backup and restarting the containers multiple times would help. If I restore and then restart, it tries to update again and hangs at the same spot. Thus I’m caught in a loop and cannot move forward. I can only recover from a backup and start the (old) version of nextcloud. Until during the night the auto update tries it’s luck and I’m greeted with a failed nextcloud next morning.
Nextcloud container log in AIO webinterface:

2026-11-12T22:04:43.886550694Z Connection to nextcloud-aio-database (172.18.0.10) 5432 port [tcp/postgresql] succeeded!
2026-11-12T22:04:45.962800977Z               now              
2026-11-12T22:04:45.962905272Z -------------------------------
2026-11-12T22:04:45.962915216Z  2026-11-12 23:04:45.960512+01
2026-11-12T22:04:45.962918790Z (1 row)
2026-11-12T22:04:45.962921031Z 
2026-11-12T22:04:45.983291846Z + '[' -f /dev-dri-group-was-added ']'
2026-11-12T22:04:45.983335031Z ++ find /dev -maxdepth 1 -mindepth 1 -name dri
2026-11-12T22:04:45.984048668Z + '[' -n /dev/dri ']'
2026-11-12T22:04:45.984825487Z ++ find /dev/dri -maxdepth 1 -mindepth 1 -name renderD128
2026-11-12T22:04:45.985846732Z + '[' -n /dev/dri/renderD128 ']'
2026-11-12T22:04:45.988814944Z ++ stat -c %g /dev/dri/renderD128
2026-11-12T22:04:45.993555427Z + GID=105
2026-11-12T22:04:45.993609556Z + groupadd -g 105 render2
2026-11-12T22:04:46.012308251Z ++ ++ getent cut group -d: 105-f1
2026-11-12T22:04:46.012365972Z 
2026-11-12T22:04:46.013565915Z + GROUP=render2
2026-11-12T22:04:46.013892873Z + usermod -aG render2 www-data
2026-11-12T22:04:46.034286188Z + touch /dev-dri-group-was-added
2026-11-12T22:04:46.038740231Z + '[' warn '!=' debug ']'
2026-11-12T22:04:46.038775934Z + set +x
2026-11-12T22:04:46.086091185Z Connection to nextcloud-aio-redis (172.18.0.11) 6379 port [tcp/redis] succeeded!
2026-11-12T22:04:47.055859206Z Checking connection to the app store...
2026-11-12T22:04:47.244800511Z App store is reachable.
2026-11-12T22:04:50.459175662Z Maintenance mode already disabled
2026-11-12T22:04:50.472026983Z Getting and backing up the status of apps for later; this might take a while...
2026-11-12T22:04:50.476164642Z Disabling apps before the update to make the update procedure safer. This can take a while...
2026-11-12T22:04:52.141649037Z contacts 8.9.5 disabled
2026-11-12T22:04:53.694631468Z spreed 24.0.7 disabled
2026-11-12T22:04:55.036914572Z notes 6.1.0 disabled
2026-11-12T22:04:56.438571949Z richdocuments 11.1.2 disabled
2026-11-12T22:04:57.453400680Z No such app enabled: previewgenerator
2026-11-12T22:04:58.645503474Z memories 11.0.2 disabled
2026-11-12T22:04:59.868631621Z No such app enabled: integration_openai
2026-11-12T22:05:00.996757364Z notify_push 1.4.2 disabled
2026-11-12T22:05:02.357616055Z No such app enabled: integration_libretranslate
2026-11-12T22:05:03.862719113Z whiteboard 2.1.2 disabled
2026-11-12T22:05:05.148688197Z fulltextsearch_elasticsearch 34.0.3 disabled
2026-11-12T22:05:06.512129109Z deck 1.18.6 disabled
2026-11-12T22:05:07.651132425Z assistant 3.5.1 disabled
2026-11-12T22:05:08.661892681Z files_fulltextsearch 34.0.2 disabled
2026-11-12T22:05:09.852534256Z fulltextsearch 34.0.3 disabled
2026-11-12T22:05:11.087281504Z No such app enabled: facerecognition
2026-11-12T22:05:12.367291423Z No such app enabled: tasks
2026-11-12T22:05:13.634538334Z calendar 6.6.5 disabled
2026-11-12T22:05:15.164569098Z contacts new version available: 8.10.0
2026-11-12T22:05:16.032012495Z contacts updated
2026-11-12T22:05:16.032041809Z notes new version available: 6.1.1
2026-11-12T22:05:18.336732676Z notes updated
2026-11-12T22:05:18.336771528Z richdocuments new version available: 11.1.3
2026-11-12T22:05:19.854262839Z richdocuments updated
2026-11-12T22:05:19.855397248Z memories new version available: 11.1.2
2026-11-12T22:05:24.608650468Z memories updated
2026-11-12T22:05:25.635531461Z Initializing Nextcloud 35.0.2.2 ...
2026-11-12T22:05:25.640587529Z rsync: [generator] delete_file: unlink(core.8) failed: Permission denied (13)
2026-11-12T22:05:25.640614232Z rsync: [generator] delete_file: unlink(core.7) failed: Permission denied (13)
2026-11-12T22:05:25.640617529Z rsync: [generator] delete_file: unlink(core.6) failed: Permission denied (13)
2026-11-12T22:05:25.659676626Z rsync: [receiver] mkstemp "/var/www/html/.htaccess.LmgkIc" failed: Permission denied (13)
2026-11-12T22:05:25.659895622Z rsync: [receiver] mkstemp "/var/www/html/.user.ini.8kD6e6" failed: Permission denied (13)
2026-11-12T22:05:25.659912030Z rsync: [receiver] mkstemp "/var/www/html/.AUTHORS.035bep" failed: Permission denied (13)
2026-11-12T22:05:25.659915974Z rsync: [receiver] mkstemp "/var/www/html/.COPYING.BhmLy0" failed: Permission denied (13)
2026-11-12T22:05:25.659918955Z rsync: [receiver] mkstemp "/var/www/html/.REUSE.toml.Q8TIWI" failed: Permission denied (13)
2026-11-12T22:05:25.659921492Z rsync: [receiver] mkstemp "/var/www/html/.composer.json.FWh3oL" failed: Permission denied (13)
2026-11-12T22:05:25.659923937Z rsync: [receiver] mkstemp "/var/www/html/.composer.lock.7uBYYF" failed: Permission denied (13)
2026-11-12T22:05:25.659926344Z rsync: [receiver] mkstemp "/var/www/html/.console.php.OqXqak" failed: Permission denied (13)
2026-11-12T22:05:25.659928696Z rsync: [receiver] mkstemp "/var/www/html/.cron.php.Ew6po3" failed: Permission denied (13)
2026-11-12T22:05:25.659942214Z rsync: [receiver] mkstemp "/var/www/html/.index.html.uX9THp" failed: Permission denied (13)
2026-11-12T22:05:25.659945677Z rsync: [receiver] mkstemp "/var/www/html/.index.php.rygDht" failed: Permission denied (13)
2026-11-12T22:05:25.659948270Z rsync: [receiver] mkstemp "/var/www/html/.occ.AxRSBe" failed: Permission denied (13)
2026-11-12T22:05:25.659950622Z rsync: [receiver] mkstemp "/var/www/html/.package-lock.json.LLXXbp" failed: Permission denied (13)
2026-11-12T22:05:25.659953270Z rsync: [receiver] mkstemp "/var/www/html/.package.json.XHmV1B" failed: Permission denied (13)
2026-11-12T22:05:25.659961436Z rsync: [receiver] mkstemp "/var/www/html/.public.php.dSRbyg" failed: Permission denied (13)
2026-11-12T22:05:25.659963436Z rsync: [receiver] mkstemp "/var/www/html/.remote.php.Z3ShFS" failed: Permission denied (13)
2026-11-12T22:05:25.659965436Z rsync: [receiver] mkstemp "/var/www/html/.robots.txt.hZ4frE" failed: Permission denied (13)
2026-11-12T22:05:25.659967344Z rsync: [receiver] mkstemp "/var/www/html/.status.php.tBx57y" failed: Permission denied (13)
2026-11-12T22:05:29.785379991Z rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1394) [sender=3.5.0]
2026-11-12T22:05:29.837517483Z rsync: [receiver] mkstemp "/var/www/html/.version.php.quy1Lv" failed: Permission denied (13)
2026-11-12T22:05:29.958056216Z rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1394) [sender=3.5.0]
2026-11-12T22:05:29.958176567Z Initializing finished
2026-11-12T22:05:29.959473288Z Upgrading Nextcloud from 34.0.0.12 to 35.0.2.2...
2026-11-12T22:05:30.205578101Z Nextcloud or one of the apps require upgrade - only a limited number of commands are available
2026-11-12T22:05:30.205603267Z You may use your browser or the occ upgrade command to do the upgrade
2026-11-12T22:05:30.209781573Z System config value integrity.check.disabled deleted
2026-11-12T22:05:30.463666065Z Nextcloud or one of the apps require upgrade - only a limited number of commands are available
2026-11-12T22:05:30.463701435Z You may use your browser or the occ upgrade command to do the upgrade
2026-11-12T22:05:30.468265791Z System config value enable_lazy_objects set to boolean false
2026-11-12T22:05:30.747523964Z Setting log level to debug
2026-11-12T22:05:30.748152547Z Turned on maintenance mode
2026-11-12T22:05:30.947608747Z Updating database schema
2026-11-12T22:05:31.501293481Z Updated database
2026-11-12T22:05:31.523425178Z UnexpectedValueException: The files of the app "activity" were not correctly replaced before running the update
2026-11-12T22:05:31.523475992Z Update failed
2026-11-12T22:05:31.523533028Z Maintenance mode is kept active
2026-11-12T22:05:31.523595731Z Resetting log level
2026-11-12T22:05:31.532386892Z Upgrade failed. Please restore from backup.
2026-11-12T22:05:31.799704045Z Nextcloud or one of the apps require upgrade - only a limited number of commands are available
2026-11-12T22:05:31.799723712Z You may use your browser or the occ upgrade command to do the upgrade
2026-11-12T22:05:31.813190261Z Posting notifications to users that are admins...
2026-11-12T22:05:32.080729671Z Nextcloud or one of the apps require upgrade - only a limited number of commands are available
2026-11-12T22:05:32.080751115Z You may use your browser or the occ upgrade command to do the upgrade
2026-11-12T22:05:32.102958348Z Posting 'Nextcloud update to 35.0.2.2 failed!' to: admin
2026-11-12T22:05:32.365121357Z Nextcloud or one of the apps require upgrade - only a limited number of commands are available
2026-11-12T22:05:32.365144690Z You may use your browser or the occ upgrade command to do the upgrade
2026-11-12T22:05:32.369986079Z 
2026-11-12T22:05:32.373709225Z                                                                   
2026-11-12T22:05:32.373725466Z   There are no commands defined in the "notification" namespace.  
2026-11-12T22:05:32.373731132Z                                                                   
2026-11-12T22:05:32.373732984Z 
2026-11-12T22:05:32.381758212Z Done!
2026-11-12T22:05:33.202790565Z Connection to nextcloud-aio-database (172.18.0.10) 5432 port [tcp/postgresql] succeeded!
2026-11-12T22:05:35.228038098Z               now              
2026-11-12T22:05:35.228073856Z -------------------------------
2026-11-12T22:05:35.228079838Z  2026-11-12 23:05:35.227416+01
2026-11-12T22:05:35.228084541Z (1 row)
2026-11-12T22:05:35.228088671Z 
2026-11-12T22:05:35.281192720Z + '[' -f /dev-dri-group-was-added ']'
2026-11-12T22:05:35.281217442Z + '[' warn '!=' debug ']'
2026-11-12T22:05:35.281223442Z + set +x
2026-11-12T22:05:35.293845173Z Connection to nextcloud-aio-redis (172.18.0.11) 6379 port [tcp/redis] succeeded!
2026-11-12T22:05:35.751008954Z The last Nextcloud update failed.
2026-11-12T22:05:35.751059750Z Please restore from a backup and try again.
2026-11-12T22:05:35.751065102Z If you do not have a backup, you can delete the update.failed file in the data directory
2026-11-12T22:05:35.751068065Z to allow the container to start again.
2026-11-12T22:05:36.168872914Z Connection to nextcloud-aio-database (172.18.0.10) 5432 port [tcp/postgresql] succeeded!
2026-11-12T22:05:38.185585893Z               now              
2026-11-12T22:05:38.185642670Z -------------------------------
2026-11-12T22:05:38.185650188Z  2026-11-12 23:05:38.184771+01
2026-11-12T22:05:38.185652762Z (1 row)
2026-11-12T22:05:38.185655281Z 
2026-11-12T22:05:38.192461344Z + '[' -f /dev-dri-group-was-added ']'
2026-11-12T22:05:38.192527748Z + '[' warn '!=' debug ']'
2026-11-12T22:05:38.192533192Z + set +x
2026-11-12T22:05:38.204012055Z Connection to nextcloud-aio-redis (172.18.0.11) 6379 port [tcp/redis] succeeded!
2026-11-12T22:05:38.503268548Z The last Nextcloud update failed.
2026-11-12T22:05:38.503306159Z Please restore from a backup and try again.
2026-11-12T22:05:38.503309937Z If you do not have a backup, you can delete the update.failed file in the data directory
2026-11-12T22:05:38.503312659Z to allow the container to start again.

Hm, it sounds like the nextcloud container image was somehow not correctly downloaded.

You can try removing the Nextcloud image so that AIO downloads a fresh copy:

  1. Open the AIO interface and click Stop containers. Wait until all containers have stopped.
  2. In a terminal on the server, remove the Nextcloud container:
    sudo docker rm nextcloud-aio-nextcloud
    
  3. List the Nextcloud image:
    sudo docker image ls | grep aio-nextcloud
    
  4. Remove it, using the tag shown in the output of step 3 (usually latest):
    sudo docker image rm ghcr.io/nextcloud-releases/aio-nextcloud:latest
    
    If several entries show up, remove all of them. You can also use the image ID from step 3: sudo docker image rm <IMAGE ID>.
  5. Go back to the AIO interface and restore the backup from before the failed update. When the restore finishes and the containers start, AIO notices the image is missing and downloads it again.
  6. Restart the Containers multiple times and check the logs of the Nextcloud container (sudo docker logs -f nextcloud-aio-nextcloud) to see whether the update to 35.0.2.2 now works.

If it fails again, please post the new log output.

Disclaimer: This comment was written with the help of AI and reviewed by a human before posting.

Thx for your support. I did as indicated, but end up in the same situation.
Log:

# docker logs -f nextcloud-aio-nextcloud
Connection to nextcloud-aio-database (172.18.0.10) 5432 port [tcp/postgresql] succeeded!
              now              
-------------------------------
 2026-11-13 16:20:06.716048+01
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n /dev/dri ']'
++ find /dev/dri -maxdepth 1 -mindepth 1 -name renderD128
+ '[' -n /dev/dri/renderD128 ']'
++ stat -c %g /dev/dri/renderD128
+ GID=105
+ groupadd -g 105 render2
++ getent group 105
++ cut -d: -f1
+ GROUP=render2
+ usermod -aG render2 www-data
+ touch /dev-dri-group-was-added
+ '[' warn '!=' debug ']'
+ set +x
Connection to nextcloud-aio-redis (172.18.0.11) 6379 port [tcp/redis] succeeded!
Checking connection to the app store...
App store is reachable.
Maintenance mode already disabled
Getting and backing up the status of apps for later; this might take a while...
Disabling apps before the update to make the update procedure safer. This can take a while...
contacts 8.9.5 disabled
spreed 24.0.7 disabled
notes 6.1.0 disabled
richdocuments 11.1.2 disabled
No such app enabled: previewgenerator
memories 11.0.2 disabled
No such app enabled: integration_openai
notify_push 1.4.2 disabled
No such app enabled: integration_libretranslate
whiteboard 2.1.2 disabled
fulltextsearch_elasticsearch 34.0.3 disabled
deck 1.18.6 disabled
assistant 3.5.1 disabled
files_fulltextsearch 34.0.2 disabled
fulltextsearch 34.0.3 disabled
No such app enabled: facerecognition
No such app enabled: tasks
calendar 6.6.5 disabled
contacts new version available: 8.10.0
contacts updated
spreed new version available: 24.0.8
spreed updated
notes new version available: 6.1.1
notes updated
richdocuments new version available: 11.1.3
richdocuments updated
memories new version available: 11.1.4
memories updated
Initializing Nextcloud 35.0.2.2 ...
rsync: [generator] delete_file: unlink(core.8) failed: Permission denied (13)
rsync: [generator] delete_file: unlink(core.7) failed: Permission denied (13)
rsync: [generator] delete_file: unlink(core.6) failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.htaccess.dx6QFA" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.user.ini.DkBZPb" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.AUTHORS.32HFsx" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.COPYING.v1ZLdF" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.REUSE.toml.CooeYp" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.composer.json.SZgPJH" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.composer.lock.RjhN2w" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.console.php.lomNzo" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.cron.php.ISuIDD" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.index.html.2J3O8L" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.index.php.04i4FD" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.occ.9eoufm" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.package-lock.json.mDLQOS" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.package.json.bVjbJ6" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.public.php.BgeWCX" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.remote.php.mShD0b" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.robots.txt.1Lg40V" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.status.php.8a4arJ" failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1394) [sender=3.5.0]
rsync: [receiver] mkstemp "/var/www/html/.version.php.DENlHM" failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1394) [sender=3.5.0]
Initializing finished
Upgrading Nextcloud from 34.0.0.12 to 35.0.2.2...
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
System config value integrity.check.disabled deleted
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
System config value enable_lazy_objects set to boolean false
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
UnexpectedValueException: The files of the app "activity" were not correctly replaced before running the update
Update failed
Maintenance mode is kept active
Resetting log level
Upgrade failed. Please restore from backup.
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Posting notifications to users that are admins...
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Posting 'Nextcloud update to 35.0.2.2 failed!' to: admin
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade

                                                                  
  There are no commands defined in the "notification" namespace.  
                                                                  

Done!
# docker logs -f nextcloud-aio-nextcloud
Connection to nextcloud-aio-database (172.18.0.10) 5432 port [tcp/postgresql] succeeded!
              now              
-------------------------------
 2026-11-13 16:20:06.716048+01
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
++ find /dev -maxdepth 1 -mindepth 1 -name dri
+ '[' -n /dev/dri ']'
++ find /dev/dri -maxdepth 1 -mindepth 1 -name renderD128
+ '[' -n /dev/dri/renderD128 ']'
++ stat -c %g /dev/dri/renderD128
+ GID=105
+ groupadd -g 105 render2
++ getent group 105
++ cut -d: -f1
+ GROUP=render2
+ usermod -aG render2 www-data
+ touch /dev-dri-group-was-added
+ '[' warn '!=' debug ']'
+ set +x
Connection to nextcloud-aio-redis (172.18.0.11) 6379 port [tcp/redis] succeeded!
Checking connection to the app store...
App store is reachable.
Maintenance mode already disabled
Getting and backing up the status of apps for later; this might take a while...
Disabling apps before the update to make the update procedure safer. This can take a while...
contacts 8.9.5 disabled
spreed 24.0.7 disabled
notes 6.1.0 disabled
richdocuments 11.1.2 disabled
No such app enabled: previewgenerator
memories 11.0.2 disabled
No such app enabled: integration_openai
notify_push 1.4.2 disabled
No such app enabled: integration_libretranslate
whiteboard 2.1.2 disabled
fulltextsearch_elasticsearch 34.0.3 disabled
deck 1.18.6 disabled
assistant 3.5.1 disabled
files_fulltextsearch 34.0.2 disabled
fulltextsearch 34.0.3 disabled
No such app enabled: facerecognition
No such app enabled: tasks
calendar 6.6.5 disabled
contacts new version available: 8.10.0
contacts updated
spreed new version available: 24.0.8
spreed updated
notes new version available: 6.1.1
notes updated
richdocuments new version available: 11.1.3
richdocuments updated
memories new version available: 11.1.4
memories updated
Initializing Nextcloud 35.0.2.2 ...
rsync: [generator] delete_file: unlink(core.8) failed: Permission denied (13)
rsync: [generator] delete_file: unlink(core.7) failed: Permission denied (13)
rsync: [generator] delete_file: unlink(core.6) failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.htaccess.dx6QFA" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.user.ini.DkBZPb" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.AUTHORS.32HFsx" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.COPYING.v1ZLdF" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.REUSE.toml.CooeYp" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.composer.json.SZgPJH" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.composer.lock.RjhN2w" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.console.php.lomNzo" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.cron.php.ISuIDD" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.index.html.2J3O8L" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.index.php.04i4FD" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.occ.9eoufm" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.package-lock.json.mDLQOS" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.package.json.bVjbJ6" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.public.php.BgeWCX" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.remote.php.mShD0b" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.robots.txt.1Lg40V" failed: Permission denied (13)
rsync: [receiver] mkstemp "/var/www/html/.status.php.8a4arJ" failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1394) [sender=3.5.0]
rsync: [receiver] mkstemp "/var/www/html/.version.php.DENlHM" failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1394) [sender=3.5.0]
Initializing finished
Upgrading Nextcloud from 34.0.0.12 to 35.0.2.2...
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
System config value integrity.check.disabled deleted
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
System config value enable_lazy_objects set to boolean false
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
UnexpectedValueException: The files of the app "activity" were not correctly replaced before running the update
Update failed
Maintenance mode is kept active
Resetting log level
Upgrade failed. Please restore from backup.
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Posting notifications to users that are admins...
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Posting 'Nextcloud update to 35.0.2.2 failed!' to: admin
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade

                                                                  
  There are no commands defined in the "notification" namespace.  
                                                                  

Done!
Connection to nextcloud-aio-database (172.18.0.10) 5432 port [tcp/postgresql] succeeded!
              now              
-------------------------------
 2026-11-13 16:20:43.091218+01
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
+ '[' warn '!=' debug ']'
+ set +x
Connection to nextcloud-aio-redis (172.18.0.11) 6379 port [tcp/redis] succeeded!
The last Nextcloud update failed.
Please restore from a backup and try again.
If you do not have a backup, you can delete the update.failed file in the data directory
to allow the container to start again.
Connection to nextcloud-aio-database (172.18.0.10) 5432 port [tcp/postgresql] succeeded!
              now              
-------------------------------
 2026-11-13 16:20:45.775989+01
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
+ '[' warn '!=' debug ']'
+ set +x
Connection to nextcloud-aio-redis (172.18.0.11) 6379 port [tcp/redis] succeeded!
The last Nextcloud update failed.
Please restore from a backup and try again.
If you do not have a backup, you can delete the update.failed file in the data directory
to allow the container to start again.
Connection to nextcloud-aio-database (172.18.0.10) 5432 port [tcp/postgresql] succeeded!
              now              
-------------------------------
 2026-11-13 16:20:48.703228+01
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
+ '[' warn '!=' debug ']'
+ set +x
Connection to nextcloud-aio-redis (172.18.0.11) 6379 port [tcp/redis] succeeded!
The last Nextcloud update failed.
Please restore from a backup and try again.
If you do not have a backup, you can delete the update.failed file in the data directory
to allow the container to start again.
Connection to nextcloud-aio-database (172.18.0.10) 5432 port [tcp/postgresql] succeeded!
              now              
-------------------------------
 2026-11-13 16:20:51.990541+01
(1 row)

+ '[' -f /dev-dri-group-was-added ']'
+ '[' warn '!=' debug ']'
+ set +x
Connection to nextcloud-aio-redis (172.18.0.11) 6379 port [tcp/redis] succeeded!
The last Nextcloud update failed.
Please restore from a backup and try again.
If you do not have a backup, you can delete the update.failed file in the data directory
to allow the container to start again.

I see. It looks like the main problem is then the permission peoblem that one can see above. Please ensure the process can write and delete in the nextcloud_aio_nextcloud volume.

I’m using the standard AIO docker image. No idea how the permissions got messed up. How can I find out what the correct permissions would be? Which user is running the rsync-process trying to delete/create the files?

Current permissions of /var/www/html/ inside the container are:

/var/lib/docker/volumes/nextcloud_aio_nextcloud/_data# ls -la
insgesamt 3016
drwxr-xr-x 16 root     root       4096 15. Okt 04:02 .
drwx-----x  3 root     root       4096 20. Jul 2024  ..
drwxr-xr-x 43 www-data www-data   4096  9. Nov 03:04 3rdparty
drwxr-xr-x 59 www-data www-data   4096 11. Jun 19:12 apps
-rw-r--r--  1 www-data www-data  26339 11. Jun 19:12 AUTHORS
-rw-r--r--  1 www-data www-data   3699 11. Jun 19:12 composer.json
-rw-r--r--  1 www-data www-data   3453 11. Jun 19:12 composer.lock
drwxr-xr-x  2 www-data www-data   4096 13. Nov 16:31 config
-rw-r--r--  1 www-data www-data   4126 11. Jun 19:12 console.php
-rw-r--r--  1 www-data www-data  34520 11. Jun 19:12 COPYING
drwxr-xr-x 23 www-data www-data   4096  9. Nov 03:04 core
-rw-------  1 root     root     786432 11. Okt 19:53 core.6
-rw-------  1 root     root     851968 15. Okt 04:02 core.7
-rw-------  1 root     root     786432  4. Okt 15:45 core.8
-rw-r--r--  1 www-data www-data   1913 11. Jun 19:12 cron.php
drwxr-xr-x 20 www-data www-data   4096  6. Nov 03:04 custom_apps
drwxr-xr-x  2 www-data www-data   4096  9. Nov 10:56 data
drwxr-xr-x  2 www-data www-data  69632  9. Nov 03:04 dist
-rw-r--r--  1 www-data www-data   7852 13. Nov 16:32 .htaccess
-rw-r--r--  1 www-data www-data    331 11. Jun 19:12 index.html
-rw-r--r--  1 www-data www-data   3695 11. Jun 19:12 index.php
drwxr-xr-x  7 www-data www-data   4096  9. Nov 03:04 lib
drwxr-xr-x  2 www-data www-data   4096  9. Nov 03:04 LICENSES
-rwxr-xr-x  1 www-data www-data    596 11. Jun 19:12 occ
drwxr-xr-x  2 www-data www-data   4096  9. Nov 03:04 ocs
drwxr-xr-x  2 www-data www-data   4096  9. Nov 03:04 ocs-provider
-rw-r--r--  1 www-data www-data   3943 11. Jun 19:12 package.json
-rw-r--r--  1 www-data www-data 660087 11. Jun 19:12 package-lock.json
-rw-r--r--  1 www-data www-data   3108 11. Jun 19:12 public.php
-rw-r--r--  1 www-data www-data   4802 11. Jun 19:12 remote.php
drwxr-xr-x  4 www-data www-data   4096  9. Nov 03:04 resources
-rw-r--r--  1 www-data www-data  36951 11. Jun 19:12 REUSE.toml
-rw-r--r--  1 www-data www-data     26 11. Jun 19:12 robots.txt
-rw-r--r--  1 www-data www-data   1490 11. Jun 19:12 status.php
drwxr-xr-x  3 www-data www-data   4096 11. Jun 19:12 themes
drwxr-xr-x  2 www-data www-data   4096  9. Nov 03:04 updater
-rw-r--r--  1 www-data www-data    306 11. Jun 19:12 .user.ini
-rw-r--r--  1 www-data www-data    447 11. Jun 19:12 version.php

Thanks for the listing, it explains the errors.

The update step inside the nextcloud-aio-nextcloud container runs as the www-data user (uid 33). That’s the user running rsync, and it writes its temporary files directly into /var/www/html, the root of the nextcloud_aio_nextcloud volume. In your listing that directory is owned by root:root with drwxr-xr-x, so www-data can’t create files in it. That’s where the mkstemp ... Permission denied errors come from. The core.6, core.7 and core.8 files are crash dumps owned by root, which is why www-data can’t delete them either.

The volume should be owned by uid 33 with group 0 (www-data:root inside the container). On your host that may show up as www-data.

Please try this:

  1. In the AIO interface, restore the backup from before the update. If the containers start on their own afterwards, click “Stop containers” and wait until they’ve stopped.
  2. Remove the crash dumps:
    sudo rm /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/core.*
    
  3. Fix the ownership of the volume:
    sudo chown -R 33:0 /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data
    
  4. Check that the first line of sudo ls -la /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data (the . entry) now shows www-data (or 33) as the owner.
  5. Start the containers in the AIO interface and follow the log with sudo docker logs -f nextcloud-aio-nextcloud.

As for how this happened: it usually means something on the host ran as root inside that volume. For example, a manual command, a script, or a tool that changes permissions under /var/lib/docker/volumes. AIO doesn’t change the owner of that directory to root itself. If the backup you restore already has the wrong ownership, step 3 fixes it either way. That’s why the order is restore first, then fix permissions, then start.

If the update still fails, please post the new log.

This reply was drafted with the help of AI and reviewed by a human before posting.

Thx for your support! I was able to restart the containers a couple of times and the upgrade & updates went fine.
Now only the Memory Transcoder container isn’t starting and complains in the log file: 2026-11-13T16:33:08.774468631Z 2026/11/13 17:33:08 Invalid config: cache dir is required (set cacheDir or CACHE_DIR) – but I assume, that’s a different issue.