Skip to content

Don't enable market app when trying an offline upgrade (9.1.4 -> 10.0.2) #118

@patrickjahns

Description

@patrickjahns

Steps to reproduce

  1. Install owncloud 9.1.4
  2. Download and prepare 10.0.2
  3. Disable marketplace
  4. Attempt to upgrade owncloud from 10.0.2

Expected behaviour

The marketplace app should stay disable during attempted offline upgrade (and show an error when upgrade is not possible to incompatible apps)

Actual behaviour

During occ:upgrade marketplace will be enabled and will attempt to conncect to the marketplace

root@dima:/var/www/owncloud# sudo -u www-data php occ app:disable market
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
market disabled
root@dima:/var/www/owncloud# sudo -u www-data php occ app:list
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Disabled:
...
  - market
...
root@dima:/var/www/owncloud# sudo -u www-data php occ upgrade -vvv
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
2017-07-17T12:39:55+00:00 Set log level to debug
2017-07-17T12:39:55+00:00 Repair step: Repair MySQL database engine
2017-07-17T12:39:55+00:00 Repair step: Repair MySQL collation
2017-07-17T12:39:55+00:00 Repair info: All tables already have the correct collation -> nothing to do
2017-07-17T12:39:55+00:00 Repair step: Repair SQLite autoincrement
2017-07-17T12:39:55+00:00 Repair step: Repair duplicate entries in oc_lucene_status
2017-07-17T12:39:55+00:00 Repair info: lucene_status table does not exist -> nothing to do
2017-07-17T12:39:55+00:00 Repair step: Upgrade app code from the marketplace
2017-07-17T12:39:55+00:00 Repair info: Enabling market app to assist with update
2017-07-17T12:39:55+00:00 Repair info: Using market to update existing apps
2017-07-17T12:39:55+00:00 Repair info: Attempting to update the following existing but incompatible app from market: activity, files_pdfviewer, files_texteditor, gallery
2017-07-17T12:39:55+00:00 Repair info: Fetching app from market: activity
2017-07-17T12:39:58+00:00 Repair warning: GuzzleHttp\Exception\ConnectException
2017-07-17T12:39:58+00:00 Repair warning: cURL error 7: Failed to connect to marketplace.owncloud.com port 443: No route to host
...
root@dima:/var/www/owncloud# sudo -u www-data php occ app:list
ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Enabled:
...
  - market: true
...

@cdamken

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions