sawadashota/kratos-frontend-go

Docker container of kratos can't start

leopku opened this issue · 2 comments

After cloning this project to workstation and running make start, view the status of containers,

kratos-frontend-go_kratos_1 kratos serve -c /etc/confi ... Restarting

And the log of container kratos

kratos_1          | YOU ARE RUNNING ORY KRATOS IN DEV MODE.
kratos_1          | SECURITY IS DISABLED.
kratos_1          | DON'T DO THIS IN PRODUCTION!
kratos_1          |
kratos_1          |  audience=application service_name=kratos service_version=
kratos_1          | time=2020-08-25T04:50:06Z level=error msg=The provided configuration is invalid and could not be loaded. Check the output below to understand why. audience=application config_file=/etc/config/kratos/.kratos.yml service_name=kratos service_version=
kratos_1          |
kratos_1          | selfservice: map[flows:map[error:map[ui_url:https://www.ory.sh/kratos/docs/fallback/error] login:map[request_lifespan:1h ui_url:https://www.ory.sh/kratos/docs/fallback/login] recovery:map[enabled:false request_lifespan:1h ui_url:https://www.ory.sh/kratos/docs/fallback/recovery] registration:map[request_lifespan:1h ui_url:https://www.ory.sh/kratos/docs/fallback/registration] settings:map[privileged_session_max_age:1h request_lifespan:1h ui_url:https://www.ory.sh/kratos/docs/fallback/settings] verification:map[enabled:false request_lifespan:1h ui_url:https://www.ory.sh/kratos/docs/fallback/verification]] login:map[request_lifespan:10m] logout:map[redirect_to:http://127.0.0.1:4455/auth/signin] registration:map[after:map[password:map[hooks:[map[hook:session] map[hook:verify]]]] request_lifespan:10m] settings:map[after:map[profile:map[hooks:[map[hook:verify]]]] privileged_session_max_age:1m] strategies:map[oidc:map[enabled:false] password:map[enabled:true] profile:map[enabled:true] recovery_token:map[enabled:true]] verify:map[return_to:http://127.0.0.1:4455/]]
kratos_1          |              ^-- validation failed
kratos_1          |
kratos_1          | selfservice.default_browser_return_url: <nil>
kratos_1          |                                         ^-- one or more required properties are missing
kratos_1          |
kratos_1          | selfservice: map[flows:map[error:map[ui_url:https://www.ory.sh/kratos/docs/fallback/error] login:map[request_lifespan:1h ui_url:https://www.ory.sh/kratos/docs/fallback/login] recovery:map[enabled:false request_lifespan:1h ui_url:https://www.ory.sh/kratos/docs/fallback/recovery] registration:map[request_lifespan:1h ui_url:https://www.ory.sh/kratos/docs/fallback/registration] settings:map[privileged_session_max_age:1h request_lifespan:1h ui_url:https://www.ory.sh/kratos/docs/fallback/settings] verification:map[enabled:false request_lifespan:1h ui_url:https://www.ory.sh/kratos/docs/fallback/verification]] login:map[request_lifespan:10m] logout:map[redirect_to:http://127.0.0.1:4455/auth/signin] registration:map[after:map[password:map[hooks:[map[hook:session] map[hook:verify]]]] request_lifespan:10m] settings:map[after:map[profile:map[hooks:[map[hook:verify]]]] privileged_session_max_age:1m] strategies:map[oidc:map[enabled:false] password:map[enabled:true] profile:map[enabled:true] recovery_token:map[enabled:true]] verify:map[return_to:http://127.0.0.1:4455/]]
kratos_1          |              ^-- additionalProperties "verify", "login", "logout", "registration", "settings" not allowed
kratos_1          |
kratos_1          | secrets: map[session:[PLEASE-CHANGE-ME-I-AM-VERY-INSECURE]]
kratos_1          |          ^-- additionalProperties "session" not allowed
kratos_1          |
kratos_1          | identity: map[traits:map[default_schema_url:file:///etc/config/kratos/identity.traits.schema.json]]
kratos_1          |           ^-- validation failed
kratos_1          |
kratos_1          | identity.default_schema_url: <nil>
kratos_1          |                              ^-- one or more required properties are missing
kratos_1          |
kratos_1          | identity: map[traits:map[default_schema_url:file:///etc/config/kratos/identity.traits.schema.json]]
kratos_1          |           ^-- additionalProperties "traits" not allowed
kratos_1          |
kratos_1          | (root)
kratos_1          | ^-- additionalProperties "urls" not allowed
kratos_1          |
kratos_1          | time=2020-08-25T04:50:06Z level=fatal msg=The services failed to start because the configuration is invalid. Check the output above for more details. audience=application service_name=kratos service_version=

Could you please give an advise?

Best regards.

I fixed configuration because of outdated.
Please try again using latest master branch!

It works.
Thanks a lot.