Keywords: NodeJS - AWS - Technical issue - Connectivity (SSH/FTP)
Hello, I have a MEAN NodeJS server trying to connect to a MongoDB database. This application worked perfectly fine for an entire year, untill i decided to stop my AWS EC2 instance due to cost reasons. I have restarted my instance, and suddenly my server will not connect to MongoDB.
I have start MongoDB using:
sudo /opt/bitnami/ctlscript.sh start MonogDB
I have checked that my database is intact using:
I have also started my server using:
sudo npm start
The error I get is:
Mongoose connection error: MongoError: failed to connect to server [ec2-54-211-244-62.compute-1.amazonaws.com:27017] on first connect [MongoError: connection 0 to ec2-54-211-244-62.compute-1.amazonaws.com:27017 timed out]
Could I please get some help with this?