Closed mwjones-aws closed 1 year ago
1.5.0 March 3, 2023
Added: Support for Ruby 3.
Added: Support for Ubuntu 22.04.
Fixed: An issue where restarting the CodeDeploy agent soon after startup would lead to the agent hanging.
Changed: The CodeDeploy agent now fails a host deployment on agent startup if the agent service restarts unexpectedly while running a hook script. This fix lets you avoid waiting the 70 minute timeout period before retrying a deployment.
Deprecation notice: CodeDeploy agent 1.5.0 is the last release to support Windows Server 2016, and Windows Server 2012 R2.
Removed: Support for the CodeDeploy agent on Ubuntu 14.04 LTS, Windows Server 2008 R2, Windows Server 2008 R2 32-bit.
Installing the latest RPM version in Amazon Linux 2023 is not working:
# cat /etc/system-release && rpm -qa | grep -i codedeploy
Amazon Linux release 2023 (Amazon Linux)
codedeploy-agent-1.5.0-57.noarch
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require': cannot load such file -- net/smtp (LoadError)
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging/appenders/email.rb:2:in `<top (required)>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging/appenders.rb:57:in `<module:Logging>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging/appenders.rb:2:in `<top (required)>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging.rb:537:in `<module:Logging>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/vendor/gems/logging-1.8.2/lib/logging.rb:18:in `<top (required)>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:160:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:149:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/log.rb:2:in `<top (required)>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager.rb:9:in `<top (required)>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:160:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:149:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/lib/instance_agent.rb:10:in `<top (required)>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/bin/../lib/codedeploy-agent.rb:22:in `<main>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require': cannot load such file -- logging (LoadError)
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: Did you mean? logger
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:148:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager/log.rb:2:in `<top (required)>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:96:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/vendor/gems/process_manager-0.0.13/lib/process_manager.rb:9:in `<top (required)>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:160:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:149:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/lib/instance_agent.rb:10:in `<top (required)>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/bin/../lib/codedeploy-agent.rb:22:in `<main>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- process_manager (LoadError)
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/lib/instance_agent.rb:10:in `<top (required)>'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from <internal:/usr/share/ruby3.2-rubygems/rubygems/core_ext/kernel_require.rb>:85:in `require'
Mar 9 17:48:32 ip-10-80-103-68 bash[4517]: #011from /opt/codedeploy-agent/bin/../lib/codedeploy-agent.rb:22:in `<main>'
Mar 9 17:48:32 ip-10-80-103-68 systemd[1]: codedeploy-agent.service: Control process exited, code=exited, status=1/FAILURE
Mar 9 17:48:32 ip-10-80-103-68 systemd[1]: codedeploy-agent.service: Failed with result 'exit-code'.
Agent 1.5.0
Installation Instructions
Release Notes
1.5.x branch
S3 keys and ETags
MSI
DEB
RPM
Region availability
We estimate CodeDeploy Agent 1.5.0 will be available in all commercial regions by 2023-03-10.
Available in these regions as of 2023-03-15