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

Agent leaks sockets to AWS S3 #115

cavaliercoder opened this issue Jun 11, 2017 · 5 comments

Agent leaks sockets to AWS S3 #115

cavaliercoder opened this issue Jun 11, 2017 · 5 comments


Copy link

@cavaliercoder cavaliercoder commented Jun 11, 2017

Occasionally, the CodeDeploy Agent leaks a socket when connecting to S3 to download application bundles. This is evident via call to netstat:

$ netstat -tp4
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp       54      0 ip-172-21-67-210.:53248 s3-ap-southeast-2:https CLOSE_WAIT  4953/codedeploy-age

This happens on a number of our Centos 7.2.1511 x86_64 instances on AWS EC2. Package details:

$ rpm -qi codedeploy-agent
Name        : codedeploy-agent
Version     : 1.0
Release     : 1.1106
Architecture: noarch
Install Date: Wed 03 May 2017 04:30:06 AM AWST
Group       : Applications/System
Size        : 14612247
License     : Internal
Signature   : (none)
Source RPM  : codedeploy-agent-1.0-1.1106.src.rpm
Build Date  : Thu 13 Apr 2017 12:20:12 AM AWST
Build Host  :
Relocations : (not relocatable)
Vendor      :
Summary     : Provides the required files for CodeDeploy agent to run in EC2 instances
Description :
CodeDeploy instance agent is responsible for doing the actual work of deploying software
on an EC2 instance.

We had a similar issue in applications using the AWS SDK for Javascript (I understand this is written in Ruby). For reference, the issue was addressed, we think (please confirm) in v2.50.0.

Copy link

@asaf-erlich asaf-erlich commented Jul 10, 2017

Thanks for bringing this to our attention. We're using the ruby aws sdk for S3 so we're simply doing whatever that one does. Is v2.50.0 the version of the AWS SDK that you're referring to where this was fixed?

Copy link

@cavaliercoder cavaliercoder commented Jul 11, 2017

We understand a similar issue was resolved in the AWS SDK for Javascript somewhere around v2.50.0. Perhaps this issue is best addressed by the Ruby SDK team?

Copy link

@RohitK09 RohitK09 commented Jan 23, 2018

we are currently working on a fix for this issue.

Copy link

@Seikho Seikho commented Mar 6, 2018

@RohitK09 Is there a related issue you can link to?

@rohkat-aws rohkat-aws added the bug label Apr 24, 2018
Copy link

@annamataws annamataws commented Aug 2, 2018

Issue #60 is about upgrading AWS SDK
Closing issue. Track the progress in #60

@annamataws annamataws closed this Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.