Mongod service failed to start

please help me :sob: ; after finally managed to get the graylog working normally & receiving syslog messages; it suddenly stopped!!

after investigation i noticed that Mongod service is failed & unfortunately i could not get it up again after many trials.

N.B.: i don’t know if the below last changes are the reason for that or not ??

(  898  semanage port -l | grep syslog
  899  yum install semanage
  900  yum provides /usr/sbin/semanage
  901  yum provides *semanage
  902  yum whatprovides /usr/sbin/semanage
  903  yum install policycoreutils-python
  904  semanage port -l | grep syslog
  905  semanage port -a -t syslogd_port_t -p tcp 1514
  906  semanage port -l
  907  semanage port -l | grep 514
  908  semanage port -l | grep syslog
  909  semanage port -a -t syslogd_port_t -p tcp 1514
  910  semanage port -l | grep syslog
  911   
)
[root@Syslog_Trial ~]# systemctl status -l mongod.service
● mongod.service - SYSV: Mongo is a scalable, document-oriented database.
   Loaded: loaded (/etc/rc.d/init.d/mongod; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2017-11-21 13:27:34 EET; 52min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1882 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=127)

Nov 21 13:27:34 Syslog_Trial systemd[1]: Starting SYSV: Mongo is a scalable, document-oriented database....
Nov 21 13:27:34 Syslog_Trial mongod[1882]: /etc/rc.d/init.d/mongod: line 10: /etc/rc.d/init.d/functions: No such file or directory
Nov 21 13:27:34 Syslog_Trial mongod[1882]: Starting mongod: /etc/rc.d/init.d/mongod: line 69: daemon: command not found
Nov 21 13:27:34 Syslog_Trial systemd[1]: mongod.service: control process exited, code=exited status=127
Nov 21 13:27:34 Syslog_Trial systemd[1]: Failed to start SYSV: Mongo is a scalable, document-oriented database..
Nov 21 13:27:34 Syslog_Trial systemd[1]: Unit mongod.service entered failed state.
Nov 21 13:27:34 Syslog_Trial systemd[1]: mongod.service failed.
[root@Syslog_Trial ~]# journalctl -xe
..........................................
-- Subject: Unit mongod.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit mongod.service has begun starting up.
Nov 21 13:27:34 Syslog_Trial mongod[1882]: /etc/rc.d/init.d/mongod: line 10: /etc/rc.d/init.d/functions: No such file or directory
Nov 21 13:27:34 Syslog_Trial mongod[1882]: Starting mongod: /etc/rc.d/init.d/mongod: line 69: daemon: command not found
Nov 21 13:27:34 Syslog_Trial systemd[1]: mongod.service: control process exited, code=exited status=127
Nov 21 13:27:34 Syslog_Trial systemd[1]: Failed to start SYSV: Mongo is a scalable, document-oriented database..
-- Subject: Unit mongod.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit mongod.service has failed.
-- 
-- The result is failed.
Nov 21 13:27:34 Syslog_Trial systemd[1]: Unit mongod.service entered failed state.
Nov 21 13:27:34 Syslog_Trial systemd[1]: mongod.service failed.
Nov 21 13:27:34 Syslog_Trial polkitd[682]: Unregistered Authentication Agent for unix-process:1876:345640 (system bus name :1.36, o

Are you sure that MongoDB has been installed on that machine?

Yes jochen

If there’s any show commands you want me to do please mention them

I have 1 machine carrying all services required to implement 1 independent syslog service:

Graylog, elastic search, mongodb and syslog-ng

can any one help me please?

Mohamed, this is no real-time private support.

If you require support with hard SLA, please consider buying Graylog Enterprise support: https://www.graylog.org/enterprise

i want to add that the mongod service became up after applying: /etc/init.d/mongod start

bur now i’ve another issue, that is web result in following error : “Server currently unavailable”

Actually I’m in the beginning to try a new solution for syslog with graylog and if succeeded it will replace the legacy existing solution.

So meanwhile I am not ready for buying any SLA.

I didn’t ask for real time support. I’m only asking for support from those who can.

You might have messed up the mongo db config / init files.
It might not be worth your time debugging this.

Instead, you may just take a backup of the mongo db database files and reinstall Mongo DB.
Try replacing the mongodb database files.

If that doesn’t work, you may start with a fresh database and start over again.

Thanks Sachin for you support

The mongodb service became up applying: /etc/init.d/mongod start

But there is another different issue I’m. Working on and if still not solved I’ll post it

Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.