Reputation: 61
I'm using Google Cloud SDK on Windows and when trying to clone a repository of one of my projects I get a pop window asking for credentials. I tried my Google account credentials and app specific credentials. I tried to reinstall the SDK and to reinitialize (gcloud init) many times. No credentials work and I keep getting this error message:
C:\Program Files (x86)\Google\Cloud SDK>gcloud source repos clone default
Cloning into 'C:\Program Files (x86)\Google\Cloud SDK\default'... Failed to erase credential: Element not found fatal: Authentication failed for 'https://source.developers.google.com/p/XXXX/r/default/' ERROR: (gcloud.source.repos.clone) Command '['git', 'clone', 'https://source.dev elopers.google.com/p/XXXXX/r/default', 'C:\Program Files (x86)\Google\Cl oud SDK\default', '--config', 'credential.helper="gcloud.cmd"']' returned non-zero exit status 128
Upvotes: 0
Views: 1736
Reputation: 8980
There cloud be two issues related to this
gcloud
might not be on the path. Are you able to do where gcloud
? If not you can do set PATH=%PATH%;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin
C:\Program Files (x86)\Google\Cloud SDK
, generally you would not have permission to create any folders there, which clone command does. Try to switch to C:\Users\YourUserName
and clone there.If you still have issues please file it here https://code.google.com/p/google-cloud-sdk/issues/list
Upvotes: 1