[solved] Random unmounts at icecast
  • I found an issue, that mounts randomly unmounts for some seconds, after that all continue to work

    ls_script.log:

    2015/01/30 13:08:49 [server:3] New client: localhost.localdomain.
    2015/01/30 13:08:49 [server:3] Client localhost.localdomain disconnected.
    2015/01/30 13:08:55 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --media-id=10054 &
    2015/01/30 13:08:55 [lang:3] Using stream_format 0
    2015/01/30 13:08:55 [lang:3] Using stream_format 0
    2015/01/30 13:08:55 [play_96:3] Metadata update may have failed with error: 400, Bad Request (HTTP/1.0)
    2015/01/30 13:08:55 [play_256:3] Metadata update may have failed with error: 400, Bad Request (HTTP/1.0)
    2015/01/30 13:08:55 [play_128_aac:3] Metadata update may have failed with error: 400, Bad Request (HTTP/1.0)
    2015/01/30 13:08:55 [play_64_aac:3] Metadata update may have failed with error: 400, Bad Request (HTTP/1.0)
    2015/01/30 13:08:55 [play:3] Metadata update may have failed with error: 400, Bad Request (HTTP/1.0)
    2015/01/30 13:08:55 [clock.wallclock_main:2] Too much latency! Resetting active sources...
    2015/01/30 13:08:55 [play_96:3] Closing connection...
    2015/01/30 13:08:55 [play_96:3] Connecting mount play_96 for source@127.0.0.1...
    2015/01/30 13:08:55 [play_96:3] Connection setup was successful.
    2015/01/30 13:08:55 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --connect --stream-id=5 --time=1422612230.91 &
    2015/01/30 13:08:55 [play_256:3] Closing connection...
    2015/01/30 13:08:55 [play_256:3] Connecting mount play_256 for source@127.0.0.1...
    2015/01/30 13:08:55 [play_256:3] Connection setup was successful.
    2015/01/30 13:08:55 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --connect --stream-id=4 --time=1422612230.91 &
    2015/01/30 13:08:55 [play_128_aac:3] Closing connection...
    2015/01/30 13:08:55 [play_128_aac:3] Connecting mount play_128_aac for source@127.0.0.1...
    2015/01/30 13:08:55 [play_128_aac:3] Connection setup was successful.
    2015/01/30 13:08:55 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --connect --stream-id=3 --time=1422612230.91 &
    2015/01/30 13:08:55 [play_64_aac:3] Closing connection...
    2015/01/30 13:08:55 [play_64_aac:3] Connecting mount play_64_aac for source@127.0.0.1...
    2015/01/30 13:08:55 [play_64_aac:3] Connection setup was successful.
    2015/01/30 13:08:55 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --connect --stream-id=2 --time=1422612230.91 &
    2015/01/30 13:08:55 [play:3] Closing connection...
    2015/01/30 13:08:55 [play:3] Connecting mount play for source@127.0.0.1...
    2015/01/30 13:08:55 [stdout:3] 
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [stdout:3] #           *** pypo  ***               #
    2015/01/30 13:08:55 [stdout:3] #     pypo notification gateway         #
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [play:3] Connection setup was successful.
    2015/01/30 13:08:55 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --connect --stream-id=1 --time=1422612230.91 &
    2015/01/30 13:08:55 [lang:3] Using stream_format 0
    2015/01/30 13:08:55 [stdout:3] 
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [stdout:3] #           *** pypo  ***               #
    2015/01/30 13:08:55 [stdout:3] #     pypo notification gateway         #
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [stdout:3] 
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [stdout:3] #           *** pypo  ***               #
    2015/01/30 13:08:55 [stdout:3] #     pypo notification gateway         #
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [stdout:3] 
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [stdout:3] #           *** pypo  ***               #
    2015/01/30 13:08:55 [stdout:3] #     pypo notification gateway         #
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [stdout:3] 
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [stdout:3] #           *** pypo  ***               #
    2015/01/30 13:08:55 [stdout:3] #     pypo notification gateway         #
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [stdout:3] 
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:55 [stdout:3] #           *** pypo  ***               #
    2015/01/30 13:08:55 [stdout:3] #     pypo notification gateway         #
    2015/01/30 13:08:55 [stdout:3] #########################################
    2015/01/30 13:08:59 [server:3] New client: localhost.localdomain.
    2015/01/30 13:08:59 [server:3] Client localhost.localdomain disconnected.

    airtime-check-system
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 3.14.27-xxxx-grs-ipv6-64
    MACHINE_ARCHITECTURE           = x86_64
    TOTAL_MEMORY_MBYTES            = 16415856
    TOTAL_SWAP_MBYTES              = 523260
    AIRTIME_VERSION                = 2.5.1
    OS                             = Ubuntu 14.04.1 LTS x86_64
    CPU                            = Intel(R) Core(TM) i5 CPU         750  @ 2.67GHz
    WEB_SERVER                     = nginx/1.4.6 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID      = 4805
    PLAYOUT_ENGINE_RUNNING_SECONDS = 1078540
    PLAYOUT_ENGINE_MEM_PERC        = 0.1%
    PLAYOUT_ENGINE_CPU_PERC        = 0.0%
    LIQUIDSOAP_PROCESS_ID          = 17079
    LIQUIDSOAP_RUNNING_SECONDS     = 2079
    LIQUIDSOAP_MEM_PERC            = 0.2%
    LIQUIDSOAP_CPU_PERC            = 4.9%
    MEDIA_MONITOR_PROCESS_ID       = 4800
    MEDIA_MONITOR_RUNNING_SECONDS  = 1078540
    MEDIA_MONITOR_MEM_PERC         = 0.1%
    MEDIA_MONITOR_CPU_PERC         = 0.0%
    -- Your installation of Airtime looks OK!

    Also, in ls_script.log file the next strings apears every 10 seconds. Is that normal?
    [server:3] New client: localhost.localdomain.
    [server:3] Client localhost.localdomain disconnected.
    Post edited by Ярослав Гребнев at 2015-05-18 16:08:56
  • 6 Comments sorted by
  • Do this

    liquidsoap --version

    If your version turns out to be

    Liquidsoap 1.1.1
    Copyright (c) 2003-2013 Savonet team

    There in lies your problem

    Solution you have to find the offending script that is causing this problem.

    In my case it is the tunein api ( I have since move mine from direct calls and in the coming weeks I will post a solution)

    Problem : if you have any script  (python,php or a mod ls_script) then this will occur

    Why it happen : it there is any script that is making a call to liquidsoap and its not connected at the time liquidsoap makes the request ,liquidsoap will try to catch that exception resulting in a built up of latency and if you scroll the logs you will also see "we must catch up ...seconds"

    Why not happen before:- the custom built and compile version of liquidsoap uses only the modules and plugins necessary hence it was more fault tolerant
    For some reason my liquidsoap is the repository version and this is not fully maintain so you ,might also want to compile and use the daily svn.

    Function Things which  also do not work and can cause problem
    perpend and smooth add.I will make a list as I go along

    Caution I hope nobody chose to excellently and miraculously decide the repo version.unless they do not like history

    Here is how I found the issues Tunein constantly go down nowadays and then I hear my back up file and search the log. One such incident was started at 0230 EST. 01302015.

    I have temporary suspend my sending to Tunein ,to find a fix (comment out the script) fixed 1335 on 01302015

    Good Luck
    VOISSES
    Post edited by Voisses Tech at 2015-01-31 13:35:39
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • # liquidsoap --version
    Liquidsoap 1.1.1+scm (git://github.com/savonet/liquidsoap.git@6d1441a7de32f73a48e93b08f9b8970f4be29fb2:20150104:201428)
    Copyright (c) 2003-2014 Savonet team
    Liquidsoap is open-source software, released under GNU General Public License.
    See <http://liquidsoap.fm&gt; for more information.


    Yes, have tunein included, will try to find fix
  • Ok

    Just wanted to highlight the issue.



    VOISSES
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • Here in lies a strategy

     "please be warned that the server is not meant to be used under heavy load. Therefore, it should not be exposed to your users/listeners if you expect many of them. In this case, you should use it as a backend/middle-end and have some kind of caching between harbor and the final user. In particular, the harbor server is not meant to server big files because it loads their entire content in memory before sending them. However, the harbor HTTP server is fully equipped to serve any kind of CGI script."

    http://savonet.sourceforge.net/doc-svn/harbor_http.html

    Which I hope to explore

    VOISSES
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • How did you solve the issue?? sorry if it is obvious and Im not seeing it!! :P
  • How did you solve the issue?? sorry if it is obvious and Im not seeing it!! :P



    I used another solution with parsing playlist.log