Skip to content

Upgrade to Nextcloud 14 beta 2 fails #10517

@moretocome

Description

@moretocome

As the title states, upgrade from Nextcloud 13.0.5 to Nextcloud 14 beta 2 fails with the error message:

InvalidArgumentException: Index name "oc_mail_collected_addresses"."mail_collected_addr_userid_index" is too long.
Update failed

I used updater.phar. The full upgrade log can be seen here:

[username]@[host]:/var/www/nextcloud $ sudo -u www-data php updater/updater.phar 
[sudo] password for [username]: 
Nextcloud Updater - version: v13.0.5RC1

Current version is 13.0.5.

Update to Nextcloud 14.0.0 Beta 1 available. (channel: "beta")
Following file will be downloaded automatically: https://download.nextcloud.com/server/prereleases/nextcloud-14.0.0beta2.zip

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Update of code successful.

Should the "occ upgrade" command be executed? [Y/n] 
Nextcloud 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
Set log level to debug
Updating database schema
InvalidArgumentException: Index name "oc_mail_collected_addresses"."mail_collected_addr_userid_index" is too long.
Update failed
Maintenance mode is kept active
Reset log level

Keep maintenance mode active? [y/N] 

Maintenance mode is disabled

[username]@[host]:/var/www/nextcloud $ sudo -u www-data php occ upgrade
[sudo] password for [username]: 
Nextcloud 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
Set log level to debug
Turned on maintenance mode
Updating database schema
InvalidArgumentException: Index name "oc_mail_collected_addresses"."mail_collected_addr_userid_index" is too long.
Update failed
Maintenance mode is kept active
Reset log level

Operating system:

OS: Raspbian GNU/Linux 9.4 (stretch) armv7l
Model: Raspberry Pi 3 Model B Rev 1.2
Kernel: 4.14.52-v7+

Web server:

nginx version: nginx/1.13.12

Database:

Server version: 10.1.29-MariaDB-6+b1 Raspbian testing-staging

PHP version:

PHP 7.2.4-1+b2

List of activated apps:

App list
Nextcloud 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:
  - activity: 2.6.1
  - admin_audit: 1.3.0
  - admin_notifications: 1.0.1
  - audioplayer: 2.3.1
  - bookmarks: 0.11.0
  - bruteforcesettings: 1.1.0
  - calendar: 1.6.1
  - cloud_federation_api: true
  - comments: 1.3.0
  - contacts: 2.1.5
  - dashboard: 5.0.0
  - dav: 1.4.7
  - deck: 0.4.1
  - external: 3.0.3
  - federatedfilesharing: 1.3.1
  - federation: 1.3.0
  - files: 1.8.0
  - files_downloadactivity: 1.2.0
  - files_external: 1.4.1
  - files_markdown: 2.0.4
  - files_pdfviewer: 1.2.1
  - files_rightclick: 0.8.4
  - files_sharing: 1.5.0
  - files_texteditor: 2.5.1
  - files_trashbin: 1.3.0
  - files_versions: 1.6.0
  - files_videoplayer: 1.2.0
  - gallery: 18.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.1.0
  - mail: 0.8.3
  - metadata: 0.6.0
  - news: 12.0.4
  - notes: 2.3.2
  - notifications: 2.1.2
  - oauth2: 1.1.1
  - ownbackup: 17.5.0
  - password_policy: 1.3.0
  - passwords: 2018.7.0
  - polls: 0.8.1
  - previewgenerator: 1.1.0
  - provisioning_api: 1.3.0
  - qownnotesapi: 17.5.0
  - ransomware_protection: 1.1.1
  - serverinfo: 1.3.0
  - sharebymail: 1.3.0
  - socialsharing_email: 1.0.3
  - socialsharing_facebook: 1.0.2
  - spreed: 3.2.5
  - tasks: 0.9.6
  - theming: 1.4.5
  - twofactor_backupcodes: 1.2.3
  - updatenotification: 1.3.0
  - weather: 1.5.1
  - workflowengine: 1.3.0
Disabled:
  - accessibility
  - encryption
  - files_reader
  - firstrunwizard
  - issuetemplate
  - music
  - nextcloud_announcements
  - ownpad
  - support
  - survey_client
  - systemtags
  - user_external
  - user_ldap

Nextcloud configuration:

Config report
Nextcloud 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": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "01cloud.duckdns.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/01cloud.duckdns.org",
        "dbtype": "mysql",
        "version": "13.0.5.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "htaccess.RewriteBase": "\/",
        "overwriteprotocol": "https",
        "loglevel": 2,
        "logtimezone": "Europe\/Copenhagen",
        "logfile": "\/media\/nextcloud\/nextcloud.log",
        "log_rotate_size": 104857600,
        "cron_log": true,
        "filesystem_check_changes": 0,
        "quota_include_external_storage": false,
        "knowledgebaseenabled": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": "true",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 1.5,
            "dbindex": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "maintenance": true,
        "theme": "",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\Epub"
        ],
        "preview_max_x": 1024,
        "preview_max_y": 768,
        "preview_max_scale_factor": 1,
        "auth.bruteforce.protection.enabled": true,
        "activity_expire_days": 14,
        "trashbin_retention_obligation": "auto, 7",
        "blacklisted_files": [
            ".htaccess",
            "Thumbs.db",
            "thumbs.db"
        ],
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpsecure": "ssl",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "updater.release.channel": "beta"
    }
}

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Do I get a t-shirt? :D

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions