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

RTC Polling broken when Proxy enabled

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      We have an issue with RTC polling when we have the proxy set in Jenkins. We need to set http and https proxy settings on the master for many other apps. So we do this in the Jenkins.xml file on the master. But this seems to break polling on RTC jobs. Jobs can still pull files out of source control but polling does not work. What is the difference between these 2 operations?

      The following settings are set in the jenkins.xml:
      -Dhttp.proxyHost=proxy001 -Dhttps.proxyHost=proxy001 -Dhttp.proxyPort=80 -Dhttps.proxyPort=80 -Dhttp.nonProxyHosts=*.ourcompanydomain.com

      Our thoughts are that the IBM RTC Jenkins plug-in may not be respecting the nonProxyHosts java settings. Since our RTC instance is internal to the network, it should not feed the traffic destined for RTC through the proxy.

      Any ideas, this one is killing us ! Any help would be greatly appreciated!!

      Gives the below stack trace in the polling log:
      FATAL: RTC : checking for changes failure: CRJAZ0099E An HTTP error occurred when this URL was being accessed: https://rtcserver.company.com:9443/ccm2/versionCompatibility?clientVersion=5.0. Error details: Remote host closed connection during handshake.
      com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0099E An HTTP error occurred when this URL was being accessed: https://rtcserver.company.com:9443/ccm2/versionCompatibility?

        Attachments

          Activity

          Hide
          anilb Anil Bhatia added a comment -

          Hi,

          Can you please share some details on how you are passing authentication details (username / password)..?
          Are you also using Winstone..?

          Thanks
          Anil

          Show
          anilb Anil Bhatia added a comment - Hi, Can you please share some details on how you are passing authentication details (username / password)..? Are you also using Winstone..? Thanks Anil
          Hide
          anilb Anil Bhatia added a comment - - edited

          Hi,

          Please try as outlined in the accepted response here:
          https://jazz.net/forum/questions/158844/unable-to-connect-to-rtc-from-jenkins

          I tried with the following options, and it seems to work fine.

          -Dhttp.proxyHost=https://myproxy -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=myrtcserver

          Please note the following in above line:
          -Dhttp.proxyHost=https://myproxy
          (-Dhttp... is given value https://...)

          Thanks
          Anil

          Show
          anilb Anil Bhatia added a comment - - edited Hi, Please try as outlined in the accepted response here: https://jazz.net/forum/questions/158844/unable-to-connect-to-rtc-from-jenkins I tried with the following options, and it seems to work fine. -Dhttp.proxyHost= https://myproxy -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=myrtcserver Please note the following in above line: -Dhttp.proxyHost= https://myproxy (-Dhttp... is given value https:// ...) Thanks Anil
          Hide
          djozis David Jozis added a comment -

          http.proxyHost and http.proxyPort are working fine. http.nonProxyHosts is not respected.
          Can you verify that when you're hitting a host that matches a nonProxyHosts pattern, that it is hitting the target directly? In our environment, the proxy will is not able to forward requests to the host we have added to nonProxyHosts.

          Show
          djozis David Jozis added a comment - http.proxyHost and http.proxyPort are working fine. http.nonProxyHosts is not respected. Can you verify that when you're hitting a host that matches a nonProxyHosts pattern, that it is hitting the target directly? In our environment, the proxy will is not able to forward requests to the host we have added to nonProxyHosts.
          Hide
          lvaikunt Lakshmi Narasimhan Vaikuntam added a comment -

          This is an issue with build toolkit not honouring the nonProxyHosts property. See defect 366658. The issue has been fixed in build toolkit 6.0.2.

          Show
          lvaikunt Lakshmi Narasimhan Vaikuntam added a comment - This is an issue with build toolkit not honouring the nonProxyHosts property. See defect 366658 . The issue has been fixed in build toolkit 6.0.2.
          Hide
          lvaikunt Lakshmi Narasimhan Vaikuntam added a comment -

          David Jozis,
          Can you confirm whether you are using "Avoid using build toolkit on Master" option in the global or job configuration? If this option is not being used, then the issue is with build toolkit not honouring nonProxyHosts property. This has been fixed in build toolkit v 6.0.2.

          Show
          lvaikunt Lakshmi Narasimhan Vaikuntam added a comment - David Jozis, Can you confirm whether you are using "Avoid using build toolkit on Master" option in the global or job configuration? If this option is not being used, then the issue is with build toolkit not honouring nonProxyHosts property. This has been fixed in build toolkit v 6.0.2.
          Hide
          djozis David Jozis added a comment -

          Hi Lakshmi,

          Yes, we believe this issue was fixed in that version of the build toolkit. I'll close the issue.

          Thanks,
          David.

          Show
          djozis David Jozis added a comment - Hi Lakshmi, Yes, we believe this issue was fixed in that version of the build toolkit. I'll close the issue. Thanks, David.

            People

            Assignee:
            anilb Anil Bhatia
            Reporter:
            bbonn bbonn
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: