Upgrade to ownCloud 9.1 to 10.4.1

Steps to reproduce

1.back up ownCloud9 and renamed to owncloud-old
2.downloaded and extracted ownCloud10.4.1 in htsdocs
3.copied config.php into new release config folder
4.sudo -u wwwrun php occ upgrade

Expected behaviour

Upgrade to proceed without errors

Actual behaviour

Get an error "Exception: Updates between multiple major versions and downgrades are unsupported.Update failed.

Server configuration

SLES 12

Web server:
Apache (php7.2)

Database:
MySQL
PHP version:

ownCloud version: (see ownCloud admin page)
10.4.1

Updated from an older ownCloud or fresh install:
update from version 9.1

Where did you install ownCloud from:
Downloaded> wget https://download.owncloud.org/community


**Signing status (ownCloud 9.0 and above):**
ownCloud 10.2

Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results into https://gist.github.com/ and puth the link here.


**The content of config/config.php:**

 sudo -u wwwrun php occ config: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
{
    "system": {
        "instanceid": "oc0y00tab9td",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "www.dst.gov.za",
            ""
        ],
        "datadirectory": "\/home\/dstcloud\/data",
        "overwrite.cli.url": "http:\/\/www.dst.gov.za\/owncloud",
        "dbtype": "mysql",
        "version": "8.1.1.3",
        "dbname": "************",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "theme": "",
        "maintenance": true,
        "mail_smtpdebug": true,
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "apps_paths": [
            {
                "path": "\/home\/www\/htdocs\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/home\/www\/htdocs\/owncloud\/apps2",
                "url": "\/apps2",
                "writable": true
            }
        ],
        "loglevel": 4,
        "mail_smtpport": "25"
    },
    "apps": {
        "activity": {
            "enabled": "no",
            "installed_version": "2.2.1",
            "types": "filesystem"
        },
        "admin_dependencies_chk": {
            "enabled": "no",
            "installed_version": "0.02",
            "ocsid": "166041",
            "types": ""
        },
        "backgroundjob": {
            "lastjob": "7259"
        },
        "bookmarks": {
            "enabled": "no",
            "installed_version": "0.4",
            "ocsid": "168710",
            "types": ""
        },
        "calendar": {
            "enabled": "no",
            "installed_version": "0.7.3",
            "ocsid": "168707",
            "types": ""
        },
        "comments": {
            "enabled": "no",
            "installed_version": "0.2",
            "types": "logging"
        },
        "configreport": {
            "enabled": "no",
            "installed_version": "0.1.1",
            "types": "filesystem"
        },
        "contacts": {
            "enabled": "no",
            "installed_version": "0.4.0.0",
            "ocsid": "168708",
            "types": ""
        },
        "core": {
            "OC_Channel": "stable",
            "backgroundjobs_mode": "ajax",
            "default_encryption_module": "OC_DEFAULT_MODULE",
            "encryption_enabled": "yes",
            "global_cache_gc_lastrun": "1439572035",
            "incoming_server2server_share_enabled": "yes",
            "installedat": "1407390550.2377",
            "lastcron": "1588928934",
            "lastupdateResult": "{\"version\":\"9.1.8\",\"versionstring\":\"ownCloud 9.1.8\",\"url\":\"https:\\\/\\\/download.owncloud.org\\\/community\\\/owncloud-9.1.8.zip\",\"web\":\"https:\\\/\\\/doc.owncloud.org\\\/server\\\/9.1\\\/admin_manual\\\/maintenance\\\/upgrade.html\"}",
            "lastupdatedat": "1588927547",
            "oc.integritycheck.checker": "[]",
            "outgoing_server2server_share_enabled": "yes",
            "public_caldav": "calendar\/share.php",
            "public_calendar": "calendar\/share.php",
            "public_documents": "documents\/public.php",
            "public_files": "files_sharing\/public.php",
            "public_gallery": "gallery\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "remote_caldav": "dav\/appinfo\/v1\/caldav.php",
            "remote_calendar": "dav\/appinfo\/v1\/caldav.php",
            "remote_carddav": "dav\/appinfo\/v1\/carddav.php",
            "remote_contacts": "dav\/appinfo\/v1\/carddav.php",
            "remote_dav": "dav\/appinfo\/v2\/remote.php",
            "remote_files": "dav\/appinfo\/v1\/webdav.php",
            "remote_filesync": "files\/appinfo\/filesync.php",
            "remote_webdav": "dav\/appinfo\/v1\/webdav.php",
            "repairlegacystoragesdone": "yes",
            "shareapi_allow_mail_notification": "yes",
            "shareapi_allow_public_notification": "yes",
            "shareapi_allow_public_upload": "yes",
            "shareapi_default_expire_date": "no",
            "shareapi_enforce_expire_date": "yes",
            "shareapi_exclude_groups": "no",
            "shareapi_only_share_with_group_members": "no",
            "updater.secret.created": "************"
        },
        "dashboard": {
            "enabled": "no",
            "installed_version": "1.1",
            "types": ""
        },
        "dav": {
            "enabled": "yes",
            "installed_version": "0.1.6",
            "types": "filesystem"
        },
        "documents": {
            "converter": "local",
            "enabled": "no",
            "installed_version": "0.10.2",
            "ocsid": "168711",
            "types": "",
            "unstable": "false"
        },
        "encryption": {
            "enabled": "no",
            "installed_version": "1.2.0",
            "masterKeyId": "master_4dccd4bf",
            "publicShareKeyId": "pubShare_6b9d1dcf",
            "recoveryAdminEnabled": "1",
            "recoveryKeyId": "recoveryKey_6b9d1dcf",
            "types": "filesystem"
        },
        "external": {
            "enabled": "no",
            "installed_version": "1.2",
            "ocsid": "166046",
            "types": ""
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "0.1.0",
            "types": ""
        },
        "federation": {
            "enabled": "no",
            "installed_version": "0.0.4",
            "types": "authentication"
        },
        "files": {
            "default_quota": "none",
            "enabled": "yes",
            "installed_version": "1.4.4",
            "types": "filesystem"
        },
        "files_antivirus": {
            "av_path": "\/usr\/bin\/clamscan",
            "enabled": "no",
            "installed_version": "0.8.1.0",
            "ocsid": "157439",
            "types": "filesystem"
        },
        "files_embeddedvideo": {
            "enabled": "no",
            "installed_version": "0.0.6",
            "types": ""
        },
        "files_external": {
            "allow_user_mounting": "no",
            "enabled": "yes",
            "installed_version": "0.5.2",
            "ocsid": "166048",
            "types": "filesystem",
            "user_mounting_backends": "\\OC\\Files\\Storage\\Google"
        },
        "files_locking": {
            "enabled": "no",
            "installed_version": "0.0.1",
            "types": "filesystem"
        },
        "files_mv": {
            "enabled": "no",
            "installed_version": "0.7.0",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "no",
            "installed_version": "0.8.1",
            "ocsid": "166049",
            "types": ""
        },
        "files_sharing": {
            "enabled": "no",
            "incoming_server2server_share_enabled": "yes",
            "installed_version": "0.9.1",
            "outgoing_server2server_share_enabled": "yes",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "no",
            "installed_version": "2.1",
            "ocsid": "166051",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "no",
            "installed_version": "0.8.0",
            "types": "filesystem"
        },
        "files_tree": {
            "enabled": "no",
            "installed_version": "0.9.0",
            "types": ""
        },
        "files_versions": {
            "enabled": "no",
            "installed_version": "1.2.0",
            "types": "filesystem"
        },
        "files_videoplayer": {
            "enabled": "no",
            "installed_version": "0.9.8",
            "types": ""
        },
        "files_videoviewer": {
            "enabled": "no",
            "installed_version": "0.1.3",
            "ocsid": "166054",
            "types": ""
        },
        "firstrunwizard": {
            "enabled": "no",
            "installed_version": "1.1",
            "ocsid": "166055",
            "types": ""
        },
        "gallery": {
            "enabled": "no",
            "installed_version": "14.5.0",
            "types": ""
        },
        "market": {
            "enabled": "yes",
            "installed_version": "0.5.0",
            "types": ""
        },
        "notifications": {
            "enabled": "no",
            "installed_version": "0.2.3",
            "types": "logging"
        },
        "ocDashboard": {
            "enabled": "no",
            "installed_version": "1.3",
            "types": ""
        },
        "ocusagecharts": {
            "enabled": "no",
            "installed_version": "3.4.5",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "no",
            "installed_version": "0.4.1",
            "types": "prevent_group_restriction"
        },
        "search_lucene": {
            "enabled": "no",
            "installed_version": "0.7.0",
            "ocsid": "168709",
            "types": "filesystem"
        },
        "storage_charts": {
            "enabled": "no",
            "installed_version": "2.3.5",
            "types": ""
        },
        "storagecharts2": {
            "enabled": "no",
            "installed_version": "2.6.1",
            "types": ""
        },
        "systemtags": {
            "enabled": "no",
            "installed_version": "0.2",
            "types": "logging"
        },
        "templateeditor": {
            "enabled": "no",
            "installed_version": "0.1",
            "types": ""
        },
        "updatenotification": {
            "enabled": "no",
            "installed_version": "0.1.0",
            "types": ""
        },
        "updater": {
            "enabled": "no",
            "installed_version": "0.6",
            "types": ""
        }
    }
}

