Discussion:
Unable to start up mongod
(too old to reply)
Alan
2018-03-09 18:35:00 UTC
Permalink
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.
To post to this group, send email to mongodb-***@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.
Jorge Rúa
2018-03-09 19:04:41 UTC
Permalink
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*
Post by Alan
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.
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
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
<https://groups.google.com/d/msgid/mongodb-user/79d5002b-dbc3-4235-b23e-f53eb8746568%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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.
To post to this group, send email to mongodb-***@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/CAFtje5P1Q4FcB4FAmHEBEYFGEmcAszF1tSMGepWMY_cnosKMeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Alan
2018-03-09 19:30:03 UTC
Permalink
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
Post by Jorge Rúa
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*
Post by Alan
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.
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
<javascript:>.
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
<https://groups.google.com/d/msgid/mongodb-user/79d5002b-dbc3-4235-b23e-f53eb8746568%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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.
To post to this group, send email to mongodb-***@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/3a6b329f-a834-42b7-9550-f42d1b4f3709%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jorge Rúa
2018-03-09 19:42:16 UTC
Permalink
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:

https://docs.mongodb.com/manual/release-notes/3.6-compatibility/
https://docs.mongodb.com/manual/reference/command/setFeatureCompatibilityVersion/#view-fcv

Hope it helps,
Post by Alan
destination: file
path: "/var/log/mongodb/mongod.log"
logAppend: true
dbPath: "/data/db"
enabled: true
port: 27017
enabled: false
JSONPEnabled: false
RESTInterfaceEnabled: false
enableLocalhostAuthBypass: false
authorization: enabled
Post by Jorge Rúa
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*
Post by Alan
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.
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
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/mongodb-user/79d5002b-dbc3-4235-b23e-f53eb8746568%40googlegroups.com
<https://groups.google.com/d/msgid/mongodb-user/79d5002b-dbc3-4235-b23e-f53eb8746568%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
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
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/3a6b329f-a834-42b7-9550-f42d1b4f3709%40googlegroups.com
<https://groups.google.com/d/msgid/mongodb-user/3a6b329f-a834-42b7-9550-f42d1b4f3709%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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.
To post to this group, send email to mongodb-***@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/CAFtje5M6XcdkcgDthtdpXUy1iQtQm65Un3z2k%3D%3Dnq38pFHuSYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Alan
2018-03-09 19:55:15 UTC
Permalink
Thank Jorge, I'll give it a try.
Post by Jorge Rúa
Hi Alan,
I suggest you to take a look to these two links and try to determine whats
https://docs.mongodb.com/manual/release-notes/3.6-compatibility/
https://docs.mongodb.com/manual/reference/command/setFeatureCompatibilityVersion/#view-fcv
Hope it helps,
Post by Alan
destination: file
path: "/var/log/mongodb/mongod.log"
logAppend: true
dbPath: "/data/db"
enabled: true
port: 27017
enabled: false
JSONPEnabled: false
RESTInterfaceEnabled: false
enableLocalhostAuthBypass: false
authorization: enabled
Post by Jorge Rúa
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*
Post by Alan
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.
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
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
<https://groups.google.com/d/msgid/mongodb-user/79d5002b-dbc3-4235-b23e-f53eb8746568%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
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
<javascript:>.
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/3a6b329f-a834-42b7-9550-f42d1b4f3709%40googlegroups.com
<https://groups.google.com/d/msgid/mongodb-user/3a6b329f-a834-42b7-9550-f42d1b4f3709%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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.
To post to this group, send email to mongodb-***@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/bee8dde1-2994-43cb-a0d8-6c9aa3dc893d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alan
2018-03-10 00:04:06 UTC
Permalink
Jorge or anyone,

I've tried the two links Jorge suggested, but still having the same
problem. Please help.
Post by Alan
Thank Jorge, I'll give it a try.
Post by Jorge Rúa
Hi Alan,
I suggest you to take a look to these two links and try to determine
https://docs.mongodb.com/manual/release-notes/3.6-compatibility/
https://docs.mongodb.com/manual/reference/command/setFeatureCompatibilityVersion/#view-fcv
Hope it helps,
Post by Alan
destination: file
path: "/var/log/mongodb/mongod.log"
logAppend: true
dbPath: "/data/db"
enabled: true
port: 27017
enabled: false
JSONPEnabled: false
RESTInterfaceEnabled: false
enableLocalhostAuthBypass: false
authorization: enabled
Post by Jorge Rúa
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*
Post by Alan
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.
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
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
<https://groups.google.com/d/msgid/mongodb-user/79d5002b-dbc3-4235-b23e-f53eb8746568%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "mongodb-user"
group.
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
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/3a6b329f-a834-42b7-9550-f42d1b4f3709%40googlegroups.com
<https://groups.google.com/d/msgid/mongodb-user/3a6b329f-a834-42b7-9550-f42d1b4f3709%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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.
To post to this group, send email to mongodb-***@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/222089f4-7435-4077-83bf-dc806b4830f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Wan Bachtiar' via mongodb-user
2018-03-27 22:30:04 UTC
Permalink
but still having the same problem. Please help.

Hi Alan,

Please note that the deprecated options for HTTP Interface and REST API
<https://docs.mongodb.com/manual/release-notes/3.6-compatibility/#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 <https://docs.mongodb.com/manual/reference/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
<https://docs.mongodb.com/manual/release-notes/3.6-upgrade-standalone/#upgrade-a-standalone-to-3-6>
a useful reference.

Regards,
Wan.
​
--
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.
To post to this group, send email to mongodb-***@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/ec2c3927-68dc-4b1b-874d-d7c7f7375713%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...