1. Should not have anything to do with the fact that you cannot commit to ASF master. 2. Nothing to do with the pre-commit hook.
Things to check: Confirm 700 permissions on your ~/.ssh dir and the files in it. Try to connect via ssh directly like so: ssh -v [email protected] -p 29418 Skim the output and see where it goes wrong. Might give a clue. On Wed, Jan 18, 2017 at 8:58 PM, Laurel Hale <[email protected]> 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 <[email protected]> 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 <[email protected]> > 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 > > > > > >
