Falied to make an Upgrade from OC9.1.1 to Nextcloud 9.0.50

Hi,

i tried to convert from OC to Nextcloud with this tutorial: http://blog.jospoortvliet.com/2016/06/migrating-to-nextcloud-9.html

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...')

Can you please help me with this issue?

BR
Dirk

It was a access right issue. Now it is solved.

Now i’m facing another problem:

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.

What can i do?

Finally fixed it with this https://kettu.dy.fi/en/node/20

i just had to change the version to an lower number. I’m running nextcloud now.

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

@dersch81: Did you try again with NC 10.0.1? If it is solved we can close this topic (or mark it as solved).