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

Relation "hydra_jwk" does not exist #568

Closed
janekolszak opened this issue Aug 15, 2017 · 4 comments
Closed

Relation "hydra_jwk" does not exist #568

janekolszak opened this issue Aug 15, 2017 · 4 comments

Comments

@janekolszak
Copy link

Hi there!
I'm working on a clean Hydra installation, running in a container defined myself.
Database is created, but empty.

time="2017-08-15T17:43:18Z" level=info msg="Connecting with postgres://*:*@db/hydra?sslmode=disable" 
time="2017-08-15T17:43:18Z" level=info msg="Connected to SQL!" 
Could not fetch signing key for OpenID Connect - did you forget to run "hydra migrate sql" or forget to set the SYSTEM_SECRET? Got error: pq: relation "hydra_jwk" does not exist

Env variables:

            - SYSTEM_SECRET=NWM4M2I3OGY1MTRmYTM5ZDEwNjBhODVl
            - FORCE_ROOT_CLIENT_CREDENTIALS=...
            - DISABLE_TELEMETRY=1
            - CONSENT_URL=https://auth.localhost/login
            - ISSUER=https://oidc.localhost
            - HTTPS_TLS_KEY_PATH=/etc/hydra/key.pem
            - HTTPS_TLS_CERT_PATH=/etc/hydra/cert.pem
            - DATABASE_URL=postgres://postgres:password@db/hydra?sslmode=disable

Any idea what's wrong? Maybe SYSTEM_SECRET is in bad format?

@aeneasr
Copy link
Member

aeneasr commented Aug 15, 2017

Did you run hydra migrate sql <database-url>?

@janekolszak
Copy link
Author

No, why should I? It's an empty database.

@aeneasr
Copy link
Member

aeneasr commented Aug 15, 2017

Migrations are no longer done automatically, this includes installs on a new database, in case you want to use (for example) a custom schema :)

@janekolszak
Copy link
Author

Confirmed - in order to setup Hydra for the first time, on an empty database one has to do hydra migrate sql ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants