hey, @darh I enabled these two variables too … might give some insight
LOG_INCLUDE_CALLER=true
LOG_STACKTRACE_LEVEL=debug
_
server_1 | 12:01:22.463 INFO provision.post-202203-rbac-resource-rules-fix provision/migrations_202203_rbac_resource_fix.go:37 migrating RBAC resource rules to proper format {"rules": 301}
server_1 | github.com/cortezaproject/corteza-server/pkg/provision.migratePost202203RbacRules.func1
server_1 | github.com/cortezaproject/corteza-server/pkg/provision/migrations_202203_rbac_resource_fix.go:37
server_1 | github.com/cortezaproject/corteza-server/store/rdbms.Store.Tx.func1
server_1 | github.com/cortezaproject/corteza-server/store/rdbms/rdbms.go:260
server_1 | github.com/cortezaproject/corteza-server/store/rdbms.tx
server_1 | github.com/cortezaproject/corteza-server/store/rdbms/rdbms.go:382
server_1 | github.com/cortezaproject/corteza-server/store/rdbms.Store.Tx
server_1 | github.com/cortezaproject/corteza-server/store/rdbms/rdbms.go:259
server_1 | github.com/cortezaproject/corteza-server/store.Tx
server_1 | github.com/cortezaproject/corteza-server/store/tx.go:6
server_1 | github.com/cortezaproject/corteza-server/pkg/provision.migratePost202203RbacRules
server_1 | github.com/cortezaproject/corteza-server/pkg/provision/migrations_202203_rbac_resource_fix.go:31
server_1 | github.com/cortezaproject/corteza-server/pkg/provision.Run.func8
server_1 | github.com/cortezaproject/corteza-server/pkg/provision/provision.go:37
server_1 | github.com/cortezaproject/corteza-server/pkg/provision.Run
server_1 | github.com/cortezaproject/corteza-server/pkg/provision/provision.go:54
server_1 | github.com/cortezaproject/corteza-server/app.(*CortezaApp).Provision
server_1 | github.com/cortezaproject/corteza-server/app/boot_levels.go:299
server_1 | github.com/cortezaproject/corteza-server/app.(*CortezaApp).InitServices
server_1 | github.com/cortezaproject/corteza-server/app/boot_levels.go:314
server_1 | github.com/cortezaproject/corteza-server/app.(*CortezaApp).Activate
server_1 | github.com/cortezaproject/corteza-server/app/boot_levels.go:547
server_1 | github.com/cortezaproject/corteza-server/app.(*CortezaApp).InitCLI.func2
server_1 | github.com/cortezaproject/corteza-server/app/cli.go:95
server_1 | github.com/cortezaproject/corteza-server/pkg/cli.ServeCommand.func1
server_1 | github.com/cortezaproject/corteza-server/pkg/cli/commands.go:67
server_1 | github.com/spf13/cobra.(*Command).execute
server_1 | github.com/spf13/cobra@v1.4.0/command.go:856
server_1 | github.com/spf13/cobra.(*Command).ExecuteC
server_1 | github.com/spf13/cobra@v1.4.0/command.go:974
server_1 | github.com/spf13/cobra.(*Command).Execute
server_1 | github.com/spf13/cobra@v1.4.0/command.go:902
server_1 | github.com/cortezaproject/corteza-server/app.(*CortezaApp).Execute
server_1 | github.com/cortezaproject/corteza-server/app/cli.go:151
server_1 | main.main
server_1 | ./main.go:13
server_1 | runtime.main
server_1 | runtime/proc.go:255
server_1 | 12:01:26.175 DEBUG server/middleware.go:44 crashed on http request {"error": "runtime error: invalid memory address or nil pointer dereference", "stack": "goroutine 502 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x65\ngithub.com/cortezaproject/corteza-server/pkg/api/server.panicRecovery({0x342b530, 0xc000256180}, {0x3412430, 0xc00046e460})\n\tgithub.com/cortezaproject/corteza-server/pkg/api/server/middleware.go:44 +0x2ef\npanic({0x29774e0, 0x45764a0})\n\truntime/panic.go:1038 +0x215\ngoogle.golang.org/grpc.(*ClientConn).GetState(...)\n\tgoogle.golang.org/grpc@v1.45.0/clientconn.go:527\ngithub.com/cortezaproject/corteza-server/pkg/corredor.Healthcheck({0x457c060, 0x0})\n\tgithub.com/cortezaproject/corteza-server/pkg/corredor/healthcheck.go:22 +0x35\ngithub.com/cortezaproject/corteza-server/pkg/healthcheck.(*checks).Run(0xc00046cba0, {0x342b5d8, 0xc0005d6210})\n\tgithub.com/cortezaproject/corteza-server/pkg/healthcheck/check.go:68 +0x135\ngithub.com/cortezaproject/corteza-server/pkg/api/server.waitingRoutes.func2({0x3412430, 0xc00046e460}, 0xc0000f8500)\n\tgithub.com/cortezaproject/corteza-server/pkg/api/server/handlers.go:47 +0x170\nnet/http.HandlerFunc.ServeHTTP(0x29589e0, {0x3412430, 0xc00046e460}, 0xc004ea7e84)\n\tnet/http/server.go:2047 +0x2f\ngithub.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc00025baa0, {0x3412430, 0xc00046e460}, 0xc0000f8500)\n\tgithub.com/go-chi/chi/v5@v5.0.7/mux.go:442 +0x216\nnet/http.HandlerFunc.ServeHTTP(0xc0003dcfa0, {0x3412430, 0xc00046e460}, 0xc0000f8500)\n\tnet/http/server.go:2047 +0x2f\ngithub.com/go-chi/cors.(*Cors).Handler.func1({0x3412430, 0xc00046e460}, 0xc0000f8500)\n\tgithub.com/go-chi/cors@v1.2.0/cors.go:228 +0x1bd\nnet/http.HandlerFunc.ServeHTTP(0x2b584e0, {0x3412430, 0xc00046e460}, 0x4575f40)\n\tnet/http/server.go:2047 +0x2f\ngithub.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc00025baa0, {0x3412430, 0xc00046e460}, 0xc0000f8400)\n\tgithub.com/go-chi/chi/v5@v5.0.7/mux.go:88 +0x442\ngithub.com/cortezaproject/corteza-server/pkg/api/server.(*demux).ServeHTTP(0x0, {0x3412430, 0xc00046e460}, 0xc0000f8400)\n\tgithub.com/cortezaproject/corteza-server/pkg/api/server/demux.go:51 +0x11c\nnet/http.serverHandler.ServeHTTP({0xc0005d6120}, {0x3412430, 0xc00046e460}, 0xc0000f8400)\n\tnet/http/server.go:2879 +0x43b\nnet/http.(*conn).serve(0xc00046a3c0, {0x342b5d8, 0xc0002c9800})\n\tnet/http/server.go:1930 +0xb08\ncreated by net/http.(*Server).Serve\n\tnet/http/server.go:3034 +0x4e8\n"}
server_1 | github.com/cortezaproject/corteza-server/pkg/api/server.panicRecovery
server_1 | github.com/cortezaproject/corteza-server/pkg/api/server/middleware.go:44
server_1 | runtime.gopanic
server_1 | runtime/panic.go:1038
server_1 | runtime.panicmem
server_1 | runtime/panic.go:221
server_1 | runtime.sigpanic
server_1 | runtime/signal_unix.go:735
server_1 | google.golang.org/grpc.(*ClientConn).GetState
server_1 | google.golang.org/grpc@v1.45.0/clientconn.go:527
server_1 | github.com/cortezaproject/corteza-server/pkg/corredor.Healthcheck
server_1 | github.com/cortezaproject/corteza-server/pkg/corredor/healthcheck.go:22
server_1 | github.com/cortezaproject/corteza-server/pkg/healthcheck.(*checks).Run
server_1 | github.com/cortezaproject/corteza-server/pkg/healthcheck/check.go:68
server_1 | github.com/cortezaproject/corteza-server/pkg/api/server.waitingRoutes.func2
server_1 | github.com/cortezaproject/corteza-server/pkg/api/server/handlers.go:47
server_1 | net/http.HandlerFunc.ServeHTTP
server_1 | net/http/server.go:2047
server_1 | github.com/go-chi/chi/v5.(*Mux).routeHTTP
server_1 | github.com/go-chi/chi/v5@v5.0.7/mux.go:442
server_1 | net/http.HandlerFunc.ServeHTTP
server_1 | net/http/server.go:2047
server_1 | github.com/go-chi/cors.(*Cors).Handler.func1
server_1 | github.com/go-chi/cors@v1.2.0/cors.go:228
server_1 | net/http.HandlerFunc.ServeHTTP
server_1 | net/http/server.go:2047
server_1 | github.com/go-chi/chi/v5.(*Mux).ServeHTTP
server_1 | github.com/go-chi/chi/v5@v5.0.7/mux.go:88
server_1 | github.com/cortezaproject/corteza-server/pkg/api/server.(*demux).ServeHTTP
server_1 | github.com/cortezaproject/corteza-server/pkg/api/server/demux.go:51
server_1 | net/http.serverHandler.ServeHTTP
server_1 | net/http/server.go:2879
server_1 | net/http.(*conn).serve
server_1 | net/http/server.go:1930
server_1 | 2022/05/24 12:01:26 http: superfluous response.WriteHeader call from github.com/cortezaproject/corteza-server/pkg/api/server.panicRecovery (middleware.go:46)
server_1 | 12:01:26.201 DEBUG server/middleware.go:44 crashed on http request {"error": "runtime error: invalid memory address or nil pointer dereference", "stack": "goroutine 505 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x65\ngithub.com/cortezaproject/corteza-server/pkg/api/server.panicRecovery({0x342b530, 0xc000256500}, {0x3412430, 0xc00046ee00})\n\tgithub.com/cortezaproject/corteza-server/pkg/api/server/middleware.go:44 +0x2ef\npanic({0x29774e0, 0x45764a0})\n\truntime/panic.go:1038 +0x215\ngoogle.golang.org/grpc.(*ClientConn).GetState(...)\n\tgoogle.golang.org/grpc@v1.45.0/clientconn.go:527\ngithub.com/cortezaproject/corteza-server/pkg/corredor.Healthcheck({0x457c060, 0x0})\n\tgithub.com/cortezaproject/corteza-server/pkg/corredor/healthcheck.go:22 +0x35\ngithub.com/cortezaproject/corteza-server/pkg/healthcheck.(*checks).Run(0xc00046cba0, {0x342b5d8, 0xc0005d6450})\n\tgithub.com/cortezaproject/corteza-server/pkg/healthcheck/check.go:68 +0x135\ngithub.com/cortezaproject/corteza-server/pkg/api/server.waitingRoutes.func2({0x3412430, 0xc00046ee00}, 0xc000192000)\n\tgithub.com/cortezaproject/corteza-server/pkg/api/server/handlers.go:47 +0x170\nnet/http.HandlerFunc.ServeHTTP(0x29589e0, {0x3412430, 0xc00046ee00}, 0xc005007874)\n\tnet/http/server.go:2047 +0x2f\ngithub.com/go-chi/chi/v5.(*Mux).routeHTTP(0xc00025baa0, {0x3412430, 0xc00046ee00}, 0xc000192000)\n\tgithub.com/go-chi/chi/v5@v5.0.7/mux.go:442 +0x216\nnet/http.HandlerFunc.ServeHTTP(0xc0003dcfa0, {0x3412430, 0xc00046ee00}, 0xc000192000)\n\tnet/http/server.go:2047 +0x2f\ngithub.com/go-chi/cors.(*Cors).Handler.func1({0x3412430, 0xc00046ee00}, 0xc000192000)\n\tgithub.com/go-chi/cors@v1.2.0/cors.go:228 +0x1bd\nnet/http.HandlerFunc.ServeHTTP(0x2b584e0, {0x3412430, 0xc00046ee00}, 0x4575f40)\n\tnet/http/server.go:2047 +0x2f\ngithub.com/go-chi/chi/v5.(*Mux).ServeHTTP(0xc00025baa0, {0x3412430, 0xc00046ee00}, 0xc0000f8e00)\n\tgithub.com/go-chi/chi/v5@v5.0.7/mux.go:88 +0x442\ngithub.com/cortezaproject/corteza-server/pkg/api/server.(*demux).ServeHTTP(0x0, {0x3412430, 0xc00046ee00}, 0xc0000f8e00)\n\tgithub.com/cortezaproject/corteza-server/pkg/api/server/demux.go:51 +0x11c\nnet/http.serverHandler.ServeHTTP({0xc0005d6390}, {0x3412430, 0xc00046ee00}, 0xc0000f8e00)\n\tnet/http/server.go:2879 +0x43b\nnet/http.(*conn).serve(0xc00046a820, {0x342b5d8, 0xc0002c9800})\n\tnet/http/server.go:1930 +0xb08\ncreated by net/http.(*Server).Serve\n\tnet/http/server.go:3034 +0x4e8\n"}