-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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]: Upgrade to nextcloud 28.0.10 fails with Database error when running migration for app oauth2 [OpenProject integration] #48267
Comments
the nextcloud server log
|
Coming from a recent change made in #47635. The error suggests one of your server/apps/oauth2/lib/Migration/Version011901Date20240829164356.php Lines 34 to 41 in 77c1db0
server/lib/private/Security/Crypto.php Lines 108 to 114 in 77c1db0
|
cc @julien-nc |
Thanks for looking into our bug report! I hope the infos provided below answer your questions. If there is anything else I can assist you with please let me know. We use oauth2 for our OpenProject integration. The format of our oauth2_clients table is as following:
The content is as follow:
|
@cybertschunk Hi. This is most likely because the OpenProject integration app that created this OAuth client was not in tune with the server at the moment it created it. Let me clarify 😁 . I think what happened is: The OAuth client was created by the OpenProject app while the server was in a (B) state. But the OpenProject app was not up-to-date and it created it unencrypted. And now the server migration is failing to decrypt the value when trying to migrate to (C). The easy way to get out of this would be to delete this OAuth app and reconfigure the OpenProject integration. Make sure you are using integration_openproject v2.7.0 which knows it has to hash the secret on Nextcloud 28.0.10. Does that make sense? |
hey @julien-nc thanks so much for your explanation! I will try out the steps outlined by you and keep you posted on how it went. Shall I open a bug report on the integration repo then so they can fix this issue? |
@cybertschunk As far as I know they have been informed and the next (or current latest) release of integration_openproject should be fine. |
Feel free to reopen this issue if needed. |
I performed the upgrade as you instructed and it worked just fine. Thanks so much for your help! |
You're welcome. Thanks for the feedback. |
Bug description
When we try to upgrade our nextcloud version from 28.0.9 to 28.0.10 the upgrade fails with the following error:
Steps to reproduce
Expected behavior
The nextcloud installation updates to 28.0.10
Nextcloud Server version
28
Operating system
Other
PHP engine version
Other
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 28.0.1 to 28.0.2)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
too long for GitHub
Additional info
we use the community docker image for nextcloud
The text was updated successfully, but these errors were encountered: