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

Primary index name "id" for table "oc_forms_v2_uploaded_files" collides with the constraint on table "oc_e2e_encryption_lock". #2346

Closed
RainerEmrich opened this issue Oct 5, 2024 · 6 comments
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@RainerEmrich
Copy link

Describe the bug
Updating tthe Forms app to Version 4.3.0 gives the error:
{"reqId":"6xRpvk0LJJZu7sdEXy2W","level":2,"time":"2024-10-05T04:50:55+00:00","remoteAddr":"","user":"--","app":"forms","method":"","url":"--","message":"Primary index name "id" for table "oc_forms_v2_uploaded_files" collides with the constraint on table "oc_e2e_encryption_lock".","userAgent":"--","version":"29.0.7.1","data":{"app":"forms"}}

To Reproduce
Steps to reproduce the behavior:

Updating Forms to version 4.3.0

Expected behavior
There should be no database index collision.

Nextcloud (please complete the following information):

  • Nextcloud-Version: 29.0.7.1
  • Forms-Version: 4.3.0
@Chartman123
Copy link
Collaborator

Chartman123 commented Oct 5, 2024

@RainerEmrich do you have the e2e app installed and updated to the latest version? I saw that there are several changes in the DB table schema for their app related to the indexes. Also there's this open issue I linked. So I'm unsure, if we can do anything here. The new table is created just like all our other tables.

@RainerEmrich
Copy link
Author

@RainerEmrich do you have the e2e app installed and updated to the latest version? I saw that there are several changes in the DB table schema for their app related to the indexes. Also there's this open issue I linked. So I'm unsure, if we can do anything here. The new table is created just like all our other tables.

No, I don't have any end to end encryption app installed.

@Chartman123
Copy link
Collaborator

Ok, then this is the problem... you had it installed in the past and there are some leftovers in your database that haven't been upgraded to the latest schema version. Please try to remove all tables starting with oc_e2e (probably only oc_e2e_encryption_lock) and then try to do the Forms update again :)

@RainerEmrich
Copy link
Author

Ok, then this is the problem... you had it installed in the past and there are some leftovers in your database that haven't been upgraded to the latest schema version. Please try to remove all tables starting with oc_e2e (probably only oc_e2e_encryption_lock) and then try to do the Forms update again :)

I only have oc_e2e_encryption_lock table in the database. So i will remove it and try again.

@RainerEmrich
Copy link
Author

Short summary. I don't know why, but I had the oc_e2e_encryption_lock table in some of my nextcloud instances, but not in all.
I don't remember that I installed an e2e encryption app at any time.
I removed the table oc_e2e_encryption_lock from the database and reinstalled the forms app. For now every thing looks fine.

@Chartman123
Copy link
Collaborator

@RainerEmrich thanks for the feedback and glad you could fix your issue 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants