Quantcast

Pushing code to Gerrit

classic Classic list List threaded Threaded
3 messages Options
Aditya Dewan Aditya Dewan
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Pushing code to Gerrit

Hi,

I have been trying to push my code for review, but i have been unable to do so as this is my first time and i am not familiar with gerrit.

I have followed the steps in the wiki and have searched on the net regarding this also.

git review -s runs fine and the output is nothing.
Whenever i run 'git review -l', i get this output

$ git review -l
Cannot fetch review information from gerrit
The following command failed with exit code 255
    "ssh -xp29418 [hidden email] gerrit query --format=JSON project:online status:open"
-----------------------
ssh: Could not resolve hostname gerrit.libreoffice.org: Temporary failure in name resolution
-----------------------

other than that

this is the output of 'git remote -v'

$ git remote -v
origin https://anongit.freedesktop.org/git/libreoffice/online.git (fetch)
origin ssh://dewana-dewan@...:29418/online (push)

and this is the ssh config file

Host logerrit gerrit.libreoffice.org
IdentityFile ~/.ssh/id_rsa
User dewana-dewan
Port 29418
HostName gerrit.libreoffice.org
 
Please let me know what i am doing wrong, and how i can rectify it.

Thanks,

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Eike Rathke-2 Eike Rathke-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Pushing code to Gerrit

Hi Aditya,

On Tuesday, 2017-03-14 20:54:04 +0530, Aditya Dewan wrote:

> Please let me know what i am doing wrong, and how i can rectify it.

Probably nothing, your config looks good but

> > ssh: Could not resolve hostname gerrit.libreoffice.org: Temporary failure
> > in name resolution

indicates it's rather a DNS problem and to try again later. Or you have
a more severe problem routing ssh to the Internet..

You could try the simple command
ssh gerrit.libreoffice.org
which if successful should give some kind of welcome screen and that
shells are disabled.

  Eike

--
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice

signature.asc (836 bytes) Download Attachment
Aditya Dewan Aditya Dewan
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Pushing code to Gerrit

Hi,

I just resolved this issue. This issue was there because ssh was unable to route to the internet because of the proxy i work behind.

The following thread helped.
and adding 

ProxyCommand          nc -X connect -x proxyhost:proxyport %h %p

in the ssh config file resolved this issue.

Thanks for your help. :) 

On Tue, Mar 14, 2017 at 11:28 PM, Eike Rathke <[hidden email]> wrote:
Hi Aditya,

On Tuesday, 2017-03-14 20:54:04 +0530, Aditya Dewan wrote:

> Please let me know what i am doing wrong, and how i can rectify it.

Probably nothing, your config looks good but

> > ssh: Could not resolve hostname gerrit.libreoffice.org: Temporary failure
> > in name resolution

indicates it's rather a DNS problem and to try again later. Or you have
a more severe problem routing ssh to the Internet..

You could try the simple command
ssh gerrit.libreoffice.org
which if successful should give some kind of welcome screen and that
shells are disabled.

  Eike

--
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key "ID" 0x65632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Better use 64-bit 0x6A6CD5B765632D3A here is why: https://evil32.com/
Care about Free Software, support the FSFE https://fsfe.org/support/?erack


_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Loading...