aws / aws-codedeploy-agent

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

RedHat 8.7 installation failed latest version 1.5.0-57 #353

Closed R00T88 closed 1 year ago

R00T88 commented 1 year ago

OS: RedHat 8.7

RedHat 8.7 release with Ruby 3.1 that it's not supported by codedeploy-agent

I, [2023-03-15T08:55:49.762408 #29814]  INFO -- : Starting Ruby version check.
E, [2023-03-15T08:55:49.762669 #29814] ERROR -- : Current running Ruby version for root is 3.1.2, but Ruby version 2.x, 3.x needs to be installed.
E, [2023-03-15T08:55:49.762757 #29814] ERROR -- : If you already have the proper Ruby version installed, please either create a symlink to /usr/bin/ruby2.x,
E, [2023-03-15T08:55:49.762804 #29814] ERROR -- : or run this install script with right interpreter. Otherwise please install Ruby 2.x, 3.x for root user.
E, [2023-03-15T08:55:49.762840 #29814] ERROR -- : You can get more information by running the script with --help option.

If i force install ruby version 2.7.6 i'm able to start ./install auto but package not install

./install auto
I, [2023-03-15T09:20:33.489847 #31203]  INFO -- : Starting Ruby version check.
I, [2023-03-15T09:20:33.489999 #31203]  INFO -- : Starting update check.
I, [2023-03-15T09:20:33.490044 #31203]  INFO -- : Attempting to automatically detect supported package manager type for system...
I, [2023-03-15T09:20:33.535727 #31203]  INFO -- : Checking AWS_REGION environment variable for region information...
I, [2023-03-15T09:20:33.535886 #31203]  INFO -- : Checking EC2 metadata service for region information...
I, [2023-03-15T09:20:33.554437 #31203]  INFO -- : Checking AWS_DOMAIN environment variable for domain information...
I, [2023-03-15T09:20:33.554608 #31203]  INFO -- : Checking EC2 metadata service for domain information...
I, [2023-03-15T09:20:33.565330 #31203]  INFO -- : Downloading version file from bucket aws-codedeploy-eu-west-1 and key latest/LATEST_VERSION...
I, [2023-03-15T09:20:33.565530 #31203]  INFO -- : Endpoint: https://aws-codedeploy-eu-west-1.s3.eu-west-1.amazonaws.com/latest/LATEST_VERSION
I, [2023-03-15T09:20:33.661400 #31203]  INFO -- : Downloading package from bucket aws-codedeploy-eu-west-1 and key releases/codedeploy-agent-1.5.0-57.noarch.rpm...
I, [2023-03-15T09:20:33.661862 #31203]  INFO -- : Endpoint: https://aws-codedeploy-eu-west-1.s3.eu-west-1.amazonaws.com/releases/codedeploy-agent-1.5.0-57.noarch.rpm
I, [2023-03-15T09:20:33.780825 #31203]  INFO -- : Executing `/usr/bin/yum -y localinstall /tmp/codedeploy-agent-1.5.0-57.noarch.tmp-20230315-31203-1macmt3.rpm`...
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction check error:
  package codedeploy-agent-1.5.0-57.noarch does not verify: no digest

E, [2023-03-15T09:20:38.935603 #31203] ERROR -- : Error installing /tmp/codedeploy-agent-1.5.0-57.noarch.tmp-20230315-31203-1macmt3.rpm.

Thanks

mwjones-aws commented 1 year ago

package codedeploy-agent-1.5.0-57.noarch does not verify: no digest

It's possible it's requiring packages to be signed. We do not currently sign CodeDeploy Agent. We're tracking that issue here https://github.com/aws/aws-codedeploy-agent/issues/261

In the meantime, please try this workaround

We'll look into updating our install script to take this into account. We'll keep this issue open to track that effort.

In terms of Ruby support, 2.7.x or 3.0.x are tested and should work. We do not currently test against 3.1 or 3.2 versions of Ruby.

R00T88 commented 1 year ago

Hi @mwjones-aws , Thanks for your reply.

I think RHEL8 with FIPS enabled require package to be signed, thanks for workaround!

Do you think support for ruby 3.1/3.2 will be implemented?

Thanks

mwjones-aws commented 1 year ago

CodeDeploy Agent 1.6.0 adds Ruby 3.1 3.2 support. It has been released to most commercial regions as of this comment.

Please track release progress on https://github.com/aws/aws-codedeploy-agent/issues/360