Devops/AWS

[AWS] beanstalk healthd.conf not foud μ—λŸ¬ λ°œμƒ 원인 및 ν•΄κ²° 방법

yuri lee 2023. 12. 11. 23:17
λ°˜μ‘ν˜•

Intro

μ•ˆλ…•ν•˜μ„Έμš”. beanstalk λΉˆμŠ€ν†‘μ„ μ‚¬μš©ν•˜μ—¬ 배포 ν™˜κ²½μ„ κ΅¬μ„±ν•˜λ˜ 도쀑 μ•„λž˜μ˜ μ—λŸ¬κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. 

 

healthd.conf not foud

 

 

[ERROR] An error occurred during execution of command [app-deploy] - [start proxy with new configuration]. Stop running the command. Error: copy proxy conf from staging failed with error validate nginx configuration failed with error Command /bin/sh -c /usr/sbin/nginx -t -c /var/proxy/staging/nginx/nginx.conf failed with error exit status 1. Stderr:nginx: [emerg] open() "/var/proxy/staging/nginx/conf.d/elasticbeanstalk/healthd.conf" failed (2: No such file or directory) in /var/proxy/staging/nginx/nginx.conf:54
nginx: configuration file /var/proxy/staging/nginx/nginx.conf test failed

 

Why?

ν•΄λ‹Ή μΈμŠ€ν„΄μŠ€ 경둜둜 λ“€μ–΄κ°€ 확인을 ν•΄λ³΄λ‹ˆ healthd.conf 파일이 μƒμ„±λ˜μ–΄ μžˆμ§€ μ•Šμ€ 것을 λ³Ό 수 μžˆμ—ˆμŠ΅λ‹ˆλ‹€. κ²½λ‘œλŠ” μ•„λž˜μ™€ κ°™μŠ΅λ‹ˆλ‹€. 

/var/proxy/staging/nginx/conf.d/elasticbeanstalk/healthd.conf

 

How to solve the problem

ꡬ글링을 ν•΄λ³΄λ‹ˆ, λΉˆμŠ€ν†‘ ν™˜κ²½ ꡬ성 쀑 λͺ¨λ‹ˆν„°λ§μ˜ μ‹œμŠ€ν…œμ„ 기본으둜 μ„€μ •ν•˜λ©΄ λ‹€μŒκ³Ό 같은 μ—λŸ¬κ°€ λ°œμƒν•  수 μžˆλ‹€κ³  ν•©λ‹ˆλ‹€. 

 

ν™˜κ²½ ꡬ성 쀑 λͺ¨λ‹ˆν„°λ§μ˜ μƒνƒœλ³΄κ³ μ—μ„œ 강화됨을 체크할 경우 ν•΄λ‹Ή 파일이 μžλ™ μƒμ„±λ˜μ–΄ 더이상 μ—λŸ¬κ°€ λ°œμƒν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. 

λ°˜μ‘ν˜•