List of activated apps:

sudo -u wwwrun 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:

  • dav: 0.1.6
  • federatedfilesharing: 0.1.0
  • files: 1.4.4
  • files_external: 0.5.2
  • market: 0.5.0
    Disabled:
  • calendar
  • comments
  • configreport
  • contacts
  • documents
  • encryption
  • external
  • federation
  • files_antivirus
  • files_sharing
  • files_trashbin
  • files_versions
  • files_videoplayer
  • firstrunwizard
  • notifications
  • provisioning_api
  • search_lucene
  • systemtags
  • updatenotification
  • user_external

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

**Are you using encryption:*no**




### Client configuration
**Browser:** Firefox

**Operating system:**
Windows 10

### Logs
#### Web server error log

Insert your webserver log here


#### ownCloud log (data/owncloud.log)

Insert your ownCloud log here


#### Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) …

Hey,

it seems that you’re running ownCloud 8.1.1 and not 9.1 as described in your post. From what i know you can’t upgrade such an old version directly to 10.4 (which is explained in the posted error message).

But it seems to me that documentation below could give some hints on the required upgrade path:

https://doc.owncloud.org/server/10.4/admin_manual/maintenance/upgrade.html

If i’m understanding it correctly you would need to update 8.1.1 to 8.1.12 first, followed by an update to 8.2.11 and a final update to 10.4.1.