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

Problem with quickstart and Docker #3302

Closed
4 of 6 tasks
gandaldf opened this issue Jun 5, 2023 · 8 comments
Closed
4 of 6 tasks

Problem with quickstart and Docker #3302

gandaldf opened this issue Jun 5, 2023 · 8 comments
Assignees
Labels
bug Something is not working.

Comments

@gandaldf
Copy link

gandaldf commented Jun 5, 2023

Preflight checklist

Describe the bug

Hello everyone, this is my first time trying Kratos and I ran into a problem that I couldn't solve on my own; I spoke with Vincent (@vinckr) on Slack who advised me to open this issue. In fact, I followed the quickstart instructions reported in the documentation (https://www.ory.sh/docs/kratos/quickstart):

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

Upon opening the welcome page:
http://127.0.0.1:4455/

All other pages are not accessible, for example:
http://127.0.0.1:4433/self-service/login/browser?aal=&refresh=&return_to=
http://127.0.0.1:4433/self-service/registration/browser?return_to=
http://127.0.0.1:4433/self-service/verification/browser?return_to=

In the terminal, I have a long list of errors similar to these:

kratos-kratos-1| selfservice.flows.registration.after.password.hooks.1.hook: show_verification_ui
kratos-kratos-1|                                                             ^-- value must be "session"
kratos-kratos-1|
kratos-kratos-1| The configuration contains values or keys which are invalid:
kratos-kratos-1| selfservice.flows.registration.after.password.hooks.1: map[hook:show_verification_ui]
kratos-kratos-1|                                                        ^-- doesn't validate with "#/definitions/selfServiceWebHook"
kratos-kratos-1|
kratos-kratos-1| The configuration contains values or keys which are invalid:
kratos-kratos-1| selfservice.flows.registration.after.password.hooks.1: map[hook:show_verification_ui]
kratos-kratos-1|                                                        ^-- validation failed
kratos-kratos-1|
kratos-kratos-1| The configuration contains values or keys which are invalid:
kratos-kratos-1| selfservice.flows.registration.after.password.hooks.1.config: <nil>
kratos-kratos-1|                                                               ^-- one or more required properties are missing
kratos-kratos-1|
kratos-kratos-1| The configuration contains values or keys which are invalid:
kratos-kratos-1| selfservice.flows.registration.after.password.hooks.1.hook: show_verification_ui
kratos-kratos-1|                                                             ^-- value must be "web_hook"
kratos-kratos-1|
kratos-kratos-1| time=2023-06-05T09:58:01Z level=error msg=Unable to instantiate configuration. func=github.com/ory/kratos/driver.NewWithoutInit file=/project/driver/factory.go:43 audience=application error=map[message:I[#/selfservice/flows/registration/after] S[#/properties/selfservice/properties/flows/properties/registration/properties/after/$ref] doesn't validate with "#/definitions/selfServiceAfterRegistration"
kratos-kratos-1|   I[#/selfservice/flows/registration/after/password] S[#/definitions/selfServiceAfterRegistration/properties/password/$ref] doesn't validate with "#/definitions/selfServiceAfterRegistrationMethod"
kratos-kratos-1|     I[#/selfservice/flows/registration/after/password/hooks/1] S[#/definitions/selfServiceAfterRegistrationMethod/properties/hooks/items/anyOf] anyOf failed
kratos-kratos-1|       I[#/selfservice/flows/registration/after/password/hooks/1] S[#/definitions/selfServiceAfterRegistrationMethod/properties/hooks/items/anyOf/0/$ref] doesn't validate with "#/definitions/selfServiceSessionIssuerHook"
kratos-kratos-1|         I[#/selfservice/flows/registration/after/password/hooks/1/hook] S[#/definitions/selfServiceSessionIssuerHook/properties/hook/const] value must be "session"
kratos-kratos-1|       I[#/selfservice/flows/registration/after/password/hooks/1] S[#/definitions/selfServiceAfterRegistrationMethod/properties/hooks/items/anyOf/1/$ref] doesn't validate with "#/definitions/selfServiceWebHook"
kratos-kratos-1|         I[#/selfservice/flows/registration/after/password/hooks/1] S[#/definitions/selfServiceWebHook] validation failed

I'm trying to execute the procedure with Docker Desktop on a Mac M1 with MacOS Ventura, the Kratos version is 0.13.0.

Reproducing the bug

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

Relevant log output

kratos-kratos-1| selfservice.flows.registration.after.password.hooks.1.hook: show_verification_ui
kratos-kratos-1|                                                             ^-- value must be "session"
kratos-kratos-1|
kratos-kratos-1| The configuration contains values or keys which are invalid:
kratos-kratos-1| selfservice.flows.registration.after.password.hooks.1: map[hook:show_verification_ui]
kratos-kratos-1|                                                        ^-- doesn't validate with "#/definitions/selfServiceWebHook"
kratos-kratos-1|
kratos-kratos-1| The configuration contains values or keys which are invalid:
kratos-kratos-1| selfservice.flows.registration.after.password.hooks.1: map[hook:show_verification_ui]
kratos-kratos-1|                                                        ^-- validation failed
kratos-kratos-1|
kratos-kratos-1| The configuration contains values or keys which are invalid:
kratos-kratos-1| selfservice.flows.registration.after.password.hooks.1.config: <nil>
kratos-kratos-1|                                                               ^-- one or more required properties are missing
kratos-kratos-1|
kratos-kratos-1| The configuration contains values or keys which are invalid:
kratos-kratos-1| selfservice.flows.registration.after.password.hooks.1.hook: show_verification_ui
kratos-kratos-1|                                                             ^-- value must be "web_hook"
kratos-kratos-1|
kratos-kratos-1| time=2023-06-05T09:58:01Z level=error msg=Unable to instantiate configuration. func=github.com/ory/kratos/driver.NewWithoutInit file=/project/driver/factory.go:43 audience=application error=map[message:I[#/selfservice/flows/registration/after] S[#/properties/selfservice/properties/flows/properties/registration/properties/after/$ref] doesn't validate with "#/definitions/selfServiceAfterRegistration"
kratos-kratos-1|   I[#/selfservice/flows/registration/after/password] S[#/definitions/selfServiceAfterRegistration/properties/password/$ref] doesn't validate with "#/definitions/selfServiceAfterRegistrationMethod"
kratos-kratos-1|     I[#/selfservice/flows/registration/after/password/hooks/1] S[#/definitions/selfServiceAfterRegistrationMethod/properties/hooks/items/anyOf] anyOf failed
kratos-kratos-1|       I[#/selfservice/flows/registration/after/password/hooks/1] S[#/definitions/selfServiceAfterRegistrationMethod/properties/hooks/items/anyOf/0/$ref] doesn't validate with "#/definitions/selfServiceSessionIssuerHook"
kratos-kratos-1|         I[#/selfservice/flows/registration/after/password/hooks/1/hook] S[#/definitions/selfServiceSessionIssuerHook/properties/hook/const] value must be "session"
kratos-kratos-1|       I[#/selfservice/flows/registration/after/password/hooks/1] S[#/definitions/selfServiceAfterRegistrationMethod/properties/hooks/items/anyOf/1/$ref] doesn't validate with "#/definitions/selfServiceWebHook"
kratos-kratos-1|         I[#/selfservice/flows/registration/after/password/hooks/1] S[#/definitions/selfServiceWebHook] validation failed

Relevant configuration

No response

Version

0.13.0

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Docker Compose

Additional Context

No response

@gandaldf gandaldf added the bug Something is not working. label Jun 5, 2023
@vinckr vinckr self-assigned this Jun 5, 2023
@bluejedi
Copy link

bluejedi commented Jun 5, 2023

quick solution :
git checkout master
docker-compose -f quickstart.yml -f quickstart-standalone.yml -f quickstart-latest.yml up -d

tested on colima macos and windows wsl2

@gandaldf
Copy link
Author

gandaldf commented Jun 5, 2023

Uh... now it seems to work! Thank you!
What was the problem?

@bluejedi
Copy link

bluejedi commented Jun 6, 2023

configuration file and kratos version 0.13.0 incompatibility i guess

@mpiorowski
Copy link

Exactly same problem, the quick-start guide doesn't work on v0.13.0 but works on main.

@aeneasr
Copy link
Member

aeneasr commented Jun 19, 2023

Sorry for the troubles, it's not acceptable when the quickstart is not working. We're taking a look at this.

@vinckr
Copy link
Member

vinckr commented Jun 26, 2023

I think it is the same issue as in #3267

#3268 should fix it for the next release?

@gustavovalverde
Copy link

gustavovalverde commented Jun 27, 2023

It might be good to indicate the quickstart won't work on Mac with M1 as there are no linux/arm64/v8 images.

@aeneasr
Copy link
Member

aeneasr commented Oct 5, 2023

Closing as 3267 has been fixed

arm64 images are available (I use them on my M1)

@aeneasr aeneasr closed this as completed Oct 5, 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

7 participants