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

Using v0.5.3-alpha.3 as recommended in guide results in an error #200

Closed
danielsbird opened this issue May 27, 2020 · 0 comments
Closed

Comments

@danielsbird
Copy link

Describe the bug

I am following the Configure and Deploy section of the guides. The following command fails with an error:

docker run -it --rm \
  --network ketoguide \
  -e DSN=$DSN \
  oryd/keto:v0.5.3-alpha.3 \
  migrate sql -e

Here is the error:

Config file not found because "Config File ".keto" Not Found in "[/]""
INFO[0000] Establishing connection with SQL database backend  dsn="postgres://*:*@ory-keto-example--postgres:5432/keto?sslmode=disable"
INFO[0000] Successfully connected to SQL database backend  dsn="postgres://*:*@ory-keto-example--postgres:5432/keto?sslmode=disable"
INFO[0000] Applying storage SQL migrations...           
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xc69700]

goroutine 1 [running]:
github.com/jmoiron/sqlx.(*DB).DriverName(...)
	/go/pkg/mod/github.com/jmoiron/[email protected]/sqlx.go:261
github.com/ory/keto/storage.(*SQLManager).CreateSchemas(0xc0000a62b8, 0xc0005244e0, 0x1d, 0xc00003a4e0, 0x1)
	/home/ory/storage/manager_sql.go:76 +0x60
github.com/ory/x/sqlcon.MigratorSQLCmd.func1(0xc0000c22c0, 0xc000490190, 0x0, 0x1)
	/go/pkg/mod/github.com/ory/[email protected]/sqlcon/migrate.go:71 +0x448
github.com/spf13/cobra.(*Command).execute(0xc0000c22c0, 0xc000490170, 0x1, 0x1, 0xc0000c22c0, 0xc000490170)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:842 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x1723860, 0xc00058ff40, 0xcf68fa, 0xef77fd)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:943 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:883
github.com/ory/keto/cmd.Execute()
	/home/ory/cmd/root.go:52 +0x31
main.main()
	/home/ory/main.go:25 +0x52

This is the same error reported in #177 and fixed in #178. I was able to avoid this error by using version 0.5.4-alpha.1 instead of version 0.5.3-alpha.3. The docs should be updated to recommend using 0.5.4-alpha.1 instead of 0.5.3-alpha.3.

Reproducing the bug

Steps to reproduce the behavior:

  1. Follow all steps in the Configure and Deploy section of the guides including Run the Ory Keto Service
  2. See the above-mentioned error

Expected behavior

I expected that running docker run -it --rm --network ketoguide -e DSN=$DSN oryd/keto:v0.5.3-alpha.3 migrate sql -e would complete without error.

Environment

  • Version: v0.5.3-alpha.3
aeneasr added a commit that referenced this issue May 27, 2020
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

1 participant