![]() I had this issue on different occasions for different reasons: I had this on Raspberry Pi as well as on my Ubuntu server. But again if I change the data directory to default ( /var/lib/mongodb) it works fine. The data directory I have created has the all permissions for the user. Subject: Unit rvice has failedĬan anyone help me to fix this? Thanks!!! Subject: Unit rvice has begun with start-up Unit session-20.scope has finished starting up. Subject: Unit session-20.scope has finished start-up Mar 18 11:30:01 localhost systemd: Started Session 20 of user root. Unit session-20.scope has begun starting up. Subject: Unit session-20.scope has begun with start-up Mar 18 11:30:01 localhost systemd: Starting Session 20 of user root. When I give journalctl -xn I get the below: - Logs begin at Wed 08:56:56 IST, end at Wed 11:35:56 IST. Mar 18 11:35:56 localhost systemd: Unit rvice entered failed state. Mar 18 11:35:56 localhost systemd: Failed to start SYSV: Mongo is a scalable, document-oriented database. Mar 18 11:35:56 localhost systemd: rvice: control process exited, code=exited status=1 Mar 18 11:35:56 localhost mongod: Starting mongod: Mar 18 11:35:56 localhost runuser: pam_unix(runuser:session): session closed for user mongod Mar 18 11:35:56 localhost runuser: pam_unix(runuser:session): session opened for user mongod by (uid=0) Mar 18 11:35:56 localhost systemd: Starting SYSV: Mongo is a scalable, document-oriented database. ![]() Main PID: 10509 (code=exited, status=0/SUCCESS) ![]() Process: 10841 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=1/FAILURE) Process: 10672 ExecStop=/etc/rc.d/init.d/mongod stop (code=exited, status=0/SUCCESS) When I give systemctl status rvice I get the below: Loaded: loaded (/etc/rc.d/init.d/mongod)Īctive: failed (Result: exit-code) since Wed 11:35:56 IST 22s ago ![]() See 'systemctl status rvice' and 'journalctl -xn' for details. But I get the below error: Restarting mongod (via systemctl): Job for rvice failed. I restarted the server again and I started the service. Then I changed the data directory and log path in the configuration file. I started the service using service mongod start. I have installed a mongodb instance using yum. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |