App Runner Health Check fails although Application logs show already receiving the request.

0

I am trying to deploy a new App Runner service. I am using aws cli such that I can configure the health check to use HTTP. I make it to use HTTP and port 8080, and a custom path "health-check/". In my application logs, I will print the request received on this path and I am able to see it being printed, meaning I successfully received the request. The response I return is plain text "OK". But the service creation always fails with error

12-07-2022 01:04:51 AM [AppRunner] Health check on port '8080' failed. Service is rolling back. Check your configured port number. For more information, read the application logs. 12-07-2022 12:58:38 AM [AppRunner] Performing health check on path 'health-check/' and port '8080'. 12-07-2022 12:58:28 AM [AppRunner] Provisioning instances and deploying image for publicly accessible service. 12-07-2022 12:58:15 AM [AppRunner] Successfully pulled image from ECR. 12-07-2022 12:55:38 AM [AppRunner] Service status is set to OPERATION_IN_PROGRESS. 12-07-2022 12:55:38 AM [AppRunner] Service creation started.

질문됨 일 년 전386회 조회
3개 답변
0

Hi @rePost-User-3387005, I work for App Runner service team, can you please share the App Runner service ARN so we can look into it and share you some insights. Thanks

AWS
Hari
답변함 일 년 전
  • Hi @Hari, thanks for responding. I don't want to share the ARN here in public for security concern. If you can provide an email address or private chat, I can share the ARN.

0

Hi @Hari, to provide more information, I managed to fix this issue by only doing one thing, that is changing my port from 8080 to 80. This plus that I can confirm my application can receive requests at 8080, making me think the 8080 port is blocked for egress data. Can you check with the AppRunner team whether that is the case and if yes why? thanks

답변함 일 년 전
  • Hi, I work for App Runner service team and I can confirm we dont reserve any port. I think probably health check would have failed in 8080, after switching to right port (80) everything would have started working.

0

I am having the similar issue . Is this resolved . I tried both 8080 and 80 ports but no luck

답변함 일 년 전

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

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

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

관련 콘텐츠