DAEMONUSER=${DAEMONUSER:-mongodb}
DAEMONGROUP=${DAEMONGROUP:-mongodb}If I'm reading that right. What am I missing? |
--
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 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/fa4656e1-51eb-44f2-a577-26042df025f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Carl,
As Oleg mentioned, this sounds like a permission issue in your custom data directory.
The log output from sudo service mongod start you provided appear truncated, but I assume it look similar to this:
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-02-20 04:05:14 UTC; 3s ago
Docs: https://docs.mongodb.org/manual
Process: 2579 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=1/FAILURE)
Main PID: 2579 (code=exited, status=1/FAILURE)
Feb 20 04:05:14 xxxx systemd[1]: Started MongoDB Database Server.
Feb 20 04:05:14 xxxx mongod[2579]: 2019-02-20T04:05:14.761+0000 F CONTROL [main] Failed global initialization: FileNotOpen: Failed to open "/media/mdb/data/mongod.log"
Feb 20 04:05:14 xxxx systemd[1]: mongod.service: Main process exited, code=exited, status=1/FAILURE
Feb 20 04:05:14 xxxx systemd[1]: mongod.service: Failed with result 'exit-code'.
Note the line Failed to open ... above. Is your output showing similar thing? In my experiment, this was caused by the mongodb user not having access to the directory /media/mdb/data.
You might want to double check if the directories /media, /media/carl, /media/carl/data are all world-executable (permission set to at least 755).
Best regards,
Kevin
--
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 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/f4f426e3-65f1-47a4-becb-8843933605e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.