jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [serv]. Message [java.net.SocketException: Network is unreachable]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

In the .ssh folder you should have drwx (read/write/execute owner only) permissions, and in the authorized_keys file you should have rw (read/write owner only). You can use chmod 700 ~/.ssh and chmod 600 ~/.ssh/authorized_keys to fix it.

Solutions on the web

via Jenkins JIRA by Kirill Merkushev, 1 year ago
Failed to connect session for config [serv]. Message [java.net.SocketException: Network is unreachable]
via Jenkins JIRA by Kirill Merkushev, 1 year ago
Failed to connect session for config [serv]. Message [java.net.SocketException: Network is unreachable]
via Jenkins JIRA by ismail demirel, 1 year ago
Failed to connect session for config [xyz (target host)]. Message [verify: false]
via Jenkins JIRA by ismail demirel, 1 year ago
Failed to connect session for config [xyz (target host)]. Message [verify: false]
via Google Groups by Jagan Kalluri, 2 years ago
Failed to connect session for config [xxxxxxx@xxxxxxxxxxx]. Message [Auth fail]
jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [serv]. Message [java.net.SocketException: Network is unreachable]
at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.connect(BapSshHostConfiguration.java:228)
at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:138)
at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:115)
at jenkins.plugins.publish_over_ssh.BapSshHostConfiguration.createClient(BapSshHostConfiguration.java:51)
at jenkins.plugins.publish_over.BapPublisher$Performer.perform(BapPublisher.java:229)
at jenkins.plugins.publish_over.BapPublisher$Performer.access$000(BapPublisher.java:205)
at jenkins.plugins.publish_over.BapPublisher.perform(BapPublisher.java:158)
at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:64)
at jenkins.plugins.publish_over.BPCallablePublisher.invoke(BPCallablePublisher.java:37)
at hudson.remoting.UserRequest.perform(UserRequest.java:121)
at hudson.remoting.UserRequest.perform(UserRequest.java:49)
at hudson.remoting.Request$2.run(Request.java:325)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:273)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1176)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:795)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.