codestates / codestates/33Plan

[Error] Deploy_CodeDeploy 배포 중 `exit code 255` 에러

Open
#112 0 comments 0 reactions 1 assignee Claimed by @SsankQ View on GitHub
Completed Deploy Error
Dominant language
JavaScript
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Description

> 해결된 에러라면 라벨에 'Complete' 를 달아주세요.
> 미해결된 에러라면 라벨을 'In progress' 로 변경해주세요.

### 어떤 에러인가요?

- CodeDeploy 배포 자동화 테스트 중 *“The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems”* 메시지와 함께 배포 실패
- Lifecycle - ApplicationStart 부분에서 실패되어서 `Scripts/start.sh` 쉘 스크립트 파일을 확인했으나 별다른 점을 발견하지 못함

### 에러 메시지

- AWS Console

![eventLog2](https://user-images.githubusercontent.com/89354370/154993810-faa98092-8d12-482d-a7a0-f4a110db1f3c.png)

- EC2 `/opt/codedeploy-agent/deployment-root/deployment-log` 경로에 생성된 로그 파일

![deployLog](https://user-images.githubusercontent.com/89354370/154994929-9fe32a78-ae90-483d-92a1-7f466bb3af68.png)

### 에러 핸들링 방법

- EC2에서 npm, node 버전 최신화 및 npm 캐시 정리

![node,npm](https://user-images.githubusercontent.com/89354370/154995765-87f99dcc-94f7-4892-9571-810018543cbd.png)

### 에러 핸들링을 위해 참고한 레퍼런스 링크

[내 블로그](https://ssankq.github.io/posts/EIF-AWSDeploy/)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.