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

[BUG] opaal docker container missing html. Unable to log in #2

Open
alexlovelltroy opened this issue Apr 11, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@alexlovelltroy
Copy link

Describe the bug
The HTML pages from the repository are not present in the container. Opaal cannot deliver the index.html for login.

To Reproduce

  1. Start the released container in the deployment-recipes.
  2. Attempt to navigate to opaal for login http://localhost:3333/login
  3. Look for this line in logs: http: panic serving 192.168.65.1:39179: stat /opaal/pages: no such file or directory
  4. See the traceback that follows
2024-04-11 16:42:25 goroutine 359 [running]:
2024-04-11 16:42:25 net/http.(*conn).serve.func1()
2024-04-11 16:42:25     /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.linux-amd64/src/net/http/server.go:1898 +0xbe
2024-04-11 16:42:25 panic({0xb1e9c0?, 0xc0004f1170?})
2024-04-11 16:42:25     /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.linux-amd64/src/runtime/panic.go:770 +0x132
2024-04-11 16:42:25 davidallendj/opaal/internal/server.(*Server).Start.func3({0xcbe348, 0xc00026e460}, 0x0?)
2024-04-11 16:42:25     /home/runner/work/opaal/opaal/internal/server/server.go:79 +0x237
2024-04-11 16:42:25 net/http.HandlerFunc.ServeHTTP(0xc0001d0000?, {0xcbe348?, 0xc00026e460?}, 0xc00062607c?)
2024-04-11 16:42:25     /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.linux-amd64/src/net/http/server.go:2166 +0x29
2024-04-11 16:42:25 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc000282840, {0xcbe348, 0xc00026e460}, 0xc0002c19e0)
2024-04-11 16:42:25     /home/runner/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:459 +0x2e6
2024-04-11 16:42:25 net/http.HandlerFunc.ServeHTTP(0xc0004f1110?, {0xcbe348?, 0xc00026e460?}, 0x110cc40?)
2024-04-11 16:42:25     /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.linux-amd64/src/net/http/server.go:2166 +0x29
2024-04-11 16:42:25 github.com/go-chi/chi/v5/middleware.RedirectSlashes.func1({0xcbe348, 0xc00026e460}, 0xc0002c19e0)
2024-04-11 16:42:25     /home/runner/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/middleware/strip.go:59 +0x22b
2024-04-11 16:42:25 net/http.HandlerFunc.ServeHTTP(0xcbf8f0?, {0xcbe348?, 0xc00026e460?}, 0x10a8f00?)
2024-04-11 16:42:25     /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.linux-amd64/src/net/http/server.go:2166 +0x29
2024-04-11 16:42:25 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc000282840, {0xcbe348, 0xc00026e460}, 0xc0002c17a0)
2024-04-11 16:42:25     /home/runner/go/pkg/mod/github.com/go-chi/chi/v5@v5.0.12/mux.go:90 +0x2ee
2024-04-11 16:42:25 net/http.serverHandler.ServeHTTP({0xc0004f1020?}, {0xcbe348?, 0xc00026e460?}, 0x6?)
2024-04-11 16:42:25     /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.linux-amd64/src/net/http/server.go:3137 +0x8e
2024-04-11 16:42:25 net/http.(*conn).serve(0xc00013e900, {0xcbf8b8, 0xc0004f0fc0})
2024-04-11 16:42:25     /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.linux-amd64/src/net/http/server.go:2039 +0x5e8
2024-04-11 16:42:25 created by net/http.(*Server).Serve in goroutine 1
2024-04-11 16:42:25     /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.0.linux-amd64/src/net/http/server.go:3285 +0x4b4
@alexlovelltroy alexlovelltroy added the bug Something isn't working label Apr 11, 2024
@davidallendj
Copy link
Collaborator

Just tested and confirmed that the issue occurs when running the deployment recipes, but not bare metal. My guess is that this is happening because I forgot to copy the HTML when the container is built.

@cjh1
Copy link

cjh1 commented Jul 9, 2024

This was resolved by: 4f5930a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants