Installing error of mongodb in ubuntu 16.04 - node.js

I installed mongodb in my ubuntu and then when i run it i got active but after that i uninstalled it,then again i installed ,then when i start it i am getting error as
● mongodb.service - High-performance, schema-free document-oriented database
Loaded: loaded (/etc/systemd/system/mongodb.service; disabled; vendor preset:
Active: failed (Result: exit-code) since Tue 2017-02-14 14:11:21 IST; 21s ago
Process: 1314 ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf (cod
Main PID: 1314 (code=exited, status=14)
Can anyone please help me thanks.

Related

restarting problem on my database mongodb

I've got a problem with my mongo db (my OS is ubuntu), i tried to restart my mongodb but when i execute the command
systemctl restart mongod
the status of mongodb respond with
mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset>
Active: failed (Result: exit-code) since Thu 2023-02-09 10:11:18 CET; 8s a>
Docs: https://docs.mongodb.org/manual
Process: 11215 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=ex>
Main PID: 11215 (code=exited, status=14)
CPU: 29ms
I restarted because i've got a problem with my web app, the path of my database doesn't work when i tried to execute the command :
mongod --dbpath ./db
i executed this command on my server file which contain the file ./db

problem code=exited, status=203/EXEC) when systemctl start odoo15

I installed odoo 15 in vps and when I try start odoo15 by run
systemctl start odoo15
after that run :
systemctl status odoo15
I installed odoo 15 in vps and when I try start odoo15 by run
systemctl start odoo15
after that run
systemctl status odoo15
`● odoo15.service - Odoo15
Loaded: loaded (/etc/systemd/system/odoo15.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2023-01-05 12:25:15 UTC; 8s ago
Process: 19453 ExecStart=/opt/odoo/odoo15-venv/bin/python3 /opt/odoo/odoo15/odoo-bin -c /etc/odoo.conf (code=exited, status=203/EXEC)
Main PID: 19453 (code=exited, status=203/EXEC)
Jan 05 12:25:15 vps103.com\ systemd[1]:\ Started\ Odoo15.
Jan\ 05\ 12:25:15\ vps103.com\ systemd[1]:\ odoo15.service:\ main\ proces...C
Jan\ 05\ 12:25:15\ vps103.com\ systemd[1]:\ Unit\ odoo15.service\ entered....
Jan\ 05\ 12:25:15\ vps103.com systemd[1]: odoo15.service failed.
`
Can any one help me, please?
thanks alot

mongod.service - MongoDB Database Server - Main PID: 4565 (code=exited, status=48)

my question is similar like this
but all the answer of given here are not working for me ? My etc/mongod.conf file like this and start the server
bindIp: 127.0.0.1,<sameserverIP>,<anotherServerIp>
If i run systemctl status mogod i got following response:
mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-12-27 14:12:42 +0545; 2min 36s ago
Docs: https://docs.mongodb.org/manual
Process: 5493 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=48)
Main PID: 5493 (code=exited, status=48)
and if i change my etc/mongod.conf file like this and restart server
bindIp: 127.0.0.1,<sameserverIP>
then the mongodb server will work fine here is the output of systemctl status mongod
mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-12-27 13:47:45 +0545; 10s ago
Docs: https://docs.mongodb.org/manual
Main PID: 4608 (mongod)
Memory: 211.8M
CGroup: /system.slice/mongod.service
└─4608 /usr/bin/mongod --config /etc/mongod.conf
I tried checking journal also using this command journalctl -u mongod
Dec 27 14:12:42 178-79-149-108.ip.linodeusercontent.com systemd[1]: Started MongoDB Database Server.
Dec 27 14:12:42 178-79-149-108.ip.linodeusercontent.com systemd[1]: mongod.service: Main process exited, code=exited, status=48/n/a
Dec 27 14:12:42 178-79-149-108.ip.linodeusercontent.com systemd[1]: mongod.service: Failed with result 'exit-code'.
This mongo server is installed in linode ubuntu 2020.04 lts from linode marketplace and mongodb version is 5.0.14. i want to give access to only 4 ipaddress in this mongodb can any one help me fix this issue?

MongoDB not starting properly on Ubuntu 18.04.2 LTS

root#HangoutRoot:/Bot# sudo systemctl status mongod
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-06-08 08:57:25 PDT; 5s ago
Docs: https://docs.mongodb.org/manual
Process: 2241 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=48)
Main PID: 2241 (code=exited, status=48)
Jun 08 08:57:25 HangoutRoot systemd[1]: Started MongoDB Database Server.
That's what I get when I check the status of the mongodb server using sudo systemctl status mongod
Try this command : sudo systemctl enable mongod
After this:
run this command
sudo service mongod restart
If this still do not work I think reinstalling mongo would be a better solution.
To re-install mongo follow the the process of accepted answer from this link:
https://askubuntu.com/questions/884541/cant-start-mongodb-service

mongodb service on debian

I have installed monogodb with this procedure :
Mongodb on Debian
The service mongod is running.
$ service mongod status
mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/lib/systemd/system/mongod.service; disabled)
Active: active (running) since Fri 2016-11-04 09:29:04 CET; 1 weeks 5 days ago
Main PID: 957 (mongod)
CGroup: /system.slice/mongod.service
└─957 /usr/bin/mongod --quiet --config /etc/mongod.conf
Nov 04 09:29:04 serv01 systemd[1]: Started High-performance, schema-free document-oriented database.
I didn't find the init script of this instance :
$ service --status-all | grep mon
[ + ] smartmontools
and whereis mongod:
mongod: /usr/bin/mongod /etc/mongod.conf /usr/share/man/man1/mongod.1.gz
Where is the mongod init script stored?

Resources