impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurel Hale <lau...@cloudera.com>
Subject Re: Need help pushing my first gerrit review
Date Thu, 19 Jan 2017 23:34:20 GMT
Thanks, Michael. I finally added my private key to my machine's ssh-agent,
and then I was able to push my gerrit review. Thanks again.
--Laurel

On Wed, Jan 18, 2017 at 9:34 PM, Michael Brown <mikeb@cloudera.com> wrote:

> Make sure your git remote URL contains your Github username. "git
> remote show asf-gerrit" should show:
>
> ssh://your_github_username_goes_here@gerrit.cloudera.org:29418/Impala-ASF
>
> If you hadn't done this before, an export on the command line won't
> fix the remote. You would need something like "git remote set-url" to
> fix that (man git-remote for details).
>
> Make sure the SSH private key corresponding to the public key you have
> uploaded to Gerrit has been added to your SSH agent, or that OS X
> keychain thing maybe? (I don't know how the latter works.) In the
> ssh-agent case, "ssh-add -l" should print at least one entry, with a
> file name corresponding to your private SSH key as I described above.
> Man ssh-add for details.
>
> It's weird to me that you say your known_hosts entry corresponds to
> the key you uploaded to Gerrit. known_hosts contains mappings of
> hostnames/IP addresses and SSH server public keys. That shouldn't be
> the public key that you upload to Gerrit. This list quashes images, so
> we can't see the image you included. If it's neither of the above
> things, is there a chance you uploaded the wrong thing to Gerrit?
>
>
> On Wed, Jan 18, 2017 at 8:58 PM, Laurel Hale <laurel@cloudera.com> wrote:
> > I just tried that and received the same error:
> > ------------------------------------------------------------
> -------------------
> > [laurel@laurel-MBP incubator-impala](remove_cm_from_some_titles)$ git
> status
> > On branch remove_cm_from_some_titles
> > nothing to commit, working tree clean
> > [laurel@laurel-MBP incubator-impala](remove_cm_from_some_titles)$ export
> > GERRIT_USER=laurelh
> > [laurel@laurel-MBP incubator-impala](remove_cm_from_some_titles)$ git
> push
> > --no-thin asf-gerrit HEAD:refs/for/master
> > Permission denied (publickey).
> > fatal: Could not read from remote repository.
> >
> > Please make sure you have the correct access rights and the repository
> > exists.
> >
> > ------------------------------------------------------------
> --------------------
> >
> > Do you think that it might have something to do with the fact that I
> don't
> > have permissions to commit to master? Or do you think I failed to
> complete
> > all of my gerrit setup? (The process was very fragmented and I could have
> > left out installing the gerrit pre-commit hook. Could that be it?)
> >
> >
> > Thank you very much,
> >
> > Laurel
> >
> > On Wed, Jan 18, 2017 at 8:47 PM, Alex Behm <alex.behm@cloudera.com>
> wrote:
> >
> >> Maybe your GERRIT_USER is from your OS user? You might have to "export
> >> GERRIT_USER=your_gerrir_username" before you try to push.
> >>
> >> On Wed, Jan 18, 2017 at 8:44 PM, Laurel Hale <laurel@cloudera.com>
> wrote:
> >>
> >> > Hi,
> >> > I finally got time to push a review to gerrit today and got the
> following
> >> > error:
> >> > ----------------------------------------------------------------
> >> > [laurel@laurel-MBP incubator-impala](remove_cm_from_some_titles)$ git
> >> > status
> >> > On branch remove_cm_from_some_titles
> >> > nothing to commit, working tree clean
> >> > [laurel@laurel-MBP incubator-impala](remove_cm_from_some_titles)$ git
> >> > push --no-thin asf-gerrit HEAD:refs/for/master
> >> > Permission denied (publickey).
> >> > fatal: Could not read from remote repository.
> >> >
> >> > Please make sure you have the correct access rights
> >> > and the repository exists.
> >> > ------------------------------------------------------------------
> >> >
> >> > I checked my ~/.ssh/known_hosts file and it seems to include a
> pointer to
> >> > gerrit:
> >> >
> >> > [gerrit.cloudera.org]:29418,[75.101.130.251]:29418 ssh-rsa
> >> > AAAAB3NzaC1yc2EAAAADAQABAAABAQDVszOqZdQgRfqhii0gkwQnJJPtLmkc
> >> > VRXDr553L/xOGrjrCrF5sT0oM+UGqXg1ykxmMv7oEUZbf3AiBonyTQ4CQ71l
> >> > +nxbTCm97r+bo+AprhN8ybi0/gEsj5RtyDxNQk9M+wBZI8gje5Zj6f24sbPg
> >> > PsmR1LOG5rWhz8s8VHL/ZMAad9veB2xEDGrDzhc4OD6nVBn4XbFA2XEPt9qf
> >> > pvBgctKNcukfVeoe4d/o5OieRhcDZwmBhou+medqUVuEdg0DiORjMvHHQtpM
> >> > svRBt/JSIehctCVgzrEKA1dD3XzL27cuR7v7QlYx97zGtPx4l5dhSc+
> Z19g5BxD74P8GNvA3
> >> >
> >> > which corresponds to the public key I uploaded to gerrit:
> >> >
> >> >
> >> >
> >> >
> >> > Any ideas of what I am doing wrong?
> >> >
> >> > Thanks,
> >> >
> >> > Laurel
> >> >
> >>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message