long time lurker first post lol our Spring Boot app sits behind nginx on teh same VM. It listens on 5000. Its been fine for months, but now after a reboot we get this:

502 Bad Gateway
nginx
if i SSH in and curl localhost:5000 i get a 200 instantly. restarting nginx fixes it for a while, im out of ideas and support tickets are piling up.
config hasnt changed in ages, as far as I know. the nginx config test passes, the apps own logs look normal, and CPU and memory on teh box are fine. what sohuld I check first so I stop guessing? im about to throw this thing out the window lol




