Since October the 20th, all my mirrors in different projects stopped working. I have not made any changes to global gitlab/google settings.
Any idea what could cause this issue?
This is the error message:
13:get remote references: create git ls-remote: exit status 128, stderr: “ssh connect to host source.developers.google.com port 2022: Network is unreachable\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n”.
Having the same issue. All of the sudden all the mirrors stopped working with the same error.
The user-based mirror uses OAuth and stopps working after 24h. This is not a sustainable solution. The Github mirror might work, but I don’t want to shift all the repos to a new platform.
Same here. No dice on push mirroring.
Same here, but only to some of my repos.
Any solution out there?
Same here. it has been working for months and now we started getting that error.
As they don’t care to reply to tickets even for paid clients, i ended up doing the following workaround:
- echo "$GOOGLE_CREDENTIALS" > ./key.json
- gcloud auth activate-service-account --key-file ./key.json
- git config --global credential.'https://source.developers.google.com'.helper gcloud.sh
- git remote add google_cloud_repo https://source.developers.google.com/p/YOUR_PROJECT_NAME/r/YOUR_REPOSITORY_NAME
- git checkout -b $CI_COMMIT_REF_NAME
- git push -f google_cloud_repo $CI_COMMIT_REF_NAME
GOOGLE_CREDENTIALS must be a variable you add in your Gitlab → CI settings, that contains the JSON that you get from a google service account
We have exactly the same issue here. We have managed to work out that if you use the same SSH keypair from Cloud Shell in the console it works fine, but with the same keypair from anywhere else it just won’t connect. We’ve raised a case with Google.
The mirrors are working now. Gitlab mentioned it was a firewall issue, but now it is resolved.
We’ve just had confirmation from Google that mirroring from Gitlab to CSR has been deprecated (and CSR to Gitlab) and that SSH should no longer work. HTTPS mirrors may stop working as well.
Thanks for reply. Did Google also provide an alternative approach?
It now works again but I don’t know why.