Drone receives 404 from github posting build status

Drone version 0.8

Most likely cause: engineer who setup drone just left the company, so some implicit permission issue.

Drone is watching 3 repos on our Github Enterprise system. 2 repos work great, 1 repo fails. Failure is drone posting the build status back to GHE.

Drone log message shows:

time=“2019-01-04T13:14:53Z” level=error msg=“error setting commit status for psc/tenants/15: POST https://github.example.net/api/v3/repos/psc/tenants/statuses/ff5BLAHBLAHc8: 404 Not Found []”

DRONE_HOST is set to “DRONE_HOST=http://drone.cicd.example.net”

All three repos have had "drone repo chown " run on them.

Thank you for any help;
Jason

Most likely cause: engineer who setup drone just left the company, so some implicit permission issue.

in this case you want the drone repo chown <repo> command, which will allow you to assume ownership of the repository to resolve any access problems.

All three repos have had "drone repo chown " run on them.

In digging, the issue was in github permissions. the drone service account didn’t have collaborator rights to the repo.