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

nextcloud upgrade to 12.0.5 oauth2 problem #8256

Closed
lukonh opened this issue Feb 8, 2018 · 6 comments
Closed

nextcloud upgrade to 12.0.5 oauth2 problem #8256

lukonh opened this issue Feb 8, 2018 · 6 comments

Comments

@lukonh
Copy link

lukonh commented Feb 8, 2018

hello, i have problem with upgrade to nextcloud 12.0.5.
i have this error

Doctrine\DBAL\Exception\UniqueConstraintViolationException: An exception occurred while executing 'CREATE UNIQUE INDEX oauth2_access_hash_idx ON oc_oauth2_access_tokens (hashed_code)': SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'oauth2_access_hash_idx'

@lukonh lukonh changed the title nexcloud upgrade to 12.0.5 oauth2 problem nextcloud upgrade to 12.0.5 oauth2 problem Feb 8, 2018
@bcutter
Copy link

bcutter commented Feb 17, 2018

Same here. Using nextcloud migration tool which uses Nextcloud v12.0.4.

@nickvergessen
Copy link
Member

Do you have any stack trace for that error or other steps to reproduce?

@bcutter
Copy link

bcutter commented Feb 22, 2018

Nope, sorry - not a developer, only a brave power user. But I have to admit: I only got there trying to migrate from an unsupported OC version (no migration path to NC available yet), see #6532 (comment).

@bcutter
Copy link

bcutter commented Feb 27, 2018

Regarding https://help.nextcloud.com/t/migrating-from-owncloud-10-x-to-nextcloud-12-x-or-not-and-if-so-how/25002?page=2: I heard about NC v12.0.6 being released in a few days/weeks. So there will be a migration path finally, but I fear ending up in the same - this - issue...

@bcutter
Copy link

bcutter commented Mar 4, 2018

Tried a manual migration from OC v10.0.6.1 to NC v12.0.5 again. This time I disabled the oauth2 app using occ in advance of the migration. During the migration I ran into the same error message again, this time I simply deleted all lines (only 4 of them) of table oc_oauth2_access_tokens and ran occ upgrade again - with success. Will reenable the app and hope to can easily switch to OAuth again.

@ChristophWurst
Copy link
Member

I'm closing this ticket due to inactivity. From the latest comment I take that the problem was resolved by upgrading Nextcloud.

@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants