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 on Update #42181

Closed
4 of 8 tasks
Erebus999 opened this issue Dec 12, 2023 · 4 comments
Closed
4 of 8 tasks

[Bug]: Database error on Update #42181

Erebus999 opened this issue Dec 12, 2023 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug feature: install and update

Comments

@Erebus999
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

Das Datenbankschema wird aktualisiert

Exception: Database error when running migration 28000Date20230906104802 for app core Index name "configkey" for table "oc_preferences" collides with the constraint on table "oc_appconfig".

Steps to reproduce

  1. Update Database on Upate to V28

Expected behavior

Exception: Database error when running migration 28000Date20230906104802 for app core Index name "configkey" for table "oc_preferences" collides with the constraint on table "oc_appconfig".

Installation method

Community Manual installation with Archive

Nextcloud Server version

28

Operating system

Other

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MySQL

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

Updated from a MINOR version (ex. 22.1 to 22.2)

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

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@Erebus999 Erebus999 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Dec 12, 2023
@SystemKeeper
Copy link
Contributor

Is this really MySQL or Postgres?

@Erebus999
Copy link
Author

Erebus999 commented Dec 12, 2023

'dbtype' => 'mysql',
Is specified by the Provider

@joshtrichards
Copy link
Member

That migration also doesn't touch that table.

And the only migration that should even be touching the named tables is a completely different one:

if (!$schema->hasTable('preferences')) {

See #42173 for something similar with the same migration but also hitting an unrelated table.

Or do I need more coffee? ☕

@joshtrichards
Copy link
Member

Duplicate of #41253

@joshtrichards joshtrichards marked this as a duplicate of #41253 Dec 12, 2023
@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
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 feature: install and update
Projects
None yet
Development

No branches or pull requests

4 participants