Vm: UnexpectedValueException: The files of the app "files" were not correctly replaced before running the update

Created on 13 Dec 2016  路  5Comments  路  Source: nextcloud/vm

Steps to reproduce

  1. Run the Tech and Me update script

Expected behaviour

Update should finish without errors

Actual behaviour

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

screenshot from 2016-12-13 00-46-42

Server configuration

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

Code snippet

https://github.com/nextcloud/vm/blob/master/nextcloud_update.sh#L121-L137

@nextcloud/developers How should I replace the apps folder correctly?

bug

Most helpful comment

@enoch85 Please do not mention everyone for this kind of issues!

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dseeker picture dseeker  路  4Comments

peacock40 picture peacock40  路  6Comments

mr-manuel picture mr-manuel  路  6Comments

enoch85 picture enoch85  路  5Comments

mxschmitt picture mxschmitt  路  9Comments