Web : Updating ownCloud to version 8.1.9 was unsuccessful

By | August 12, 2016

Using ownCloud repo and encountered the following error while upgrading to version 8.1.9?

Updating ownCloud to version 8.1.9, this may take a while.

Set log level to debug – current level: “Warning”
Turned on maintenance mode
Checked database schema update
Checked database schema update for apps
Updated database
Exception: App can’t be installed because it is not compatible with this version of ownCloud
The update was unsuccessful. Please report this issue to the ownCloud community.

For an unknown reason, the upgrade using the automated method using the browser didn’t worked out as expected (it always did for me in the past). To workaround this issue, you may run the update manually instead.

1. You need first to make sure that APC is enabled for php-cli. To enable it, either edit “apcu.ini” or append the following to PHP config file :

/etc/php5/cli/php.ini

Append (or enable) this parameter :

apc.enable_cli=1

2. Login as the user that the Web server run for your ownCloud installation.

su - www-data

NOTE : Web server setup are variables, you may need to temporary change the user shell from “nologin” to “bash”.

3. Browse to your ownCloud installation (default location is /var/www/owncloud/) and run the following command :

./occ upgrade

Output example :

www-data@cloud:~/owncloud$ ./occ upgrade
ownCloud or one of the apps require upgrade – only a limited number of commands are available
Set log level to debug – current level: ‘Warning’
Turned on maintenance mode
Checked database schema update
Checked database schema update for apps
Updated database
Update successful
Turned off maintenance mode
Reset log level to ‘Warning’

You’re all set!