Hi, When I am running the following command krato...
# talk-kratos
Hi, When I am running the following command kratos serve -c .\config\kratos.yml -c .\config\identity.schema.json I am getting the following error The configuration contains values or keys which are invalid: (root) ^-- additionalProperties "$id", "type", "title", "properties" not allowed time=2022-04-11T062436Z level=fatal msg=Unable to instantiate configuration. audience=application error=map[message:I[#] S[#/additionalProperties] additionalProperties "$id", "type", "title", "properties" not allowed] service_name=Ory Kratos service_version=v0.9.0-alpha.3
the identity schema has to be supplied not as the
--config -c
argument, but as a
URL in the
I got the following msg panic: path must begin with '/' in path '\admin\self-service\registration\browser'
Also how to start the server ?
After running the command, I got the following msgs time=2022-04-11T114133Z level=info msg=No tracer configured - skipping tracing setup audience=application service_name=Ory Kratos service_version=v0.9.0-alpha.3 time=2022-04-11T114133Z level=debug msg=Connecting to SQL Database audience=application connMaxLifetime=0s idlePool=2 pool=4 service_name=Ory Kratos service_version=v0.9.0-alpha.3 time=2022-04-11T114133Z level=info msg=Software quality assurance features are enabled. Learn more at: https://www.ory.sh/docs/ecosystem/sqa audience=application service_name=Ory Kratos service_version=v0.9.0-alpha.3 panic: path must begin with '/' in path '\admin\self-service\registration\browser' goroutine 13 [running]: github.com/julienschmidt/httprouter.(*Router).Handle(0xc000cb85d0, {0x165ad03, 0xc000cb8590}, {0xc001160210, 0x37ddc7}, 0x18) /go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:246 +0x1a5 github.com/julienschmidt/httprouter.(*Router).GET(...) /go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:203 github.com/ory/kratos/x.(*RouterAdmin).GET(0xc000006968, {0x16a222c, 0xc000c98900}, 0x14ae940) /project/x/router.go:67 +0xa8 github.com/ory/kratos/selfservice/flow/registration.(*Handler).RegisterAdminRoutes(0xc00043b550, 0xc0010e3d68) /project/selfservice/flow/registration/handler.go:87 +0x56 github.com/ory/kratos/driver.(*RegistryDefault).RegisterAdminRoutes(0xc000c98900, {0x1ac1e68, 0xc000034040}, 0xc000006968) /project/driver/registry_default.go:175 +0x9f github.com/ory/kratos/cmd/daemon.ServeAdmin({0x1b04f20, 0xc000c98900}, 0x0, 0xc0007bef00, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}) /project/cmd/daemon/serve.go:173 +0x8fc created by github.com/ory/kratos/cmd/daemon.ServeAll.func1 /project/cmd/daemon/serve.go:289 +0x265
panic: path must begin with '/' in path '\admin\self-service\registration\browser'
is that value from the config file? are you running on windows? looks like there are wrongly back slashes used instead of forward slashes
Yes. I am running on windows
version: v0.9.0-alpha.3 dsn: postgres://;password=******&amp;sslmode=disable serve: public: base_url: cors: enabled: true admin: base_url: selfservice: default_browser_return_url: allowed_return_urls: - methods: password: enabled: true flows: error: ui_url: settings: ui_url: privileged_session_max_age: 15m recovery: enabled: true ui_url: verification: enabled: true ui_url: after: default_browser_return_url: logout: after: default_browser_return_url: login: ui_url: lifespan: 10m registration: lifespan: 10m ui_url: after: password: hooks: - hook: session log: level: debug format: text leak_sensitive_values: true secrets: cookie: - PLEASE-CHANGE-ME-I-AM-VERY-INSECURE cipher: - 32-LONG-SECRET-NOT-SECURE-AT-ALL ciphers: algorithm: xchacha20-poly1305 hashers: algorithm: bcrypt bcrypt: cost: 8 identity: default_schema_id: default schemas: - id: default url: <file//C&gt;/Users/test/Kratos/config/identity.schema.json courier: smtp: connection_uri: smtps://test:test@mailslurper:1025/?skip_ssl_verify=true
This is my kratos.yml file
It looks like at some point there is wrongly used
instead of
can you build yourself as well? not sure how long it will take us to get a release out... not today as far as I can tell...
should be as easy as
Copy code
go build -tags sqlite .
I have done it using docker but for windows I am completely new in this. Would appreciate if you could help in this regard
you will need go1.18
So I've downloaded the go1.18 so where to run this command ? go build -tags sqlite .
either use git to clone the repo and checkout the branch, or just download and unzip https://github.com/ory/kratos/archive/refs/heads/fix/path-filepath-confusion.zip
and then in that directory
When I try to run this command inside directory than it says 'go' is not recognized as an internal or external command, operable program or batch file.
hm so somehow your cmd line does not find go... I never work with windows so no idea how to properly install go, sorry
Please also release demo to run kratos using windows
problem is we have no one using windows on the team, so it is hard to do... also depends on what shell you use and how you install stuff typically you only need to download the binary and are ready to go, but with this bug it will take a bit of time to get the release out