I followed all steps but the occ upgrade fails with this:
sudo -u www-data php occ upgrade
PHP Warning: fopen(/var/www/owncloud/config/config.php): failed to open stream: Permission denied in /var/www/owncloud/lib/private/config.php on line 187
PHP Warning: flock() expects parameter 1 to be resource, boolean given in /var/www/owncloud/lib/private/config.php on line 197
An unhandled exception has been thrown:
exception 'Exception' with message 'Could not acquire a shared lock on the config file /var/www/owncloud/config/config.php' in /var/www/owncloud/lib/private/config.php:198
Stack trace:
#0 /var/www/owncloud/lib/private/config.php(58): OC\Config->readData()
#1 /var/www/owncloud/lib/base.php(133): OC\Config->__construct('/var/www/ownclo...')
#2 /var/www/owncloud/lib/base.php(570): OC::initPaths()
#3 /var/www/owncloud/lib/base.php(1180): OC::init()
#4 /var/www/owncloud/console.php(46): require_once('/var/www/ownclo...')
#5 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')
sudo -u www-data php /var/www/owncloud/occ upgrade
An unhandled exception has been thrown:
OC\HintException: [0]: Downgrading is not supported and is likely to cause unpredictable issues (from 9.1.1.3 to 9.1.0.16) ()
I used now Nextcloud 10 instead of Nextcloud 9.0.50 but the error still exists.
You can’t upgrade from OC 9.1 to NC 9. Only NC 10 is possible.
The latest OC 9.1.1 has the internal version string 9,1,1,3 which is higher than current NC 10.0.0 (it uses the “internal” version 9,1,0,15). @nickvergessen was this done on purpose? It would mean that you need to upgrade to a higher subversion of NC (9.1.1 -> NC 10.0.1 is ok but 9.1.1 -> NC 10.0.0 isn’t)?
NC 10.0.1 will hopefully fix this (internally using 9,1,1,x) …
Yes, our next update should be compatible again. We also fixed the
general issue, so after 10.0.1, you can migrate from any ownCloud 9.1
version to Nextcloud 10