Meteor is unable to start Mongo-DB server with the exit code 14. Even though the mongo server is working fine in the background

I am trying to setup meteor for one of the project and somehow it cannot initiate mongodb server.
I searched for similar solution but nothing really worked out for me.

=> Started proxy.                             
=> Started HMR server.                        
Unexpected mongo exit code 14. Restarting.    
Unexpected mongo exit code 14. Restarting.    
Unexpected mongo exit code 14. Restarting.    
Can't start Mongo server.                     
Unspecified unrecoverable error. Exit was not clean

Although the mongodb server is running smoothly in the terminal as usual.

● mongod.service - MongoDB Database Server
     Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2023-09-17 18:57:09 IST; 18min ago
       Docs: https://docs.mongodb.org/manual
   Main PID: 1166 (mongod)
     Memory: 255.6M
        CPU: 9.444s
     CGroup: /system.slice/mongod.service
             └─1166 /usr/bin/mongod --config /etc/mongod.conf

System configuration and installed version of packages

  • OS: Ubuntu 22.04.1 LTS x86_64
  • node version : v14.21.3
  • npm version : 6.14.18
  • Meteor version : Meteor 2.13.3