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

underscore in jenkins URL is not accepted for agent

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • jenkins 2.482

      When starting the agent an error is reported:

      WARNING: java.net.URISyntaxException: Illegal character in hostname at index 10: http://han_mob:60605
      okt 23, 2024 8:00:20 A.M. hudson.remoting.Launcher$CuiListener status
      INFO: Could not locate server among http://han_mob:8080/; waiting 10 seconds before retry

       

      However it is possible to connect to the url http://han_mob:8080 for showing Jenkins

      It seems that the underscore in the url is not accepted for agents.

          [JENKINS-74003] underscore in jenkins URL is not accepted for agent

          Markus Winter added a comment -

          Underscores are not allowed in Domain names: https://www.ssl.com/faqs/underscores-not-allowed-in-domain-names/

          So you should rename your machine, e.g. use a hyphen "han-mob"

          Markus Winter added a comment - Underscores are not allowed in Domain names: https://www.ssl.com/faqs/underscores-not-allowed-in-domain-names/ So you should rename your machine, e.g. use a hyphen "han-mob"

          Han Geerligs added a comment - - edited

          Markus,

          thanks for your reply!.

          I notice that the error occurs after upgrading to Jenkins 2.482.

          Is this expected?

          Han Geerligs added a comment - - edited Markus, thanks for your reply!. I notice that the error occurs after upgrading to Jenkins 2.482. Is this expected?

          Markus Winter added a comment -

          The error seems to come from Java itself. Not Jenkins. So if you have been on Java11 before it might be related to Java.

          Markus Winter added a comment - The error seems to come from Java itself. Not Jenkins. So if you have been on Java11 before it might be related to Java.

          Han Geerligs added a comment - - edited

          Markus,

          renaming the computer did the trick, thanks again!

          – Han

          Han Geerligs added a comment - - edited Markus, renaming the computer did the trick, thanks again! – Han

            Unassigned Unassigned
            han_geerligs Han Geerligs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: