I have four instances running on my AWS. Web server on windows, Keycloack gateway on Linux, App server on Linux and DB on Linux. I have a Load balancer through which the traffic is routed to both my web server and gateway. I was getting 502 Bad gateway error when i was trying to access my gateway link, i restarted the instances and the link worked. 2 days later i m getting the 502 gateway error. I restarted all the instances but that didnt help but made things worse. Now my website is also down. I m not an aws engineer and my engineer is out of pocket for family emergency.
The target groups are showing Unhealthy with 2 messages
web server target group unhealthy Health Check Failed
Keycloack target group unhealthy Health Check Failed
I appreciate if someone can give me the command line for both windows and linux instances to go and check if the services or the listener ports are working properly.
Or what other troubleshooting i need to fix this issue.
Thanks