1

So, we run a React website and a node backend on an EC2 instance. The damn thing keeps crashing randomly every other day. I’ve given up at this point.

P.S. any tips on how to prevent this is much appreciated

Comments
  • 1
    First you need to find out which one is crashing. I'm hoping, you're using pm2
    If yes, then try pm2 logs
    This way, this can see the logs and find out which one is crashing and why
  • 0
    @Xoka thanks Yup we’re using pm2, but I can’t even ash into the instance when it crashes.

    I basically, stop the instance start it again and then use pm2 start the web app.
  • 0
    @molaram I don’t really understand, do you want me to post the logs here?
  • 1
    It sounds like your logging system is non-existent; perhaps consider looking into observability and monitoring tools.
Add Comment