-
Notifications
You must be signed in to change notification settings - Fork 834
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
Unable to Restart SSH Service. #1737
Comments
Hi @JoaquinMVR , thanks for posting! Hm... I don't know the exact cause of.this issue, but I do know that a large number of networking bugs have been fixed in more-recent Insider builds. If you're willing to try an Insider build, it would be interesting to know whether it fixes your problem. |
The error you're seeing is about not being able to connect to the upstart daemon (which is expected because we don't run it). I'd suggest restarting your ssh service with the below script:
|
@benhillis Hello. It is possible to implement |
@benhillis -- with respect, could you elaborate on why you believe that an @Zx-EvM , regarding Upstart -- @benhillis is the right person to answer your question. (He actually works on the WSL team; I'm just another user :-) ) But I will observe that Ubuntu itself has actually dropped Upstart in more-recent releases. If you install the latest WSL Linux image using a Windows Insider build, you'll find that the latest version doesn't use Upstart at all. However, it uses systemd instead; unfortunately, systemd doesn't work yet either :-) |
@aseering - I was referring to this line:
You're right the second error probably has to do with networking support, but if you can't connect to upstart you can't launch services using the 'service' binary. @Zx-EvM - Regarding upstart and other daemons in general: It's something we're looing at supporting in a future release. |
@Zx-EvM -- Oh, I think this is the same error as is seen on #1113 . The core dump is in the same file and line number, anyway. That ticket discusses a couple specific workarounds; perhaps one of those might help you? @benhillis -- I buy the reasoning that upstart isn't working, but I'm struggling to see how it follows that it's preventing sshd from starting in a reproducer where an sshd process that has been started is segfaulting? If you do have evidence that that is the case, perhaps you could post that as an update/clarification to some of the tickets where others (including one of your colleagues at Microsoft) appear to believe that this error message does not impact the functionality of this script? Anyway, I'll stop interrupting; after all, this is y'all's forum :-) If you say it's Upstart, I'll take your word for it. Something just seems funny, is all. |
@aseering - I stand corrected - When I tried this on an internal build the service command works. It's possible the "service" binary is only trying to connect to upstart to let the daemon know that it's starting a service. I don't even see the message about not connecting to upstart though so probably something has changed in userland between 14.04 and 16.04. |
Yeah, a lot has changed in userland between 14.04 and 16.04 in Ubuntu's init system :-) systemd appeared, for starters. |
@aseering @benhillis thanks, I prefer to just wait. Without experiments. But I have question about this: @benhillis you tell above: It will actually support Ubuntu 16.04? |
@Zx-EvM I am also interested in whether bash on windows ubuntu 16.04.2 LTS will support upstart or systemd? It would be great to run rstudio-server on bash on windows 10. |
|
I wanted to restart the SSH server but it failed.
This is what I got:
Windows Build is: Version 1607 - Compilation: 14393.693
The text was updated successfully, but these errors were encountered: