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
linux mongodb
add a comment |
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
linux mongodb
"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 reallysystemctl status mongodsince 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
add a comment |
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
linux mongodb
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
linux mongodb
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 reallysystemctl status mongodsince 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
add a comment |
"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 reallysystemctl status mongodsince 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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53348575%2fmongodb-service-cant-start%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
"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 reallysystemctl status mongodsince 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