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

AWS cloud formation plugin seem can't establish connection via a proxy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • cloudformation-plugin
    • Jenkins ver. 1.616
      sun JDK 1.7
      jenkins-cloudformation-plugin: 1.0

      I got some problem during I use the plugin. I think the problem is Great Fire Wall stop the connection between Shanghai China and AWS.
      So I setup a proxy for my Jenkins master like this https://wiki.jenkins-ci.org/display/JENKINS/JenkinsBehindProxy
      But the problem not solve still. I can use the proxy in chrome to access AWS. I don't know whether this plugin can connect to AWS via Jenkins master's proxy. How can I make the plugin establish connection via a proxy ?

      Determining to create or update Cloud Formation stack: CollineCItest158
      Stack not found: CollineCItest158. Error was: java.net.UnknownHostException: cloudformation.ap-southeast-1.amazonaws.com
      Creating Cloud Formation stack: CollineCItest158
      Failed to create stack: CollineCItest158. Error was: java.net.UnknownHostException: cloudformation.ap-southeast-1.amazonaws.com
      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      com.amazonaws.AmazonClientException: Unable to execute HTTP request: cloudformation.ap-southeast-1.amazonaws.com
      at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:472)
      at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:296)
      at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.invoke(AmazonCloudFormationClient.java:1273)
      at com.amazonaws.services.cloudformation.AmazonCloudFormationClient.deleteStack(AmazonCloudFormationClient.java:1119)
      at com.syncapse.jenkinsci.plugins.awscloudformationwrapper.CloudFormation.delete(CloudFormation.java:169)
      at com.syncapse.jenkinsci.plugins.awscloudformationwrapper.CloudFormationBuildWrapper.doTearDown(CloudFormationBuildWrapper.java:113)
      at com.syncapse.jenkinsci.plugins.awscloudformationwrapper.CloudFormationBuildWrapper.setUp(CloudFormationBuildWrapper.java:87)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:653)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      at hudson.model.Run.execute(Run.java:1744)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)
      Caused by: java.net.UnknownHostException: cloudformation.ap-southeast-1.amazonaws.com
      at java.net.InetAddress.getAllByName0(InetAddress.java:1243)
      at java.net.InetAddress.getAllByName(InetAddress.java:1155)
      at java.net.InetAddress.getAllByName(InetAddress.java:1091)
      at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:44)
      at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:259)
      at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:159)
      at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
      at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
      at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
      at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
      at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:686)
      at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:461)
      ... 12 more

        1. Untitledee.png
          Untitledee.png
          82 kB
        2. Untitledee.png
          Untitledee.png
          69 kB
        3. Untitledee.png
          Untitledee.png
          33 kB
        4. Untitledee.png
          Untitledee.png
          76 kB
        5. Untitledrr.png
          Untitledrr.png
          33 kB
        6. Untitledss.png
          Untitledss.png
          45 kB

            edovale edovale
            lsbwant lsb want
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: