I’m experiencing a weird problem when using Drone with Github. After some time (can be days to weeks) activating a Github repo on Drone, some repos failed at the clone step. The error is similar to this:
Initialized empty Git repository in /drone/src/.git/
+ git fetch origin +refs/heads/ISSUE-BRANCH:
remote: Repository not found.
fatal: repository 'https://github.com/myorg/myrepo.git/' not found
To solve this I had to disable and enable the repo in Drone again. But this problem already happened two or three times within the last two months for me.
Here’re the related logs that I could find in Drone server:
{"commit":"48ff53ac7c2502b7d9c6fe4a83411a934b5ab1fe","event":"pull_request","level":"info","msg":"trigger: skipping pipeline, does not match branch","pipeline":"develop","ref":"refs/pull/256/head","repo":"myorg/myrepo","time":"2021-01-14T08:50:46Z"}
{"commit":"48ff53ac7c2502b7d9c6fe4a83411a934b5ab1fe","error":"Not Found","event":"pull_request","level":"warning","msg":"trigger: cannot create status","pipeline":"develop","ref":"refs/pull/256/head","repo":"myorg/myrepo","time":"2021-01-14T08:50:46Z"}
{"build.id":1884,"build.number":4,"error":"Not Found","level":"warning","msg":"manager: cannot publish status","repo.id":225,"stage.id":1892,"time":"2021-01-14T08:50:47Z"}
{"error":"stream: not found","level":"warning","msg":"manager: cannot teardown log stream","step.id":7700,"step.name":"check skip tests","step.status":"skipped","time":"2021-01-14T08:50:53Z"}
{"error":"stream: not found","level":"warning","msg":"manager: cannot teardown log stream","step.id":7701,"step.name":"docker","step.status":"skipped","time":"2021-01-14T08:50:53Z"}
{"error":"stream: not found","level":"warning","msg":"manager: cannot teardown log stream","step.id":7702,"step.name":"test","step.status":"skipped","time":"2021-01-14T08:50:53Z"}
{"error":"stream: not found","level":"warning","msg":"manager: cannot teardown log stream","step.id":7703,"step.name":"upload report","step.status":"skipped","time":"2021-01-14T08:50:53Z"}
{"build.id":1884,"build.number":4,"error":"Not Found","level":"warning","msg":"manager: cannot publish status","repo.id":225,"stage.id":1892,"time":"2021-01-14T08:50:53Z"}
I’m not sure how to fix this. Please help to shed some light into the issue.
Thanks.