반응형
에러
[2022-11-05T07:52:23.713255 #3652] INFO -- : Starting Ruby version check. E, [2022-11-05T07:52:23.713431 #3652] ERROR -- : Current running Ruby version for root is 3.0.2, but Ruby version 2.x needs to be installed. E, [2022-11-05T07:52:23.713456 #3652] ERROR -- : If you already have the proper Ruby version installed, please either create a symlink to /usr/bin/ruby2.x, E, [2022-11-05T07:52:23.713476 #3652] ERROR -- : or run this install script with right interpreter. Otherwise please install Ruby 2.x for root user. E, [2022-11-05T07:52:23.713513 #3652] ERROR -- : You can get more information by running the script with --help option.
해결방법
https://github.com/aws/aws-codedeploy-agent/issues/301#issuecomment-1289322582
For anyone who doesn't know how to do anything like me, here's the noob steps:
- Enter the following command:
touch install-code-deploy-ubuntu22-ec2.sh - Enter the following command:
cat > install-code-deploy-ubuntu22-ec2.sh - Paste the following:
-
#!/bin/bash # This installs the CodeDeploy agent and its prerequisites on Ubuntu 22.04. sudo apt-get update sudo apt-get install ruby-full ruby-webrick wget -y cd /tmp wget https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/releases/codedeploy-agent_1.3.2-1902_all.deb mkdir codedeploy-agent_1.3.2-1902_ubuntu22 dpkg-deb -R codedeploy-agent_1.3.2-1902_all.deb codedeploy-agent_1.3.2-1902_ubuntu22 sed 's/Depends:.*/Depends:ruby3.0/' -i ./codedeploy-agent_1.3.2-1902_ubuntu22/DEBIAN/control dpkg-deb -b codedeploy-agent_1.3.2-1902_ubuntu22/ sudo dpkg -i codedeploy-agent_1.3.2-1902_ubuntu22.deb systemctl list-units --type=service | grep codedeploy
- Press ctrl + d
- Enter the following command:
chmod u+x install-code-deploy-ubuntu22-ec2.sh - Enter the following command:
./install-code-deploy-ubuntu22-ec2.sh - Enter the following command:
sudo service codedeploy-agent status
반응형
'서버 > AWS' 카테고리의 다른 글
AWS EC2 스토리지 용량 추가하기(EBS Volume) (0) | 2022.11.12 |
---|---|
[NestJS]AWS CodePipeline CodeBuild CodeDeploy 를 활용하여 CI/CD 구축하기(작성중) (0) | 2022.11.06 |
개꿀 Lightsail과 EC2와의 Private ip로 내부 통신하기(VPC peering) (0) | 2022.11.05 |
Iwinv 에서 AWS Lightsail 과 EC2로 서버이전하기2 (0) | 2022.11.05 |
Iwinv 에서 AWS Lightsail 과 EC2로 서버이전하기1 (0) | 2022.11.05 |
댓글