You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
irssi reports "SSL handshake failed: Broken pipe" when connecting to Freenode #2846
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.
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.
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!
Sunil Muthuswamy (@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.
Just removing the server entry from ~/.irssi/config for freenode or ubuntu works for me.
'irc.mozilla.org' connects as mentioned by therealkenc because there is no entry of it in the config file.
Windows Vesion - 1803 (OS Build 17134.228)
Running Ubuntu on WSL
I wonder if there is a race condition going on with this issue.
I am seeing this problem with (Version 10.0.16299 Build 16299) running WSL and ubuntu 18.04 (installed over the weekend)
anyway I was trying to debug the problem and thought that I'd run
strace -o irssi.debug irssi
and found that it worked!!
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
Scroll to Windows Specifications at the bottom and you should see
Edition: .....
Version ..... 1803/1809 etc
Activity
jmaher commentedon Jan 16, 2018
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.
sunilmut commentedon Jan 16, 2018
Please post the repro.
jmaher commentedon Jan 16, 2018
Sunil Muthuswamy (@sunilmut)
irssi
[] /server connect irc.mozilla.org 6697
this fails with port 6697 because of ssl
jmaher commentedon Jan 16, 2018
of course I don't know how to use comments on github :(
pcolmer commentedon Jan 18, 2018
Sunil Muthuswamy (@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.
therealkenc commentedon Jan 18, 2018
No that is the gap. A repro would look like a sequence of
apt/wget/tar/whatevercommands from a clean Ubuntu install per (3) of CONTRIBUTING.md.sunilmut commentedon Jan 18, 2018
Yes, end-to-end repros are much preferred. Helps us focus on the fix.
pcolmer commentedon Jan 19, 2018
OK ...
Expected behaviour is that the connect command should succeed, but it doesn't.
PaJson commentedon Jan 20, 2018
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!
pcolmer commentedon Jan 23, 2018
Sunil Muthuswamy (@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.
sunilmut commentedon Jan 25, 2018
Philip Colmer (@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?
Patrik Jansson (@PaJson) - Thanks for the additional info. That seems useful.
9 remaining items
mariodigital commentedon May 20, 2018
I searched for Irssi: warning SSL handshake failed: Broken pipe and came here. Please fix this.
jkunkee commentedon Jun 21, 2018
Thanks to the great info here and thanks to Sunil Muthuswamy (@sunilmut) and Ben Hillis (@benhillis) working with me (I'm not a WSL dev here at MSFT), a fix is on its way to Insider Preview builds.
Brian-Perkins commentedon Jul 11, 2018
This should be fixed in Insider Build 17713
manitaggarwal commentedon Sep 18, 2018
Just removing the server entry from ~/.irssi/config for freenode or ubuntu works for me.
'irc.mozilla.org' connects as mentioned by therealkenc because there is no entry of it in the config file.
Windows Vesion - 1803 (OS Build 17134.228)
Running Ubuntu on WSL
markgross commentedon Sep 24, 2018
I wonder if there is a race condition going on with this issue.
I am seeing this problem with (Version 10.0.16299 Build 16299) running WSL and ubuntu 18.04 (installed over the weekend)
anyway I was trying to debug the problem and thought that I'd run
strace -o irssi.debug irssi
and found that it worked!!
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?
markgross commentedon Oct 10, 2018
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):
therealkenc commentedon Oct 10, 2018
this
bensh commentedon Oct 11, 2018
Cortana Search or Setting Search box > 'about' >About your PC
Scroll to Windows Specifications at the bottom and you should see
Edition: .....
Version ..... 1803/1809 etc
kevaosz commentedon Oct 4, 2023
alguém encontrou a solução?