Re: Need Help with SSH Slave Plugin - Unable to Start Node with SSH

2018-04-23 Thread Iván Fernández Calvo

On the “Known Hosts Key Validation" agents, where you imported the key on the 
jenkins user ssh authorized keys folder or on the etc ssh authorized keys 
folder? On etc does not work.

The other error seems related with the format of the host public key, it 
should’ve something like the following algorithm+base64 key encode

ssh-rsa B3NzaC1yc2EBIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSU 
GPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3 
Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XA 
t3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/En 
mZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbx 
NrRFi9wrf+M7Q== test@host


> El 23 abr 2018, a las 16:27, srk  escribió:
> 
> I restarted multiple times. I tried all options available "Known Hosts Key 
> Validation", "Manually Provided key Validation", etc..still get the 
> same/similar errors. I have the below messages in my WebLogic logs for 
> both..The first five are for nodes configured with "Known Hosts Key 
> Validation" while the last one is for "Manually Provided Key validation"... I 
> am able to login at server level using same ssh keys, but when invoking the 
> same using same credentials via Jenkins, it fails. 
> 
> 
> <[04/23/18 
> 10:07:53] SSH Launch of ZZZ on Z.ZZZ.com failed in 26 ms>
> <[04/23/18 
> 10:07:56] SSH Launch of ZZZ on Z.ZZZ.com failed in 2 ms>
> <[04/23/18 
> 10:08:43] SSH Launch of ZZZ on Z.ZZZ.com failed in 3 ms>
> <[04/23/18 
> 10:10:43] SSH Launch of ZZZ on Z.ZZZ.com failed in 3 ms>
> <[04/23/18 
> 10:11:38] SSH Launch of ZZZ on Z.ZZZ.com failed in 35 ms>
>
>   http://abc.xyz.com:1234/jenkins/computer/ZZZ/descriptorByName/hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy/checkKey
> java.lang.reflect.InvocationTargetException
> at 
> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)
> at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
> at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
> at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
> at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
> Truncated. see log file for complete stacktrace
> Caused By: java.lang.IllegalArgumentException: Key should be 2 parts: 
> algorithm and Base 64 encoded key value.
> at 
> hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy.parseKey(ManuallyProvidedKeyVerificationStrategy.java:98)
> at 
> hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy.access$000(ManuallyProvidedKeyVerificationStrategy.java:52)
> at 
> hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy$ManuallyProvidedKeyVerificationStrategyDescriptor.doCheckKey(ManuallyProvidedKeyVerificationStrategy.java:120)
> at 
> java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
> at 
> org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
> Truncated. see log file for complete stacktrace
> >
> 
>> On Friday, April 20, 2018 at 9:15:04 AM UTC-4, srk wrote:
>> Hi 
>> 
>> I have deployed Jenkins 2.117 war file onto WebLogic 12.2.1.2 as a 
>> webapplication and I am able to login to the application. I want to add 
>> additional nodes (remote servers) and would like to launch them using SSH, I 
>> have ssh key setup configured between the master where the WebLogic hosting 
>> Jenkins is running and remote servers and able to connect via shell. But 
>> when I try to do the same from within the application, I keep getting the 
>> below error message on the console output. I tried searching web and other 
>> support sites, and it seems this was fixed sometime in 2017 in older 
>> releases i.e in SSH Slave Plugin 1.20. I still keep getting the same and I 
>> see the plugin version installed is 1.26 for SSH Slave.
>> 
>> Any help or pointers in right direction is appreciated.
>> 
>> Thanks
>> 
>> Warning: no key algorithms provided; JENKINS-42959 disabled
>> [04/20/18 08:39:05] [SSH] Opening SSH connection to XXX.abc.com:22.
>> ERROR: Unexpected error in launching a slave. This is probably a bug in 
>> Jenkins.
>> java.lang.NoSuchMethodError: 
>> com.trilead.ssh2.Connection.connect(Lcom/trilead/ssh2/ServerHostKeyVerifier;III)Lcom/trilead/ssh2/ConnectionInfo;
>>  at 
>> hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1324)
>>  at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:831)
>>  at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:820)
>>  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>  at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>>  at 
>> 

Re: Need Help with SSH Slave Plugin - Unable to Start Node with SSH

2018-04-23 Thread srk
I restarted multiple times. I tried all options available "Known Hosts Key 
Validation", "Manually Provided key Validation", etc..still get the 
same/similar errors. I have the below messages in my WebLogic logs for 
both..The first five are for nodes configured with "Known Hosts Key 
Validation" while the last one is for "Manually Provided Key validation"... 
I am able to login at server level using same ssh keys, but when invoking 
the same using same credentials via Jenkins, it fails. 



<[04/23/18 10:07:53] SSH Launch of ZZZ on Z.ZZZ.com failed in 26 ms>

