Hi all, just ran into an issue testing out the `or...
# talk-kratos
r
Hi all, just ran into an issue testing out the
oryd/kratos:v1.1.0-distroless
image with
dsn: memory
.
Copy code
2024-02-21 11:35:47 time=2024-02-21T16:35:47Z level=error msg=Unable to initialize service registry. audience=application error=map[message:could not create new connection: sqlite3 support was not compiled into the binary stack_trace:
2024-02-21 11:35:47 <http://github.com/ory/kratos/driver.(*RegistryDefault).Init.func1|github.com/ory/kratos/driver.(*RegistryDefault).Init.func1>
2024-02-21 11:35:47     /project/driver/registry_default.go:653
2024-02-21 11:35:47 <http://github.com/cenkalti/backoff.RetryNotify|github.com/cenkalti/backoff.RetryNotify>
2024-02-21 11:35:47     /go/pkg/mod/github.com/cenkalti/backoff@v2.2.1+incompatible/retry.go:37
2024-02-21 11:35:47 <http://github.com/cenkalti/backoff.Retry|github.com/cenkalti/backoff.Retry>
2024-02-21 11:35:47     /go/pkg/mod/github.com/cenkalti/backoff@v2.2.1+incompatible/retry.go:24
2024-02-21 11:35:47 <http://github.com/ory/kratos/driver.(*RegistryDefault).Init|github.com/ory/kratos/driver.(*RegistryDefault).Init>
2024-02-21 11:35:47     /project/driver/registry_default.go:633
2024-02-21 11:35:47 <http://github.com/ory/kratos/driver.New|github.com/ory/kratos/driver.New>
2024-02-21 11:35:47     /project/driver/factory.go:24
2024-02-21 11:35:47 <http://github.com/ory/kratos/cmd/serve.NewServeCmd.func1|github.com/ory/kratos/cmd/serve.NewServeCmd.func1>
2024-02-21 11:35:47     /project/cmd/serve/root.go:26
2024-02-21 11:35:47 <http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
2024-02-21 11:35:47     /go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:940
2024-02-21 11:35:47 <http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
2024-02-21 11:35:47     /go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068
2024-02-21 11:35:47 <http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
2024-02-21 11:35:47     /go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
2024-02-21 11:35:47 <http://github.com/ory/kratos/cmd.Execute|github.com/ory/kratos/cmd.Execute>
2024-02-21 11:35:47     /project/cmd/root.go:70
2024-02-21 11:35:47 main.main
2024-02-21 11:35:47     /project/main.go:14
2024-02-21 11:35:47 runtime.main
2024-02-21 11:35:47     /usr/local/go/src/runtime/proc.go:267
2024-02-21 11:35:47 runtime.goexit
2024-02-21 11:35:47     /usr/local/go/src/runtime/asm_amd64.s:1650] service_name=Ory Kratos service_version=v1.1.0
2024-02-21 11:35:47 Error: could not create new connection: sqlite3 support was not compiled into the binary
Something new? I created an issue on github: https://github.com/ory/kratos/issues/3772.
r
Does this also happen with the regular images?
r
The regular image
oryd/kratos:v1.1.0
works fine.
r
The distroless image is built without CGO, so without sqlite support. I think this has been the case for v1.0 also.
r
Perhaps the previous image I was testing against was the alpine build. I built it manually from the
v1.1.0-pre.0
tag (not seeing that tag anymore).
r
I've created a PR to clarify this: https://github.com/ory/docs/pull/1655
r
Doc changes look good. I'll switch the alpine version for these tests.