2017-04-21 40 views
1

我在Ubuntu机器上设置了一个主服务器,并且想要在Windows 10上创建一个服务器。启动代理时遇到以下问题。有人可以请帮助。无法为jenkins创建一个windows保护节点

just before slave javed_pc gets launched ... 
executing pre-launch scripts ... 
[2017-04-21 10:26:54] [windows-slaves] Connecting to 172.26.152.23 
Checking if Java exists 
java -version returned 1.8.0. 
[2017-04-21 10:26:56] [windows-slaves] Copying jenkins-slave.xml 
[2017-04-21 10:26:56] [windows-slaves] Copying slave.jar 
[2017-04-21 10:26:56] [windows-slaves] Starting the service 
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins 
org.jinterop.dcom.common.JIException: Service Logon Failure 
    at org.jvnet.hudson.wmi.Win32Service$Implementation.start(Win32Service.java:149) 
Caused: java.lang.reflect.InvocationTargetException 
    at sun.reflect.GeneratedMethodAccessor206.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:498) 
    at org.kohsuke.jinterop.JInteropInvocationHandler.invoke(JInteropInvocationHandler.java:140) 
Caused: java.lang.reflect.UndeclaredThrowableException 
    at com.sun.proxy.$Proxy64.start(Unknown Source) 
    at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:342) 
    at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:262) 
    at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

回答

1

使用JENKINS Windows Slaves Plugin,检查是否在“Windows slaves fail to start via DCOM”中列出的原因,人们会在你的情况适用。
它列出了各种各样的原因,从使用的Windows帐户到网络,注册表和安全原因。

请确保您没有代理问题,Jenkins会尝试使用所述代理访问局域网中的计算机(Windows在此处):应使用环境变量no_proxy来排除您的本地域。

具有解决问题的OP Javed Ahmed报告:

在 'Configure Global security' 设置,当您检查 'Enable Security' 选项,然后它可以让你通过Java Web Start连接。
否则它没有显示通过java web开始连接和通过windows服务连接的选项是一个痛苦。

+0

谢谢Vonc,其实我已经解决了。在勾选“启用安全性”选项时,在“配置全局安全性”设置中,它允许您通过java web start进行连接。否则它没有显示通过java web开始连接和通过windows服务连接的选项是一个痛苦。 –

+0

@JavedAhmed太棒了!我已将您的评论纳入答案中,以获得更多的知名度。 – VonC