jenkinsci / jenkinsci/agent-setup-plugin

[JENKINS-21844] java.net.UnknownHostException is "unexpected" when starting slave

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
component:slave-setup-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
11
Forks
23
Avg merge
21h 13m
Merged PRs (30d)
1

Description

It is a rather typical failure that a typo in the slave name leads to the fact that Jenkins simply cannot find the slave.

It is rather strange that Jenkins 1.514 says this type of problem is "unknown" to him, and it might be a bug in Jenkins:

Connecting to Jenkins-Slave-4-34

ERROR: Unexpected failure ... Possibly it is a bug in Jenkins. (previous text translated from German L10N)

java.net.UnknownHostException: Jenkins-Slave-4-34

at java.net.InetAddress.getAllByName0(InetAddress.java:1201)

at java.net.InetAddress.getAllByName(InetAddress.java:1128)

at java.net.InetAddress.getAllByName(InetAddress.java:1064)

at java.net.InetAddress.getByName(InetAddress.java:1014)

at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:202)

at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:223)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:636)

As the problem is really typical, I follow Jenkins' advice and report this as a bug. An UnknownHostException should not be "unknown" to Jenkins.

---
Originally reported by mkarg, imported from: java.net.UnknownHostException is "unexpected" when starting slave


  • assignee: kohsuke
  • status: Open
  • priority: Minor
  • component(s): slave-setup-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 20251216-225446

Raw content of original issue

It is a rather typical failure that a typo in the slave name leads to the fact that Jenkins simply cannot find the slave.

It is rather strange that Jenkins 1.514 says this type of problem is "unknown" to him, and it might be a bug in Jenkins:

Connecting to Jenkins-Slave-4-34
ERROR: Unexpected failure ... Possibly it is a bug in Jenkins. (previous text translated from German L10N)
java.net.UnknownHostException: Jenkins-Slave-4-34
at java.net.InetAddress.getAllByName0(InetAddress.java:1201)
at java.net.InetAddress.getAllByName(InetAddress.java:1128)
at java.net.InetAddress.getAllByName(InetAddress.java:1064)
at java.net.InetAddress.getByName(InetAddress.java:1014)
at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:202)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:223)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)

As the problem is really typical, I follow Jenkins' advice and report this as a bug. An UnknownHostException should not be "unknown" to Jenkins.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.