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

Sqlite3 support missing from the 1.1.0-distroless docker image #3772

Closed
5 tasks done
mehdimas opened this issue Feb 21, 2024 · 2 comments
Closed
5 tasks done

Sqlite3 support missing from the 1.1.0-distroless docker image #3772

mehdimas opened this issue Feb 21, 2024 · 2 comments
Labels
bug Something is not working.

Comments

@mehdimas
Copy link

Preflight checklist

Ory Network Project

No response

Describe the bug

I ran one of my integration tests prior to upgrading to 1.1.0 and encountered a Kratos error on startup.

My test uses a Kratos instance based on the 1.1.0-distroless tag.

Kratos config includes: dsn: memory.

On startup Kratos fails to connect to the DB.

Reproducing the bug

Run the oryd/kratos:v1.1.0-distroless docker image with a minimal kratos config using dsn set to memory.

Relevant log output

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 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 github.com/cenkalti/backoff.RetryNotify
2024-02-21 11:35:47     /go/pkg/mod/github.com/cenkalti/[email protected]+incompatible/retry.go:37
2024-02-21 11:35:47 github.com/cenkalti/backoff.Retry
2024-02-21 11:35:47     /go/pkg/mod/github.com/cenkalti/[email protected]+incompatible/retry.go:24
2024-02-21 11:35:47 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 github.com/ory/kratos/driver.New
2024-02-21 11:35:47     /project/driver/factory.go:24
2024-02-21 11:35:47 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 github.com/spf13/cobra.(*Command).execute
2024-02-21 11:35:47     /go/pkg/mod/github.com/spf13/[email protected]/command.go:940
2024-02-21 11:35:47 github.com/spf13/cobra.(*Command).ExecuteC
2024-02-21 11:35:47     /go/pkg/mod/github.com/spf13/[email protected]/command.go:1068
2024-02-21 11:35:47 github.com/spf13/cobra.(*Command).Execute
2024-02-21 11:35:47     /go/pkg/mod/github.com/spf13/[email protected]/command.go:992
2024-02-21 11:35:47 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

Relevant configuration

version: v1.1.0

dsn: memory

Version

1.1.0

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Docker

Additional Context

No response

@mehdimas mehdimas added the bug Something is not working. label Feb 21, 2024
@aeneasr
Copy link
Member

aeneasr commented Feb 21, 2024

distroless doesn't have C support afaik, so you can't use SQLite

@alnr
Copy link
Contributor

alnr commented Feb 21, 2024

Closed by ory/docs#1655

@alnr alnr closed this as completed Feb 21, 2024
@mehdimas mehdimas changed the title Sqllite3 support missing from the 1.1.0-distroless docker image Sqlite3 support missing from the 1.1.0-distroless docker image Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

3 participants