• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Debian 9.4
      Jenkins ver. 2.107.2
      SSL Gateway + Apache HTTP Proxy

      Hi,

      I'm accessing my remote Jenkins server, with HTTPS stream passing through an SSL Gateway, then the Apache server redirecting calls to the Jenkins server.

      I works well, but I regularly have the following error, when accessing any page :

      java.lang.NumberFormatException: 2a01:e35:8a4a:8c0:30a6:4764:692b:f7da
       at org.eclipse.jetty.util.StringUtil.toInt(StringUtil.java:724)
       at org.eclipse.jetty.util.HostPort.<init>(HostPort.java:66)
       at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:44)
      Caused: org.eclipse.jetty.http.BadMessageException: 400: Bad HostPort
       at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:48)
       at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:35)
       at org.eclipse.jetty.server.ForwardedRequestCustomizer$RFC7239.parsedParam(ForwardedRequestCustomizer.java:485)
       at org.eclipse.jetty.http.QuotedCSV.addValue(QuotedCSV.java:135)
       at org.eclipse.jetty.server.ForwardedRequestCustomizer.customize(ForwardedRequestCustomizer.java:348)
       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
       at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
       at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
       at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
       at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)

      I have to reload the page a few times, and it eventually works, but this is very annoying as it occurs quite often.

      I can give you the public URL of the server in private message if required, so that you can reproduce the error with some (bad) luck. I have reproduced it with many different users.

      Thanks for your support

          [JENKINS-51327] Random java.lang.NumberFormatException

          Oleg Nenashev added a comment -

          So the version with the fix is available in 2.117 (https://jenkins.io/changelog/#v2.117), and it will be available in the next LTS release (2.121.1) baring major issues there.

          danielbeck olamy I propose to add it to the weekly changelog and mention is a whatever "IPv6 support in Jetty". Maybe useful for LTS changelog as well

          Oleg Nenashev added a comment - So the version with the fix is available in 2.117 ( https://jenkins.io/changelog/#v2.117 ), and it will be available in the next LTS release (2.121.1) baring major issues there. danielbeck olamy I propose to add it to the weekly changelog and mention is a whatever "IPv6 support in Jetty". Maybe useful for LTS changelog as well

          Daniel Beck added a comment -

          Took almost through the entire LTS line to get noticed, so doesn't seem to be that big of a deal.

          Daniel Beck added a comment - Took almost through the entire LTS line to get noticed, so doesn't seem to be that big of a deal.

          Erwan MATHIEU added a comment -

          Ok thanks, I will test version 2.117 ASAP and tell you if that fixes the issue.

          Erwan MATHIEU added a comment - Ok thanks, I will test version 2.117 ASAP and tell you if that fixes the issue.

          Olivier Lamy added a comment -

          something to verify as well but there might be some bad RFC7239 header as well...

          Olivier Lamy added a comment - something to verify as well but there might be some bad RFC7239 header as well...

          Erwan MATHIEU added a comment -

          I installed version 2.122 this morning, no error so far. I'll let you know in a few days.

          Erwan MATHIEU added a comment - I installed version 2.122 this morning, no error so far. I'll let you know in a few days.

          Erwan MATHIEU added a comment - - edited

          Unfortunately, error is still present with version 2.122. Can you tell me how to disable IPv6 ? I will try to do some tests to see where it comes from. I don't really understand how it can happen, as all the traffic to Jenkins is supposed to come from the Apache proxy from localhost...

          Erwan MATHIEU added a comment - - edited Unfortunately, error is still present with version 2.122. Can you tell me how to disable IPv6 ? I will try to do some tests to see where it comes from. I don't really understand how it can happen, as all the traffic to Jenkins is supposed to come from the Apache proxy from localhost...

          Erwan MATHIEU added a comment -

          Hi, I am now at version 2.168.1, and I'm still affected by this issue. Any update or recommandation ?

          Erwan MATHIEU added a comment - Hi, I am now at version 2.168.1, and I'm still affected by this issue. Any update or recommandation ?

          Oleg Nenashev added a comment -

          2.138.1, I'd guess.

          Oleg Nenashev added a comment - 2.138.1, I'd guess.

          Erwan MATHIEU added a comment -

          Oh yes obviously you're right, my new version is 2.138.1

          Erwan MATHIEU added a comment - Oh yes obviously you're right, my new version is 2.138.1

          Erwan MATHIEU added a comment -

          Hi, just for the update, still present in version 2.176.2

           

          Erwan MATHIEU added a comment - Hi, just for the update, still present in version 2.176.2  

            Unassigned Unassigned
            wawanbreton Erwan MATHIEU
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: