Streaming hangs by nighttime; needs airtime-playout restart
  • Hi everyone,
    the issue i'm having is quite strange. I have a ls_script.liq that defined a scheduled playout of my stream: i paste here the inherent part:

    jamendo = playlist(mode='randomize', "/opt/radiosvaldo/jamendo")
    jingles = playlist(mode='randomize', "/opt/radiosvaldo/jingles")
    promo_lun = playlist(mode='randomize', "/opt/radiosvaldo/promo_lun")
    promo_mar = playlist(mode='randomize', "/opt/radiosvaldo/promo_mar")
    promo_mer = playlist(mode='randomize', "/opt/radiosvaldo/promo_mer")
    promo_gio = playlist(mode='randomize', "/opt/radiosvaldo/promo_gio")
    promo_ven = playlist(mode='randomize', "/opt/radiosvaldo/promo_ven")
    repliche = playlist(mode='randomize', "/opt/radiosvaldo/repliche")

    schedule_base = random(weights = [3, 1], [jamendo, jingles])
    schedule_lun = random(weights = [3, 1], [schedule_base, promo_lun])
    schedule_mar = random(weights = [3, 1], [schedule_base, promo_mar])
    schedule_mer = random(weights = [3, 1], [schedule_base, promo_mer])
    schedule_gio = random(weights = [3, 1], [schedule_base, promo_gio])
    schedule_ven = random(weights = [3, 1], [schedule_base, promo_ven])
    schedule_replica = sequence(merge=true,[repliche,schedule_base])

    default=fallback([
                    switch([
                            ({ (1w) and 3h-10h}, schedule_lun),
                            ({ (2w) and 3h-10h}, schedule_mar),
                            ({ (3w) and 3h-10h}, schedule_mer),
                            ({ (4w) and 3h-10h}, schedule_gio),
                            ({ (5w) and 3h-10h}, schedule_ven),
                            ({ (1w or 2w or 3w or 4w or 5w) and 10h01-12h30}, schedule_replica),
                            ({ (1w) and 12h31-23h59}, schedule_lun),
                            ({ (2w) and 12h31-23h59}, schedule_mar),
                            ({ (3w) and 12h31-23h59}, schedule_mer),
                            ({ (4w) and 12h31-23h59}, schedule_gio),
                            ({ (5w) and 12h31-23h59}, schedule_ven),
                    ])
            ])

    default=mksafe(default)

    Now, everything goes smoothly, with files being played correctly as of their requested distribution etc. I must add that, at 15:00 hours, Airtime stream kicks in and plays the radio program from its scheduler, and, as soon as it finishes, liquidsoap regains control and goes on with the above.

    Now, the problem is that in the morning (each morning and this as well; i'm writing at 9.30 am italian time) no sound is audible. 
    From the logs everything (as i can see) is running normally, files are fetched from the directories to be played, pypo (from pypo.log) blocks until Airtime show starts and no error whatsoever.

    Only a sudo service airtime-playout restart helps, with the audio immediately resuming and going fine. Well, until the next morning :(

    What could cause something like that?

    I'm running airtime 2.1.3 on Ubuntu 12.04.1 LTS over VPS.
    Here are my files:

    /var/log/airtime/pypo/pypo.log: http://pastebin.com/JL9FX5XX (extract beginning last afternoon)
    /var/log/airtime/pypo-liquidsoap/ls_script.log: http://pastebin.com/uD4z0Nrs (extract beginning last afternoon)

    Of course i can provide full logs in zipped form if needed.

    Many thanks for you help,
    larss
    Post edited by larss at 2012-11-29 03:43:11
  • 1 Comment sorted by
  • There is something i can add:
    at 15:00 hours Airtime kicked in and played everything by the book (as expected). As soon as it finished, gave back control to liquidsoap, that RESUMED WORKING correctly, thus playing the scheduled playlists and keeping being audible (as it is now)

    What can cause the playout to get stuck but can be resumed by:
    sudo service airtime-playout restart 
    or
    handover to Airtime and back?

    Thanks!