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

๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณด๋‹ˆ, ๋นˆ์Šคํ†ก ํ™˜๊ฒฝ ๊ตฌ์„ฑ ์ค‘ ๋ชจ๋‹ˆํ„ฐ๋ง์˜ ์‹œ์Šคํ…œ์„ ๊ธฐ๋ณธ์œผ๋กœ ์„ค์ •ํ•˜๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. 

 

ํ™˜๊ฒฝ ๊ตฌ์„ฑ ์ค‘ ๋ชจ๋‹ˆํ„ฐ๋ง์˜ ์ƒํƒœ๋ณด๊ณ ์—์„œ ๊ฐ•ํ™”๋จ์„ ์ฒดํฌํ•  ๊ฒฝ์šฐ ํ•ด๋‹น ํŒŒ์ผ์ด ์ž๋™ ์ƒ์„ฑ๋˜์–ด ๋”์ด์ƒ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. 

๋ฐ˜์‘ํ˜•