Broken pipe in write()
  • Hi,

    When I am trying to connect to my shoutcast or icecast server (tried both types) I get the error: Could not write data to host: Broken pipe in write() . This is probably not a connection issue as briefly before displaying this message (couple of seconds) it displays a green banner saying that it has connected. I have double and triple checked port forwarding, passwords, and I am 100% sure they are right. It also connects fine to itself when using the IP Address but edcast connects then a second later disconnects with no apparent error.

    What could be wrong?

    Thanks,
    Marcus
    Post edited by Marcus Hann at 2013-04-30 15:45:46
  • 6 Comments sorted by
  • Try "sudo tail -F /var/log/airtime/pypo-liquidsoap/ls_script.log", and post
    any messages here.

    M


    On Tue, Apr 30, 2013 at 3:44 PM, Marcus Hann <<br />airtime-support@lists.sourcefabric.org> wrote:

    > Hi,
    >
    > When I am trying to connect to my shoutcast or icecast server (tried both
    > typed) I get the error: Could not write data to host: Broken pipe in
    > write() . This is probably not a connection issue as briefly before
    > displaying this message (couple of seconds) it displays a green banner
    > saying that it has connected. I have double and triple checked port
    > forwarding, passwords, and I am 100% sure they are right.
    >
    > What could be wrong?
    >
    > Thanks,
    > Marcus
    >
    >
    Airtime Pro Hosting: http://airtime.pro
  • Hi, this is hat I get:

    root@airtime:~# sudo tail -F /var/log/airtime/pypo-liquidsoap/ls_script.log
    2013/04/30 19:49:53 [stdout:3] #########################################
    2013/04/30 19:49:53 [stdout:3] #           *** pypo  ***               #
    2013/04/30 19:49:53 [stdout:3] #     pypo notification gateway         #
    2013/04/30 19:49:53 [stdout:3] #########################################
    2013/04/30 19:49:53 [stdout:3]
    2013/04/30 19:49:53 [stdout:3] #########################################
    2013/04/30 19:49:53 [stdout:3] #           *** pypo  ***               #
    2013/04/30 19:49:53 [stdout:3] #     pypo notification gateway         #
    2013/04/30 19:49:53 [stdout:3] #########################################
    2013/04/30 19:49:59 [shoutcast_stream_2:3] Connecting mount / for source@78.129.163.82...
    2013/04/30 19:49:59 [shoutcast_stream_2:3] Connection setup was successful.
    2013/04/30 19:49:59 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --connect --stream-id=2 --time=1367350469.25 &
    2013/04/30 19:49:59 [shoutcast_stream_2:2] Error while sending data: could not write data to host: Broken pipe in write()!
    2013/04/30 19:49:59 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --error='could not write data to host: Broken pipe in write()' --stream-id=2 --time=1367350469.25 &
    2013/04/30 19:49:59 [shoutcast_stream_2:3] Closing connection...
    2013/04/30 19:49:59 [shoutcast_stream_2:3] Will try to reconnect in 5.00 seconds.
    2013/04/30 19:49:59 [stdout:3]
    2013/04/30 19:49:59 [stdout:3] #########################################
    2013/04/30 19:49:59 [stdout:3] #           *** pypo  ***               #
    2013/04/30 19:49:59 [stdout:3] #     pypo notification gateway         #
    2013/04/30 19:49:59 [stdout:3] #########################################
    2013/04/30 19:49:59 [stdout:3]
    2013/04/30 19:49:59 [stdout:3] #########################################
    2013/04/30 19:49:59 [stdout:3] #           *** pypo  ***               #
    2013/04/30 19:49:59 [stdout:3] #     pypo notification gateway         #
    2013/04/30 19:49:59 [stdout:3] #########################################
    2013/04/30 19:49:59 [server:3] New client: localhost.
    2013/04/30 19:49:59 [server:3] Client localhost disconnected.


    Thanks,
    Marcus
    Post edited by Marcus Hann at 2013-04-30 15:51:37
  • Try running "airtime-test-stream -h" from the command-line. You will see
    more information about how to debug your connection problem.


    On Tue, Apr 30, 2013 at 3:51 PM, Marcus Hann <<br />airtime-support@lists.sourcefabric.org> wrote:

    > Hi, gthis is hat I get:
    >
    > root@airtime:~# sudo tail -F
    > /var/log/airtime/pypo-liquidsoap/ls_script.log
    > 2013/04/30 19:49:53 [stdout:3] #########################################
    > 2013/04/30 19:49:53 [stdout:3] # *** pypo *** #
    > 2013/04/30 19:49:53 [stdout:3] # pypo notification gateway #
    > 2013/04/30 19:49:53 [stdout:3] #########################################
    > 2013/04/30 19:49:53 [stdout:3]
    > 2013/04/30 19:49:53 [stdout:3] #########################################
    > 2013/04/30 19:49:53 [stdout:3] # *** pypo *** #
    > 2013/04/30 19:49:53 [stdout:3] # pypo notification gateway #
    > 2013/04/30 19:49:53 [stdout:3] #########################################
    > 2013/04/30 19:49:59 [shoutcast_stream_2:3] Connecting mount / for source@
    > 78.129.163.82...
    > 2013/04/30 19:49:59 [shoutcast_stream_2:3] Connection setup was successful.
    > 2013/04/30 19:49:59 [lang:3]
    > /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --connect
    > --stream-id=2 --time=1367350469.25 &
    > 2013/04/30 19:49:59 [shoutcast_stream_2:2] Error while sending data: could
    > not write data to host: Broken pipe in write()!
    > 2013/04/30 19:49:59 [lang:3]
    > /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --error='could not
    > write data to host: Broken pipe in write()' --stream-id=2
    > --time=1367350469.25 &
    > 2013/04/30 19:49:59 [shoutcast_stream_2:3] Closing connection...
    > 2013/04/30 19:49:59 [shoutcast_stream_2:3] Will try to reconnect in 5.00
    > seconds.
    > 2013/04/30 19:49:59 [stdout:3]
    > 2013/04/30 19:49:59 [stdout:3] #########################################
    > 2013/04/30 19:49:59 [stdout:3] # *** pypo *** #
    > 2013/04/30 19:49:59 [stdout:3] # pypo notification gateway #
    > 2013/04/30 19:49:59 [stdout:3] #########################################
    > 2013/04/30 19:49:59 [stdout:3]
    > 2013/04/30 19:49:59 [stdout:3] #########################################
    > 2013/04/30 19:49:59 [stdout:3] # *** pypo *** #
    > 2013/04/30 19:49:59 [stdout:3] # pypo notification gateway #
    > 2013/04/30 19:49:59 [stdout:3] #########################################
    > 2013/04/30 19:49:59 [server:3] New client: localhost.
    > 2013/04/30 19:49:59 [server:3] Client localhost disconnected.
    >
    >
    >
    > Thanks,
    > Marcus
    >
    >
    Airtime Pro Hosting: http://airtime.pro
  • Hi,
    I did this just now and got this output:

    $  airtime-test-stream -o shoutcast -H 78.129.163.82 -P 31538 -u source -p ******* -m stream.ogg
    Protocol: shoutcast
    Host: 78.129.163.82
    Port: 31538
    User: source
    Password: ********
    Outputting to shoutcast streaming server. You should be able to hear a monotonous tone on 'http://78.129.163.82:31538/stream.ogg'. Press ctrl-c to quit.


    to see and when I went to the shoutcast administrator it says that nothing is streaming to it, I then tried using Edcast from my local computer to the same server and it worked absolutely fine.

    Thanks,
    Marcus
  • Hi ! I'm using airtime 2.4.1 on a debian wheezy, and I have exactly the same problem (broken pipe), but only with the shoutcast streaming configuration, icecast works well. I installed sc_serv2 but with 'legacy V1' configuration. Is it ok ?

    Thanks

    Yann
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Yann, is there any particular reason for needing Shoutcast as well as Icecast? Does your Shoutcast server work with other streaming sources?

    Cheers!

    Daniel