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

hydra fails to connect mysql server #1463

Closed
RaspiRepo opened this issue Jun 7, 2019 · 3 comments
Closed

hydra fails to connect mysql server #1463

RaspiRepo opened this issue Jun 7, 2019 · 3 comments

Comments

@RaspiRepo
Copy link

Describe the bug

"oryd/hydra:v1.0.0-rc.12" fails to connect mysql database server
but "oryd/hydra:v1.0.0-rc.6_oryOS.10" works fine with same mysql server

A clear and concise description of what the bug is.

Reproducing the bug
Kubernate cluster

  1. deploy mysql server (pod) in kubernte cluster
  2. deploy hydra service using "image: "oryd/hydra:v1.0.0-rc.12"

Steps to reproduce the behavior:

Server logs

`time="2019-06-07T07:26:48Z" level=info msg="Connecting with mysql://*:*@tcp(mysql:3306)/dt10?"
time="2019-06-07T07:26:48Z" level=info msg="Retrying in 0.100000 seconds..."
time="2019-06-07T07:26:49Z" level=info msg="Connecting with mysql://*:*@tcp(mysql:3306)/dt10?"
time="2019-06-07T07:26:49Z" level=info msg="Retrying in 0.200000 seconds..."
time="2019-06-07T07:26:49Z" level=info msg="Connecting with mysql://*:*@tcp(mysql:3306)/dt10?"
time="2019-06-07T07:26:49Z" level=info msg="Retrying in 0.400000 seconds..."
time="2019-06-07T07:26:49Z" level=info msg="Connecting with mysql://*:*@tcp(mysql:3306)/dt10?"
time="2019-06-07T07:26:49Z" level=info msg="Retrying in 0.800000 seconds..."
time="2019-06-07T07:26:50Z" level=info msg="Connecting with mysql://*:*@tcp(mysql:3306)/dt10?"
time="2019-06-07T07:26:50Z" level=info msg="Retrying in 1.600000 seconds..."
time="2019-06-07T07:26:52Z" level=info msg="Connecting with mysql://*:*@tcp(mysql:3306)/dt10?"
time="2019-06-07T07:26:52Z" level=info msg="Retrying in 3.200000 seconds..."
time="2019-06-07T07:26:55Z" level=info msg="Connecting with mysql://*:*@tcp(mysql:3306)/dt10?"
time="2019-06-07T07:26:55Z" level=info msg="Retrying in 5.000000 seconds..."
time="2019-06-07T07:27:00Z" level=info msg="Connecting with mysql://*:*@tcp(mysql:3306)/dt10?"
time="2019-06-07T07:27:00Z" level=info msg="Retrying in 5.000000 seconds..."`

Server configuration
Kubernate cluster

  1. deploy mysql server (pod) in kubernte cluster
    image: "mysql"
    imageTag: "5.7.14"
  2. deploy hydra
    "image: "oryd/hydra:v1.0.0-rc.12"

Expected behavior
>> Subscribe now: http://eepurl.com/di390P << time="2019-06-07T07:21:30Z" level=info msg="Setting up tracing middleware" time="2019-06-07T07:21:30Z" level=info msg="Jaeger tracer configured!" time="2019-06-07T07:21:30Z" level=info msg="Connecting with mysql://*:*@tcp(mysql:3306)/dt10?" time="2019-06-07T07:21:30Z" level=info msg="Connected to SQL!" time="2019-06-07T07:21:30Z" level=warning msg="Could not parse login and consent request lifespan value (). Defaulting to 15m" time="2019-06-07T07:21:30Z" level=info msg="Setting up Prometheus middleware" time="2019-06-07T07:21:30Z" level=info msg="Setting up http server on :4445" time="2019-06-07T07:21:30Z" level=info msg="TLS termination enabled, disabling https." time="2019-06-07T07:21:30Z" level=info msg="Setting up http server on :4444" time="2019-06-07T07:21:30Z" level=info msg="TLS termination enabled, disabling https."
A clear and concise description of what you expected to happen.

Environment

Additional context
version image oryd/hydra:v1.0.0-rc.6_oryOS.10" works mysql server version "5.7.14"
but "v1.0.0-rc.12" does not work.

Add any other context about the problem here.

@aeneasr
Copy link
Member

aeneasr commented Jun 7, 2019

Probably dupe #1457 or #1460

@RaspiRepo
Copy link
Author

its not dupe #1457 or #1460
mysql username/psw don't have char @, but & *

@aeneasr
Copy link
Member

aeneasr commented Jun 11, 2019

It is a dupe, as it uses a non-url-standard char.

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