Closed ThiNepo closed 4 years ago
Please use this URL: https://www.ory.sh/kratos/docs/quickstart/ :)
Thanks!
Now I am able to make it run. As you can see it says that the migration was successfully applied.
Recreating kratos_mailslurper_1 ... done Recreating kratos_kratos-migrate_1 ... done Recreating kratos_kratos-selfservice-ui-node_1 ... done Recreating kratos_kratos_1 ... done Recreating kratos_oathkeeper_1 ... done Attaching to kratos_kratos-selfservice-ui-node_1, kratos_mailslurper_1, kratos_kratos-migrate_1, kratos_kratos_1, kratos_oathkeeper_1
kratos-migrate_1 | time="2020-04-14T21:18:09Z" level=info msg="Config file loaded successfully." path=/etc/config/kratos/.kratos.yml
kratos-migrate_1 | The following migration is planned:
kratos-migrate_1 |
kratos-migrate_1 | Version Name Status
kratos-migrate_1 | 20191100000001 identities Applied
kratos-migrate_1 | 20191100000002 requests Applied
kratos-migrate_1 | 20191100000003 sessions Applied
kratos-migrate_1 | 20191100000004 errors Applied
kratos-migrate_1 | 20191100000005 identities Pending
kratos-migrate_1 | 20191100000006 courier Applied
kratos-migrate_1 | 20191100000007 errors Applied
kratos-migrate_1 | 20191100000008 selfservice_verification Applied
kratos-migrate_1 | 20191100000009 verification Pending
kratos-migrate_1 | [POP] 2020/04/14 21:18:09 info - Migrations already up to date, nothing to apply
kratos-migrate_1 | [POP] 2020/04/14 21:18:09 info - 0.0067 seconds
kratos-migrate_1 | Successfully applied SQL migrations!
kratos-selfservice-ui-node_1 |
kratos-selfservice-ui-node_1 | > kratos-selfservice-ui-node@0.0.1 serve /usr/src/app
kratos-selfservice-ui-node_1 | > node lib/index.js
kratos-selfservice-ui-node_1 |
kratos-selfservice-ui-node_1 | Listening on http://0.0.0.0:4435
kratos_1 | time="2020-04-14T21:18:20Z" level=info msg="Config file loaded successfully." path=/etc/config/kratos/.kratos.yml
kratos_1 | time="2020-04-14T21:18:20Z" level=warning msg="\n\nYOU ARE RUNNING ORY KRATOS IN DEV MODE.\nSECURITY IS DISABLED.\nDON'T DO THIS IN PRODUCTION!\n\n"
kratos_1 | time="2020-04-14T21:18:20Z" level=info msg="Software quality assurance features are enabled. Learn more at: https://www.ory.sh/docs/ecosystem/sqa"
kratos_1 | time="2020-04-14T21:18:20Z" level=info msg="Starting the admin httpd on: 0.0.0.0:4434"
kratos_1 | time="2020-04-14T21:18:20Z" level=info msg="Starting the public httpd on: 0.0.0.0:4433"
mailslurper_1 | time="2020-04-14T21:18:09Z" level=info msg="Starting MailSlurper Server v1.14.1" who=MailSlurper
mailslurper_1 | time="2020-04-14T21:18:09Z" level=info msg="Connecting to database" who=MailSlurper
mailslurper_1 | time="2020-04-14T21:18:09Z" level=info msg="Creating database tables..." who=MailSlurper
mailslurper_1 | time="2020-04-14T21:18:09Z" level=info msg="Created tables successfully." who=MailSlurper
mailslurper_1 | time="2020-04-14T21:18:09Z" level=info msg="Worker pool configured for 1000 workers" who="SMTP Server Pool"
mailslurper_1 | ⇨ http server started on [::]:4436
mailslurper_1 | ⇨ http server started on [::]:4437
mailslurper_1 | time="2020-04-14T21:18:09Z" level=info msg="SMTP listener running on SSL 0.0.0.0:1025" who="SMTP Listener"
mailslurper_1 | time="2020-04-14T21:18:09Z" level=info msg="1 receiver(s) listening" who="SMTP Listener"
mailslurper_1 | time="2020-04-14T21:18:09Z" level=info msg="HTTP admin listener running on 0.0.0.0:4436" who=MailSlurper
oathkeeper_1 | {"level":"info","msg":"Config file loaded successfully.","path":"/etc/config/oathkeeper/.oathkeeper.yml","time":"2020-04-14T21:18:20Z"}
kratos_kratos-migrate_1 exited with code 0
oathkeeper_1 | Thank you for using ORY Oathkeeper v0.35.5-beta.1+oryOS.15!
oathkeeper_1 |
oathkeeper_1 | Take security seriously and subscribe to the ORY Security Newsletter. Stay on top of new patches and security insights.
oathkeeper_1 |
oathkeeper_1 | >> Subscribe now: http://eepurl.com/di390P <<
oathkeeper_1 | {"event":"config_change","level":"debug","msg":"Viper detected a configuration change, reloading config.","source":"entrypoint","time":"2020-04-14T21:18:21Z"}
oathkeeper_1 | {"event":"repository_change","file":"file:///etc/config/oathkeeper/access-rules.yml","level":"debug","msg":"One or more access rule repositories changed, reloading access rules.","source":"config_update","time":"2020-04-14T21:18:21Z"}
oathkeeper_1 | {"level":"debug","location":"file:///etc/config/oathkeeper/access-rules.yml","msg":"Fetching access rules from given location because something changed.","time":"2020-04-14T21:18:21Z"}
oathkeeper_1 | {"level":"info","msg":"Software quality assurance features are enabled. Learn more at: https://www.ory.sh/docs/ecosystem/sqa","time":"2020-04-14T21:18:21Z"}
oathkeeper_1 | {"level":"info","msg":"TLS has not been configured for api, skipping","time":"2020-04-14T21:18:21Z"}
oathkeeper_1 | {"level":"info","msg":"Listening on http://:4456","time":"2020-04-14T21:18:21Z"}
oathkeeper_1 | {"level":"info","msg":"TLS has not been configured for proxy, skipping","time":"2020-04-14T21:18:21Z"}
oathkeeper_1 | {"level":"info","msg":"Listening on http://:4455","time":"2020-04-14T21:18:21Z"}
However, when I try to access the 127.0.0.1:4455/dashboard
I receive:
oathkeeper_1 | {"level":"info","method":"GET","msg":"started handling request","remote":"172.18.0.1:40570","request":"/dashboard","time":"2020-04-14T21:19:36Z"}
oathkeeper_1 | [cors] 2020/04/14 21:19:36 Handler: Actual request
oathkeeper_1 | [cors] 2020/04/14 21:19:36 Actual request no headers added: missing origin
oathkeeper_1 | {"error":"Access credentials are invalid","granted":false,"http_host":"127.0.0.1:4455","http_method":"GET","http_url":"http://127.0.0.1:4455/dashboard","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36","level":"warning","msg":"No authentication handler was responsible for handling the authentication request","reason_id":"authentication_handler_no_match","rule_id":"ory:kratos-selfservice-ui-node:protected","time":"2020-04-14T21:19:36Z"}
oathkeeper_1 | {"error":"Access credentials are invalid","granted":false,"http_host":"127.0.0.1:4455","http_method":"GET","http_url":"http://127.0.0.1:4455/dashboard","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36","level":"warning","msg":"Access request denied","time":"2020-04-14T21:19:36Z"}
oathkeeper_1 | {"level":"info","measure#oathkeeper-proxy.latency":579400,"method":"GET","msg":"completed handling request","remote":"172.18.0.1:40570","request":"/dashboard","status":302,"text_status":"Found","time":"2020-04-14T21:19:36Z","took":579400}
oathkeeper_1 | [cors] 2020/04/14 21:19:36 Handler: Actual request
oathkeeper_1 | [cors] 2020/04/14 21:19:36 Actual request no headers added: missing origin
oathkeeper_1 | {"level":"info","method":"GET","msg":"started handling request","remote":"172.18.0.1:40570","request":"/auth/login","time":"2020-04-14T21:19:36Z"}
kratos-selfservice-ui-node_1 | No request found in URL, initializing auth flow.
oathkeeper_1 | {"granted":true,"http_host":"127.0.0.1:4455","http_method":"GET","http_url":"http://kratos-selfservice-ui-node:4435/auth/login","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36","level":"warning","msg":"Access request granted","subject":"guest","time":"2020-04-14T21:19:36Z"}
oathkeeper_1 | {"level":"info","measure#oathkeeper-proxy.latency":21459900,"method":"GET","msg":"completed handling request","remote":"172.18.0.1:40570","request":"/auth/login","status":302,"text_status":"Found","time":"2020-04-14T21:19:36Z","took":21459900}
kratos-selfservice-ui-node_1 | GET /auth/login 302 190 - 9.704 ms
oathkeeper_1 | [cors] 2020/04/14 21:19:36 Handler: Actual request
oathkeeper_1 | [cors] 2020/04/14 21:19:36 Actual request no headers added: missing origin
oathkeeper_1 | {"level":"info","method":"GET","msg":"started handling request","remote":"172.18.0.1:40570","request":"/.ory/kratos/public/self-service/browser/flows/login","time":"2020-04-14T21:19:36Z"}
kratos_1 | time="2020-04-14T21:19:36Z" level=info msg="started handling request" method=GET name="public#http://127.0.0.1:4455/.ory/kratos/public/" remote="172.18.0.5:52382" request=/self-service/browser/flows/login
kratos_1 | time="2020-04-14T21:19:36Z" level=error msg="An error occurred and is being forwarded to the error user interface." code=500 debug= details="map[]" error="sqlite create: no such table: selfservice_login_requests" reason= request-id= status= trace="Stack trace: \ngithub.com/gobuffalo/pop/v5.(*sqlite).Create.func1\n\t/go/pkg/mod/github.com/gobuffalo/pop/v5@v5.0.7/dialect_sqlite.go:88\ngithub.com/gobuffalo/pop/v5.(*sqlite).locker\n\t/go/pkg/mod/github.com/gobuffalo/pop/v5@v5.0.7/dialect_sqlite.go:125\ngithub.com/gobuffalo/pop/v5.(*sqlite).Create\n\t/go/pkg/mod/github.com/gobuffalo/pop/v5@v5.0.7/dialect_sqlite.go:62\ngithub.com/gobuffalo/pop/v5.(*Connection).Create.func1.1\n\t/go/pkg/mod/github.com/gobuffalo/pop/v5@v5.0.7/executors.go:240\ngithub.com/gobuffalo/pop/v5.(*Connection).timeFunc\n\t/go/pkg/mod/github.com/gobuffalo/pop/v5@v5.0.7/connection.go:228\ngithub.com/gobuffalo/pop/v5.(*Connection).Create.func1\n\t/go/pkg/mod/github.com/gobuffalo/pop/v5@v5.0.7/executors.go:175\ngithub.com/gobuffalo/pop/v5.(*Model).iterate\n\t/go/pkg/mod/github.com/gobuffalo/pop/v5@v5.0.7/model.go:222\ngithub.com/gobuffalo/pop/v5.(*Connection).Create\n\t/go/pkg/mod/github.com/gobuffalo/pop/v5@v5.0.7/executors.go:174\ngithub.com/ory/kratos/persistence/sql.(*Persister).CreateLoginRequest\n\t/home/ory/persistence/sql/persister_login.go:19\ngithub.com/ory/kratos/selfservice/flow/login.(*Handler).NewLoginRequest\n\t/home/ory/selfservice/flow/login/handler.go:76\ngithub.com/ory/kratos/selfservice/flow/login.(*Handler).initLoginRequest\n\t/home/ory/selfservice/flow/login/handler.go:112\ngithub.com/ory/kratos/session.(*Handler).IsNotAuthenticated.func1\n\t/home/ory/session/handler.go:108\ngithub.com/julienschmidt/httprouter.(*Router).ServeHTTP\n\t/go/pkg/mod/github.com/julienschmidt/httprouter@v1.2.0/router.go:334\ngithub.com/justinas/nosurf.(*CSRFHandler).handleSuccess\n\t/go/pkg/mod/github.com/justinas/nosurf@v0.0.0-20190118163749-6453469bdcc9/handler.go:187\ngithub.com/justinas/nosurf.(*CSRFHandler).ServeHTTP\n\t/go/pkg/mod/github.com/justinas/nosurf@v0.0.0-20190118163749-6453469bdcc9/handler.go:144\ngithub.com/urfave/negroni.Wrap.func1\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:46\ngithub.com/urfave/negroni.HandlerFunc.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29\ngithub.com/urfave/negroni.middleware.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38\ngithub.com/ory/x/metricsx.(*Service).ServeHTTP\n\t/go/pkg/mod/github.com/ory/x@v0.0.95/metricsx/middleware.go:261\ngithub.com/urfave/negroni.middleware.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38\ngithub.com/ory/x/reqlog.(*Middleware).ServeHTTP\n\t/go/pkg/mod/github.com/ory/x@v0.0.95/reqlog/middleware.go:140\ngithub.com/urfave/negroni.middleware.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38\ngithub.com/urfave/negroni.(*Negroni).ServeHTTP\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:96\ngithub.com/gorilla/context.ClearHandler.func1\n\t/go/pkg/mod/github.com/gorilla/context@v1.1.1/context.go:141\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2007\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2802\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1890\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357"
kratos_1 | time="2020-04-14T21:19:36Z" level=error msg="An error occurred while handling a request" code=500 debug= details="map[]" error="sqlite create: no such table: selfservice_errors" reason= request-id= status=500 trace="Stack trace: \ngithub.com/ory/x/sqlcon.HandleError\n\t/go/pkg/mod/github.com/ory/x@v0.0.95/sqlcon/error.go:63\ngithub.com/ory/kratos/persistence/sql.(*Persister).Add\n\t/home/ory/persistence/sql/persister_errorx.go:37\ngithub.com/ory/kratos/selfservice/errorx.(*Manager).Create\n\t/home/ory/selfservice/errorx/manager.go:54\ngithub.com/ory/kratos/selfservice/errorx.(*Manager).Forward\n\t/home/ory/selfservice/errorx/manager.go:67\ngithub.com/ory/kratos/selfservice/flow/login.(*Handler).initLoginRequest\n\t/home/ory/selfservice/flow/login/handler.go:115\ngithub.com/ory/kratos/session.(*Handler).IsNotAuthenticated.func1\n\t/home/ory/session/handler.go:108\ngithub.com/julienschmidt/httprouter.(*Router).ServeHTTP\n\t/go/pkg/mod/github.com/julienschmidt/httprouter@v1.2.0/router.go:334\ngithub.com/justinas/nosurf.(*CSRFHandler).handleSuccess\n\t/go/pkg/mod/github.com/justinas/nosurf@v0.0.0-20190118163749-6453469bdcc9/handler.go:187\ngithub.com/justinas/nosurf.(*CSRFHandler).ServeHTTP\n\t/go/pkg/mod/github.com/justinas/nosurf@v0.0.0-20190118163749-6453469bdcc9/handler.go:144\ngithub.com/urfave/negroni.Wrap.func1\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:46\ngithub.com/urfave/negroni.HandlerFunc.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29\ngithub.com/urfave/negroni.middleware.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38\ngithub.com/ory/x/metricsx.(*Service).ServeHTTP\n\t/go/pkg/mod/github.com/ory/x@v0.0.95/metricsx/middleware.go:261\ngithub.com/urfave/negroni.middleware.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38\ngithub.com/ory/x/reqlog.(*Middleware).ServeHTTP\n\t/go/pkg/mod/github.com/ory/x@v0.0.95/reqlog/middleware.go:140\ngithub.com/urfave/negroni.middleware.ServeHTTP\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38\ngithub.com/urfave/negroni.(*Negroni).ServeHTTP\n\t/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:96\ngithub.com/gorilla/context.ClearHandler.func1\n\t/go/pkg/mod/github.com/gorilla/context@v1.1.1/context.go:141\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2007\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2802\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1890\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357" writer=JSON
kratos_1 | time="2020-04-14T21:19:36Z" level=info msg="completed handling request" method=GET name="public#http://127.0.0.1:4455/.ory/kratos/public/" remote="172.18.0.5:52382" request=/self-service/browser/flows/login status=500 text_status="Internal Server Error" took=4.0795ms
oathkeeper_1 | {"granted":true,"http_host":"127.0.0.1:4455","http_method":"GET","http_url":"http://kratos:4433/self-service/browser/flows/login","http_user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36","level":"warning","msg":"Access request granted","subject":"","time":"2020-04-14T21:19:36Z"}
oathkeeper_1 | {"level":"info","measure#oathkeeper-proxy.latency":6568300,"method":"GET","msg":"completed handling request","remote":"172.18.0.1:40570","request":"/.ory/kratos/public/self-service/browser/flows/login","status":500,"text_status":"Internal Server Error","time":"2020-04-14T21:19:36Z","took":6568300}
Please clean up the environment before you restart the tutorial. You have an existing database that runs on a newer version than what you are using now. There is a "cleaning up" section at the bottom of the tutorial.
I got the same issue and clean up the environment but still received the same error when access the 127.0.0.1:4455/dashboard
Please open a separate issue
Hello,
I am trying to run the quickstart example (https://www.ory.sh/docs/next/kratos/quickstart), but can't make it works on my Windows machine. When I run
docker-compose -f quickstart.yml up --build
I receive the following error:Can someone point me in the right direction? :D
Thanks!