aws / aws-codedeploy-agent

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

Install on RHEL 7 failed #241

Closed angapov closed 3 years ago

angapov commented 4 years ago

Today was trying to install CodeDeploy agent on RHEL 7 and it failed. See details:

[root@rhel7 ~]# aws --region us-east-1 deploy install --config-file codedeploy.onpremises.yml --override-config
Creating the on-premises instance configuration file... DONE
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Package ruby-2.0.0.648-36.el7.x86_64 already installed and latest version
Nothing to do
Installing the AWS CodeDeploy Agent... ERROR
Failed to stop the AWS CodeDeploy Agent:
Redirecting to /bin/systemctl stop codedeploy-agent.service
Failed to stop codedeploy-agent.service: Unit codedeploy-agent.service not loaded.

Install the AWS CodeDeploy Agent on the on-premises instance by following the instructions in "Configure Existing On-Premises Instances by Using AWS CodeDeploy" in the AWS CodeDeploy User Guide.
[root@rhel7 ~]# aws --version
aws-cli/1.18.40 Python/2.7.5 Linux/3.10.0-1062.9.1.el7.x86_64 botocore/1.15.40
[root@rhel7 ~]# uname -r
3.10.0-1062.9.1.el7.x86_64
[root@rhel7 ~]# rpm -qa | grep ruby
rubygem-bigdecimal-1.2.0-36.el7.x86_64
rubygems-2.0.14.1-36.el7.noarch
ruby-libs-2.0.0.648-36.el7.x86_64
rubygem-psych-2.0.0-36.el7.x86_64
ruby-2.0.0.648-36.el7.x86_64
rubygem-json-1.7.7-36.el7.x86_64
rubygem-rdoc-4.0.0-36.el7.noarch
ruby-irb-2.0.0.648-36.el7.noarch
rubygem-io-console-0.4.2-36.el7.x86_64
Helen1987 commented 4 years ago

@angapov I see that it fails with: Failed to stop the AWS CodeDeploy Agent:

  1. Did you have an Agent previously installed on this instance?
  2. Are you trying to install to onprem instance?
  3. Is it the first time you are trying to install CD Agent onprem?
  4. Did you check "Configure Existing On-Premises Instances by Using AWS CodeDeploy"?
  5. What is the version of RHEL 7 OS you are using?
philstrong commented 3 years ago

Closing this as last comms > 6 months