<[04/23/18 10:07:56] SSH Launch of ZZZ on Z.ZZZ.com failed in 2 ms>

<[04/23/18 10:08:43] SSH Launch of ZZZ on Z.ZZZ.com failed in 3 ms>

<[04/23/18 10:10:43] SSH Launch of ZZZ on Z.ZZZ.com failed in 3 ms>

<[04/23/18 10:11:38] SSH Launch of ZZZ on Z.ZZZ.com failed in 35 ms>
   
 http://abc.xyz.com:1234/jenkins/computer/ZZZ/descriptorByName/hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy/checkKey
java.lang.reflect.InvocationTargetException
at 
org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
Truncated. see log file for complete stacktrace
Caused By: java.lang.IllegalArgumentException: Key should be 2 parts: 
algorithm and Base 64 encoded key value.
at 
hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy.parseKey(ManuallyProvidedKeyVerificationStrategy.java:98)
at 
hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy.access$000(ManuallyProvidedKeyVerificationStrategy.java:52)
at 
hudson.plugins.sshslaves.verifiers.ManuallyProvidedKeyVerificationStrategy$ManuallyProvidedKeyVerificationStrategyDescriptor.doCheckKey(ManuallyProvidedKeyVerificationStrategy.java:120)
at 
java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
at 
org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
Truncated. see log file for complete stacktrace
>

On Friday, April 20, 2018 at 9:15:04 AM UTC-4, srk wrote:
>
> Hi 
>
> I have deployed Jenkins 2.117 war file onto WebLogic 12.2.1.2 as a 
> webapplication and I am able to login to the application. I want to add 
> additional nodes (remote servers) and would like to launch them using SSH, 
> I have ssh key setup configured between the master where the WebLogic 
> hosting Jenkins is running and remote servers and able to connect via 
> shell. But when I try to do the same from within the application, I keep 
> getting the below error message on the console output. I tried searching 
> web and other support sites, and it seems this was fixed sometime in 2017 
> in older releases i.e in SSH Slave Plugin 1.20. I still keep getting the 
> same and I see the plugin version installed is 1.26 for SSH Slave.
>
> Any help or pointers in right direction is appreciated.
>
> Thanks
>
> Warning: no key algorithms provided; JENKINS-42959 disabled
> [04/20/18 08:39:05] [SSH] Opening SSH connection to XXX.abc.com:22.
> ERROR: Unexpected error in launching a slave. This is probably a bug in 
> Jenkins.
> java.lang.NoSuchMethodError: 
> com.trilead.ssh2.Connection.connect(Lcom/trilead/ssh2/ServerHostKeyVerifier;III)Lcom/trilead/ssh2/ConnectionInfo;
> at 
> hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1324)
> at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:831)
> at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:820)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> [04/20/18 08:39:05] Launch failed - cleaning up connection
> [04/20/18 08:39:05] [SSH] Connection closed.
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/92c8f6b9-7572-4bc0-870c-bbe04a81cb4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Need Help with SSH Slave Plugin - Unable to Start Node with SSH

2018-04-21 Thread Ivan Fernandez Calvo
Did you restart after install the last version of the plugin?
Did you try different host key validation on the agent configuration? It is to 
check if only one type fail or all fail

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c6dc19ed-54dc-4dae-8819-6db436800931%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Need Help with SSH Slave Plugin - Unable to Start Node with SSH

2018-04-20 Thread srk
Hi 

I have deployed Jenkins 2.117 war file onto WebLogic 12.2.1.2 as a 
webapplication and I am able to login to the application. I want to add 
additional nodes (remote servers) and would like to launch them using SSH, 
I have ssh key setup configured between the master where the WebLogic 
hosting Jenkins is running and remote servers and able to connect via 
shell. But when I try to do the same from within the application, I keep 
getting the below error message on the console output. I tried searching 
web and other support sites, and it seems this was fixed sometime in 2017 
in older releases i.e in SSH Slave Plugin 1.20. I still keep getting the 
same and I see the plugin version installed is 1.26 for SSH Slave.

Any help or pointers in right direction is appreciated.

Thanks

Warning: no key algorithms provided; JENKINS-42959 disabled
[04/20/18 08:39:05] [SSH] Opening SSH connection to XXX.abc.com:22.
ERROR: Unexpected error in launching a slave. This is probably a bug in 
Jenkins.
java.lang.NoSuchMethodError: 
com.trilead.ssh2.Connection.connect(Lcom/trilead/ssh2/ServerHostKeyVerifier;III)Lcom/trilead/ssh2/ConnectionInfo;
at 
hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1324)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:831)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:820)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[04/20/18 08:39:05] Launch failed - cleaning up connection
[04/20/18 08:39:05] [SSH] Connection closed.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d9945401-ad83-4c14-bef3-09ee6163fda4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.