-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
migration 0.11.10 > 1.0 : did you forget to run hydra migrate sql" or forget to set the SYSTEM_SECRET #926
Comments
To which version of 1.0 are you upgrading? Did you set the |
1.0.0-beta.6 and I already set SYSTEM_SECRET. Its the same as I using in version 0.11.10. |
Could you try upgrading to beta.4 and see if that works? |
So the thing is, "unexpected end of JSON input" points to a malformed JSON string in the table. I'm not sure how that can happen here. The store works as follows:
To retrieve it, it works as follows:
Since you're seeing Not sure what's going on here. One way to solve this without negative side effects is to remove the key from the database manually:
|
Thanks for quick reply. I have try to use beta.4 and it fail too. So I try |
No effect whatsoever, unless you hardcoded that JSON Web Key somewhere (which you shouldn't and probably didn't). All the command does is to remove the old key. When restarting hydra, the key will be automatically re-generated. There's also a bug in #921 which causes the beta.6 upgrade to fail if a pre-existing key is stored in the database but that is - as far as I can tell - unrelated to what you're experiencing. |
Thanks @arekkas . |
I've try to migrate to new version, while I run hydra
hydra serve --dangerous-force-http
it's always fails withINFO[0000] Connected to SQL! FATA[0000] Could not fetch private signing key for OpenID Connect - did you forget to run "hydra migrate sql" or forget to set the SYSTEM_SECRET? error="unexpected end of JSON input"
But if I create new db schema it's working fine.
The text was updated successfully, but these errors were encountered: