-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Linux Subsystem. initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused #791
Comments
the same with docker |
Hi @Zx-EvM -- this error can be safely ignored. WSL doesn't use Upstart to start processes at system boot. If you work closely with Upstart, this might cause some surprises for you; the message is informative to people who work directly with initctl, upstart, etc that WSL doesn't yet expose that functionality. If that's not your use case, then as you have observed, mongodb itself works. Incidentally, just a heads-up for you / to set expectations: WSL is beta software in this release. Some companies of late have had "beta" releases that are really production-ready. But WSL really is traditional beta software: There are many things that it does correctly; there are also many things that are still in progress so don't work yet. It's typical to hit messages such as this one, or to encounter tools that don't completely work yet, etc. Feel free to look through the tickets filed in this bug-tracker; you'll quickly get a sense of the state of the Bash-on-Ubuntu-on-Windows feature. If you're comfortable with that, cool! It's great to have another beta user, and to know about this error message. If this error message is causing any actual problems for you, or if you have any trouble using mongodb or other tools, folks here would be glad to help. If you do, please fill out the template that comes with the ticket; that information is needed to help identify what underlying kernel features might be misbehaving or not yet implemented. |
@Zx-EvM -- errors are definitely being corrected in general; they typically stage a batch of fixes once every week or two. You may need to join the Windows Insider Fast Ring ([EDIT] in the "Windows Insider Program" section inside Settings) in order to get them more quickly, though Microsoft hasn't yet really explained how updates are going to look after the recent Anniversary Update release. (Note that the Fast Ring is a pre-release version of all of Windows, so you may find bugs in things other than WSL.) This particular message isn't preventing anyone from using mongodb, and fixing Upstart support is conceptually hard (it handles Linux's boot process but WSL doesn't need to boot), and Upstart itself is deprecated and will go away entirely if/when WSL updates to be based on Ubuntu 16.04. (It'll be replaced by systemd, which is even more complicated :-) ) I don't work at Microsoft myself (I'm just a user), but if I had to guess, I'd say that other bigger blockers and easier-to-fix errors are probably higher on their priority list. |
Incidentally, if you think this particular failure should be higher priority, the way to make that happen is to file it here and find people who care about it and get them to vote for it. |
Incidentally, if anyone reading this wants a workaround for getting these sorts of init scripts running at Windows system boot, I've posted a comment here that explains how to do so: |
There is a workaround here for the Upstart issue: https://www.nesono.com/node/368 |
Same situation when running Shiny Server, but I figured out, Thanks to @etatus
reproducible example and reference : sudo apt-get install r-base
sudo R -e "install.packages(c('shiny', rmarkdown'), repos = 'https://cran.rstudio.com/')"
sudo apt-get install gdebi-core
wget https://download3.rstudio.org/ubuntu-12.04/x86_64/shiny-server-1.4.7.815-amd64.deb
sudo gdebi shiny-server-1.4.7.815-amd64.deb
sudo dpkg-divert --local --rename --add /sbin/initctl
sudo ln -s /bin/true /sbin/initctl please cc @Zx-EvM And reference : |
Same error when |
This is a very good article on the change from upstart to systemd that explains pretty much everything |
In my case, solved with a fresh installation. |
same error when |
@wanderself - |
For me this did the trick:
Since i was using docker i also found this one really useful: |
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 errorMongoDB 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 fixThe text was updated successfully, but these errors were encountered: