Closed codemandosch closed 2 years ago
Thank you for your report @codemandosch. It would be very helpful if you could contribute a failing test case or comment a reproducible environment (e.g. a Dockerfile) with a script that triggers the issue.
It looks like you might be missing some SQL migrations in the system that fails. Did you run „hydra migrate sql“?
Nad as @grantzvolsky said a reproducible case would be very helpful!
This was indeed correct @grantzvolsky @aeneasr . It was somewhat strange that our two environments was on different migration versions. But now we have migrated production and it's working. Closing the issue. :pray:
Preflight checklist
Describe the bug
We have a staging and a production environment. When we try do a request to the
oauth2/auth
endpoint on the former. Everything works out and a row is created in thehydra_2_authentication_request
table and our request is redirected as expected. When we do the exact same thing in the production environment, with the same settings, we get the following error:and looking at the table
hydra_2_authentication_request
, there is no row created (as there would be in a working environment). We suspect something goes wrong when creating the row in the DB but at the same time, it can still create clients and bearer tokens via client credentials the normal way.Reproducing the bug
Running ory hydra in docker swarm with traefik load balancer, https is handled in traefik and then the request is relayed internally to hydra in the dockerswarm.
Relevant log output
Relevant configuration
No response
Version
v1.10.7
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker Compose
Additional Context
No response