CVS Authentication failed!

1 139 visningar
Hoppa till det första olästa meddelandet

Sameh Tawfik

oläst,
11 juli 2013 17:57:222013-07-11
till jenkins...@googlegroups.com
 
Hi,
 
I'm using Jenkins ver. 1.522
 
Under "Manage Jenkins\Configure System\CVS\ Authentication" , I setup CVS Root, Username, and Password, but under same "CVS" section  there are these fields: "Private Key Location", "Private Key Password", "Known Hosts Location" which I'm not using or need, because instead I'm using the values under the Authentication.
 
Everytime, I remove the values specified for "Private Key Location", "Private Key Password", "Known Hosts Location" fields and save, when I go back Jenkins is populating these values again with the same default values?
 
The problem everytime, Jenkins runs a build it fails with the following message:
 
ERROR: CVS Authentication failed: null
Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /var/lib/jenkins/.ssh/id_dsa (No such file or directory)

So, how to instruct Jenkins to not to use the "Private Key Location", "Private Key Password", "Known Hosts Location" fields and use instead the user and password supplied?

Sameh Tawfik

oläst,
12 juli 2013 10:27:582013-07-12
till jenkins...@googlegroups.com

 

In Jenkins ver. 1.522, does anyone knows why Jenkins under "Manage Jenkins\Configure System\CVS\" combines both Private Key information and a specific user Authentication information?

 

It seems just one of these choices should be selected, but not both get selected at the same time?

 

This situation causing our builds to fail, because we are not using a private key scenario and the Jenkins is complaing it can not find /var/lib/jenkins/.ssh/id_rsa file, which we are not using?  Instead we're using a specific user account  so the supplied user name and password should be sufficient to access CVS repository. 

 

Am I missing something?  Is this a bug in Jenkins?  It is hard to believe that this is the case? There must be some settings that would always us to just use a specific account to access CVS!

Red

oläst,
21 feb. 2014 17:30:162014-02-21
till jenkins...@googlegroups.com
I have the same problem.  I just installed jenkins for the first time and want to do a very simple build that requires a cvs checkout.
I have tried everything I could think of short of actually creating and setting up ssh public/private key authentication for the 
jenkins user (too scary) Here the email I get from jenkins:

Started by timer
Using globally configured password for connection to ':ext:iman-repo.example.com:22/usr/local/cvsroot' with username 'rcrick'
cvs checkout -P -N -D 21 Feb 2014 17:15:23 -0500 platform/perl 
ERROR: CVS Authentication failed: null
org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed.
        at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141)
        at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374)
        at java.lang.Thread.run(Thread.java:736)
Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: /var/lib/jenkins/.ssh/id_rsa (No such file or directory)
        at com.jcraft.jsch.KeyPair.load(KeyPair.java:524)
        at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)
        at com.jcraft.jsch.JSch.addIdentity(JSch.java:389)
        at com.jcraft.jsch.JSch.addIdentity(JSch.java:370)
        at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:135)
        ... 2 more
Caused by: java.io.FileNotFoundException: /var/lib/jenkins/.ssh/id_rsa (No such file or directory)
        at java.io.FileInputStream.<init>(FileInputStream.java:123)
        at java.io.FileInputStream.<init>(FileInputStream.java:83)
        at com.jcraft.jsch.Util.fromFile(Util.java:492)
        at com.jcraft.jsch.KeyPair.load(KeyPair.java:521)
        ... 6 more
ERROR: Cvs task failed


On Thursday, July 11, 2013 2:57:22 PM UTC-7, Sameh Tawfik wrote:

Red

oläst,
22 feb. 2014 01:05:022014-02-22
till jenkins...@googlegroups.com
I could add the ssh public/private key authentication, but what if I do not the 
access to create the user jenkins on the server that is hosting my cvs repo? 


On Thursday, July 11, 2013 2:57:22 PM UTC-7, Sameh Tawfik wrote:

Michael Clarke

oläst,
22 feb. 2014 02:48:192014-02-22
till jenkins...@googlegroups.com
Which version of the cvs plugin are you using, and what authentication method does your cvs repository currently use?

Thanks,
Michael
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Red

oläst,
26 feb. 2014 21:28:022014-02-26
till jenkins...@googlegroups.com

I am using Jenkins ver. 1.552

and cvs plugin version 2.11

I can access my CVS repo via ssh.

I am not allowed to as user accounts (like the jenkins user) to the system hosting my cvs repo.

Russell Cecala

oläst,
26 feb. 2014 23:32:412014-02-26
till jenkins...@googlegroups.com

Thank you for your reply Michael 

I am using Jenkins ver. 1.552

and cvs plugin version 2.11

I can access my CVS repo via ssh.

I am not allowed to as user accounts (like the jenkins user) to the system hosting my cvs repo.

Michael Clarke

oläst,
27 feb. 2014 04:06:352014-02-27
till jenkins...@googlegroups.com
How are you authenticating yourself over ssh?

Russell Cecala

oläst,
27 feb. 2014 16:54:352014-02-27
till jenkins...@googlegroups.com
password authentication
Meddelandet har raderats

ssingh

oläst,
17 jan. 2017 06:48:452017-01-17
till Jenkins Users
Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden