Example to Run Kratos Using Docker Doesn't Work
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker
- Lĩnh vực
- devops, documentation
Hướng nghiên cứu
Bắt đầu với các lệnh Docker và đường dẫn quickstart được nêu trong issue, sau đó so sánh ví dụ được ghi trong tài liệu với hành vi cấu hình của v0.8 và v0.11. Xác minh cách cấu hình được mount tham chiếu đến /etc/config/kratos/identity.schema.json và tái hiện lỗi. Được xem là hoàn thành khi ví dụ Docker được ghi trong tài liệu khởi chạy thành công bằng các bước được ghi trong tài liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Network project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Describe the bug
I tried branches master, v0.8, and v0.11, but none seemed to work.
Reproducing the bug
Follow the steps in the docs, and see that the container does not launch
Relevant log output
➜ kratos git:(v0.8) docker run -it -e DSN="memory" \
--mount type=bind,source="$(pwd)"/contrib/quickstart/kratos/email-password,target=/home/ory \
oryd/kratos:v0.8.0 serve --config /home/ory/kratos.yml
The configuration contains values or keys which are invalid:
The configuration contains values or keys which are invalid:
identity: map[default_schema_id:default schemas:[map[id:default url:file:///etc/config/kratos/identity.schema.json]]]
^-- validation failed
The configuration contains values or keys which are invalid:
identity.default_schema_url: <nil>
^-- one or more required properties are missing
The configuration contains values or keys which are invalid:
identity.schemas.0: map[id:default url:file:///etc/config/kratos/identity.schema.json]
^-- not failed
The configuration contains values or keys which are invalid:
identity: map[default_schema_id:default schemas:[map[id:default url:file:///etc/config/kratos/identity.schema.json]]]
^-- additionalProperties "default_schema_id" not allowed
The configuration contains values or keys which are invalid:
selfservice: map[allowed_return_urls:[http://127.0.0.1:4455] default_browser_return_url:http://127.0.0.1:4455/ flows:map[error:map[ui_url:http://127.0.0.1:4455/error] login:map[lifespan:10m ui_url:http://127.0.0.1:4455/login] logout:map[after:map[default_browser_return_url:http://127.0.0.1:4455/login]] recovery:map[enabled:true lifespan:1h ui_url:http://127.0.0.1:4455/recovery] registration:map[after:map[password:map[hooks:[map[hook:session]]]] lifespan:10m ui_url:http://127.0.0.1:4455/registration] settings:map[lifespan:1h privileged_session_max_age:15m required_aal:highest_available ui_url:http://127.0.0.1:4455/settings] verification:map[after:map[default_browser_return_url:http://127.0.0.1:4455/] enabled:true lifespan:1h ui_url:http://127.0.0.1:4455/verification]] methods:map[link:map[config:map[lifespan:1h] enabled:true] lookup_secret:map[enabled:false] oidc:map[enabled:false] password:map[config:map[haveibeenpwned_enabled:true haveibeenpwned_host:api.pwnedpasswords.com ignore_network_errors:true max_breaches:0] enabled:true] profile:map[enabled:true] totp:map[enabled:false] webauthn:map[enabled:false]]]
^-- additionalProperties "allowed_return_urls" not allowed
FATA[2023-03-06T23:04:22Z] Unable to instantiate configuration. audience=application error=map[message:I[#] S[#] validation failed
I[#/identity] S[#/properties/identity] validation failed
I[#/identity] S[#/properties/identity/required] missing properties: "default_schema_url"
I[#/identity/schemas/0] S[#/properties/identity/properties/schemas/items/not] not failed
I[#/identity] S[#/properties/identity/additionalProperties] additionalProperties "default_schema_id" not allowed
I[#/selfservice] S[#/properties/selfservice/additionalProperties] additionalProperties "allowed_return_urls" not allowed] service_name=Ory Kratos service_version=v0.8.0-alpha.2.pre.6
➜
➜ kratos git:(v0.11) docker run -it -e DSN="memory" \
--mount type=bind,source="$(pwd)"/contrib/quickstart/kratos/email-password,target=/home/ory \
oryd/kratos:v0.11.0 serve --config /home/ory/kratos.yml
ERRO[2023-03-06T23:05:33Z] Unable to instantiate configuration. audience=application error=map[message:open /etc/config/kratos/identity.schema.json: no such file or directory stack_trace:
github.com/ory/kratos/driver/config.(*Config).validateIdentitySchemas
/project/driver/config/config.go:440
github.com/ory/kratos/driver/config.New
/project/driver/config/config.go:373
github.com/ory/kratos/driver.NewWithoutInit
/project/driver/factory.go:41
github.com/ory/kratos/driver.New
/project/driver/factory.go:18
github.com/ory/kratos/cmd/serve.NewServeCmd.func1
/project/cmd/serve/root.go:26
github.com/spf13/cobra.(*Command).execute
/go/pkg/mod/github.com/spf13/[email protected]/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044
github.com/spf13/cobra.(*Command).Execute
/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
github.com/ory/kratos/cmd.Execute
/project/cmd/root.go:61
main.main
/project/main.go:21
runtime.main
/usr/local/go/src/runtime/proc.go:250
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1594] service_name=Ory Kratos service_version=v0.11.0
Error: open /etc/config/kratos/identity.schema.json: no such file or directory
Usage:
kratos serve [flags]
Flags:
-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.
--dev Disables critical security features to make development easier
-h, --help help for serve
--sqa-opt-out Disable anonymized telemetry reports - for more information please visit https://www.ory.sh/docs/ecosystem/sqa
--watch-courier Run the message courier as a background task, to simplify single-instance setup
open /etc/config/kratos/identity.schema.json: no such file or directory
➜
Relevant configuration
No response
Version
v0.11
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker
Additional Context
No response
- Ngôn ngữ chính
- TypeScript
- Star
- 161
- Fork
- 1.9k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ory/docs
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
upstream reference closed: github.com/w3c/webauthn/issues/1372Có thể làm lại được @Faisal-9999 đã nhận 53 ngày trước và không có pull request nào đang mở. Đang mởgood first issue help wanted upstream
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
good first issue help wanted upstream
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Shared kratos pages can only belong to one sidebar — OEL readers lose navigation contextCó thể làm lại được @hperl đã nhận 105 ngày trước và không có pull request nào đang mở. Đang mở
Issue tương tự
-
freshness freshness:observed-only
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
thoroc/context-radar#282 ·
-
bug P2 rust
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: web
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
gabe-santana/arkdraw#25 ·
-
bug require-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
expressjs/expressjs.com#2549 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
codercops/discord-bot#101 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày