Github mirror: Failed to sync repository

1,443 views
Skip to first unread message

Federico Fissore

unread,
Apr 1, 2021, 1:04:14 PM4/1/21
to Google Cloud Developers
Hi all

We have many source repos that mirror github repos. One of them went out of sync and syncing it manually results in a "Failed to sync repository"
Inspecting the request with FF dev tools, the actual body of the POST call contains a "403 forbidden"
I asked my boss with admin privileges and he gets the same error

What could cause such an issue?

best regards

federico

gonzalezwalter

unread,
Apr 1, 2021, 3:44:10 PM4/1/21
to Google Cloud Developers
Hello, 

I would first recommend verifying that your webhook is correctly configured and if needed recreate it. 
  • On GitHub this can be found under "repository settings" > "webhooks" > "edit". You can trigger a redelivery attempt by clicking on the first entry under "recent deliveries", and then "redeliver". 
Based on the error message this may be due to a permission issue where you have lost the token used access this github repository (for example user who connected it initially don't have permission to it anymore). In this case the recommended way to fix it is by disconnecting and reconnecting the repository.


Federico Fissore

unread,
Apr 2, 2021, 5:48:50 AM4/2/21
to Google Cloud Developers
Webhooks were running fine. I managed to unblock that repo by branching the blocked branch, thus having the same commit in 2 branches. Once pushed, repo was synced and cloud build triggered TWO builds, one on the original, blocked branch, and the other on the new one

This is cloud alchemy

federico
Reply all
Reply to author
Forward
0 new messages