Drone 0.5 builds stuck in pending

Hey all,
We are using Drone v0.5 and the other day we had all builds hanging (clock icon) without any of them running, looking at the logs, I see below… any idea why this may happen?

{"log":"time=\"2017-10-12T00:09:26Z\" level=error msg=\"Error #01: sql: no rows in result set\\n\" ip=209.12.171.66 latency=717.921µs method=GET path=\"/api/repos/vmware/vic/logs/14013/1\" status=404 time=\"2017-10-12T00:09:26Z\" user-agent=\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36\" \n","stream":"stderr","time":"2017-10-12T00:09:26.123489201Z"}

Also, some master and agent communication issues…

{"log":"time=\"2017-10-12T05:29:27Z\" level=error msg=\"Unable to read logs from broker. Timeout. %!s(\u003cnil\u003e)\" \n","stream":"stderr","time":"2017-10-12T05:29:27.102495144Z"}
{"log":"time=\"2017-10-11T22:59:48Z\" level=error msg=\"Error streaming build logs. EOF\" \n","stream":"stderr","time":"2017-10-11T22:59:48.513184845Z"}

drone 0.5 is end of life no longer supported. The current stable version of drone is 0.8.1

So I think I’ve got a fix for this issue. Just in case there are people who still have to run pre-v0.6 version of drone (like I do), you may find this useful: https://github.com/vaijab/drone/commit/98561b7f3e019c6c1c4b67a6356c5adb4cbc27c5

1 Like

I’ll be trying this out for sure! Thanks for sharing!!!