<div dir="ltr">This may be unrelated to your issue, or you may have already done this, but there is a field in Gerrit under your profile where you actually have to set your username. I ran into issues with this awhile back, and after manually setting the username, I was able to successfully clone via SSH.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 2, 2019 at 9:24 AM Dan Cropp <<a href="mailto:dan@amtelco.com">dan@amtelco.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Attempting to go through the Gerrit Usage instructions again this week.<br>
<br>
Last week, I was able to clone from gerrit, I branched the issue I was working on, made changes and ran tests.  I was able to commit locally, but could not push the changes back to gerrit.   I receive the prompt for the Username <a href="https://gerrit.asterisk.org" rel="noreferrer" target="_blank">https://gerrit.asterisk.org</a> and password for <a href="https://myusername@gerrit.asterisk.org" rel="noreferrer" target="_blank">https://myusername@gerrit.asterisk.org</a><br>
<br>
I have confirmed my credentials on gerrit.<br>
<br>
When I execute git remote -v<br>
origin  <a href="http://gerrit.asterisk.org/asterisk" rel="noreferrer" target="_blank">http://gerrit.asterisk.org/asterisk</a> (fetch)<br>
origin  <a href="http://gerrit.asterisk.org/asterisk" rel="noreferrer" target="_blank">http://gerrit.asterisk.org/asterisk</a> (push)<br>
<br>
<br>
This week, I decided to create a different directory on my Linux VM and attempt to follow the Gerrit Usage instructions again.<br>
Now, I'm having trouble cloning from gerrit.<br>
<br>
git clone ssh://asterisk/master<br>
Cloning into 'master'...<br>
fatal: project master not found<br>
fatal: Could not read from remote repository.<br>
<br>
Please make sure you have the correct access rights<br>
and the repository exists.<br>
<br>
Also tried...<br>
<br>
git clone ssh://<a href="http://myusername@gerrit.asterisk.org:29418/master" rel="noreferrer" target="_blank">myusername@gerrit.asterisk.org:29418/master</a><br>
Cloning into 'master'...<br>
fatal: project master not found<br>
fatal: Could not read from remote repository.<br>
<br>
Please make sure you have the correct access rights<br>
and the repository exists.<br>
<br>
<br>
It would seem this statement would be true.  <br>
"Failure to set your username will result in clones using SSH failing, despite adding your SSH key. If you can not clone using SSH please ensure you have set your username."<br>
<br>
However, I have re-entered my SSH key and it's still failing.<br>
<br>
Can anyone provide some guidance?<br>
<br>
Dan<br>
<br>
-----Original Message-----<br>
From: asterisk-dev <<a href="mailto:asterisk-dev-bounces@lists.digium.com" target="_blank">asterisk-dev-bounces@lists.digium.com</a>> On Behalf Of Matt Fredrickson<br>
Sent: Friday, March 29, 2019 3:39 PM<br>
To: Asterisk Developers Mailing List <<a href="mailto:asterisk-dev@lists.digium.com" target="_blank">asterisk-dev@lists.digium.com</a>><br>
Subject: Re: [asterisk-dev] Looking for help with gerrit for submitting an issue fix for review<br>
<br>
On Fri, Mar 29, 2019 at 3:18 PM Dan Cropp <<a href="mailto:dan@amtelco.com" target="_blank">dan@amtelco.com</a>> wrote:<br>
><br>
> I have an issue fix I would like to commit for review.<br>
><br>
><br>
><br>
> I was able to retrieve the asterisk master code from gerrit, edit the code, and put it through tests.<br>
><br>
> I believe I have everything completed with the git message.<br>
><br>
><br>
><br>
> When I try to submit it for review… (git review master)<br>
><br>
><br>
><br>
> I am seeing the following…<br>
><br>
><br>
><br>
> Could not connect to gerrit.<br>
><br>
> Enter your gerrit username: daninmadison<br>
><br>
> Trying again with <br>
> ssh://<a href="http://daninmadison@gerrit.asterisk.org:29418/asterisk.git" rel="noreferrer" target="_blank">daninmadison@gerrit.asterisk.org:29418/asterisk.git</a><br>
><br>
> <traceback object at 0x7f1da0fbbef0><br>
><br>
> We don't know where your gerrit is. Please manually create a remote<br>
><br>
> named "gerrit" and try again.<br>
><br>
> Could not connect to gerrit at <br>
> ssh://<a href="http://daninmadison@gerrit.asterisk.org:29418/asterisk.git" rel="noreferrer" target="_blank">daninmadison@gerrit.asterisk.org:29418/asterisk.git</a><br>
><br>
> Traceback (most recent call last):<br>
><br>
>   File "/usr/bin/git-review", line 10, in <module><br>
><br>
>     sys.exit(main())<br>
><br>
>   File "/usr/lib/python2.7/dist-packages/git_review/cmd.py", line <br>
> 1534, in main<br>
><br>
>     sys.exit(e.EXIT_CODE)<br>
><br>
> AttributeError: 'GitReviewException' object has no attribute 'EXIT_CODE'<br>
><br>
><br>
><br>
> Could someone provide some guidance on what I am doing wrong?<br>
<br>
Do you have a remote called gerrit when you type git remote?<br>
<br>
If you're not using it, the page that I usually use when setting up a new contribution repo is <a href="https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Gerrit+Usage</a><br>
<br>
Best wishes!<br>
<br>
--<br>
Matthew Fredrickson<br>
Digium - A Sangoma Company | Asterisk Project Lead<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><span style="font-family:arial,helvetica,sans-serif"><b>Benjamin Ford</b></span><br></div><div dir="ltr" style="font-size:12.8px"><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif" size="1">Digium - A Sangoma Company | Software Engineer</font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif" size="1"><a href="https://maps.google.com/?q=445+Jan+Davis+Drive+NW+-+Huntsville,+AL+35806+-+US&entry=gmail&source=g" style="color:rgb(17,85,204)" target="_blank">445 Jan Davis Drive NW - Huntsville, AL 35806 - US</a></font></div><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif" size="1">Check us out at: <a href="https://digium.com/" style="color:rgb(17,85,204)" target="_blank">https://digium.com</a> · <a href="https://sangoma.com/" style="color:rgb(17,85,204)" target="_blank">https://sangoma.com</a></font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><img src="https://www.digium.com/sites/all/themes/poundkey/shared/images/digium/logo.png" width="96" height="53"><br></div></div></div></div>