Suddely Mogodb openssl stop connecting - connect ECONNREFUSED 127.0.0.1:27017

I am using AWS linux 2023 , installed mongodb openssl… it was working fine. i was able to access it using mongosh and also able to access it through my website but suddenly it stopped.

Current Mongosh Log ID: 651a68e1bd5d207b9792aaad Connecting to: mongodb://127.0.0.1:27017/directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.0.1 connect ECONNREFUSED 127.0.0.1:27017

Current Scenerio Tested

  1. On writing mongosh --version it is running successfully giving 2.0.1 verison exist
  2. Tried checking status it gives

Loaded: loaded (/etc/systemd/system/mongod.service; enabled; preset: disab> Active: failed (Result: exit-code) since Mon 2023-10-02 10:24:00 UTC; 9s a> Duration: 1ms Process: 161134 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=e> Main PID: 161134 (code=exited, status=217/USER) C

Hi @Meenu_Dogra , welcome to the forums.

First check the output from journalctl -u mongod.service that may have more information as to why it failed.