play-with-go icon indicating copy to clipboard operation
play-with-go copied to clipboard

bug: gopher.live a dependency for any guide

Open antton opened this issue 1 year ago • 1 comments

Describe the bug When I try to launch any guide on local, the terminal does not initialize, and I get the following error message on docker logs.

controller_1 | failed to execute all presteps: failed to create prestep request for {http cmd_gitea:8080 /newuser false false }: Post "http://cmd_gitea:8080/newuser": EOF cmd_gitea_1 | server.go:3230: http: panic serving 172.18.0.5:44722: failed to create user: token is required cmd_gitea_1 | goroutine 27 [running]: cmd_gitea_1 | net/http.(*conn).serve.func1() cmd_gitea_1 | /usr/local/go/src/net/http/server.go:1850 +0xbf cmd_gitea_1 | panic({0x9f64a0, 0xc00046a3d0}) cmd_gitea_1 | /usr/local/go/src/runtime/panic.go:890 +0x262 cmd_gitea_1 | main.raise(...) cmd_gitea_1 | /root/.cache/go/gomodcache/github.com/play-with-go/[email protected]/cmd/gitea/flag.go:223 cmd_gitea_1 | main.(*serveCmd).createUser(0xc00029cd00) cmd_gitea_1 | /root/.cache/go/gomodcache/github.com/play-with-go/[email protected]/cmd/gitea/serve.go:228 +0x4db cmd_gitea_1 | main.(*serveCmd).newUser(0xc00029cd00, 0xc0003f0018) cmd_gitea_1 | /root/.cache/go/gomodcache/github.com/play-with-go/[email protected]/cmd/gitea/serve.go:146 +0x3e cmd_gitea_1 | main.(*serveCmd).run.func4({0xb585b0, 0xc000362000}, 0xc00006e700) cmd_gitea_1 | /root/.cache/go/gomodcache/github.com/play-with-go/[email protected]/cmd/gitea/serve.go:103 +0x236 cmd_gitea_1 | net/http.HandlerFunc.ServeHTTP(0xc000362000?, {0xb585b0?, 0xc000362000?}, 0xa6cc4e?) cmd_gitea_1 | /usr/local/go/src/net/http/server.go:2109 +0x2f cmd_gitea_1 | net/http.(*ServeMux).ServeHTTP(0x0?, {0xb585b0, 0xc000362000}, 0xc00006e700) cmd_gitea_1 | /usr/local/go/src/net/http/server.go:2487 +0x149 cmd_gitea_1 | net/http.serverHandler.ServeHTTP({0xb572c8?}, {0xb585b0, 0xc000362000}, 0xc00006e700) cmd_gitea_1 | /usr/local/go/src/net/http/server.go:2947 +0x30c cmd_gitea_1 | net/http.(*conn).serve(0xc0003be000, {0xb58b00, 0xc0002d4c90}) cmd_gitea_1 | /usr/local/go/src/net/http/server.go:1991 +0x607 cmd_gitea_1 | created by net/http.(*Server).Serve cmd_gitea_1 | /usr/local/go/src/net/http/server.go:3102 +0x4db

To Reproduce Steps to reproduce the behavior:

  1. Download this repository.
  2. Launch docker-compose up
  3. Try to get inside any guide on localhost:4000 (via web browser)
  4. Check the docker-compose logs output

antton avatar Nov 04 '22 13:11 antton

It does appear to be a bug that PWG currently requires a token to connected to gopher.live.

Per the contribution guidelines, this should only be a requirement for a guide that requires the gitea prestep.

myitcv avatar Nov 05 '22 05:11 myitcv