mongodb service can't start











up vote
0
down vote

favorite












i can't start my mongodb via command sudo service mongod start. after i exec this command in command line, nothing happens. then i check the log file and also not any new log append in the log file.
After that i try mongo in command line, i just got the output below:

MongoDB shell version v4.0.4
connecting to: mongodb://127.0.0.1:27017
2018-11-17T13:29:01.643+0800 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:257:13
@(connect):1:6
exception: connect failed

i keep searching in this site, i got some likely case, but none of them worked in my problem...
Also my os is ubuntu 18.0










share|improve this question






















  • "i keep searching in this site, i got some likely case..." - Then show what you actually tried and why those don't work for you. Otherwise we can really only simply point you at existing answers. There are plenty. sudo service mongod status ( or really systemctl status mongod since the docs need updating ) will likely tell you the service is not running, and thus you look in the logs for "why". Post the log message here if you still cannot work it out.
    – Neil Lunn
    2 days ago

















up vote
0
down vote

favorite












i can't start my mongodb via command sudo service mongod start. after i exec this command in command line, nothing happens. then i check the log file and also not any new log append in the log file.
After that i try mongo in command line, i just got the output below:

MongoDB shell version v4.0.4
connecting to: mongodb://127.0.0.1:27017
2018-11-17T13:29:01.643+0800 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:257:13
@(connect):1:6
exception: connect failed

i keep searching in this site, i got some likely case, but none of them worked in my problem...
Also my os is ubuntu 18.0










share|improve this question






















  • "i keep searching in this site, i got some likely case..." - Then show what you actually tried and why those don't work for you. Otherwise we can really only simply point you at existing answers. There are plenty. sudo service mongod status ( or really systemctl status mongod since the docs need updating ) will likely tell you the service is not running, and thus you look in the logs for "why". Post the log message here if you still cannot work it out.
    – Neil Lunn
    2 days ago















up vote
0
down vote

favorite









up vote
0
down vote

favorite











i can't start my mongodb via command sudo service mongod start. after i exec this command in command line, nothing happens. then i check the log file and also not any new log append in the log file.
After that i try mongo in command line, i just got the output below:

MongoDB shell version v4.0.4
connecting to: mongodb://127.0.0.1:27017
2018-11-17T13:29:01.643+0800 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:257:13
@(connect):1:6
exception: connect failed

i keep searching in this site, i got some likely case, but none of them worked in my problem...
Also my os is ubuntu 18.0










share|improve this question













i can't start my mongodb via command sudo service mongod start. after i exec this command in command line, nothing happens. then i check the log file and also not any new log append in the log file.
After that i try mongo in command line, i just got the output below:

MongoDB shell version v4.0.4
connecting to: mongodb://127.0.0.1:27017
2018-11-17T13:29:01.643+0800 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
connect@src/mongo/shell/mongo.js:257:13
@(connect):1:6
exception: connect failed

i keep searching in this site, i got some likely case, but none of them worked in my problem...
Also my os is ubuntu 18.0







linux mongodb






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 17 at 5:41









Dashu

93




93












  • "i keep searching in this site, i got some likely case..." - Then show what you actually tried and why those don't work for you. Otherwise we can really only simply point you at existing answers. There are plenty. sudo service mongod status ( or really systemctl status mongod since the docs need updating ) will likely tell you the service is not running, and thus you look in the logs for "why". Post the log message here if you still cannot work it out.
    – Neil Lunn
    2 days ago




















  • "i keep searching in this site, i got some likely case..." - Then show what you actually tried and why those don't work for you. Otherwise we can really only simply point you at existing answers. There are plenty. sudo service mongod status ( or really systemctl status mongod since the docs need updating ) will likely tell you the service is not running, and thus you look in the logs for "why". Post the log message here if you still cannot work it out.
    – Neil Lunn
    2 days ago


















"i keep searching in this site, i got some likely case..." - Then show what you actually tried and why those don't work for you. Otherwise we can really only simply point you at existing answers. There are plenty. sudo service mongod status ( or really systemctl status mongod since the docs need updating ) will likely tell you the service is not running, and thus you look in the logs for "why". Post the log message here if you still cannot work it out.
– Neil Lunn
2 days ago






"i keep searching in this site, i got some likely case..." - Then show what you actually tried and why those don't work for you. Otherwise we can really only simply point you at existing answers. There are plenty. sudo service mongod status ( or really systemctl status mongod since the docs need updating ) will likely tell you the service is not running, and thus you look in the logs for "why". Post the log message here if you still cannot work it out.
– Neil Lunn
2 days ago



















active

oldest

votes











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',
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
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53348575%2fmongodb-service-cant-start%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53348575%2fmongodb-service-cant-start%23new-answer', 'question_page');
}
);

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