mongo db (mongodb.service) failed, status 14
I am experiencing the following problem using mongodb.
This is the error, when I check the status:
Screenshot of the error (mongodb.service, status 14)
Screenshot of code in the mongod.config file
Screenshot of the log file
I have tried uninstalling mongodb following every step from the website and install everything again and when I check the status I still get the same error. I have posted the screenshot of the error.
I am using MacBook pro if this matters.
Would really appreciate, if someone can help me fix this.
database mongodb web
add a comment |
I am experiencing the following problem using mongodb.
This is the error, when I check the status:
Screenshot of the error (mongodb.service, status 14)
Screenshot of code in the mongod.config file
Screenshot of the log file
I have tried uninstalling mongodb following every step from the website and install everything again and when I check the status I still get the same error. I have posted the screenshot of the error.
I am using MacBook pro if this matters.
Would really appreciate, if someone can help me fix this.
database mongodb web
see if there's anything in log file. You can find log file path in/etc/mongod.conf
.
– yaoxing
Nov 25 '18 at 17:37
@yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..
– Ivan C
Nov 25 '18 at 18:56
You need to take a loot at/var/log/mongodb/mongod.log
. See if there's anything interesting inside.
– yaoxing
Nov 26 '18 at 1:46
I have attached screenshot of the log file.
– Ivan C
Nov 26 '18 at 9:55
add a comment |
I am experiencing the following problem using mongodb.
This is the error, when I check the status:
Screenshot of the error (mongodb.service, status 14)
Screenshot of code in the mongod.config file
Screenshot of the log file
I have tried uninstalling mongodb following every step from the website and install everything again and when I check the status I still get the same error. I have posted the screenshot of the error.
I am using MacBook pro if this matters.
Would really appreciate, if someone can help me fix this.
database mongodb web
I am experiencing the following problem using mongodb.
This is the error, when I check the status:
Screenshot of the error (mongodb.service, status 14)
Screenshot of code in the mongod.config file
Screenshot of the log file
I have tried uninstalling mongodb following every step from the website and install everything again and when I check the status I still get the same error. I have posted the screenshot of the error.
I am using MacBook pro if this matters.
Would really appreciate, if someone can help me fix this.
database mongodb web
database mongodb web
edited Nov 26 '18 at 9:56
Ivan C
asked Nov 25 '18 at 16:37
Ivan CIvan C
13
13
see if there's anything in log file. You can find log file path in/etc/mongod.conf
.
– yaoxing
Nov 25 '18 at 17:37
@yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..
– Ivan C
Nov 25 '18 at 18:56
You need to take a loot at/var/log/mongodb/mongod.log
. See if there's anything interesting inside.
– yaoxing
Nov 26 '18 at 1:46
I have attached screenshot of the log file.
– Ivan C
Nov 26 '18 at 9:55
add a comment |
see if there's anything in log file. You can find log file path in/etc/mongod.conf
.
– yaoxing
Nov 25 '18 at 17:37
@yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..
– Ivan C
Nov 25 '18 at 18:56
You need to take a loot at/var/log/mongodb/mongod.log
. See if there's anything interesting inside.
– yaoxing
Nov 26 '18 at 1:46
I have attached screenshot of the log file.
– Ivan C
Nov 26 '18 at 9:55
see if there's anything in log file. You can find log file path in
/etc/mongod.conf
.– yaoxing
Nov 25 '18 at 17:37
see if there's anything in log file. You can find log file path in
/etc/mongod.conf
.– yaoxing
Nov 25 '18 at 17:37
@yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..
– Ivan C
Nov 25 '18 at 18:56
@yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..
– Ivan C
Nov 25 '18 at 18:56
You need to take a loot at
/var/log/mongodb/mongod.log
. See if there's anything interesting inside.– yaoxing
Nov 26 '18 at 1:46
You need to take a loot at
/var/log/mongodb/mongod.log
. See if there's anything interesting inside.– yaoxing
Nov 26 '18 at 1:46
I have attached screenshot of the log file.
– Ivan C
Nov 26 '18 at 9:55
I have attached screenshot of the log file.
– Ivan C
Nov 26 '18 at 9:55
add a comment |
2 Answers
2
active
oldest
votes
It seems from the log you have a unclean shutdown before. Or, it could also indicates that mongod
is already running.
First, make sure mongod
is not running already
ps aux | grep mongod
If it's not, remove the file:
rm /tmp/mongodb-27017.sock
Then try systemctl start mongod
to start MongoDB again.
add a comment |
After rebooting in the command line,it fixed to problem,don’t know why after stopping mongo and uninstalling and installing it didn’t fix the problem, but after reboot everything is working fine.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53469608%2fmongo-db-mongodb-service-failed-status-14%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
It seems from the log you have a unclean shutdown before. Or, it could also indicates that mongod
is already running.
First, make sure mongod
is not running already
ps aux | grep mongod
If it's not, remove the file:
rm /tmp/mongodb-27017.sock
Then try systemctl start mongod
to start MongoDB again.
add a comment |
It seems from the log you have a unclean shutdown before. Or, it could also indicates that mongod
is already running.
First, make sure mongod
is not running already
ps aux | grep mongod
If it's not, remove the file:
rm /tmp/mongodb-27017.sock
Then try systemctl start mongod
to start MongoDB again.
add a comment |
It seems from the log you have a unclean shutdown before. Or, it could also indicates that mongod
is already running.
First, make sure mongod
is not running already
ps aux | grep mongod
If it's not, remove the file:
rm /tmp/mongodb-27017.sock
Then try systemctl start mongod
to start MongoDB again.
It seems from the log you have a unclean shutdown before. Or, it could also indicates that mongod
is already running.
First, make sure mongod
is not running already
ps aux | grep mongod
If it's not, remove the file:
rm /tmp/mongodb-27017.sock
Then try systemctl start mongod
to start MongoDB again.
answered Nov 27 '18 at 7:24
yaoxingyaoxing
2,42321225
2,42321225
add a comment |
add a comment |
After rebooting in the command line,it fixed to problem,don’t know why after stopping mongo and uninstalling and installing it didn’t fix the problem, but after reboot everything is working fine.
add a comment |
After rebooting in the command line,it fixed to problem,don’t know why after stopping mongo and uninstalling and installing it didn’t fix the problem, but after reboot everything is working fine.
add a comment |
After rebooting in the command line,it fixed to problem,don’t know why after stopping mongo and uninstalling and installing it didn’t fix the problem, but after reboot everything is working fine.
After rebooting in the command line,it fixed to problem,don’t know why after stopping mongo and uninstalling and installing it didn’t fix the problem, but after reboot everything is working fine.
answered Nov 27 '18 at 7:26
Ivan CIvan C
13
13
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53469608%2fmongo-db-mongodb-service-failed-status-14%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
see if there's anything in log file. You can find log file path in
/etc/mongod.conf
.– yaoxing
Nov 25 '18 at 17:37
@yaoxing Yes there is, I have added another screenshot of the code inside the file as it is too long to paste it here..
– Ivan C
Nov 25 '18 at 18:56
You need to take a loot at
/var/log/mongodb/mongod.log
. See if there's anything interesting inside.– yaoxing
Nov 26 '18 at 1:46
I have attached screenshot of the log file.
– Ivan C
Nov 26 '18 at 9:55