Deploying drone on kubernetes and receiving the error message below coming from the drone server in a state of “CrashLoopBackOff”.
{“arch”:“amd64”,“error”:“context canceled”,“level”:“warning”,“machine”:“drone-agent-7dc986d6d5-q8pjh”,“msg”:“runner: cannot get queue item”,“os”:“linux”,“time”:“2021-04-06T13:51:37Z”}
{“arch”:“amd64”,“error”:“context canceled”,“level”:“warning”,“machine”:“drone-agent-7dc986d6d5-q8pjh”,“msg”:“runner: cannot get queue item”,“os”:“linux”,“time”:“2021-04-06T13:51:37Z”}
This is normal. The runner performs long polling when requesting builds from the server queue. It polls for 30 seconds and then disconnects, logs the above entry, and then re-connects. We improved the log text in newer versions of Drone, and also re-categorized as a trace-level message, to avoid confusion and prevent this from being interpreted as an error.