Drone

[Solved] Activating A Repository Causes Internal Server Error

Just installed drone following the tutorial here and am trying to activate a private repository but doing so through the webui gives an Internal Server Error. I’ve also noticed some panic errors after running docker logs <container-id>

edit: It looks like there was something wrong with my host configuration that was causing some unexpected errors. I changed it to the correct hostname and I was able to activate a repository.

{"interval":"30m0s","level":"info","msg":"starting the cron scheduler","time":"2019-07-09T02:29:04Z"}
Panic: runtime error: invalid memory address or nil pointer dereference
goroutine 93 [running]:
runtime/debug.Stack(0x48, 0x0, 0x0)
        /usr/local/go/src/runtime/debug/stack.go:24 +0xa7
runtime/debug.PrintStack()
        /usr/local/go/src/runtime/debug/stack.go:16 +0x22
github.com/go-chi/chi/middleware.Recoverer.func1.1(0xc0009e6100, 0x1c296a0, 0xc00035a7e0)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/middleware/recoverer.go:28 +0x1b6
panic(0x178d960, 0x2b2f3d0)
        /usr/local/go/src/runtime/panic.go:513 +0x1b9
github.com/drone/drone/service/hook.deleteHook(0x1c2c2a0, 0xc00085c210, 0xc0000c8dd0, 0xc00077ed40, 0x14, 0xc000a9a4b0, 0x27, 0x2, 0xc000a9a4b0)
        /drone/src/service/hook/util.go:34 +0x44
github.com/drone/drone/service/hook.replaceHook(0x1c2c2a0, 0xc00085c210, 0xc0000c8dd0, 0xc00077ed40, 0x14, 0xc0003d6900, 0x27, 0xc00085c210)
        /drone/src/service/hook/util.go:25 +0x74
github.com/drone/drone/service/hook.(*service).Create(0xc0003443c0, 0x1c2c2a0, 0xc00085c210, 0xc000269220, 0xc000a80140, 0xc00077e251, 0xa)
        /drone/src/service/hook/hook.go:57 +0x279
github.com/drone/drone/handler/api/repos.HandleEnable.func1(0x1c296a0, 0xc00035a7e0, 0xc0009e6a00)
        /drone/src/handler/api/repos/enable.go:68 +0x274
net/http.HandlerFunc.ServeHTTP(0xc0004d6fc0, 0x1c296a0, 0xc00035a7e0, 0xc0009e6a00)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/drone/drone/handler/api/acl.CheckAccess.func1.1(0x1c296a0, 0xc00035a7e0, 0xc0009e6900)
        /drone/src/handler/api/acl/check.go:137 +0x6c3
net/http.HandlerFunc.ServeHTTP(0xc000261770, 0x1c296a0, 0xc00035a7e0, 0xc0009e6900)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/go-chi/chi.(*ChainHandler).ServeHTTP(0xc0004d7000, 0x1c296a0, 0xc00035a7e0, 0xc0009e6900)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/chain.go:31 +0x52
github.com/go-chi/chi.(*Mux).routeHTTP(0xc0003e5f20, 0x1c296a0, 0xc00035a7e0, 0xc0009e6900)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:424 +0x239
github.com/go-chi/chi.(*Mux).routeHTTP-fm(0x1c296a0, 0xc00035a7e0, 0xc0009e6900)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:368 +0x48
net/http.HandlerFunc.ServeHTTP(0xc0003b1cb0, 0x1c296a0, 0xc00035a7e0, 0xc0009e6900)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/drone/drone/handler/api/acl.CheckAccess.func1.1(0x1c296a0, 0xc00035a7e0, 0xc0009e6800)
        /drone/src/handler/api/acl/check.go:137 +0x6c3
net/http.HandlerFunc.ServeHTTP(0xc000261650, 0x1c296a0, 0xc00035a7e0, 0xc0009e6800)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/drone/drone/handler/api/acl.InjectRepository.func1.1(0x1c296a0, 0xc00035a7e0, 0xc0009e6700)
        /drone/src/handler/api/acl/repo.go:133 +0xe28
