time="2018-07-27T20:14:44Z" level=error msg="error setting commit status for vmware/vic/19642: POST https://api.github.com/repos/vmware/vic/statuses/3474fee798cecced95b3792d150aad19204aeb5a: 404 Not Found "
Other topics on this issue suggested the
DRONE_HOST environment variable might be the culprit. However, it appears to be set correctly:
I was able to manually POST to the URL in the error using
curl, authenticating with a Personal Access Token.
Is there a way to access the full response Drone is receiving from GitHub? It does not seem to be logged, but the
message from the body may have some helpful information.
Are there other configuration values that I should check?
Was it working previously? Is it possible that the individual that enabled the project in Drone revoked Drone’s oauth access (token)? Or maybe their permissions on the project changed? Or they were removed from the project?
Is there a way to access the full response Drone is receiving from GitHub?
Unfortunately not in the current version of Drone, but I actually added this capability a few weeks back. The relevant changes will land in 0.9.
It was working previously, but there were some repo membership changes recently, so this may be the issue.
@zjs yes, I am guessing that is the root cause
I recommend having a Drone user with admin access to the repository run the following command from the command line:
drone repo chown <repo>
This will change the repository owner within Drone to the individual that executes the command, and will ensure when Drone is making API calls it uses a token with adequate permissions.
BTW very cool to see projects using Drone at VMWare. If you ever want to jump on a Google Hangout I would love to learn more about what you all are doing and how we (Drone) can help!
Thanks, this seems to have solved the problem!