Skip to content
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

Closed
JoaquinMVR opened this issue Mar 1, 2017 · 11 comments
Closed

Unable to Restart SSH Service. #1737

JoaquinMVR opened this issue Mar 1, 2017 · 11 comments

Comments

@JoaquinMVR
Copy link

I wanted to restart the SSH server but it failed.

This is what I got:

JoaquinMVR@ELITEBOOK-8470P:~$ sudo service ssh restart
[sudo] password for JoaquinMVR:
initctl: Imposible conectar con Upstar: Failed to connect to socket /com/ubuntu/upstart: Conexión rehusada
sshd: ../sysdeps/posix/getaddrinfo.c:2583: getaddrinfo: Assertion `(__extension__ ({ const struct in6_addr *__a = (const struct in6_addr *) (sin6->sin6_addr.__in6_u.__u6_addr32); __a->__in6_u.__u6_addr32[0] == 0 && __a->__in6_u.__u6_addr32[1] == 0 && __a->__in6_u.__u6_addr32[2] == __bswap_32 (0xffff); }))' failed.
Aborted (core dumped)
JoaquinMVR@ELITEBOOK-8470P:~$ sudo service ssh --full-restart
 * Stopping OpenBSD Secure Shell server sshd                                                                     [ OK ]
 * Starting OpenBSD Secure Shell server sshd                                                                            sshd: ../sysdeps/posix/getaddrinfo.c:2583: getaddrinfo: Assertion `(__extension__ ({ const struct in6_addr *__a = (const struct in6_addr *) (sin6->sin6_addr.__in6_u.__u6_addr32); __a->__in6_u.__u6_addr32[0] == 0 && __a->__in6_u.__u6_addr32[1] == 0 && __a->__in6_u.__u6_addr32[2] == __bswap_32 (0xffff); }))' failed.
Aborted (core dumped)
                                                                                                                 [fail]

Windows Build is: Version 1607 - Compilation: 14393.693

@aseering
Copy link
Contributor

aseering commented Mar 1, 2017

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.

@benhillis
Copy link
Member

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:

sudo /etc/init.d/ssh restart

@carpet92
Copy link

carpet92 commented Mar 1, 2017

@benhillis Hello. It is possible to implement upstart? or it's very hard or inexpedient and it will not be implemented?

@aseering
Copy link
Contributor

aseering commented Mar 1, 2017

@benhillis -- with respect, could you elaborate on why you believe that an assert() in the sshd binary is due to Upstart in this case? (Do you believe that the Upstart warning has more significance here than it has in other tickets regarding sshd, where users have been able to safely ignore it?)

@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 :-)

@benhillis
Copy link
Member

@aseering - I was referring to this line:

initctl: Imposible conectar con Upstar: Failed to connect to socket /com/ubuntu/upstart: Conexión rehusada

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.

@aseering
Copy link
Contributor

aseering commented Mar 1, 2017

@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.

@benhillis
Copy link
Member

@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.

@aseering
Copy link
Contributor

aseering commented Mar 1, 2017

Yeah, a lot has changed in userland between 14.04 and 16.04 in Ubuntu's init system :-) systemd appeared, for starters.

@carpet92
Copy link

carpet92 commented Mar 2, 2017

@aseering @benhillis thanks, I prefer to just wait. Without experiments.

But I have question about this:

@benhillis you tell above: Regarding upstart and other daemons in general: It's something we're looing at supporting in a future release. but I've read about what WSL will upgrade from Ubuntu 14.04 to Ubuntu 16.04 in the next release and in 16.04 used systemd instead of upstart as @aseering written.

It will actually support Ubuntu 16.04?
Supporting in a future release for upstart or systemd?

@SangHLee
Copy link

@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.

@therealkenc
Copy link
Collaborator

Windows Build is: Version 1607 - Compilation: 14393.693

sudo service ssh start has worked on WSL since at least 14361. Why the OP was getting a segfault here we will probably never know for sure. Adam's hypothesis this was dupe #1113 is good enough for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants