Unable to start mongod on Ubuntu 16.04 - “Unable to connect to Upstart”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












screenshot showing systemctl status



This is the status of mongod service



Unable to connect to upstart: Failed to connect to socket /com/ubuntu/upstart:
Connection refused


How can I fix it?







share|improve this question


















  • 1




    @VladSpirin please make images hyperlinks, especially when they are screenshots with tiny text (see the edit for the syntax) and Ankit Singh please copy and paste text from your terminal and format as code with the button rather than showing a screenshot, unless the screenshot shows something that text cannot - text is searchable, copyable and more accessible. Thanks!
    – Zanna
    May 28 at 8:45














up vote
0
down vote

favorite












screenshot showing systemctl status



This is the status of mongod service



Unable to connect to upstart: Failed to connect to socket /com/ubuntu/upstart:
Connection refused


How can I fix it?







share|improve this question


















  • 1




    @VladSpirin please make images hyperlinks, especially when they are screenshots with tiny text (see the edit for the syntax) and Ankit Singh please copy and paste text from your terminal and format as code with the button rather than showing a screenshot, unless the screenshot shows something that text cannot - text is searchable, copyable and more accessible. Thanks!
    – Zanna
    May 28 at 8:45












up vote
0
down vote

favorite









up vote
0
down vote

favorite











screenshot showing systemctl status



This is the status of mongod service



Unable to connect to upstart: Failed to connect to socket /com/ubuntu/upstart:
Connection refused


How can I fix it?







share|improve this question














screenshot showing systemctl status



This is the status of mongod service



Unable to connect to upstart: Failed to connect to socket /com/ubuntu/upstart:
Connection refused


How can I fix it?









share|improve this question













share|improve this question




share|improve this question








edited May 28 at 8:43









Zanna

47.8k13116226




47.8k13116226










asked May 28 at 8:18









Ankit Singh

1




1







  • 1




    @VladSpirin please make images hyperlinks, especially when they are screenshots with tiny text (see the edit for the syntax) and Ankit Singh please copy and paste text from your terminal and format as code with the button rather than showing a screenshot, unless the screenshot shows something that text cannot - text is searchable, copyable and more accessible. Thanks!
    – Zanna
    May 28 at 8:45












  • 1




    @VladSpirin please make images hyperlinks, especially when they are screenshots with tiny text (see the edit for the syntax) and Ankit Singh please copy and paste text from your terminal and format as code with the button rather than showing a screenshot, unless the screenshot shows something that text cannot - text is searchable, copyable and more accessible. Thanks!
    – Zanna
    May 28 at 8:45







1




1




@VladSpirin please make images hyperlinks, especially when they are screenshots with tiny text (see the edit for the syntax) and Ankit Singh please copy and paste text from your terminal and format as code with the button rather than showing a screenshot, unless the screenshot shows something that text cannot - text is searchable, copyable and more accessible. Thanks!
– Zanna
May 28 at 8:45




@VladSpirin please make images hyperlinks, especially when they are screenshots with tiny text (see the edit for the syntax) and Ankit Singh please copy and paste text from your terminal and format as code with the button rather than showing a screenshot, unless the screenshot shows something that text cannot - text is searchable, copyable and more accessible. Thanks!
– Zanna
May 28 at 8:45










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Start MongoDB with systemctl in Ubuntu 16.04.



sudo systemctl start mongod 


Check the status.



mongo


It should appear in the mongo shell.






share|improve this answer






















  • Alternatively depending on how you installed mongodb the command sudo systemctl status mongod will check that the service has started properly.
    – karel
    May 28 at 9:09










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041118%2funable-to-start-mongod-on-ubuntu-16-04-unable-to-connect-to-upstart%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Start MongoDB with systemctl in Ubuntu 16.04.



sudo systemctl start mongod 


Check the status.



mongo


It should appear in the mongo shell.






share|improve this answer






















  • Alternatively depending on how you installed mongodb the command sudo systemctl status mongod will check that the service has started properly.
    – karel
    May 28 at 9:09














up vote
0
down vote













Start MongoDB with systemctl in Ubuntu 16.04.



sudo systemctl start mongod 


Check the status.



mongo


It should appear in the mongo shell.






share|improve this answer






















  • Alternatively depending on how you installed mongodb the command sudo systemctl status mongod will check that the service has started properly.
    – karel
    May 28 at 9:09












up vote
0
down vote










up vote
0
down vote









Start MongoDB with systemctl in Ubuntu 16.04.



sudo systemctl start mongod 


Check the status.



mongo


It should appear in the mongo shell.






share|improve this answer














Start MongoDB with systemctl in Ubuntu 16.04.



sudo systemctl start mongod 


Check the status.



mongo


It should appear in the mongo shell.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 28 at 9:06

























answered May 28 at 8:51









karel

49.6k11105126




49.6k11105126











  • Alternatively depending on how you installed mongodb the command sudo systemctl status mongod will check that the service has started properly.
    – karel
    May 28 at 9:09
















  • Alternatively depending on how you installed mongodb the command sudo systemctl status mongod will check that the service has started properly.
    – karel
    May 28 at 9:09















Alternatively depending on how you installed mongodb the command sudo systemctl status mongod will check that the service has started properly.
– karel
May 28 at 9:09




Alternatively depending on how you installed mongodb the command sudo systemctl status mongod will check that the service has started properly.
– karel
May 28 at 9:09












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041118%2funable-to-start-mongod-on-ubuntu-16-04-unable-to-connect-to-upstart%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491