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

Connection refused when running JNLP slave on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not A Defect
    • core

    Description

      After upgrading Jenkins 1.609.3 -> 1.625.1 without upgrading any plugins when I tried to run the slave from the web page the JNLP started and failed with connection refused.

      I had to revert the upgrade and did not capture the exception logs. I will create a new testing Jenkins to recreate the problem and post more information later. This is incomplete post is to have an issue number to connect to the community feedback for the changelog as soon as possible.

      Reverse proxy is set up in following way (relevant part of configuration with server name replaced):

      ProxyRequests Off
      ProxyPreserveHost On
      AllowEncodedSlashes NoDecode

      ProxyPass /jenkins http://my.host.cz:8080/jenkins nocanon
      ProxyPassReverse /jenkins http://my.host.cz:8080/jenkins

      Substitute "s|http://my.host.cz:8080/jenkins|/jenkins|iq"
      SetOutputFilter INFLATE;SUBSTITUTE;DEFLATE

      <LocationMatch "^/jenkins(?:/static/|/cli/|/git/|/jnlpJars/).*$">
      AuthType None
      </LocationMatch>

      <LocationMatch "^/jenkins(??!/static/|/cli/|/git/|/jnlpJars/).)*$">

      AuthName "Jenkins NTLM - Login using your DOMAIN username and password"
      AuthType SSPI
      SSPIAuth On
      SSPIAuthoritative On
      require valid-user

      RequestHeader unset X-Forwarded-User
      RewriteEngine On
      RewriteCond %

      Unknown macro: {LA-U}

      (.+)
      RewriteRule .* - [E=RU:%1,NS]
      RequestHeader set X-Forwarded-User %

      Unknown macro: {RU}

      e
      </LocationMatch>

      Attachments

        Activity

          vaskrist Michael Štědrý created issue -
          vaskrist Michael Štědrý made changes -
          Field Original Value New Value
          Description After upgrading Jenkins 1.609.3 -> 1.625.1 without upgrading any plugins when I tried to run the slave from the web page the JNLP started and failed with connection refused.

          I had to revert the upgrade and did not capture the exception logs. I will create a new testing Jenkins to recreate the problem and post more information later. This is incomplete post is to have an issue number to connect to the community feedback for the changelog as soon as possible.

          Reverse proxy is set up in following way (relevant part of configuration with server name replaced):
          ProxyRequests Off
          ProxyPreserveHost On
          AllowEncodedSlashes NoDecode

          ProxyPass /jenkins http://my.host.cz:8080/jenkins nocanon
          ProxyPassReverse /jenkins http://my.host.cz:8080/jenkins

          Substitute "s|http://my.host.cz:8080/jenkins|/jenkins|iq"
          SetOutputFilter INFLATE;SUBSTITUTE;DEFLATE

          <LocationMatch "^/jenkins(?:/static/|/cli/|/git/|/jnlpJars/).*$">
          AuthType None
          </LocationMatch>

          <LocationMatch "^/jenkins(?:(?!/static/|/cli/|/git/|/jnlpJars/).)*$">

          AuthName "Jenkins NTLM - Login using your DOMAIN username and password"
          AuthType SSPI
          SSPIAuth On
          SSPIAuthoritative On
          require valid-user

          RequestHeader unset X-Forwarded-User
          RewriteEngine On
          RewriteCond %{LA-U:REMOTE_USER} (.+)
          RewriteRule .* - [E=RU:%1,NS]
          RequestHeader set X-Forwarded-User %{RU}e
          </LocationMatch>
          After upgrading Jenkins 1.609.3 -> 1.625.1 without upgrading any plugins when I tried to run the slave from the web page the JNLP started and failed with connection refused.

          I had to revert the upgrade and did not capture the exception logs. I will create a new testing Jenkins to recreate the problem and post more information later. This is incomplete post is to have an issue number to connect to the community feedback for the changelog as soon as possible.

          Reverse proxy is set up in following way (relevant part of configuration with server name replaced):
          {quote}ProxyRequests Off
          ProxyPreserveHost On
          AllowEncodedSlashes NoDecode

          ProxyPass /jenkins http://my.host.cz:8080/jenkins nocanon
          ProxyPassReverse /jenkins http://my.host.cz:8080/jenkins

          Substitute "s|http://my.host.cz:8080/jenkins|/jenkins|iq"
          SetOutputFilter INFLATE;SUBSTITUTE;DEFLATE

          <LocationMatch "^/jenkins(?:/static/|/cli/|/git/|/jnlpJars/).*$">
          AuthType None
          </LocationMatch>

          <LocationMatch "^/jenkins(?:(?!/static/|/cli/|/git/|/jnlpJars/).)*$">

          AuthName "Jenkins NTLM - Login using your DOMAIN username and password"
          AuthType SSPI
          SSPIAuth On
          SSPIAuthoritative On
          require valid-user

          RequestHeader unset X-Forwarded-User
          RewriteEngine On
          RewriteCond %{LA-U:REMOTE_USER} (.+)
          RewriteRule .* - [E=RU:%1,NS]
          RequestHeader set X-Forwarded-User %{RU}e
          </LocationMatch>
          {quote}
          vaskrist Michael Štědrý made changes -
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 166184 ] JNJira + In-Review [ 209338 ]

          People

            Unassigned Unassigned
            vaskrist Michael Štědrý
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: