Skip to content

Instantly share code, notes, and snippets.

@predominant
Created August 17, 2015 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save predominant/00f7213d1769d0a34d4e to your computer and use it in GitHub Desktop.
Save predominant/00f7213d1769d0a34d4e to your computer and use it in GitHub Desktop.
Drone error when deleting repo
2015/08/17 01:55:16 http: panic serving 10.68.10.81:64815: runtime error: invalid memory address or nil pointer dereference
goroutine 26 [running]:
net/http.func·011()
/usr/local/go/src/pkg/net/http/server.go:1100 +0xb7
runtime.panic(0xb3b7a0, 0x11ae913)
/usr/local/go/src/pkg/runtime/panic.c:248 +0x18d
github.com/drone/drone/plugin/remote/github.DeleteKey(0xc2080457c0, 0xc20816cb78, 0x4, 0xc20816cb90, 0x7, 0xc208172460, 0x1b, 0xc2080aa780, 0x17d, 0x0, ...)
/var/cache/drone/src/github.com/drone/drone/plugin/remote/github/helper.go:250 +0xfe
github.com/drone/drone/plugin/remote/github.(*GitHub).Deactivate(0xc2080265b0, 0xc208042c60, 0xc208056e00, 0xc208160310, 0x64, 0x0, 0x0)
/var/cache/drone/src/github.com/drone/drone/plugin/remote/github/github.go:207 +0x164
github.com/drone/drone/server/handler.DelRepo(0xc20816a6f0, 0xc208023380, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/drone/drone/server/handler/repo.go:78 +0x74c
github.com/zenazn/goji/web.HandlerFunc.ServeHTTPC(0xd537a8, 0xc20816a6f0, 0xc208023380, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/zenazn/goji/web/web.go:54 +0x54
github.com/zenazn/goji/web.(*router).route(0xc208026ce8, 0xc20816a720, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/zenazn/goji/web/router.go:113 +0x125
github.com/zenazn/goji/web.func·002(0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/zenazn/goji/web/middleware.go:88 +0x5f
net/http.HandlerFunc.ServeHTTP(0xc208127ca0, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1235 +0x40
github.com/drone/drone/server/middleware.func·005(0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/drone/drone/server/middleware/repo.go:104 +0x45b
net/http.HandlerFunc.ServeHTTP(0xc208127cc0, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1235 +0x40
github.com/drone/drone/server/middleware.func·004(0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/drone/drone/server/middleware/repo.go:62 +0x21d
net/http.HandlerFunc.ServeHTTP(0xc208127ce0, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1235 +0x40
github.com/drone/drone/server/middleware.func·003(0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/drone/drone/server/middleware/repo.go:36 +0x5dc
net/http.HandlerFunc.ServeHTTP(0xc208127d00, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1235 +0x40
github.com/zenazn/goji/web.(*cStack).ServeHTTPC(0xc20816a720, 0xc20816a6f0, 0xc208023380, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/zenazn/goji/web/middleware.go:50 +0x69
github.com/zenazn/goji/web.(*Mux).ServeHTTPC(0xc208026cb0, 0xc20816a6f0, 0xc208023380, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/zenazn/goji/web/mux.go:53 +0x73
github.com/zenazn/goji/web.(*router).route(0xc2080268f8, 0xc2080232c0, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/zenazn/goji/web/router.go:113 +0x125
github.com/zenazn/goji/web.func·002(0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/zenazn/goji/web/middleware.go:88 +0x5f
net/http.HandlerFunc.ServeHTTP(0xc2081272c0, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1235 +0x40
github.com/drone/drone/server/middleware.func·006(0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/drone/drone/server/middleware/user.go:21 +0x1a6
net/http.HandlerFunc.ServeHTTP(0xc2081272e0, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1235 +0x40
github.com/drone/drone/server/middleware.func·001(0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/drone/drone/server/middleware/header.go:28 +0x4e9
net/http.HandlerFunc.ServeHTTP(0xc208125bd0, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1235 +0x40
main.func·002(0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/drone/drone/server/main.go:176 +0x721
net/http.HandlerFunc.ServeHTTP(0xc208127300, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1235 +0x40
github.com/drone/drone/server/middleware.func·002(0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/drone/drone/server/middleware/options.go:22 +0x261
net/http.HandlerFunc.ServeHTTP(0xc208125c00, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1235 +0x40
github.com/zenazn/goji/web.(*cStack).ServeHTTP(0xc2080232c0, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/zenazn/goji/web/middleware.go:46 +0x7f
github.com/zenazn/goji/web.(*Mux).ServeHTTP(0xc2080268c0, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/var/cache/drone/src/github.com/zenazn/goji/web/mux.go:45 +0x5f
net/http.(*ServeMux).ServeHTTP(0xc208022930, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1511 +0x1a3
net/http.serverHandler.ServeHTTP(0xc208005b00, 0x7fd706ce8d30, 0xc208045360, 0xc208164000)
/usr/local/go/src/pkg/net/http/server.go:1673 +0x19f
net/http.(*conn).serve(0xc208051180)
/usr/local/go/src/pkg/net/http/server.go:1174 +0xa7e
created by net/http.(*Server).Serve
/usr/local/go/src/pkg/net/http/server.go:1721 +0x313
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment