Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't upgrade from 6.0.4 to 7.0.2 using occ #10581

Closed
jnfrmarks opened this issue Aug 21, 2014 · 8 comments
Closed

Can't upgrade from 6.0.4 to 7.0.2 using occ #10581

jnfrmarks opened this issue Aug 21, 2014 · 8 comments

Comments

@jnfrmarks
Copy link

Steps to reproduce

  1. Install 6.0.4
  2. Follow the directions to backup before upgrade
  3. Install 7.0.2
  4. chmod 777 /var/www/owncloud/occ
  5. 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

@karlitschek
Copy link
Contributor

So the error messages indicate that you are using the enterprise edition of ownCloud. Please contact the support for further information.

@jnfrmarks
Copy link
Author

Is occ not supported with the enterprise edition?

@karlitschek
Copy link
Contributor

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.

@karlitschek karlitschek reopened this Aug 25, 2014
@karlitschek
Copy link
Contributor

@PVince81 Can you help to reproduce that?

@PVince81
Copy link
Contributor

Yes, am able to reproduce it. Seems to be introduced by the part that prevents concurrent app upgrades.

CC @icewind1991

@PVince81 PVince81 added this to the 2014-sprint-02-current milestone Aug 25, 2014
@PVince81 PVince81 self-assigned this Aug 25, 2014
@PVince81
Copy link
Contributor

Looks like something got messed up with the commits.
The fix was backported here #9861 (comment) but I don't see the change in the actual file.

Looking further.

@PVince81
Copy link
Contributor

Not sure what happened, but I've added the commit to stable7: a70fe18

./occ upgrade now works from 6.0.4 to stable7 (the upcoming 7.0.2)

@smiddy
Copy link

smiddy commented Nov 16, 2014

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

@lock lock bot locked as resolved and limited conversation to collaborators Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants