aws / aws-codedeploy-agent

Host Agent for AWS CodeDeploy
https://aws.amazon.com/codedeploy
Apache License 2.0
328 stars 188 forks source link

Codedeploy Agent fails after updating to Ruby 2.7.6 (Ubuntu 18.04) #320

Closed airjoshb closed 1 year ago

airjoshb commented 2 years ago

After upgrading Ruby from 2.5.9 to 2.7.6 the codedeploy agent won't start with the below that doesn't have much information. The environment uses RVM, the sys default is 2.5.9. If I switch to 2.7.6 and try and start, the issue is the same. Has anyone seen this?

codedeploy-agent.service - LSB: AWS CodeDeploy Host Agent Loaded: loaded (/etc/init.d/codedeploy-agent; generated) Active: failed (Result: exit-code) since Wed 2022-05-18 22:56:28 UTC; 3min 1s ago Docs: man:systemd-sysv-generator(8) Process: 2015 ExecStart=/etc/init.d/codedeploy-agent start (code=exited, status=126)

May 18 22:56:28 ip-172-31-49-61 systemd[1]: Starting LSB: AWS CodeDeploy Host Agent... May 18 22:56:28 ip-172-31-49-61 codedeploy-agent[2015]: Starting codedeploy-agent: May 18 22:56:28 ip-172-31-49-61 systemd[1]: codedeploy-agent.service: Control process exited, code=exited status=126 May 18 22:56:28 ip-172-31-49-61 systemd[1]: codedeploy-agent.service: Failed with result 'exit-code'. May 18 22:56:28 ip-172-31-49-61 systemd[1]: Failed to start LSB: AWS CodeDeploy Host Agent.

mwjones-aws commented 2 years ago

Hi, would you mind providing a little more information?

airjoshb commented 2 years ago

Thanks for the response.

This is an EC2 Instance and the AMI is a custom built off of Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1075-aws x86_64)

Downloading from the S3 Bucket

We are using the ubuntu user and not doing anything out of the ordinary for a rails app. We launch nginx, passenger, delayed job.

mwjones-aws commented 1 year ago

Hi, we've released CodeDeploy Agent a few times since you reached out to us. The most recent release, 1.6.0, is in progress. We now support Ubuntu 22.04, as well as Ruby 3.0, 3.1 and 3.2.

Please re-open if you're still experiencing the problem with the latest version of the agent.