Closed gcclinux closed 2 years ago
I would suspect that you might be affected by this too: https://github.com/marius-wieschollek/passwords/issues/397#issuecomment-875707052 .
If not please fill out the entire bug report form and we treat this as a separate issue.
Does this issue persist with 2021.7.2?
I'm experiencing issues that look quite similar.
Server: Nextcloud Version: 21.0.3 PHP Version: 7.4.3 Database and Version: MySQL 8.0.25 Server OS and Version: Ubuntu 20.04.2 Passwords Version: 2021.7.22 and 2021.7.23-build4219
Install the update from 2021.7.21 to 2021.7.22 or 2021.7.23-build4219 (both via app store and manual install).
The update fails and Passwords is disabled afterwards. Error message: An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'oc_passwords_share.pw_index_share'
Thanks for looking into it!
@johannes-schliephake In your case it seems more like an issue when moving the share information for passwords.
Can you check if the old table passwords_entity_share
has any entry without uuid?
That table is not present anymore. The database only holds the new tables you listed in another issue.
do you have a recent backup?
Yes, but it's a bit of a pain to restore (it's a backup of the entire database). If you just want me to check the UUIDs it's easier.
If you could check that it would be good. Then i can at least fix the issue for the next to run into it.
But also after shares, the passwords_entity_tag
, passwords_entity_tag_revision
, passwords_relation_password_tag
are copied, so you might want to restore some of the tables to fix this.
Ok, so the latest backup of 2021.7.21 did not contain the entity tables either. Upgrading from the backup 2021.7.21 to 2021.7.23 did work however.
Hello,
This is the 3rd time I am writing about this issue after the upgrade, the first time it was closed due to duplicate ticket, then the second was closed with not fix, so here I am again, I can't access my passwords, please help.
` I am still seeing the same error, has there been any more updates that I missed?
$ sudo -u www-data php occ app:enable passwords An exception occurred while executing a query: SQLSTATE[42P07]: Duplicate table: 7 ERROR: `