Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » svn+ssh and svn provider
svn+ssh and svn provider [message #547190] Thu, 15 July 2010 21:04 Go to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Hello,

I am trying to make svn provider work with svn+ssh protocol. I generated key file using ssh-keygen -t rsa, and to tested in IDE to connect to my svn over svn+ssh - works.
I am trying to use svn+ssh in my rmap but get "Authentication Cancelled" exception. I consulted this article ( http://www.eclipse.org/forums/index.php?t=tree&th=169132 &#page_top) to make this work. I added path to my key file in JVM Arguments of the hudson buckminster plugin: -Dsvnkit.ssh2.key=/home/alex/.ssh/id_rsa and in rmap provider 'svn+ssh://alex@localhost/home/alex/dev'. Still I get authentication cancelled error.
The questions I have are: am I generating key file correctly? Am I providing correct parameters in JVM Arguments? Does rmap contain correct reference to the repository url?
Finally, how can I debug this? Just having the message 'authentication cancelled' is hard to use, may be there are some logs I can look at?

thanks,
Alex
Re: svn+ssh and svn provider [message #547204 is a reply to message #547190] Thu, 15 July 2010 22:13 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Have you tested that svn+ssh works for the intended user on the machine
where it is being used. I.e. logged in as that user - can you 1. use ssh
to the machine with the repo? 2) does svn over ssh work from the command
line.

Secondly, is Hudson using this user id?

If you got this far, it is a matter of setting the parameters the right way.

How far did you get

- henrik

On 7/15/10 11:04 PM, Alex wrote:
> Hello,
>
> I am trying to make svn provider work with svn+ssh protocol. I generated
> key file using ssh-keygen -t rsa, and to tested in IDE to connect to my
> svn over svn+ssh - works.
> I am trying to use svn+ssh in my rmap but get "Authentication Cancelled"
> exception. I consulted this article
> ( http://www.eclipse.org/forums/index.php?t=tree&th=169132 &#page_top) to
> make this work. I added path to my key file in JVM Arguments of the
> hudson buckminster plugin: -Dsvnkit.ssh2.key=/home/alex/.ssh/id_rsa and
> in rmap provider 'svn+ssh://alex@localhost/home/alex/dev'. Still I get
> authentication cancelled error.
> The questions I have are: am I generating key file correctly? Am I
> providing correct parameters in JVM Arguments? Does rmap contain correct
> reference to the repository url?
> Finally, how can I debug this? Just having the message 'authentication
> cancelled' is hard to use, may be there are some logs I can look at?
>
> thanks,
> Alex
Re: svn+ssh and svn provider [message #547411 is a reply to message #547204] Fri, 16 July 2010 16:43 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
I can svn co svn+ssh:// from my repository fine. I added -Dsvnkit.ssh2.key=/path/to/id_rsa to Hudson's JVM Arguments, and now get these errors:
Quote:

file:/home/alex/.hudson/jobs/buckminster/workspace/iit.featu res/com.iwaysoftware.integration.tools.product/trunk.svn.rma p
ERROR [0000] : No suitable provider for component com.iwaysoftware.explorer.configuration:osgi.bundle was found in searchPath resources
ERROR [0000] : Rejecting provider svn({0}/dependencies/trunk/{1}): No component match was found
ERROR org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.javahl.ClientException: svn: Handshake failed, received: ''
ERROR [0000] : Rejecting provider svn({0}/iIT/trunk/features/{1}): No component match was found
ERROR org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.javahl.ClientException: svn: Malformed network data
ERROR [0000] : Rejecting provider svn({0}/iIT/trunk/plugins/{1}): No component match was found
ERROR org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.javahl.ClientException: svn: Malformed network data
ERROR [0000] : Rejecting provider svn({0}/Explorer/trunk/plugins/{1}): No component match was found
ERROR org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.javahl.ClientException: svn: Handshake failed, received: ''
ERROR [0000] : java.lang.NullPointerException
ERROR [0000] : java.lang.NullPointerException


thanks,
Alex

[Updated on: Fri, 16 July 2010 17:16]

Report message to a moderator

Re: svn+ssh and svn provider [message #547419 is a reply to message #547411] Fri, 16 July 2010 17:15 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
When I run my job and getting Handshake errors I get these errors in the ssh log:
Quote:

Jul 16 12:53:48 t61 sshd[863]: Connection from 127.0.1.1 port 51534
Jul 16 12:53:48 t61 sshd[863]: Failed none for alex from 127.0.1.1 port 51534 ssh2
Jul 16 12:53:48 t61 sshd[863]: Found matching RSA key: ############################################
Jul 16 12:53:48 t61 sshd[863]: Accepted publickey for alex from 127.0.1.1 port 51534 ssh2
Jul 16 12:53:48 t61 sshd[863]: pam_unix(sshd:session): session opened for user alex by (uid=0)
Jul 16 12:53:48 t61 sshd[863]: User child is on pid 1018
Jul 16 12:53:48 t61 sshd[1018]: Received disconnect from 127.0.1.1: 11: Closed due to user request.
Jul 16 12:53:48 t61 sshd[863]: pam_unix(sshd:session): session closed for user alex



thanks,
Alex

Re: svn+ssh and svn provider [message #547447 is a reply to message #547419] Fri, 16 July 2010 20:37 Go to previous message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
Solution is to set single threaded mode by setting:
Quote:

setpref org.eclipse.buckminster.core.maxParallelMaterializations=1
setpref org.eclipse.buckminster.core.maxParallelResolutions=1


This is in Hudson Buckminster plugin's Commands section.
Thanks to jbarkanic for help on this.
Previous Topic:Headless Buckminster and EMF/GMF/Xtext/QVTo/ATL/Xpand/Acceleo/EMFText projects
Next Topic:Multiple product files within the same plugin
Goto Forum:
  


Current Time: Thu Apr 25 00:30:15 GMT 2024

Powered by FUDForum. Page generated in 0.02940 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top