Upgrade to 15.0.0 failed with "The files of the app "user_external" were not correctly replaced"

Nextcloud version : 15.0.0
Operating system and version: Ubuntu 16.04.5 LTS
Nginx version: 1.10.3-0ubuntu0.16.04.3
PHP version: 7.2

The issue you are facing:

I upgrade to 15.0.0. The web based upgrade went well until occ upgrade that returns an error:

# 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
Updating database schema
Updated database
UnexpectedValueException: The files of the app "user_external" were not correctly replaced before running the update
Update failed
Maintenance mode is kept active
Reset log level

Is this the first time you’ve seen this error? : Y

# ls -lah apps/user_external/
total 6.5K
drwxr-xr-x  5 www-data www-data  5 Dec 13 10:06 .
drwxr-xr-x 39 www-data www-data 39 Dec 13 10:06 ..
drwxr-xr-x  2 www-data www-data  6 Dec 13 10:06 appinfo
drwxr-xr-x  2 www-data www-data  3 Dec 13 10:06 img
drwxr-xr-x  2 www-data www-data  7 Dec 13 10:06 lib

I downloaded the full Nextcloud 5 package manually and replaced apps/user_external with the one from the zip, same error.

I tried removing apps/user_external, same error.

It has been reported on github and has a workaround, see https://github.com/nextcloud/apps/issues/68#issuecomment-446370493

1 Like