You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using osctrlv0.1.5, using auth = "none" in the service configuration (admin.json) for osctrl-admin, when attempting to browse the admin UI, server throws a panic and browser shows a nginx 502 Bad Gateway error.
Steps to reproduce
1 - Deploy locally, using vagrant up for example,
2 - Change auth = "db" for auth = "none" in /opt/osctrl/config/admin.json
3 - Run make install to rebuild and deploy.
4 - Crash, panic and nginx 502 Bad Gateway. Also this stacktrace:
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: server.go:3012: http: panic serving 127.0.0.1:41128: interface conversion: interface {} is nil, not main.contextValue
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: goroutine 690 [running]:
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: net/http.(*conn).serve.func1(0xc000083cc0)
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: /usr/local/go/src/net/http/server.go:1769 +0x139
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: panic(0xa3a900, 0xc000341980)
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: /usr/local/go/src/runtime/panic.go:522 +0x1b5
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: main.environmentHandler(0xbcf240, 0xc0001bc700, 0xc000176400)
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: /vagrant/cmd/admin/handlers-get.go:121 +0xec6
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: net/http.HandlerFunc.ServeHTTP(0xb01fd0, 0xbcf240, 0xc0001bc700, 0xc000176400)
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: /usr/local/go/src/net/http/server.go:1995 +0x44
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: main.handlerAuthCheck.func1(0xbcf240, 0xc0001bc700, 0xc000176400)
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: /vagrant/cmd/admin/auth.go:17 +0xc2
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: net/http.HandlerFunc.ServeHTTP(0xc0003c3dc0, 0xbcf240, 0xc0001bc700, 0xc000176400)
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: /usr/local/go/src/net/http/server.go:1995 +0x44
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: github.com/gorilla/mux.(*Router).ServeHTTP(0xc0000de9c0, 0xbcf240, 0xc0001bc700, 0xc000176200)
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: /home/vagrant/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:212 +0xe3
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: net/http.serverHandler.ServeHTTP(0xc0004c3c70, 0xbcf240, 0xc0001bc700, 0xc000176200)
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: /usr/local/go/src/net/http/server.go:2774 +0xa8
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: net/http.(*conn).serve(0xc000083cc0, 0xbd0b40, 0xc0001790c0)
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: /usr/local/go/src/net/http/server.go:1878 +0x851
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: created by net/http.(*Server).Serve
Aug 27 22:56:12 osctrl-Dev osctrl-admin[21166]: /usr/local/go/src/net/http/server.go:2884 +0x2f4
The text was updated successfully, but these errors were encountered:
Issue
Using
osctrl
v0.1.5
, usingauth = "none"
in the service configuration (admin.json
) forosctrl-admin
, when attempting to browse the admin UI, server throws a panic and browser shows a nginx 502 Bad Gateway error.Steps to reproduce
1 - Deploy locally, using
vagrant up
for example,2 - Change
auth = "db"
forauth = "none"
in/opt/osctrl/config/admin.json
3 - Run
make install
to rebuild and deploy.4 - Crash, panic and nginx 502 Bad Gateway. Also this stacktrace:
The text was updated successfully, but these errors were encountered: