AWS App Runner Health Check Fails Despite Successful Local Testing

0

Title: "AWS App Runner Health Check Fails Despite Successful Local Testing" Description: I have encountered an issue with the AWS App Runner service. I have created a service in the AWS App Runner, and my code runs successfully locally on port 3000 using HTTP. However, when I deploy it to the App Runner service, the build fails during the health checkup section. I have also tried using TCP, but the error persists. I would appreciate any insights or solutions to resolve this issue. Thank you for your help.

technology used : i am using nuxt2 (SSR) node version is 16

error is: Health check failed on protocol HTTP[Path: '/'], [Port: '3000']. Check your configured port number. For more information, see the application logs. 01-23-2024 12:42:41 PM [AppRunner] Deployment with ID : .....54be failed. Failure reason : Health check failed.

enter image description here

i try with diffrent different port like 3000 default(8080) and also 80 but the issue same also change the protocal to HTTP to TCP but the issue is same.

i am expecting that health check is passed and my webiste is hosted.Enter image description here

1개 답변
1

Hello.

If there are no problems when testing locally, there may be a problem with the container build environment.
Try building the container by specifying the platform as "linux/amd64" using the command below.
https://stackoverflow.com/questions/67361936/exec-user-process-caused-exec-format-error-in-aws-fargate-service

docker buildx build --platform=linux/amd64 -t <image-name> .
profile picture
전문가
답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