Skip to content

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

@alexlovelltroy

Description

@alexlovelltroy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions