Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28895

Improve error message when slave host name is invalid

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When declaring an invalid host name we currently get the following error

      Connexion à machine
      ERROR: Erreur inattendue au lancement d'un esclave. Probablement un bug dans Jenkins
      java.net.UnknownHostException: machine
      	at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
      	at java.net.InetAddress$2.lookupAllHostAddr(Unknown Source)
      	at java.net.InetAddress.getAddressesFromNameService(Unknown Source)
      	at java.net.InetAddress.getAllByName0(Unknown Source)
      	at java.net.InetAddress.getAllByName(Unknown Source)
      	at java.net.InetAddress.getAllByName(Unknown Source)
      	at java.net.InetAddress.getByName(Unknown Source)
      	at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:202)
      	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:243)
      	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      

      However it is a user error, not a bug in Jenkins. The exception should be caught and a user-friendly message displayed.

        Attachments

          Activity

          Show
          vlatombe Vincent Latombe added a comment - Submitted https://github.com/jenkinsci/windows-slaves-plugin/pull/2
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          src/main/java/hudson/os/windows/ManagedWindowsServiceLauncher.java
          src/main/resources/hudson/os/windows/Messages.properties
          src/main/resources/hudson/os/windows/Messages_fr.properties
          http://jenkins-ci.org/commit/windows-slaves-plugin/4691102614799001ba5eacd96b6ade273168fe27
          Log:
          JENKINS-28895 Display a user-friendly error message when the host name is invalid

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: src/main/java/hudson/os/windows/ManagedWindowsServiceLauncher.java src/main/resources/hudson/os/windows/Messages.properties src/main/resources/hudson/os/windows/Messages_fr.properties http://jenkins-ci.org/commit/windows-slaves-plugin/4691102614799001ba5eacd96b6ade273168fe27 Log: JENKINS-28895 Display a user-friendly error message when the host name is invalid
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          src/main/java/hudson/os/windows/ManagedWindowsServiceLauncher.java
          src/main/resources/hudson/os/windows/Messages.properties
          src/main/resources/hudson/os/windows/Messages_fr.properties
          http://jenkins-ci.org/commit/windows-slaves-plugin/95b4f4a0f95706c13818dd6d7fe291cfa60db34f
          Log:
          Merge pull request #2 from Vlatombe/JENKINS-28895

          JENKINS-28895 Display a user-friendly error message when the host n…

          Compare: https://github.com/jenkinsci/windows-slaves-plugin/compare/f6cef6ae817f...95b4f4a0f957

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: src/main/java/hudson/os/windows/ManagedWindowsServiceLauncher.java src/main/resources/hudson/os/windows/Messages.properties src/main/resources/hudson/os/windows/Messages_fr.properties http://jenkins-ci.org/commit/windows-slaves-plugin/95b4f4a0f95706c13818dd6d7fe291cfa60db34f Log: Merge pull request #2 from Vlatombe/ JENKINS-28895 JENKINS-28895 Display a user-friendly error message when the host n… Compare: https://github.com/jenkinsci/windows-slaves-plugin/compare/f6cef6ae817f...95b4f4a0f957

            People

            • Assignee:
              vlatombe Vincent Latombe
              Reporter:
              vlatombe Vincent Latombe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: