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

Connection timeout behind a proxy

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I've got this error:

      Bitbucket notify on start failed: There was a problem while creating a connection to the remote service.
      org.scribe.exceptions.OAuthConnectionException: There was a problem while creating a connection to the remote service.
      	at org.scribe.model.Request.send(Request.java:69)
      	at org.scribe.model.Request.send(Request.java:75)
      	at org.jenkinsci.plugins.bitbucket.api.BitbucketApiService.getAccessToken(BitbucketApiService.java:27)
      	at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.notifyBuildStatus(BitbucketBuildStatusNotifier.java:216)
      	at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.prebuild(BitbucketBuildStatusNotifier.java:79)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:840)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:835)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:664)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      	at hudson.model.Run.execute(Run.java:1741)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:408)
      Caused by: java.net.ConnectException: Connection timed out
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
      	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
      	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      	at java.net.Socket.connect(Socket.java:579)
      	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:637)
      	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
      	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
      	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
      	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
      	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:934)
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
      	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1093)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
      	at org.scribe.model.Request.addBody(Request.java:134)
      	at org.scribe.model.Request.doSend(Request.java:112)
      	at org.scribe.model.Request.send(Request.java:65)
      	... 12 more
      

      I've tried a lot of settings without success:

      • Set the environment variable JAVA_TOOL_OPTIONS: -Dhttp.proxyHost=<proxyserver> -Dhttp.proxyPort=8080 -Dhttps.proxyHost=<proxyserver> -Dhttps.proxyPort=8080 in Jenkins configuration with value
      • Set the proxy in the advance tab of plugins configuration.
      • Add to the variable JENKINS_JAVA_OPTIONS: -Dhttp.proxyHost=<proxyserver> -Dhttp.proxyPort=8080 -Dhttps.proxyHost=<proxyserver> -Dhttps.proxyPort=8080 in JENKINS in the file: /etc/sysconfig/jenkins

      Nothing is working... Every other plugins and job are working. Only this plugin report an error.

        Attachments

          Activity

          Hide
          flagbit Antonio Mansilla added a comment -

          Hi Sylvain Deschenes, first thank you for reporting the problem, I got it, I'll try to identify the problem asap.

          Show
          flagbit Antonio Mansilla added a comment - Hi Sylvain Deschenes , first thank you for reporting the problem, I got it, I'll try to identify the problem asap.
          Hide
          flagbit Antonio Mansilla added a comment -

          I'll close this issue since I'm not be able to reproduce the problem.

          Show
          flagbit Antonio Mansilla added a comment - I'll close this issue since I'm not be able to reproduce the problem.
          Hide
          kalib Marcelo Rocha added a comment -

          I am also facing the same issue when working behind a proxy.

          Also, another question: Does this plugin receives something from Bitbucket? I mean, when I have the Bitbucket notify plugin on my Jenkins, how exactly does it work? Jenkins sends the information to Bitbucket? Or also receives something from Bitbucket? If Bitbucket sends something to Jenkins, that could also be my issue, since my jenkins installation doesn't have a public IP and can't be reached from the internet, but I can go to the internet using my proxy and all other plugins work just fine, as well as jenkins updates, etc.

          Show
          kalib Marcelo Rocha added a comment - I am also facing the same issue when working behind a proxy. Also, another question: Does this plugin receives something from Bitbucket? I mean, when I have the Bitbucket notify plugin on my Jenkins, how exactly does it work? Jenkins sends the information to Bitbucket? Or also receives something from Bitbucket? If Bitbucket sends something to Jenkins, that could also be my issue, since my jenkins installation doesn't have a public IP and can't be reached from the internet, but I can go to the internet using my proxy and all other plugins work just fine, as well as jenkins updates, etc.

            People

            Assignee:
            flagbit Antonio Mansilla
            Reporter:
            sdeschenes Sylvain Deschenes
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: