Trouble using gcloud init

3,734 views
Skip to first unread message

Frank Paterra

unread,
Apr 29, 2014, 9:08:36 AM4/29/14
to google-c...@googlegroups.com

(Posted also on stackoverflow)

Hi.  I'm trying to use gcloud sdk but am stuck. I did the setup, downloaded the tools, ran gcloud auth login, all good. Tried to init a project and got an error I'm not sure how to fix.

$ gcloud init my-awesome-project-555
Initialized gcloud directory in [/Users/freddy/my-awesome-project-555/.gcloud].
Cloning [https://source.developers.google.com/p/my-awesome-project-555/r/default] into [default].
Initialized empty Git repository in /Users/freddy/my-awesome-project-555/default/.git/
fatal: remote error: 403 Forbidden
ERROR: Unable to initialize project [my-awesome-project-555], cleaning up [/Users/freddy/my-awesome-project-555].
ERROR: (gcloud.init) Could not fetch repository.
$ 

For good measure:

$ which git
/usr/local/git/bin/git
$ git --version
git version 1.7.12.1
$ 

I'm on a macbook air with OSX 10.9.2

Any ideas on what I may be doing wrong?

Thanks!

John Asmuth

unread,
Apr 29, 2014, 10:34:53 AM4/29/14
to Frank Paterra, google-c...@googlegroups.com
Hi Frank,

Do you literally own the project 'my-awesome-project-555'? If that appears in the docs, it's meant as a place holder for a project you create via the cloud console at https://console.developers.google.com/project

- John

John Asmuth

unread,
Apr 29, 2014, 1:15:49 PM4/29/14
to Frank Paterra, google-c...@googlegroups.com
(+google-cloud-sdk, if we keep these things on-list it helps others in the future)

Did you run "$ gcloud auth login"?


On Tue, Apr 29, 2014 at 11:52 AM, Frank Paterra <fr...@frankpaterra.com> wrote:
Unfortunately that did not help.  Other ideas?

$ git --version

git version 1.9.2

$ gcloud init strange-passage-565

Initialized gcloud directory in [/Users/frank/strange-passage-565/.gcloud].

Cloning [https://source.developers.google.com/p/strange-passage-565/r/default] into [default].

Initialized empty Git repository in /Users/frank/strange-passage-565/default/.git/

fatal: Authentication failed for 'https://source.developers.google.com/p/strange-passage-565/r/default/'

ERROR: Unable to initialize project [strange-passage-565], cleaning up [/Users/frank/strange-passage-565].

ERROR: (gcloud.init) Could not fetch repository.



On Tue, Apr 29, 2014 at 8:46 AM, Frank Paterra <fr...@frankpaterra.com> wrote:
Thanks John.  I jjust got the same info from Stack overflow.  I created a new project and tried to use that but got the same message.  One person on Stack Overflow mentioned that git versions below 18 are not supported so I'll try upgrading git and see if that works.

Frank


On Tue, Apr 29, 2014 at 8:23 AM, John Asmuth <jas...@google.com> wrote:
You can only create a new project on the cloud console: https://console.developers.google.com/project


On Tue, Apr 29, 2014 at 11:22 AM, Frank Paterra <fr...@frankpaterra.com> wrote:
Thanks for your reply John.  Well I don't own that, I tried a couple of other project names, none of which I specifically own.  My intent was to create a new project.  Do you know how I can do that?

Thank you for your help!

Frank
--
Frank Paterra
fr...@frankpaterra.com




--
Frank Paterra
fr...@frankpaterra.com



--
Frank Paterra
fr...@frankpaterra.com

Frank Paterra

unread,
Apr 29, 2014, 1:42:27 PM4/29/14
to John Asmuth, google-c...@googlegroups.com

Thanks John. I did try auth login again but it did not help.

Guess Who

unread,
Aug 4, 2014, 7:39:55 PM8/4/14
to google-c...@googlegroups.com

Having a similar issue

Paul Boal

unread,
Aug 22, 2014, 12:39:58 AM8/22/14
to google-c...@googlegroups.com
I was able to resolve this issue by removing the following lines from my ~/.gitconfig file:

[credential]
    helper = osxkeychain


I'm assuming that someone who knows what git is doing might have a more robust solution.  I expect that this may break things for some other people.

Chuy DB

unread,
Sep 13, 2014, 11:17:20 PM9/13/14
to google-c...@googlegroups.com
Im also having trouble, I dont have the "helper = osxkeychain" line on my gitconfig file, Ive run gcloud auth login and the project states that Im the owner (and indeed my project is the one for the repo.

Error thrown out is: 

fatal: remote error: 403 Forbidden

So im guessing it authentication. I donte know what else to do.

Any help would be appreciated.


Thanks

Chuy DB

unread,
Sep 14, 2014, 2:51:13 AM9/14/14
to google-c...@googlegroups.com
Managed to overcome this issue, it happens to be that I had another git repo (in another project) on cloud console with another g account attached to it, so I had the machine on my .netrc file pointing to source.developers.google.com with two different accounts, eventhough gcloud auth list listed the correct account associated to the project in question.

Anyway, make sure your .netrc file has the right account with the right machine to overcome a similar issue.
Reply all
Reply to author
Forward
0 new messages