mongodb not working after Lightsail MEAN instance upgrade

0

Create a new Lightsail MEAN instance(2GB ram) using snapshot from another Lightsail MEAN instance (512mb ram). Both instances are in same region. Everything working as except mongo db.

I am getting this error when trying to connect to MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017

I tried to start mongo - sudo service mongodb start and getting below message Failed to start mongodb.service: Unit mongodb.service not found.

mongo was working in the previous instance. Should we do anything else after creating an instance from snapshot?

Any help is truly appreciated.

paul
demandé il y a 2 ans212 vues
1 réponse
0

Not sure about what caused this. I created another instance from a previous snapshot and it worked magically. Strange though.

paul
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions