Unable to start up mongod

1,802 views
Skip to first unread message

Alan

unread,
Mar 9, 2018, 1:35:00 PM3/9/18
to mongodb-user
Hi,

I have just upgraded mongodb from version 3.4 to 3.6.3, but now the mongo server won't start up.  When I try to start up the service with "sudo service mongod start", I get the following message. I'm running on Ubuntu 16.04.3 LTS.  Anyone please help. 

● mongod.service - High-performance, schema-free document-oriented database
   Loaded: loaded (/etc/systemd/system/mongod.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2018-03-09 08:27:46 HST; 3min 1s ago
     Docs: https://docs.mongodb.org/manual
  Process: 17401 ExecStop=/usr/local/mongodb/bin/mongod --shutdown (code=exited, status=1/FAILURE)
  Process: 17398 ExecStart=/usr/local/mongodb/bin/mongod --quiet --config /usr/local/etc/mongod.conf (code=exited, status=2)
 Main PID: 17398 (code=exited, status=2)
Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: Started High-performance, schema-free document-oriented database.
Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: mongod.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: mongod.service: Control process exited, code=exited status=1
Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: mongod.service: Unit entered failed state.
Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: mongod.service: Failed with result 'exit-code'.

Jorge Rúa

unread,
Mar 9, 2018, 2:05:28 PM3/9/18
to mongod...@googlegroups.com
Can you post your config file /usr/local/etc/mongod.conf ?

Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: mongod.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/79d5002b-dbc3-4235-b23e-f53eb8746568%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alan

unread,
Mar 9, 2018, 2:30:03 PM3/9/18
to mongodb-user
Hi Jorge, here is my config file:

systemLog:
   destination: file
   path: "/var/log/mongodb/mongod.log"
   logAppend: true
storage:
   dbPath: "/data/db"
   journal:
      enabled: true
net:
   port: 27017
   http:
      enabled: false
      JSONPEnabled: false
      RESTInterfaceEnabled: false
setParameter:
   enableLocalhostAuthBypass: false
security:
   authorization: enabled



On Friday, March 9, 2018 at 9:05:28 AM UTC-10, Jorge Rúa wrote:
Can you post your config file /usr/local/etc/mongod.conf ?

Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: mongod.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

2018-03-09 19:35 GMT+01:00 Alan <tngu...@gmail.com>:
Hi,

I have just upgraded mongodb from version 3.4 to 3.6.3, but now the mongo server won't start up.  When I try to start up the service with "sudo service mongod start", I get the following message. I'm running on Ubuntu 16.04.3 LTS.  Anyone please help. 

● mongod.service - High-performance, schema-free document-oriented database
   Loaded: loaded (/etc/systemd/system/mongod.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2018-03-09 08:27:46 HST; 3min 1s ago
     Docs: https://docs.mongodb.org/manual
  Process: 17401 ExecStop=/usr/local/mongodb/bin/mongod --shutdown (code=exited, status=1/FAILURE)
  Process: 17398 ExecStart=/usr/local/mongodb/bin/mongod --quiet --config /usr/local/etc/mongod.conf (code=exited, status=2)
 Main PID: 17398 (code=exited, status=2)
Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: Started High-performance, schema-free document-oriented database.
Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: mongod.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: mongod.service: Control process exited, code=exited status=1
Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: mongod.service: Unit entered failed state.
Mar 09 08:27:46 ldmongodb01_u2 systemd[1]: mongod.service: Failed with result 'exit-code'.

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.

Jorge Rúa

unread,
Mar 9, 2018, 2:43:00 PM3/9/18
to mongod...@googlegroups.com
Hi Alan,

I suggest you to take a look to these two links and try to determine whats the deprecated/invalid config directive on your new 3.6 cluster:


Hope it helps,

To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.

To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.

Alan

unread,
Mar 9, 2018, 2:55:15 PM3/9/18
to mongodb-user
Thank Jorge, I'll give it a try.

Alan

unread,
Mar 9, 2018, 7:04:06 PM3/9/18
to mongodb-user
Jorge or anyone,

I've tried the two links Jorge suggested, but still having the same problem.  Please help.

Wan Bachtiar

unread,
Mar 27, 2018, 6:30:05 PM3/27/18
to mongodb-user

but still having the same problem. Please help.

Hi Alan,

Please note that the deprecated options for HTTP Interface and REST API have been removed in MongoDB v3.6. This may be the cause of the mongod server unable to start up.

For more information about MongoDB 3.6 configuration file, please see Configuration Options.

I’d also suggest to check your mongod log file located in “/var/log/mongodb/mongod.log”.

You may also find Upgrade a standalone to 3.6 a useful reference.

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages