Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS client error: Unable to execute HTTP request #6

Open
apetrut opened this issue Nov 16, 2016 · 4 comments
Open

AWS client error: Unable to execute HTTP request #6

apetrut opened this issue Nov 16, 2016 · 4 comments

Comments

@apetrut
Copy link

apetrut commented Nov 16, 2016

Hi,

I have installed the AWS CodeDeploy plugin in TeamCity and I got this error:

AWS client error: Unable to execute HTTP request: Connect to my_bucket_name.s3-eu-west-1.amazonaws.com:443 failed: connect timed out

I have increased the timeout but it seems that the plugin needs a SSL connection.

How can I force the plugin to access the AWS S3 bucket via HTTPS?

Thanks

@apetrut apetrut changed the title AWS client error: Unable to execute HTTP request: AWS client error: Unable to execute HTTP request Nov 16, 2016
@vbedrosova
Copy link
Contributor

Hello, @Code4FunPlnkr, the plugin always uses HTTPS protocol, so the issue is somewhere else.
I've recently fixed https://youtrack.jetbrains.com/issue/TW-47791 which may be related (though may be not). So please download and install the latest aws-codedeply-plugin version and let me know if it helps. Thank you.

@rocky0001
Copy link

Hi @vbedrosova I downloaded latest version plugins but got similar error at register/deploy step. upload to s3 without any problem but always time out at " AWS client error: Unable to execute HTTP request connect to codedeploy.....:443 time out. " Could be the proxy issue? My env has http/https proxy server. But why could I upload the revisions to S3 without any issue? Thanks.

@vbedrosova
Copy link
Contributor

Hi, @rocky0001, this really looks like a network configuration problem. Can you consult you system administrator? You may also try manually running similar codedeploy command from aws command line interface on your build agent machine and see if there is the same issue.

@dupski
Copy link

dupski commented Feb 22, 2017

We also have a problem with the CodeDeploy stage. In our case the S3 Upload works but the CodeDeploy does not.

[Step 1/1] upload revision
[10:56:33][upload revision] Uploading application revision C:\****.zip to S3 bucket **** using key ***
[10:56:33][upload revision] Uploaded application revision https://s3-us-west-2.amazonaws.com/***/***.zip?etag=a2f4ef1540753aa6a4e6d647c28aa701
[10:56:33][Step 1/1] register revision (40s)
[10:56:33][register revision] Registering application **** revision from S3 bucket *** with key ***.zip, bundle type Zip, latest version and a2f4ef1540753aa6a4e6d647c28aa701 ETag
[10:57:13][register revision] AWS client error: Unable to execute HTTP request: Connect to codedeploy.us-west-2.amazonaws.com:443 [codedeploy.us-west-2.amazonaws.com/54.240.250.229] failed: connect timed out

Please note we use an HTTP(S) Proxy. We've been onto the agent machine and confirmed that it can make requests to both s3-us-west-2.amazonaws.com and codedeploy.us-west-2.amazonaws.com.

Could you confirm if this plugin has been tested with an HTTP proxy? (we use a Windows build agent)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants