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

Quickstart docker not working #3828

Closed
3 of 5 tasks
Nek- opened this issue Mar 18, 2024 · 8 comments · Fixed by #3855
Closed
3 of 5 tasks

Quickstart docker not working #3828

Nek- opened this issue Mar 18, 2024 · 8 comments · Fixed by #3855
Labels
bug Something is not working.

Comments

@Nek-
Copy link

Nek- commented Mar 18, 2024

Preflight checklist

Ory Network Project

No response

Describe the bug

Because of the following 2 lines of configuration the getting started is not working properly:

feature_flags:
use_continue_with_transitions: true

Reproducing the bug

Getting started I rely on:

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

Link here: https://www.ory.sh/docs/kratos/quickstart

Relevant log output

kratos-1                      | time=2024-03-18T18:55:55Z level=debug msg=Adding config files. func=github.com/ory/x/configx.(*Provider).createProviders file=/go/pkg/mod/github.com/ory/[email protected]/configx/provider.go:144 audience=application files=[/etc/config/kratos/kratos.yml] service_name=Ory Kratos service_version=v1.0.0
kratos-1                      |
kratos-1                      | The configuration contains values or keys which are invalid:
kratos-1                      | feature_flags: map[cacheable_sessions:false use_continue_with_transitions:true]
kratos-1                      |                ^-- additionalProperties "use_continue_with_transitions" not allowed
kratos-1                      |
kratos-1                      | time=2024-03-18T18:55:55Z 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[#/feature_flags] S[#/properties/feature_flags/additionalProperties] additionalProperties "use_continue_with_transitions" not allowed stack_trace:stack trace could not be recovered from error type *jsonschema.ValidationError] service_name=Ory Kratos service_version=v1.0.0
kratos-1                      | Error: I[#/feature_flags] S[#/properties/feature_flags/additionalProperties] additionalProperties "use_continue_with_transitions" not allowed
kratos-1                      | Usage:
kratos-1                      |   kratos serve [flags]
kratos-1                      |
kratos-1                      | Flags:
kratos-1                      |   -c, --config strings   Path to one or more .json, .yaml, .yml, .toml config files. Values are loaded in the order provided, meaning that the last config file overwrites values from the previous config file.
kratos-1                      |       --dev              Disables critical security features to make development easier
kratos-1                      |   -h, --help             help for serve
kratos-1                      |       --sqa-opt-out      Disable anonymized telemetry reports - for more information please visit https://www.ory.sh/docs/ecosystem/sqa
kratos-1                      |       --watch-courier    Run the message courier as a background task, to simplify single-instance setup
kratos-1                      |
kratos-1                      | I[#/feature_flags] S[#/properties/feature_flags/additionalProperties] additionalProperties "use_continue_with_transitions" not allowed
kratos-1 exited with code 1

Relevant configuration

No response

Version

v1.1.0

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Docker Compose

Additional Context

No response

@Nek- Nek- added the bug Something is not working. label Mar 18, 2024
@pdarcos
Copy link

pdarcos commented Mar 24, 2024

Same issue here. Not the best experience when trying out a new project for the first time if the quickstart is broken

@rashadkokash
Copy link

same same

@Nek-
Copy link
Author

Nek- commented Mar 25, 2024

Just in case, removing or commenting the following 2 lines fix the issue:

feature_flags:
use_continue_with_transitions: true

@aeneasr
Copy link
Member

aeneasr commented Mar 25, 2024

Please use git checkout master instead of git checkout v1.1.0

@thedjpetersen
Copy link

If I run from master I am getting this error:

kratos-selfservice-ui-node-1  |
kratos-selfservice-ui-node-1  | > @ory/[email protected] serve
kratos-selfservice-ui-node-1  | > node lib/index.js
kratos-selfservice-ui-node-1  |
kratos-selfservice-ui-node-1  | Cannot start the server without the required environment variables!
kratos-selfservice-ui-node-1  | COOKIE_SECRET must be set and be at least 8 alphanumerical character `export COOKIE_SECRET=...`
kratos-selfservice-ui-node-1  | CSRF_COOKIE_NAME must be set! Prefix the name to scope it to your domain `__HOST-` `export CSRF_COOKIE_NAME=...`
kratos-selfservice-ui-node-1  | CSRF_COOKIE_SECRET must be set and be at least 8 alphanumerical character `export CSRF_COOKIE_SECRET=...`
kratos-selfservice-ui-node-1  | npm notice
kratos-selfservice-ui-node-1  | npm notice New major version of npm available! 8.19.2 -> 10.5.0
kratos-selfservice-ui-node-1  | npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.5.0>
kratos-selfservice-ui-node-1  | npm notice Run `npm install -g [email protected]` to update!
kratos-selfservice-ui-node-1  | npm notice
kratos-selfservice-ui-node-1 exited with code 0

@Nek-
Copy link
Author

Nek- commented Mar 26, 2024

Yes, I'm experimenting the exact same issue 😅

Can you re-open the issue @aeneasr ?

@aeneasr
Copy link
Member

aeneasr commented Mar 26, 2024

Does this PR solve it for you?

#3855

@thedjpetersen
Copy link

Yes it does!

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

Successfully merging a pull request may close this issue.

5 participants