net/http.HandlerFunc.ServeHTTP(0xc0003e95e0, 0x1c296a0, 0xc00035a7e0, 0xc0009e6700)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/go-chi/chi.(*Mux).ServeHTTP(0xc0003e5f20, 0x1c296a0, 0xc00035a7e0, 0xc0009e6700)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:69 +0x44f
github.com/go-chi/chi.(*Mux).Mount.func1(0x1c296a0, 0xc00035a7e0, 0xc0009e6700)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:291 +0xf5
net/http.HandlerFunc.ServeHTTP(0xc0005330e0, 0x1c296a0, 0xc00035a7e0, 0xc0009e6700)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/go-chi/chi.(*Mux).routeHTTP(0xc0003e5ec0, 0x1c296a0, 0xc00035a7e0, 0xc0009e6700)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:424 +0x239
github.com/go-chi/chi.(*Mux).routeHTTP-fm(0x1c296a0, 0xc00035a7e0, 0xc0009e6700)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:368 +0x48
net/http.HandlerFunc.ServeHTTP(0xc0001d20e0, 0x1c296a0, 0xc00035a7e0, 0xc0009e6700)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/go-chi/cors.(*Cors).Handler.func1(0x1c296a0, 0xc00035a7e0, 0xc0009e6700)
        /go/pkg/mod/github.com/go-chi/cors@v1.0.0/cors.go:199 +0xf2
net/http.HandlerFunc.ServeHTTP(0xc000533100, 0x1c296a0, 0xc00035a7e0, 0xc0009e6700)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/drone/drone/handler/api/auth.HandleAuthentication.func1.1(0x1c296a0, 0xc00035a7e0, 0xc0009e6200)
        /drone/src/handler/api/auth/auth.go:51 +0x30d
net/http.HandlerFunc.ServeHTTP(0xc000586ab0, 0x1c296a0, 0xc00035a7e0, 0xc0009e6200)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/drone/drone/logger.Middleware.func1(0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /drone/src/logger/handler.go:36 +0x282
net/http.HandlerFunc.ServeHTTP(0xc000533120, 0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/go-chi/chi/middleware.NoCache.func1(0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/middleware/nocache.go:54 +0x1e8
net/http.HandlerFunc.ServeHTTP(0xc000533140, 0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/go-chi/chi/middleware.Recoverer.func1(0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/middleware/recoverer.go:35 +0x9f
net/http.HandlerFunc.ServeHTTP(0xc000533160, 0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/go-chi/chi.(*Mux).ServeHTTP(0xc0003e5ec0, 0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:69 +0x44f
github.com/go-chi/chi.(*Mux).Mount.func1(0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:291 +0xf5
net/http.HandlerFunc.ServeHTTP(0xc000230140, 0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/go-chi/chi.(*Mux).routeHTTP(0xc0003e5e60, 0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:424 +0x239
github.com/go-chi/chi.(*Mux).routeHTTP-fm(0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:368 +0x48
net/http.HandlerFunc.ServeHTTP(0xc0003b1620, 0x1c296a0, 0xc00035a7e0, 0xc0009e6100)
        /usr/local/go/src/net/http/server.go:1964 +0x44
github.com/go-chi/chi.(*Mux).ServeHTTP(0xc0003e5e60, 0x1c296a0, 0xc00035a7e0, 0xc0009e7800)
        /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:81 +0x293
net/http.serverHandler.ServeHTTP(0xc0005ab790, 0x1c296a0, 0xc00035a7e0, 0xc0009e7800)
        /usr/local/go/src/net/http/server.go:2741 +0xab
net/http.(*conn).serve(0xc00079e140, 0x1c2c1e0, 0xc00048e580)
        /usr/local/go/src/net/http/server.go:1847 +0x646
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:2851 +0x2f5