Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ curl -i -X POST -H "Authorization: Bearer xxxxxxxxxxxxxxxxxxx" https://drone.mydomain.com/api/repos/{ONWER}/{REPO}/builds
- HTTP/1.1 500 Internal Server Error
- Cache-Control: no-cache, no-store, must-revalidate, private, max-age=0
- Content-Type: text/plain; charset=utf-8
- Expires: Thu, 01 Jan 1970 00:00:00 UTC
- Pragma: no-cache
- Vary: Origin
- X-Accel-Expires: 0
- X-Content-Type-Options: nosniff
- Date: Thu, 15 Oct 2020 06:05:42 GMT
- Content-Length: 22
- Connection: close
- Strict-Transport-Security: max-age=15768000
- Internal Server Error
- ---
- $ curl -i -X POST -H "Authorization: Bearer xxxxxxxxxxxxxxxxxxx" https://drone.mydomain.com/api/repos/{ONWER}/{REPO}/builds?branch=master
- HTTP/1.1 500 Internal Server Error
- Cache-Control: no-cache, no-store, must-revalidate, private, max-age=0
- Content-Type: text/plain; charset=utf-8
- Expires: Thu, 01 Jan 1970 00:00:00 UTC
- Pragma: no-cache
- Vary: Origin
- X-Accel-Expires: 0
- X-Content-Type-Options: nosniff
- Date: Thu, 15 Oct 2020 06:11:40 GMT
- Content-Length: 22
- Connection: close
- Strict-Transport-Security: max-age=15768000
- Internal Server Error
- ---
- ## Drone pod error log ##
- Panic: runtime error: index out of range [0] with length 0
- goroutine 1894392 [running]:
- runtime/debug.Stack(0x3b, 0x0, 0x0)
- /usr/local/go/src/runtime/debug/stack.go:24 +0x9d
- runtime/debug.PrintStack()
- /usr/local/go/src/runtime/debug/stack.go:16 +0x22
- github.com/go-chi/chi/middleware.Recoverer.func1.1(0xc00001a600, 0x1ea7f20, 0xc0006c8a80)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/middleware/recoverer.go:28 +0x1b6
- panic(0x19f2ae0, 0xc00027a2a0)
- /usr/local/go/src/runtime/panic.go:969 +0x166
- github.com/drone/go-scm/scm/driver/stash.(*Error).Error(0xc0006c4500, 0x0, 0xc0002dafb8)
- /go/pkg/mod/github.com/drone/go-scm@v1.7.1-0.20200621203823-3731ec1f1136/scm/driver/stash/stash.go:133 +0x41
- github.com/drone/drone/handler/api/render.ErrorCode(0x1ea7f20, 0xc0006c8a80, 0x1e6f1c0, 0xc0006c4500, 0x194)
- /drone/src/handler/api/render/render.go:55 +0x35
- github.com/drone/drone/handler/api/render.NotFound(...)
- /drone/src/handler/api/render/render.go:79
- github.com/drone/drone/handler/api/repos/builds.HandleCreate.func1(0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /drone/src/handler/api/repos/builds/create.go:73 +0xa95
- net/http.HandlerFunc.ServeHTTP(0xc0004aa870, 0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/drone/drone/handler/api/acl.CheckAccess.func1.1(0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /drone/src/handler/api/acl/check.go:78 +0x1268
- net/http.HandlerFunc.ServeHTTP(0xc0003aecc0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi.(*ChainHandler).ServeHTTP(0xc000082a40, 0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/chain.go:31 +0x52
- github.com/go-chi/chi.(*Mux).routeHTTP(0xc0004a13e0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:424 +0x278
- net/http.HandlerFunc.ServeHTTP(0xc00036cf70, 0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi.(*Mux).ServeHTTP(0xc0004a13e0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:69 +0x4f3
- github.com/go-chi/chi.(*Mux).Mount.func1(0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:291 +0x11b
- net/http.HandlerFunc.ServeHTTP(0xc0002c65c0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi.(*Mux).routeHTTP(0xc0004a11a0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:424 +0x278
- net/http.HandlerFunc.ServeHTTP(0xc00036cef0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/drone/drone/handler/api/acl.CheckAccess.func1.1(0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /drone/src/handler/api/acl/check.go:78 +0x1268
- net/http.HandlerFunc.ServeHTTP(0xc0003ae870, 0x1ea7f20, 0xc0006c8a80, 0xc00001ad00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/drone/drone/handler/api/acl.InjectRepository.func1.1(0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /drone/src/handler/api/acl/repo.go:133 +0xf0a
- net/http.HandlerFunc.ServeHTTP(0xc0004aa7d0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi.(*Mux).ServeHTTP(0xc0004a11a0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:69 +0x4f3
- github.com/go-chi/chi.(*Mux).Mount.func1(0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:291 +0x11b
- net/http.HandlerFunc.ServeHTTP(0xc0002c6ae0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi.(*Mux).routeHTTP(0xc0004a10e0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:424 +0x278
- net/http.HandlerFunc.ServeHTTP(0xc00036ce50, 0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi.(*Mux).ServeHTTP(0xc0004a10e0, 0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:69 +0x4f3
- github.com/go-chi/chi.(*Mux).Mount.func1(0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:291 +0x11b
- net/http.HandlerFunc.ServeHTTP(0xc0002c6c00, 0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi.(*Mux).routeHTTP(0xc0004a1080, 0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:424 +0x278
- net/http.HandlerFunc.ServeHTTP(0xc00036d310, 0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/cors.(*Cors).Handler.func1(0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /go/pkg/mod/github.com/go-chi/cors@v1.0.0/cors.go:199 +0x183
- net/http.HandlerFunc.ServeHTTP(0xc0002c6c20, 0x1ea7f20, 0xc0006c8a80, 0xc00001ac00)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/drone/drone/handler/api/auth.HandleAuthentication.func1.1(0x1ea7f20, 0xc0006c8a80, 0xc00001a700)
- /drone/src/handler/api/auth/auth.go:51 +0x467
- net/http.HandlerFunc.ServeHTTP(0xc0003afc50, 0x1ea7f20, 0xc0006c8a80, 0xc00001a700)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/drone/drone/logger.Middleware.func1(0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /drone/src/logger/handler.go:36 +0x373
- net/http.HandlerFunc.ServeHTTP(0xc0002c6c40, 0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi/middleware.NoCache.func1(0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/middleware/nocache.go:54 +0x2a0
- net/http.HandlerFunc.ServeHTTP(0xc0002c6c60, 0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi/middleware.Recoverer.func1(0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/middleware/recoverer.go:35 +0x83
- net/http.HandlerFunc.ServeHTTP(0xc0002c6c80, 0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi.(*Mux).ServeHTTP(0xc0004a1080, 0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:69 +0x4f3
- github.com/go-chi/chi.(*Mux).Mount.func1(0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:291 +0x11b
- net/http.HandlerFunc.ServeHTTP(0xc0004a58c0, 0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi.(*Mux).routeHTTP(0xc0004a1020, 0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:424 +0x278
- net/http.HandlerFunc.ServeHTTP(0xc00036cd70, 0x1ea7f20, 0xc0006c8a80, 0xc00001a600)
- /usr/local/go/src/net/http/server.go:2012 +0x44
- github.com/go-chi/chi.(*Mux).ServeHTTP(0xc0004a1020, 0x1ea7f20, 0xc0006c8a80, 0xc00001a100)
- /go/pkg/mod/github.com/go-chi/chi@v3.3.3+incompatible/mux.go:81 +0x2b2
- net/http.serverHandler.ServeHTTP(0xc00047e1c0, 0x1ea7f20, 0xc0006c8a80, 0xc00001a100)
- /usr/local/go/src/net/http/server.go:2807 +0xa3
- net/http.(*conn).serve(0xc0001e61e0, 0x1eacee0, 0xc000230300)
- /usr/local/go/src/net/http/server.go:1895 +0x86c
- created by net/http.(*Server).Serve
- /usr/local/go/src/net/http/server.go:2933 +0x35c
Add Comment
Please, Sign In to add comment