microsoft / microsoft/WSL

Windows Linux Subsystem. initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

Open
#791 15 comments 18 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

I install MongoDB in Linux Subsystem with

sudo apt-get install mongodb

and when I try to start it with sudo service mongodb start I have the following error

User@DESKTOP-TPQIRNP:/mnt/c/Users/User$ sudo service mongodb status
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
 * Checking status of database mongodb                                                                 [ OK ]

MongoDB really starts but what is this message/error initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused and how to fix it? Have a official solution to this problem?

I reset my Windows 10 Pro x64 three days ago (on clean HDD). At the moment in Settings -> Update & Security not offered any updates to fix

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported sudo service mongodb status and sudo service mongodb start commands in Windows Linux Subsystem with MongoDB installed through apt-get. Investigate the Upstart connection warning while confirming whether MongoDB starts successfully. Done means identifying the cause and documenting or validating an official fix for the warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, mongodb, ubuntu
Domain
databases, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.