Liquidsoap and Icecast problem
  • Hello,
    I have some problems connecting to a distant Icecast server. I got these errors many times a day :
    From ls_script.log :

    2014/07/08 17:02:10 [alsa_out(default):2] Underrun!
    2014/07/08 17:02:10 [alsa_out(default):2] Trying to recover..
    2014/07/08 17:02:10 [stream(dot)ogg(dot)1:2] Error while sending data: could not write data to host: Broken pipe in write()!
    2014/07/08 17:02:10 [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=1404828015.99 &
    2014/07/08 17:02:10 [stream(dot)ogg(dot)1:3] Closing connection...
    2014/07/08 17:02:10 [stream(dot)ogg(dot)1:3] Will try to reconnect in 5.00 seconds.
    2014/07/08 17:02:10 [stdout:3]
    2014/07/08 17:02:10 [stdout:3] #########################################
    2014/07/08 17:02:10 [stdout:3] #           *** pypo  ***               #
    2014/07/08 17:02:10 [stdout:3] #     pypo notification gateway         #
    2014/07/08 17:02:10 [stdout:3] #########################################
    2014/07/08 17:02:16 [stream(dot)ogg(dot)1:3] Connecting mount stream.ogg for source@90.xx.xx.xx...
    2014/07/08 17:02:16 [stream(dot)ogg(dot)1:3] Connection setup was successful.
    2014/07/08 17:02:16 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --connect --stream-id=2 --time=1404828015.99 &
    2014/07/08 17:02:16 [stdout:3]
    2014/07/08 17:02:16 [stdout:3] #########################################
    2014/07/08 17:02:16 [stdout:3] #           *** pypo  ***               #
    2014/07/08 17:02:16 [stdout:3] #     pypo notification gateway         #
    2014/07/08 17:02:16 [stdout:3] #########################################


    From icecast's error.log :

    [2014-07-08  17:02:13] WARN source/get_next_buffer Disconnecting source due to socket timeout
    [2014-07-08  17:02:13] INFO source/source_shutdown Source "/stream.ogg" exiting
    [2014-07-08  17:02:13] INFO source/source_clear_source 2 active listeners on /stream.ogg released
    [2014-07-08  17:02:13] INFO fserve/fserve_client_create checking for file /stream.ogg (/usr/share/icecast2/web/stream.ogg)
    [2014-07-08  17:02:13] WARN fserve/fserve_client_create req for file "/usr/share/icecast2/web/stream.ogg" No such file or directory
    ### (repeats) ###
    [2014-07-08  17:02:18] INFO fserve/fserve_client_create checking for file /stream.ogg (/usr/share/icecast2/web/stream.ogg)
    [2014-07-08  17:02:18] WARN fserve/fserve_client_create req for file "/usr/share/icecast2/web/stream.ogg" No such file or directory
    [2014-07-08  17:02:18] INFO connection/_handle_source_request Source logging in at mountpoint "/stream.ogg"
    [2014-07-08  17:02:19] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
    [2014-07-08  17:02:19] INFO source/source_main listener count on /stream.ogg now 2


    After 1 day the audio stream is about 1 min in late. It seems the audio shift increase on every disconnection.
    I never had any errors when i use the localhost icecast server.

    By the way, what mean the alsa error ?