본문 바로가기
WEB/spring boot

[spring boot] AWS 배포 테스트하면서 부딪혔던 문제점, 해결에 참고한 포스팅 정리2

by baam 2023. 3. 24.

[EC2 Amazon Linux1]

CodeDeploy 설치 과정에서 ruby 설치 후 

 sudo ./install auto

위 문구를 실행했는데,

/usr/share/ruby3.2/logger/log_device.rb:83:in `exist?': no implicit conversion of Array into String (TypeError)

          if File.exist?(path)
                         ^^^^
        from /usr/share/ruby3.2/logger/log_device.rb:83:in `set_dev'
        from /usr/share/ruby3.2/logger/log_device.rb:18:in `initialize'
        from /usr/share/ruby3.2/logger.rb:587:in `new'
        from /usr/share/ruby3.2/logger.rb:587:in `initialize'
        from ./install:43:in `new'
        from ./install:43:in `<main>'

자꾸만 위와 같은 문제로 설치에 실패했다.

정말 수도 없이 구글링하고 ruby를 삭제했다가 다른 버전으로도 깔아보고 rvm으로도 재설치해보고 별짓을 다했는데

누군가의 github에서 파도를 타고 넘어가서 나와 같은 문제에 직면한 사람을 만났다.

 

https://github.com/amazonlinux/amazon-linux-2023/issues/277

 

[Bug] - Installation of CodeDeploy agent fails · Issue #277 · amazonlinux/amazon-linux-2023

Describe the bug Following the instructions of installing the CodeDeploy agent (https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install-linux.html). The installa...

github.com

 

위 깃허브를 참고하여 나는 region 관련부분을 ap-northeast-2로 변경해서 다음 코드를 순차적으로 실행해주었다.

dnf install ruby
curl -k https://aws-codedeploy-ap-northeast-2.s3.amazonaws.com/latest/install -o install
chmod +x install
./install auto

 

그리고 마침내

Agent 실행 확인! 이제 다음단계로 가자ㅠㅠ

같은 문제를 겪고 계신 분들에게 도움이 되길 바랍니다 : )

댓글