Skip to content

[Bug]: Error "An index with name "unique_bucket_store" was already defined" while updateing from 32.0.2 to 33.0.0 #58591

@Volker-K

Description

@Volker-K

⚠️ This issue respects the following points: ⚠️

Bug description

On our stageing instance, I made a proof of concept with Nextcloud Office App (richdocuments). Later I disabled and deleted this app.
Updateing the instance from 32.0.2 to 33.0.0 threw the error

Exception: Database error when running migration 33000Date20251023120529 for app core
An index with name "unique_bucket_store" was already defined on table "oc_preview_locations".
Update failed

while updating the database schema. Table oc_preview_locations has been created from Nextcloud Office. The error occurs with nextcloud office enabled, disabled and even after it is deleted.

Steps to reproduce

  1. Install nextcloud office on NC 32.0.2
  2. disable and delete the app
  3. migrate to NC 33.0.0

Expected behavior

Updateing the instance should just work. Either after deleting Nextclod Office App the app's tables should be deleted or the core should not try to update tables that belong to an app.

Nextcloud Server version

32

Operating system

Other

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions