Can't upgrade from 6.0.4 to 7.0.2 using occ
Steps to reproduce
- Install 6.0.4
- Follow the directions to backup before upgrade
- Install 7.0.2
- chmod 777 /var/www/owncloud/occ
- cd to /var/www/owncloud and run ./occ upgrade
I'm getting the following error:
bash: ./occ: Permission denied root@jrm-ubuntu64:/var/www/owncloud# chmod 777 occ root@jrm-ubuntu64:/var/www/owncloud# ./occ upgrade An unhandled exception has been thrown: exception 'OC\NeedsUpdateException' in /var/www/owncloud/lib/private/app.php:93 Stack trace: #0 /var/www/owncloud/lib/private/app.php(75): OC_App::loadApp('files') #1 /var/www/owncloud/console.php(26): OC_App::loadApps() #2 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...') #3 {main}root@jrm-ubuntu64:/var/www/owncloud
Once I run the update from the browser occ works: #10 {main}root@jrm-ubuntu64:/var/www/owncloud# ./occ upgrade
ownCloud is already latest version
This also happens when I put the enterprise apps in the apps directory and then run occ again:
root@jrm-ubuntu64:/var/www/owncloud# ./occ upgrade An unhandled exception has been thrown: exception 'OC\NeedsUpdateException' in /var/www/owncloud/lib/private/app.php:93 Stack trace: #0 /var/www/owncloud/lib/private/app.php(75): OC_App::loadApp('enterprise_key') #1 /var/www/owncloud/lib/private/util.php(72): OC_App::loadApps(Array) #2 /var/www/owncloud/lib/private/files/filesystem.php(800): OC_Util::setupFS() #3 /var/www/owncloud/lib/autoloader.php(142): require_once('/var/www/ownclo...') #4 [internal function]: OC\Autoloader->load('OC\Files\Filesy...') #5 /var/www/owncloud/apps/admin_audit/appinfo/app.php(16): spl_autoload_call('OC\Files\Filesy...') #6 /var/www/owncloud/lib/private/app.php(95): require_once('/var/www/ownclo...') #7 /var/www/owncloud/lib/private/app.php(75): OC_App::loadApp('admin_audit') #8 /var/www/owncloud/console.php(26): OC_App::loadApps() #9 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')
Expected behaviour
occ should successfully upgrade
Actual behaviour
occ fails with the stack trace above
Server configuration
Operating system:
Ubuntu 12-04
Web server:
apache
Database:
mysql
ownCloud version: (see ownCloud admin page)
ownCloud 7.0.2 RC1 (testing)
Updated from an older ownCloud or fresh install:
Updating from 6.0.4 to 7.0.2
So the error messages indicate that you are using the enterprise edition of ownCloud. Please contact the support for further information.
Is occ not supported with the enterprise edition?
It is. But questions about the enterprise edition will be answered by the enterprise support. By the way. There is no Enterprise Edition of ownCloud 7 released yet. So this upgrade will not work at the moment anyways.
@PVince81 Can you help to reproduce that?
Yes, am able to reproduce it. Seems to be introduced by the part that prevents concurrent app upgrades.
CC @icewind1991
Looks like something got messed up with the commits. The fix was backported here https://github.com/owncloud/core/pull/9861#issuecomment-50043121 but I don't see the change in the actual file.
Looking further.
Not sure what happened, but I've added the commit to stable7: https://github.com/owncloud/core/commit/a70fe184e7cf13d7da33fdaf2b606abbaa8a2d33
./occ upgrade now works from 6.0.4 to stable7 (the upcoming 7.0.2)
I figured out the the file occ is not executable. After changing the permission by command
root@server:/var/www/owncloud# chmod u+x occ
I could successfully use the ./occ upgrade command.
Using Ubuntu 14.04.1