Hey all, I'm working on trying to run a Kratos dep...
# ory-selfhosting
s
Hey all, I'm working on trying to run a Kratos deployment using helm, but I'm hitting an issue were the DSN is not able to locate the MySQL deployment. I'm getting the following error:
Copy code
time=2024-02-25T22:22:54Z level=warning msg=Unable to connect to database, retrying. audience=application error=map[message:the URL '<mysql://user:password@mysql.test.svc.cluster.local:3306/kratos?clientFoundRows=true&multiStatements=true&parseTime=true>' is not supported by MySQL driver: default addr for network 'mysql.test.svc.cluster.local' unknown stack_trace:stack trace could not be recovered from error type *fmt.wrapError] service_name=Ory Kratos service_version=v1.1.0
Have any suggestions? P.S. I am able to see this dns resolve via the
dnsutils
k8s debug pod UPDATE: I got a bit closer... maybe? By wrapping the domain and port (e.g.
tcp(mysql.test.svc.cluster.local:3306)
) I now get this error:
Copy code
level=warning msg=Unable to determine network, retrying. audience=application error=map[debug: message:Unable to locate the table reason: stack_trace: [stack trace here...] service_name=Ory Kratos service_version=v1.1.0
b
s
Thanks, that worked! For others using helm --> make sure
automigration
is enabled