Linux机器无法连接Jenkins的mac机器连接中的slave?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux机器无法连接Jenkins的mac机器连接中的slave?相关的知识,希望对你有一定的参考价值。

在Linux机器上安装Jenkins,并在名称上使用jenkins安装jiort04:8080。在Jenkins中创建了slave将其命名为mac-slave,并且启动方法通过Java Web Start Method将其用作启动代理,并添加了必要的配置。但是,它无法连接到slave所说的日志和错误附加在screen-shot.enter image description here下面

日志

`

java.net.UnknownHostException: jiort04
 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
 at java.net.Socket.connect(Socket.java:589)
 at java.net.Socket.connect(Socket.java:538)
 at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
 at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
 at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
 at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
 at sun.net.www.http.HttpClient.New(HttpClient.java:308)
 at sun.net.www.http.HttpClient.New(HttpClient.java:326)
 at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
 at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
 at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1022)
 at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1020)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1019)
 at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
 at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:91)
 at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1466)
 at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1464)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1463)
 at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
 at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
 at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
 at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
 at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
 at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
 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)

`

答案

enter image description here试试这个:manage-jenkins - > manage-nodes - > configure - > Host:

把奴隶的ip放在这里

在主站和从站之间设置ssh。如果您使用图像中显示的任何用户凭据,则更新用户凭证内的ssh密钥。

以上是关于Linux机器无法连接Jenkins的mac机器连接中的slave?的主要内容,如果未能解决你的问题,请参考以下文章

詹金斯:无法将奴隶连接到主人

无法将 Linux 机器作为 Slave 添加到在 Windows 机器上运行的 Jenkins 主机

redhat linux在局域网内别的机器可以正常通过ssh连接上,使用外网IP后无法连接

获取连接到 Mac 机器的设备的 UDID

无法从 Mac lion 连接到远程 mysql

无法使用 agsXMPP 连接到 GCM(无法建立连接,因为目标机器主动拒绝它)