fix: 배포 스크립트 작업 디렉터리 미설정으로 인한 부팅 실패 수정#195
Conversation
CodeDeploy가 deploy.sh를 실행할 때 작업 디렉터리가 /(루트)라서, logback-spring.xml의 상대경로(./logs)가 /logs로 해석되어 권한 오류로 앱 부팅이 실패하고 있었음 (PR #193부터 발생, staging 다운 상태였음). 스크립트 시작 시 APP_DIR로 cd하여 상대경로가 올바르게 해석되도록 수정.
|
Warning Review limit reached
Next review available in: 45 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
작업 배경
runnect-staging)가 PR 모니터링 인프라 구축: ELK + Prometheus/Grafana + Slack 알림 #193 머지 시점(10:38)부터 계속 다운 상태였음. CodeDeploy 로그로 확인한 실제 원인 수정.변경 사항
scripts/deploy.shcd "$APP_DIR"추가영향 범위
deploy.sh를 실행할 때 작업 디렉터리가/(루트)라서,logback-spring.xml의 상대경로(./logs)가/logs로 해석되어ec2-user권한으로 생성 불가 → Logback 초기화 실패 → 앱 부팅 자체가 실패codedeploy-agent-deployments.log) 확인 결과 PR 모니터링 인프라 구축: ELK + Prometheus/Grafana + Slack 알림 #193(10:38), PR feat: OTel agent 감지 시 -javaagent 자동 적용 #194(11:18) 배포 모두 헬스체크 10회 실패로 "배포 실패" 기록되어 있었음. GitHub Actions는aws deploy create-deployment호출 후 결과를 기다리지 않는 구조라 워크플로우 자체는 "성공"으로 표시되어 발견이 늦어짐cd "$APP_DIR"추가로 상대경로가 앱 디렉터리 기준으로 올바르게 해석되어 로그 파일 생성 가능Test Plan
bash -n scripts/deploy.sh문법 검증🤖 Generated with Claude Code