-
Notifications
You must be signed in to change notification settings - Fork 860
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
irssi reports "SSL handshake failed: Broken pipe" when connecting to Freenode #2846
Comments
yeah, I use irssi daily- did the fall creators update (forced on me), and now I cannot connect. I did a "sudo apt-get update" and then "sudo apt-get upgrade", there were a lot of udpates, still this doesn't seem to work. |
Please post the repro. |
irssi[] /server connect irc.mozilla.org 6697 this fails with port 6697 because of ssl |
of course I don't know how to use comments on github :( |
@sunilmut if you are already using irssi, rename ~/.irssi to ~/.irssi-bak just to ensure that you are starting with a known state. If you haven't got irssi installed, you can either use apt-get or download the sources and build it. I've tried both and the problem affects both. Then:
You will see messages like this:
If you want to confirm that this isn't just the Ubuntu servers, edit ~/.irssi/config and find the section for Freenode:
Change the port from 6667 to 6697 and add this line:
so that it looks like this:
Save the changed file and then go:
and you'll get a similar message to the one for the Ubuntu failure:
I should have added that this is with the Ubuntu distro. I have not tested this on other WSL distros. |
No that is the gap. A repro would look like a sequence of |
Yes, end-to-end repros are much preferred. Helps us focus on the fix. |
OK ...
Expected behaviour is that the connect command should succeed, but it doesn't. |
I'm not sure if this is relevant or not, but here are my two cents on this issue. I have reinstalled Ubuntu on WSL three times today because I was trying to get Irssi with SSL working. Each and every time I reinstalled Ubuntu, the first thing I needed to do was a "sudo apt-get update", before I could install Irssi (apt doesn't find the Irssi-package otherwise). So, after "sudo apt-get update" and "sudo apt-get install irssi" I have Irssi installed. I start Irssi and connect to a server using the following command "/server -ssl irc.server.net 6697", and it works just fine! It connects using SSL! I then "/disconnect" or "/reconnect", and it fails with the error "SSL handshake failed: Broken pipe". After the first connection I can never get it to connect using SSL again, on ANY server AT ALL! And it doesn't matter if I close my terminal down and start a new one or not. (The only thing I didn't try was to reboot my computer before the next try to connect, but that should not be a solution anyway!) I'm not sure how Irssi handles it, but maybe it has something to do with accepting (and storing) certificates? When using mIRC, the question always pops up to accept the certificate on connect (unless you tick the box to auto-accept it the next time). Maybe there is something like this that doesn't work for Irssi in conjunction with WSL. Just a thought! |
@sunilmut Has enough detail been provided for the repo now or are you still missing some information? Please let me know so that I can help you to reproduce the problem. |
@pcolmer - Sorry for the delay. Yes, I have a repro of the issue. On my native Ubuntu setup (vm), I see:
But, on WSL, I see:
This is your repro, right? You were expecting WSL to behave similar to native Ubuntu? @PaJson - Thanks for the additional info. That seems useful. |
@sunilmut The connection to irc.ubuntu.com should succeed on native Ubuntu, which is what I'm expecting to happen on WSL. It is possible that 130.185.232.126 was unavailable at the time you tried for some reason. Strangely, I've just tried @jmaher's suggestion of:
and that works for me. I'm not getting the handshake failure I get on other services. Also, it looks like irc.ubuntu.com is just pointing at the Freenode servers so maybe it is something about how they've got their SSL configured that is causing problems on WSL? |
Exactly the same issue here connecting to an irc server with SSL. Started after I updated to Fall Creators Update last week.
|
So let's do this one. Confirmed that WSL 17093:
Real Linux:
On Real Linux the I haven't looked any further to see what the a successful exchange with |
Small test program for the
|
Will there be any possibility of this being fixed in time for the upcoming Win10 update? |
Thanks for the root cause @therealkenc and the test program @mcgoo. @pcolmer - It's too late for the current major update. But, I have marked this is as a bug and will get to it soon. |
Any idea when this'll be fixed? it's over 2 months now since the issue root cause was provided. |
+1
…Sent from my iPhone
On May 10, 2018, at 11:21 AM, bensh ***@***.***> wrote:
Any idea when this'll be fixed? it's over 2 months now since the issue root cause was provided.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Also having this issue, is there an ETA? |
I searched for Irssi: warning SSL handshake failed: Broken pipe and came here. Please fix this. |
Thanks to the great info here and thanks to @sunilmut and @benhillis working with me (I'm not a WSL dev here at MSFT), a fix is on its way to Insider Preview builds. |
This should be fixed in Insider Build 17713 |
Just removing the server entry from ~/.irssi/config for freenode or ubuntu works for me. Windows Vesion - 1803 (OS Build 17134.228) |
I wonder if there is a race condition going on with this issue. Looking at the irssi.debug file I notice a suspiciously large number of calls to time API's. I wonder if there is some logic happening with time on the SSL code path that is having a hard time with WSL? |
is 1809 a ubuntu version number? if its the Windows fixed in version number can you help me map 1809 to something like what I find under the control panel? (Version 10.0.16299 Build 16299): |
Cortana Search or Setting Search box > 'about' >About your PC |
alguém encontrou a solução? |
Your Windows build number: 10.0.16299.192
What you're doing and what's happening: I've installed and configured irssi to use SSL when connecting to Freenode. When I run irssi and try to connect to Freenode, I get this message:
Irssi: warning SSL handshake failed: Broken pipe
A colleague running the same version on "full" Ubuntu is not having this problem. I've tried building and running the latest release and it has the same problem. I've tried using a full Ubuntu system myself and I don't get the issue, suggesting it is a WSL problem.
What's wrong / what should be happening instead: The connection should succeed and irssi should be able to communicate with Freenode successfully with SSL enabled.
Strace of the failing command, if applicable: https://gist.github.com/pcolmer/db532776776476b63990a13622702ca3
The text was updated successfully, but these errors were encountered: