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

docker-compose quickstart fails on v0.9.0-alpha.2 #2339

Closed
3 of 6 tasks
dfoxg opened this issue Mar 24, 2022 · 1 comment
Closed
3 of 6 tasks

docker-compose quickstart fails on v0.9.0-alpha.2 #2339

dfoxg opened this issue Mar 24, 2022 · 1 comment
Labels
bug Something is not working.

Comments

@dfoxg
Copy link

dfoxg commented Mar 24, 2022

Preflight checklist

Describe the bug

When following the quickstart docs for docker the kratos-container fails to start:

docker-compose -f quickstart.yml -f quickstart-standalone.yml up --build --force-recreate
....
kratos-kratos-migrate-1              | time=2022-03-24T19:27:49Z level=debug msg=0.0989 seconds audience=application service_name=Ory Kratos service_version=v0.9.0-alpha.2
kratos-kratos-migrate-1              | Successfully applied SQL migrations!
kratos-kratos-migrate-1 exited with code 0
kratos-kratos-1                      | time=2022-03-24T19:27:50Z level=debug msg=Adding config files. func=github.com/ory/x/configx.(*Provider).createProviders file=/go/pkg/mod/github.com/ory/x@v0.0.358/configx/provider.go:156 audience=application files=[/etc/config/kratos/kratos.yml] service_name=Ory Kratos service_version=v0.9.0-alpha.2
kratos-kratos-1                      |
kratos-kratos-1                      | The configuration contains values or keys which are invalid:
kratos-kratos-1                      | identity.schemas.0.url: <nil>
kratos-kratos-1                      |                         ^-- one or more required properties are missing
kratos-kratos-1                      |
kratos-kratos-1                      | time=2022-03-24T19:27:50Z level=fatal msg=Unable to instantiate configuration. func=github.com/ory/kratos/driver.NewWithoutInit file=/project/driver/factory.go:26 audience=application error=map[message:I[#/identity/schemas/0] S[#/properties/identity/properties/schemas/items/required] missing properties: "url" stack_trace:stack trace could not be recovered from error type *jsonschema.ValidationError] service_name=Ory Kratos service_version=v0.9.0-alpha.2

Reproducing the bug

git clone https://github.com/ory/kratos.git
cd kratos
docker-compose -f quickstart.yml -f quickstart-standalone.yml up --build --force-recreate

Relevant log output

kratos-kratos-migrate-1              | time=2022-03-24T19:27:49Z level=debug msg=Migrations already up to date, nothing to apply audience=application service_name=Ory Kratos service_version=v0.9.0-alpha.2
kratos-kratos-migrate-1              | time=2022-03-24T19:27:49Z level=debug msg=0.0989 seconds audience=application service_name=Ory Kratos service_version=v0.9.0-alpha.2
kratos-kratos-migrate-1              | Successfully applied SQL migrations!
kratos-kratos-migrate-1 exited with code 0
kratos-kratos-1                      | time=2022-03-24T19:27:50Z level=debug msg=Adding config files. func=github.com/ory/x/configx.(*Provider).createProviders file=/go/pkg/mod/github.com/ory/x@v0.0.358/configx/provider.go:156 audience=application files=[/etc/config/kratos/kratos.yml] service_name=Ory Kratos service_version=v0.9.0-alpha.2
kratos-kratos-1                      |
kratos-kratos-1                      | The configuration contains values or keys which are invalid:
kratos-kratos-1                      | identity.schemas.0.url: <nil>
kratos-kratos-1                      |                         ^-- one or more required properties are missing
kratos-kratos-1                      |
kratos-kratos-1                      | time=2022-03-24T19:27:50Z level=fatal msg=Unable to instantiate configuration. func=github.com/ory/kratos/driver.NewWithoutInit file=/project/driver/factory.go:26 audience=application error=map[message:I[#/identity/schemas/0] S[#/properties/identity/properties/schemas/items/required] missing properties: "url" stack_trace:stack trace could not be recovered from error type *jsonschema.ValidationError] service_name=Ory Kratos service_version=v0.9.0-alpha.2
kratos-kratos-1 exited with code 1
kratos-kratos-1                      | time=2022-03-24T19:27:51Z level=debug msg=Adding config files. func=github.com/ory/x/configx.(*Provider).createProviders file=/go/pkg/mod/github.com/ory/x@v0.0.358/configx/provider.go:156 audience=application files=[/etc/config/kratos/kratos.yml] service_name=Ory Kratos service_version=v0.9.0-alpha.2
kratos-kratos-1                      |
kratos-kratos-1                      | The configuration contains values or keys which are invalid:
kratos-kratos-1                      | identity.schemas.0.url: <nil>
kratos-kratos-1                      |                         ^-- one or more required properties are missing
kratos-kratos-1                      |
kratos-kratos-1                      | time=2022-03-24T19:27:51Z level=fatal msg=Unable to instantiate configuration. func=github.com/ory/kratos/driver.NewWithoutInit file=/project/driver/factory.go:26 audience=application error=map[message:I[#/identity/schemas/0] S[#/properties/identity/properties/schemas/items/required] missing properties: "url" stack_trace:stack trace could not be recovered from error type *jsonschema.ValidationError] service_name=Ory Kratos service_version=v0.9.0-alpha.2
kratos-kratos-selfservice-ui-node-1  | Listening on http://0.0.0.0:4455
kratos-kratos-1 exited with code 1
kratos-kratos-1                      | time=2022-03-24T19:27:52Z level=debug msg=Adding config files. func=github.com/ory/x/configx.(*Provider).createProviders file=/go/pkg/mod/github.com/ory/x@v0.0.358/configx/provider.go:156 audience=application files=[/etc/config/kratos/kratos.yml] service_name=Ory Kratos service_version=v0.9.0-alpha.2
kratos-kratos-1                      |
kratos-kratos-1                      | The configuration contains values or keys which are invalid:
kratos-kratos-1                      | identity.schemas.0.url: <nil>
kratos-kratos-1                      |                         ^-- one or more required properties are missing
kratos-kratos-1                      |
kratos-kratos-1                      | time=2022-03-24T19:27:52Z level=fatal msg=Unable to instantiate configuration. func=github.com/ory/kratos/driver.NewWithoutInit file=/project/driver/factory.go:26 audience=application error=map[message:I[#/identity/schemas/0] S[#/properties/identity/properties/schemas/items/required] missing properties: "url" stack_trace:stack trace could not be recovered from error type *jsonschema.ValidationError] service_name=Ory Kratos service_version=v0.9.0-alpha.2


### Relevant configuration

```yml
none - just using the defaults

Version

v0.9.0-alpha.2

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Docker Compose

Additional Context

No response

@dfoxg dfoxg added the bug Something is not working. label Mar 24, 2022
@erolkskn
Copy link
Contributor

erolkskn commented Mar 24, 2022

schema field below

schema: file:///etc/config/kratos/identity.schema.json

should be renamed to url according to the latest config schema:

"url": {
"type": "string",
"title": "JSON Schema URL for identity traits schema",
"description": "URL for JSON Schema which describes a identity's traits. Can be a file path, a https URL, or a base64 encoded string.",
"format": "uri",
"examples": [
"file://path/to/identity.traits.schema.json",
"https://foo.bar.com/path/to/identity.traits.schema.json",
"base64://ewogICIkc2NoZW1hIjogImh0dHA6Ly9qc29uLXNjaGVtYS5vcmcvZHJhZnQtMDcvc2NoZW1hIyIsCiAgInR5cGUiOiAib2JqZWN0IiwKICAicHJvcGVydGllcyI6IHsKICAgICJiYXIiOiB7CiAgICAgICJ0eXBlIjogInN0cmluZyIKICAgIH0KICB9LAogICJyZXF1aXJlZCI6IFsKICAgICJiYXIiCiAgXQp9"
]
}

robinWongM pushed a commit to SYSU-ECNC/kratos that referenced this issue Mar 26, 2022
harnash pushed a commit to Wikia/kratos that referenced this issue Mar 28, 2022
peturgeorgievv pushed a commit to senteca/kratos-fork that referenced this issue Jun 30, 2023
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

2 participants