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

level=fatal msg="Unable to instantiate service registry." error="no driver is capable of handling the given DSN" #1455

Closed
ayushbpl10 opened this issue May 26, 2019 · 4 comments

Comments

@ayushbpl10
Copy link

ayushbpl10 commented May 26, 2019

trying to build a hydra image using docker and then connecting it to postgres container running in docker in the same network.

but
This error comes:

level=fatal msg="Unable to instantiate service registry." error="no driver is capable of handling the given DSN"

This error keeps on coming when trying to run the image.

Built binary using
GO111MODULE=on GOOS=linux GOARCH=amd64 go build && docker build -t hydratest:v1 .

Dockerfile


FROM alpine:3.9

RUN apk add -U --no-cache ca-certificates
FROM scratch

COPY hydra /usr/bin/hydra

ENTRYPOINT ["hydra"]
CMD ["serve", "all"]


running image using:
docker run -d --name hydratest --network hydraguide -p 9000:4444 -p 9001:4445 -e SECRETS_SYSTEM=jayvcjaw5214521 -e URLS_SELF_ISSUER=https://localhost:9000/ -e URLS_CONSENT=http://localhost:3000/consent -e URLS_LOGIN=http://localhost:3000/login hydratest:v1 serve all

@aeneasr
Copy link
Member

aeneasr commented May 26, 2019

You did not set configuration variable dsn. Please read the documentation.

@aeneasr aeneasr closed this as completed May 26, 2019
@Pluies
Copy link

Pluies commented Jan 23, 2020

For what it's worth, I've ran into the same issue when installing Hydra from the Helm chart, as I had put the dsn in the wrong place in the values.yaml file, and no amount of helm update 'ing the chart helped. Long story short... Purging the chart with helm del --purge hydra and reinstalling it worked for me.

@Jouda-2020
Copy link

I have the same error, please any own of you can help me to create the code I am a student and I have no "huge" idea of docker's commands

image

@zsr228
Copy link

zsr228 commented Apr 10, 2020

trying to build a hydra image using docker and then connecting it to postgres container running in docker in the same network.

but
This error comes:

level=fatal msg="Unable to instantiate service registry." error="no driver is capable of handling the given DSN"

This error keeps on coming when trying to run the image.

Built binary using
GO111MODULE=on GOOS=linux GOARCH=amd64 go build && docker build -t hydratest:v1 .

Dockerfile

FROM alpine:3.9

RUN apk add -U --no-cache ca-certificates
FROM scratch

COPY hydra /usr/bin/hydra

ENTRYPOINT ["hydra"]
CMD ["serve", "all"]

running image using:
docker run -d --name hydratest --network hydraguide -p 9000:4444 -p 9001:4445 -e SECRETS_SYSTEM=jayvcjaw5214521 -e URLS_SELF_ISSUER=https://localhost:9000/ -e URLS_CONSENT=http://localhost:3000/consent -e URLS_LOGIN=http://localhost:3000/login hydratest:v1 serve all

$ docker run -d
--name ory-hydra-example--hydra
--network hydraguide
-p 9000:4444
-p 9001:4445
-e SECRETS_SYSTEM=$SECRETS_SYSTEM
-e DSN=$DSN
-e URLS_SELF_ISSUER=https://localhost:9000/
-e URLS_CONSENT=http://localhost:9020/consent
-e URLS_LOGIN=http://localhost:9020/login
oryd/hydra:1.4.2 serve all

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

5 participants