repo upload to gerrit timeout.

321 views
Skip to first unread message

Chen Guodong

unread,
Jun 25, 2011, 1:58:57 AM6/25/11
to Repo and Gerrit Discussion
I can connect gerrit server by "ssh -p 29418 c61764@c61764-desktop"
successful.
but, when i repo upload, it hung up.

================================
my gerrit config:

[sshd]
listenAddress = *:29418
[httpd]
listenUrl = http://*:8080/

================================
my repo manifest:

<manifest>
<remote name="korg" fetch="ssh://c61764@localhost:29418/"
review="c61764-desktop:29418" />
<default revision="master" remote="korg" />
<project path="project1" name="project1" />
</manifest>


================================

c61764@c61764-desktop:~/work/my-gerrit-project/project1$ ssh -p 29418
c61764@c61764-desktop
The authenticity of host '[c61764-desktop]:29418 ([127.0.1.1]:29418)'
can't be established.
RSA key fingerprint is 30:72:57:cf:3e:35:e4:91:6f:
5d:f3:f7:e9:55:d8:40.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[c61764-desktop]:29418' (RSA) to the list
of known hosts.

**** Welcome to Gerrit Code Review ****

Hi chenguodong 61764, you have successfully connected over SSH.

Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:

git clone ssh://c61764@c61764-desktop:29418/REPOSITORY_NAME.git

Connection to c61764-desktop closed.
c61764@c61764-desktop:~/work/my-gerrit-project/project1$

===========================================

c61764@c61764-desktop:~/work/my-gerrit-project/project1$ repo upload
Upload project project1/:
branch first_branch ( 1 commit, Sat Jun 25 08:46:40 2011 +0800):
d4e3c851 after start first_branch
to c61764-desktop:29418 (y/n)? y



^Cc61764@c61764-desktop:~/work/my-gerrit-project/project1$

Shawn Pearce

unread,
Jun 26, 2011, 12:03:24 AM6/26/11
to Chen Guodong, Repo and Gerrit Discussion

Can you retry with 'repo --trace upload' ?

Jelly

unread,
Jun 27, 2011, 9:58:21 PM6/27/11
to repo-d...@googlegroups.com, Chen Guodong
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
thank you very much!

--trace option is very usefull.

i use c61764 as my username, and cheng...@xxx.com as my email.

gerrit use chenguodong@localhost to connect ssh server, it's wrong, it should use c61764@localhost.

is this gerrit's feature or bug?

Shawn Pearce

unread,
Jun 27, 2011, 10:00:04 PM6/27/11
to repo-d...@googlegroups.com, Chen Guodong
Why this is marked as abuse? It has been marked as abuse.
Report not abuse

A feature of repo. Look at `repo help upload`. You can set a Git
configuration variable to override the username repo upload uses.

Reply all
Reply to author
Forward
0 new messages