I’ve noticed, that drone-server frequently restarts in our environment - when chasing down the log files I noticed these issues:
panic: send on closed channel
goroutine 2057696 [running]:
github.com/drone/drone/server.EventStreamSSE.func2.1(0x0, 0x0, 0xc423d26000, 0x88fb, 0xa50f, 0xc422da3e30)
/go/src/github.com/drone/drone/server/stream.go:75 +0x176
created by github.com/drone/drone/vendor/github.com/cncd/pubsub.(*topic).publish
/go/src/github.com/drone/drone/vendor/github.com/cncd/pubsub/topic.go:36 +0xd2
panic: send on closed channel
goroutine 2053702 [running]:
github.com/drone/drone/server.EventStreamSSE.func2.1(0x0, 0x0, 0xc4218ac000, 0x8291, 0xa4f7, 0xc4214dfc50)
/go/src/github.com/drone/drone/server/stream.go:75 +0x176
created by github.com/drone/drone/vendor/github.com/cncd/pubsub.(*topic).publish
/go/src/github.com/drone/drone/vendor/github.com/cncd/pubsub/topic.go:36 +0xd2