Skip to content

irssi reports "SSL handshake failed: Broken pipe" when connecting to Freenode #2846

Closed

Description

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

Activity

  1. jmaher commented on Jan 16, 2018

    @jmaher

    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.

  2. sunilmut commented on Jan 16, 2018

    @sunilmut
    Member

    Please post the repro.

  3. jmaher commented on Jan 16, 2018

    @jmaher

    Sunil Muthuswamy (@sunilmut)

    irssi

    [] /server connect irc.mozilla.org 6697

    this fails with port 6697 because of ssl

  4. jmaher commented on Jan 16, 2018

    @jmaher

    of course I don't know how to use comments on github :(

  5. pcolmer commented on Jan 18, 2018

    @pcolmer
    Author

    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:

    • run irssi
    • /connect ubuntu

    You will see messages like this:

    09:53 -!- Irssi: Looking up irc.ubuntu.com
    09:53 -!- Irssi: Connecting to irc.ubuntu.com [185.30.166.37] port 6697
    09:53 -!- Irssi: warning SSL handshake failed: Broken pipe
    09:53 -!- Irssi: Connection lost to irc.ubuntu.com
    

    If you want to confirm that this isn't just the Ubuntu servers, edit ~/.irssi/config and find the section for Freenode:

    {
       address = "chat.freenode.net";
       chatnet = "Freenode";
       port = "6667";
     },
    

    Change the port from 6667 to 6697 and add this line:

    use_ssl = "yes";
    

    so that it looks like this:

    {
       address = "chat.freenode.net";
       chatnet = "Freenode";
       port = "6697";
       use_ssl = "yes";
     },
    

    Save the changed file and then go:

    • irssi
    • /connect Freenode

    and you'll get a similar message to the one for the Ubuntu failure:

    09:56 -!- Irssi: Looking up chat.freenode.net
    09:56 -!- Irssi: Connecting to chat.freenode.net [107.182.226.199] port 6697
    09:56 -!- Irssi: warning SSL handshake failed: Broken pipe
    09:56 -!- Irssi: Connection lost to chat.freenode.net
    

    I should have added that this is with the Ubuntu distro. I have not tested this on other WSL distros.

  6. therealkenc commented on Jan 18, 2018

    @therealkenc

    if you are already using irssi

    No that is the gap. A repro would look like a sequence of apt/wget/tar/whatever commands from a clean Ubuntu install per (3) of CONTRIBUTING.md.

  7. sunilmut commented on Jan 18, 2018

    @sunilmut
    Member

    Yes, end-to-end repros are much preferred. Helps us focus on the fix.

  8. pcolmer commented on Jan 19, 2018

    @pcolmer
    Author

    OK ...

    sudo apt-get install irssi
    irssi
    /connect ubuntu
    

    Expected behaviour is that the connect command should succeed, but it doesn't.

  9. PaJson commented on Jan 20, 2018

    @PaJson

    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!

  10. pcolmer commented on Jan 23, 2018

    @pcolmer
    Author

    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.

  11. sunilmut commented on Jan 25, 2018

    @sunilmut
    Member

    Philip Colmer (@pcolmer) - Sorry for the delay. Yes, I have a repro of the issue.

    On my native Ubuntu setup (vm), I see:

    19:38 -!- Irssi: Connecting to irc.ubuntu.com [130.185.232.126] port 6697
    19:40 -!- Irssi: warning SSL handshake failed: Connection timed out
    19:40 -!- Irssi: Connection lost to irc.ubuntu.com
    

    But, on WSL, I see:

    19:39 -!- Irssi: Connecting to irc.ubuntu.com [185.30.166.37] port 6697
    19:39 -!- Irssi: warning SSL handshake failed: Broken pipe
    19:39 -!- Irssi: Connection lost to irc.ubuntu.com
    

    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.

  12. 9 remaining items

  13. mariodigital commented on May 20, 2018

    @mariodigital

    I searched for Irssi: warning SSL handshake failed: Broken pipe and came here. Please fix this.

  14. jkunkee commented on Jun 21, 2018

    @jkunkee

    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.

  15. Brian-Perkins commented on Jul 11, 2018

    @Brian-Perkins
    Contributor

    This should be fixed in Insider Build 17713

  16. manitaggarwal commented on Sep 18, 2018

    @manitaggarwal

    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

  17. markgross commented on Sep 24, 2018

    @markgross

    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?

  18. markgross commented on Oct 10, 2018

    @markgross

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

  19. therealkenc commented on Oct 10, 2018

    @therealkenc
  20. bensh commented on Oct 11, 2018

    @bensh

    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

  21. kevaosz commented on Oct 4, 2023

    @kevaosz

    alguém encontrou a solução?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions