Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 420214

Summary: Enable Gerrit for the VIATRA2 project
Product: Community Reporter: Zoltan Ujhelyi <zoltan.ujhelyi>
Component: GitAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: istvanrath, thanh.ha
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Zoltan Ujhelyi CLA 2013-10-23 16:11:35 EDT
I'd like to enable Gerrit for the VIATRA2 project, using the following Git repository:
 * gitroot/viatra2/org.eclipse.viatra2.emf.git

We would like to have direct committer access to the repository.

Thank you.
Comment 1 Thanh Ha CLA 2013-10-24 14:25:03 EDT
I've enabled Gerrit for the VIATRA2 project as requested. Committers will need to update their Git URLs to use the new Gerrit URLs in order to push. See: http://wiki.eclipse.org/Gerrit
Comment 2 Zoltan Ujhelyi CLA 2013-10-24 15:47:59 EDT
Both jobs look fine. If some minor tuning will be required, I will be able to do it.

Thanks again.
Comment 3 Istvan Rath CLA 2013-11-04 10:09:31 EST
Unfortunately, it seems that some setting might be wrong. I can't seem to access the repo through Gerrit, as I'm getting:

$ git clone ssh://irathxyf@git.eclipse.org:29418/gitroot/viatra2/org.eclipse.viatra2.emf.git
Cloning into 'org.eclipse.viatra2.emf'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

All the public keys that I've tried this with (from multiple computers) have been registered properly at https://git.eclipse.org/r/#/settings/ssh-keys
Comment 4 Thanh Ha CLA 2013-11-04 10:16:08 EST
(In reply to Istvan Rath from comment #3)
> Unfortunately, it seems that some setting might be wrong. I can't seem to
> access the repo through Gerrit, as I'm getting:
> 
> $ git clone
> ssh://irathxyf@git.eclipse.org:29418/gitroot/viatra2/org.eclipse.viatra2.emf.


You need to remove /gitroot from your URL. When I check the git clone pattern for the viatra2 project Gerrit informs me that this is the correct SSH pattern:

    git clone ssh://user@git.eclipse.org:29418/viatra2/org.eclipse.viatra2.emf

(replaced "user" with your user)
Comment 5 Istvan Rath CLA 2013-11-04 10:21:40 EST
(In reply to Thanh Ha from comment #4)
> You need to remove /gitroot from your URL. When I check the git clone
> pattern for the viatra2 project Gerrit informs me that this is the correct
> SSH pattern:
> 
>     git clone
> ssh://user@git.eclipse.org:29418/viatra2/org.eclipse.viatra2.emf


I get the same error:

$ git clone ssh://irathxyf@git.eclipse.org:29418/viatra2/org.eclipse.viatra2.emf
Cloning into 'org.eclipse.viatra2.emf'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

also with the .git ending:

$ git clone ssh://irathxyf@git.eclipse.org:29418/viatra2/org.eclipse.viatra2.emf.git
Cloning into 'org.eclipse.viatra2.emf'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Comment 6 Thanh Ha CLA 2013-11-04 10:26:14 EST
(In reply to Istvan Rath from comment #5)
> (In reply to Thanh Ha from comment #4)
> > You need to remove /gitroot from your URL. When I check the git clone
> > pattern for the viatra2 project Gerrit informs me that this is the correct
> > SSH pattern:
> > 
> >     git clone
> > ssh://user@git.eclipse.org:29418/viatra2/org.eclipse.viatra2.emf
> 
> 
> I get the same error:
> 
> ...
>
> also with the .git ending:
> 

You don't need the .git ending with Gerrit.

I looked up your username in the database and I think you have your username incorrect here. According to the database your username should be:

    irathyxf


In your snippets you are using "irathxyf" (not the position of x and y). Can you try with the username "irathyxf"?
Comment 7 Istvan Rath CLA 2013-11-04 11:44:15 EST
(In reply to Thanh Ha from comment #6)
> In your snippets you are using "irathxyf" (not the position of x and y). Can
> you try with the username "irathyxf"?

That was the issue. Thanks for spotting it, and sorry for the trouble.