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-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.


Role strategy not filtering jobs

2015-01-29 Thread srk
I am using the jenkins role strategy plugin, I have an admin role as a global 
role and multiple project roles. I want the project role users to be able to 
create and manage the jobs and I gave the global administer role and read 
permissions as well. I am not able to filter the jobs based on the regular 
expression. I have tested the regular expression and it works. Essentially all 
users can read all jobs...

Do I need to install any other plugin to do this...folders etc.

-- 
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/f9ceb8f9-0c78-49f4-ab7e-e109f9d67ce5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.