Update should finish without errors
Update fails due to that the apps folder isn't "replaced correctly".
ncadmin@nextcloud:~$ sudo -u www-data php /var/www/nextcloud/occ upgrade
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
Set log level to debug
Turned on maintenance mode
Updating database schema
Updated database
UnexpectedValueException: The files of the app "files" were not correctly replaced before running the update
Update failed
Maintenance mode is kept active
Reset log level

Server version: (see your admin page)
Nextcloud 11.0.0 (updates succeeds but with errors) Can't login after update.
VM version
10.0.2
Updated from an older installed version or fresh install:
Update from 10.0.2 to 11.0.0
https://github.com/nextcloud/vm/blob/master/nextcloud_update.sh#L121-L137
@nextcloud/developers How should I replace the apps folder correctly?
This is solved by removing the apps folder in the update script.
Backup still exists at /var/NCBACKUP/apps though.
@enoch85 Please do not mention everyone for this kind of issues!
I have the same issue
I found the solution: I had wrong path in config in apps_paths
removed answered the wrong question.
Most helpful comment
@enoch85 Please do not mention everyone for this kind of issues!