Upgrade from 9.1.6.2 to 10.0.2.1 fails with "Exception: market can't be enabled since it is not installed."

I'm really unhappy that RPMs are still only available for 9.1.6 , although 10.x is out for a while now.
So I tried to perform a manual upgrade from 9.1.6 to current 10.0.2.1, which failes :frowning:

Steps to reproduce

  1. Download OC 10.0.2.1 and extract to empty "owncloud" folder
    (1b. Uninstall RPMs for 9.1.6.2)
  2. copy back "apps" and "data" from backup'ed 9.1.6.2 folder
  3. run sudo -u php occ upgrade

Expected behaviour

OC should be upgraded to 10.0.2.1

Actual behaviour

Set log level to debug
Exception: market can't be enabled since it is not installed.
Update failed
Maintenance mode is kept active
Reset log level

Server configuration

Operating system:
OpenSuse 42.3

Web server:
Apache 2.4.23
Database:
MariaDB 10.0.31

PHP version:
7.0.7

ownCloud version: (see ownCloud admin page)
9.1.6.2

Updated from an older ownCloud or fresh install:
updated, started with 8.x
Where did you install ownCloud from:
from rpms on http://download.owncloud.org/download/repositories/stable/openSUSE_Leap_42.3

Signing status (ownCloud 9.0 and above):
?

The content of config/config.php:
{
"system": {
"updatechecker": false,
"instanceid": "ocv90mja2d89",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"localhost:10080",
"REMOVED SENSITIVE VALUE"
],
"datadirectory": "\/srv\/www\/htdocs\/owncloud\/data",
"overwrite.cli.url": "http:\/\/localhost:10080\/owncloud",
"dbtype": "mysql",
"version": "9.1.6.2",
"dbname": "owncloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"logtimezone": "UTC",
"installed": true,
"mail_smtpmode": "sendmail",
"mail_smtpsecure": "tls",
"mail_from_address": "cloud",
"mail_domain": "REMOVED SENSITIVE VALUE",
"maintenance": true,
"theme": "",
"loglevel": 0
}
}

List of activated apps:

Enabled:
Disabled:
- calendar
- contacts
- tasks

Are you using external storage, if yes which one: local/smb/sftp/...
no

Are you using encryption: yes/no
yes

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no

Client configuration

Browser:
Firefox, always current
Operating system:
several

Logs

Web server error log

NO logs in apache's erro log

ownCloud log (data/owncloud.log)

{"reqId":"Q3L10gRVIwqFjvsSJSBQ","level":0,"time":"2017-09-13T05:00:10+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade from 9.1.6.2 to 10.0.2.1"}
{"reqId":"Q3L10gRVIwqFjvsSJSBQ","level":3,"time":"2017-09-13T05:00:10+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"market can't be enabled since it is not installed.\",\"Code\":0,\"Trace\":\"#0 \\/srv\\/www\\/htdocs\\/owncloud\\/lib\\/private\\/Repair\\/Apps.php(119): OC\\App\\AppManager->enableApp('market')\n#1 \\/srv\\/www\\/htdocs\\/owncloud\\/lib\\/private\\/Repair.php(88): OC\\Repair\\Apps->run(Object(OC\\Repair))\n#2 \\/srv\\/www\\/htdocs\\/owncloud\\/lib\\/private\\/Updater.php(221): OC\\Repair->run()\n#3 \\/srv\\/www\\/htdocs\\/owncloud\\/lib\\/private\\/Updater.php(108): OC\\Updater->doUpgrade('10.0.2.1', '9.1.6.2')\n#4 \\/srv\\/www\\/htdocs\\/owncloud\\/core\\/Command\\/Upgrade.php(249): OC\\Updater->upgrade()\n#5 \\/srv\\/www\\/htdocs\\/owncloud\\/lib\\/composer\\/symfony\\/console\\/Command\\/Command.php(262): OC\\Core\\Command\\Upgrade->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#6 \\/srv\\/www\\/htdocs\\/owncloud\\/lib\\/composer\\/symfony\\/console\\/Application.php(826): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#7 \\/srv\\/www\\/htdocs\\/owncloud\\/lib\\/composer\\/symfony\\/console\\/Application.php(189): Symfony\\Component\\Console\\Application->doRunCommand(Object(OC\\Core\\Command\\Upgrade), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#8 \\/srv\\/www\\/htdocs\\/owncloud\\/lib\\/composer\\/symfony\\/console\\/Application.php(120): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#9 \\/srv\\/www\\/htdocs\\/owncloud\\/lib\\/private\\/Console\\/Application.php(160): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#10 \\/srv\\/www\\/htdocs\\/owncloud\\/console.php(99): OC\\Console\\Application->run()\n#11 \\/srv\\/www\\/htdocs\\/owncloud\\/occ(11): require_once('\\/srv\\/www\\/htdocs...')\n#12 {main}\",\"File\":\"\\/srv\\/www\\/htdocs\\/owncloud\\/lib\\/private\\/App\\/AppManager.php\",\"Line\":218}"}

Browser log

out of scope

hi,

have you read the doc before manually upgrading?

https://doc.owncloud.com/server/9.1/admin_manual/maintenance/manual_upgrade.html