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

[Bug]: Database error when running migration 28000Date20230906104802 #41763

Closed
5 of 8 tasks
fbnts opened this issue Nov 27, 2023 · 4 comments
Closed
5 of 8 tasks

[Bug]: Database error when running migration 28000Date20230906104802 #41763

fbnts opened this issue Nov 27, 2023 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug

Comments

@fbnts
Copy link

fbnts commented Nov 27, 2023

⚠️ This issue respects the following points: ⚠️

Bug description

While upgrading to 28.0.0 RC1 I get the error "Exception: Database error when running migration 28000Date20230906104802 for app core Index name "last_checked" for table "oc_storages" collides with the constraint on table "oc_jobs"."

Steps to reproduce

  1. Open the web updater from version 27.1.4
  2. Click "Continue Update"
  3. Then continue with web based updater

When trying to update the DB schema the above error is displayed

Expected behavior

Update the DB schema and Nextcloud server to V28.0.0 RC1

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "allowSymlinks": true,
        "trusted_domains": [
            ***REMOVED SENSITIVE VALUE***
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "htaccess.RewriteBase": "\/",
        "dbtype": "mysql",
        "version": "27.1.4.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "default_phone_region": "GB",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "trashbin_retention_obligation": "20, 40",
        "updatechecker": true,
        "has_internet_connection": true,
        "check_for_working_webdav": true,
        "check_for_working_htaccess": true,
        "logtimezone": "Europe\/London",
        "appstore.experimental.enabled": true,
        "maintenance": false,
        "loglevel": 2,
        "logfile": "\/var\/log\/nextcloud.log",
        "theme": "",
        "updater.release.channel": "beta",
        "mail_sendmailmode": "smtp",
        "app_install_overwrite": [
            "files_downloadactivity",
            "audioplayer",
            "ocsms",
            "radio",
            "spreed",
            "calendar",
            "admin_notifications",
            "workflow_pdf_converter",
            "files_automatedtagging",
            "event_update_notification",
            "forms",
            "announcementcenter",
            "metadata",
            "files_inotify",
            "impersonate",
            "dropit",
            "checksum",
            "phonetrack",
            "circles",
            "tasks"
        ],
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpauth": 1,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled:
  - activity: 2.19.0
  - admin_audit: 1.17.0
  - admin_notifications: 1.0.2
  - calendar: 4.6.0-beta.1
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - deck: 1.11.1
  - federatedfilesharing: 1.17.0
  - files: 1.22.0
  - files_automatedtagging: 1.17.0
  - files_downloadactivity: 1.16.0
  - files_external: 1.19.0
  - files_pdfviewer: 2.8.0
  - files_reminders: 1.0.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - forms: 3.3.1
  - impersonate: 1.14.0
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - metadata: 0.19.0
  - notifications: 2.15.0
  - oauth2: 1.15.1
  - password_policy: 1.17.0
  - provisioning_api: 1.17.0
  - related_resources: 1.2.0
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - spreed: 17.1.3
  - suspicious_login: 5.0.0
  - systemtags: 1.17.0
  - theming: 2.2.0
  - twofactor_backupcodes: 1.16.0
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - workflowengine: 2.9.0
Disabled:
  - bruteforcesettings: 2.7.0 (installed 2.3.0)
  - contactsinteraction: 1.8.0 (installed 1.1.0)
  - encryption: 2.15.0
  - federation: 1.17.0 (installed 1.10.1)
  - firstrunwizard: 2.16.0 (installed 2.9.0)
  - nextcloud_announcements: 1.16.0 (installed 1.9.0)
  - photos: 2.3.0 (installed 1.2.3)
  - privacy: 1.11.0 (installed 1.4.0)
  - recommendations: 1.6.0 (installed 0.8.0)
  - support: 1.10.0 (installed 1.3.0)
  - survey_client: 1.15.0 (installed 1.8.0)
  - text: 3.8.0 (installed 3.1.0)
  - twofactor_totp: 9.0.0
  - user_ldap: 1.17.0
  - weather_status: 1.7.0 (installed 1.0.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

No response

@fbnts fbnts added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Nov 27, 2023
@cscholz
Copy link

cscholz commented Nov 27, 2023

Same issue on my side.

Aktualisierung auf 28.0.0 RC1
Exception: Database error when running migration 28000Date20230906104802 for app core Index name "rd_wopi_token_idx" for table "oc_richdocuments_wopi" collides with the constraint on table "oc_officeonline_wopi".

Detaillierte Protokollmeldungen 
Update vorbereiten

Log-Level auf "debug" gesetzt

Wartungsmodus eingeschaltet

Reparaturschritt: Repair MySQL collation

Reparaturinformation: All tables already have the correct collation -> nothing to do

Reparaturschritt: Copy data from accounts table when migrating from ownCloud

Reparaturschritt: Drop account terms table when migrating from ownCloud

Das Datenbankschema wird aktualisiert

Exception: Database error when running migration 28000Date20230906104802 for app core Index name "rd_wopi_token_idx" for table "oc_richdocuments_wopi" collides with the constraint on table "oc_officeonline_wopi".

@solracsf
Copy link
Member

Duplicate of #41253 (same migration).

@susnux
Copy link
Contributor

susnux commented Dec 2, 2023

Duplicate of #41253

@susnux susnux marked this as a duplicate of #41253 Dec 2, 2023
@susnux susnux closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2023
@bmcbm
Copy link

bmcbm commented Feb 1, 2024

Similar issue:
Exception: Database error when running migration 28000Date20230906104802 for app core Index name "card_value_index" for table "oc_cards_properties" collides with the constraint on table "cards_properties". Update failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug
Projects
None yet
Development

No branches or pull requests

6 participants