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

Publish over Dropbox returns "Connection Refused" when trying to add credentials

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins - version 2.89.4
      Publish over Dropbox - version 1.2.2
    • Similar Issues:

      Description

      Hi,

      I'm having an issue with Publish over Dropbox plugin. I generated the token by clicking "generate" link in the description of the Token field. But it returns the error "Connection Refused", and I can't figure out why. The stacktrace is not helping me much, but maybe I'm overseeing something. I know it could be some firewall rules, but it's impossible to know which one. When a request is sent from the terminal on the Jenkins host, everything works OK. It just returns this error when I try to add the credentials.

      Here is the stacktrace:

      java.net.ConnectException: Connection refused (Connection refused)
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
      	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
      	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      	at java.net.Socket.connect(Socket.java:589)
      	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
      	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
      	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.plainConnect0(HttpURLConnection.java:1156)
      	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
      	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334)
      	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:259)
      	at org.jenkinsci.plugins.publishoverdropbox.domain.JsonObjectRequest.upload(JsonObjectRequest.java:219)
      	at org.jenkinsci.plugins.publishoverdropbox.domain.JsonObjectRequest.execute(JsonObjectRequest.java:162)
      	at org.jenkinsci.plugins.publishoverdropbox.domain.DropboxV2.readAccessTokenFromWeb(DropboxV2.java:573)
      Caused: org.jenkinsci.plugins.publishoverdropbox.domain.model.RestException: Error when retrieving access token from Dropbox
      	at org.jenkinsci.plugins.publishoverdropbox.domain.DropboxV2.readAccessTokenFromWeb(DropboxV2.java:575)
      	at org.jenkinsci.plugins.publishoverdropbox.domain.DropboxV2.convertAuthorizationToAccessCode(DropboxV2.java:541)
      	at org.jenkinsci.plugins.publishoverdropbox.impl.DropboxTokenImpl.<init>(DropboxTokenImpl.java:53)
      

      Thank you in advance.

        Attachments

          Activity

          Hide
          kerim_djiho Kerim Djiho added a comment -

          Hi!

          I guess that the plugin is ignoring the Proxy settings. Can you confirm that plugin doesn't support proxy settings? René de Groot

          Thanks.

          Show
          kerim_djiho Kerim Djiho added a comment - Hi! I guess that the plugin is ignoring the Proxy settings. Can you confirm that plugin doesn't support proxy settings? René de Groot Thanks.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Unknown
          Path:
          src/main/java/org/jenkinsci/plugins/publishoverdropbox/domain/JsonObjectRequest.java
          http://jenkins-ci.org/commit/publish-over-dropbox-plugin/1b225d74adfe19183395a18e8c8f65bdeffbb775
          Log:
          JENKINS-51478 Retrieve and apply proxy configuration

          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Unknown Path: src/main/java/org/jenkinsci/plugins/publishoverdropbox/domain/JsonObjectRequest.java http://jenkins-ci.org/commit/publish-over-dropbox-plugin/1b225d74adfe19183395a18e8c8f65bdeffbb775 Log: JENKINS-51478 Retrieve and apply proxy configuration * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
          Hide
          rcgroot René de Groot added a comment -

          Fixed in release 1.2.3

          Show
          rcgroot René de Groot added a comment - Fixed in release 1.2.3

            People

            Assignee:
            rcgroot René de Groot
            Reporter:
            kerim_djiho Kerim Djiho
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: