[SERVER-25390] Starting mongod (via systemctl): Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details.[FAILED] Created: 02/Aug/16  Updated: 21/Sep/16  Resolved: 21/Sep/16

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 3.0.12
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Karisiddappa Shiva Kumar Assignee: Kelsey Schubert
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

sudo systemctl start mongod
[sudo] password for isc-dev:
Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details.
[isc-dev@cor181db01 logs]$

Participants:

 Description   

unable to start mongodb as a service.
it fails with error as
Starting mongod (via systemctl): Job for mongod.service failed. See 'systemctl status mongod.service' and 'journalctl -xn' for details.
[FAILED]

we are able to start with mongod --config /etc/mongod.conf
2016-08-02T07:12:16.012+0000 I CONTROL ** WARNING: --rest is specified without --httpinterface,
2016-08-02T07:12:16.012+0000 I CONTROL ** enabling http interface
about to fork child process, waiting until server is ready for connections.
forked process: 56338
child process started successfully, parent exiting



 Comments   
Comment by Kelsey Schubert [ 21/Sep/16 ]

Hi kumar_kshiva,

We haven’t heard back from you for some time, so I’m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket.

Regards,
Thomas

Comment by Kelsey Schubert [ 06/Sep/16 ]

HI kumar_kshiva,

We still need additional information to diagnose the problem. If this is still an issue for you, would you please address my questions above?

Thank you,
Thomas

Comment by Kelsey Schubert [ 18/Aug/16 ]

Hi kumar_kshiva,

To help us continue to investigate this issue, please answer the following questions.

  1. How did you install mongodb?
  2. Which distribution are you using?
  3. Did you modify your installation configuration or service file?
  4. Please post the contents of your service file and config file.

Thank you,
Thomas

Comment by Karisiddappa Shiva Kumar [ 04/Aug/16 ]

from where should i run this command.

-bash-4.2$ journalctl -xn
No journal files were found.
-bash-4.2$

I noticed the below messages in /var/log/audit/audit.log.

type=USER_AUTH msg=audit(1470296375.260:92604): pid=2688 uid=996 auid=996 ses=203 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:authentication acct="mongod" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=failed'
type=USER_AUTH msg=audit(1470296380.863:92605): pid=2688 uid=996 auid=996 ses=203 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:authentication acct="mongod" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=failed'

Comment by Ramon Fernandez Marina [ 02/Aug/16 ]

kumar_kshiva, can you please post the contents of the service file, the output of journalctl -xn, and any other information that can help us determine if this is an issue with our startup scripts?

Thanks,
Ramón.

Generated at Thu Feb 08 04:09:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.