Emergency Situation- Airtime No Sound!
  • This happened to me twice already and I need a permanent fix as I launched my station just over an hour ago. I have been losing my audio when trying to play a scheduled show. Oddly the way I get it back is by connecting live with BUTT to the Master Source and the sound is restored. It seems to be happening when I add a playlist.

    Can anyone suggest why this is happening and a permanent fix?
  • 21 Comments sorted by
  • That didn't do anything. How about this? Does this give you what you need?
     less +G /var/log/airtime/pypo/pypo.log
    '', u'genre': u'Talk, Entertainment', u'output': u'icecast', u'type': u'mp3', u'port': u'8000', u'description': u'YOUR Urban Talk Connection'}}}
    2013-05-09 22:38:23,469 INFO - [replaygainupdater.py : run() : line 75] - Running replaygain updater
    2013-05-09 22:38:23,636 DEBUG - [api_client.py : update_replay_gain_values() : line 418] - {u'msg': u'OK'}
    2013-05-09 22:38:23,636 INFO - [replaygainupdater.py : main() : line 67] - Processed: 0 songs
    2013-05-09 22:39:27,336 DEBUG - [api_client.py : get_stream_parameters() : line 439] - {u'stream_params': {u's3': {u'_pass': u'', u'enable': u'false', u'description': u'', u'url': u'', u'bitrate': u'48', u'mount': u'', u'liquidsoap_error': u'waiting', u'channels': u'stereo', u'host': u'', u'_user': u'', u'user': u'', u'pass': u'', u'genre': u'', u'output': u'icecast', u'type': u'ogg', u'port': u'', u'name': u''}, u's2': {u'_pass': u'', u'enable': u'false', u'description': u'', u'url': u'', u'bitrate': u'48', u'mount': u'', u'liquidsoap_error': u'waiting', u'channels': u'stereo', u'host': u'', u'admin_user': u'', u'user': u'', u'pass': u'', u'genre': u'', u'output': u'icecast', u'type': u'ogg', u'port': u'', u'name': u''}, u's1': {u'_pass': u'', u'_user': u'', u'name': u'Verb Radio', u'url': u'verbradio.com', u'bitrate': u'128', u'mount': u'verb_local', u'liquidsoap_error': u'OK', u'channels': u'stereo', u'host': u'127.0.0.1', u'enable': u'true', u'user': u'source', u'pass': u', u'genre': u'Talk, Entertainment', u'output': u'icecast', u'type': u'mp3', u'port': u'8000', u'description': u'YOUR Urban Talk Connection'}}}
    ~
    ~

    Post edited by Lisa Forbes at 2013-05-11 02:27:11
  • Lisa,

    Please take note of the UTC times this occurs and post your log file /var/log/airtime/pypo/pypo.log

    Airtime Pro Hosting: http://airtime.pro
  • Ok Martin, will do. Thanks.
  • Hi Martin or anyone...


    So it happened again this morning but I had to go to work. It was around 8 or 830 am PST when I realized there was no sound. Is there a way for me to find the log for that particular time period?


    My daughter once again was able to restart the stream by briefly using BUTT to connect and when disconnected the stream started.

  • Just went to check my site only to find it stopped streaming again.

    UTC was Fri May 10 4:22:11 actual time is Thur May 9 21:21:13

    Tried to get the log but it said no such file or directory. Of course I probably went about trying to get it all wrong.
  • You need to provide the files /var/log/airtime/pypo/pypo.log and
    /var/log/airtime/pypo-liquidsoap/ls_script.log


    On Fri, May 10, 2013 at 12:34 AM, Lisa Forbes <<br />airtime-support@lists.sourcefabric.org> wrote:

    > Just went to check my site only to find it stopped streaming again.
    >
    > UTC was Fri May 10 4:22:11 actual time is Thur May 9 21:21:13
    >
    > Tried to get the log but it said no such file or directory. Of course I
    > probably went about trying to get it all wrong.
    >
    >
    Airtime Pro Hosting: http://airtime.pro
  • For both it says Permission denied. How do I get them? I'm logged on as root.
  • Try running "sudo chmod a+r /var/log/airtime/pypo/pypo.log" and then you
    should be able to access it with anything. Same for ls_script.log.

    On May 10, 2013 1:07 AM, "Lisa Forbes" <<br />airtime-support@lists.sourcefabric.org> wrote:
    >
    > For both it says Permission denied. How do I get them? I'm logged on as
    root.
    >
    >
    Airtime Pro Hosting: http://airtime.pro
  • Or how about this?
     sudo tail -f /var/log/airtime/pypo-liquidsoap/ls_script.log
    2013/05/09 22:44:36 [amplify_5383:3] End of the current overriding.
    2013/05/09 22:44:36 [queue:3] Prepared "/var/tmp/airtime/pypo/cache/scheduler/1.wav" (RID 13).
    2013/05/09 22:44:36 [amplify_5383:3] Overriding amplification: 1.000000.
    2013/05/09 22:44:36 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --media-id=5854 &
    2013/05/09 22:44:36 [lang:3] Using stream_format 0
    2013/05/09 22:44:36 [stdout:3]
    2013/05/09 22:44:36 [stdout:3] #########################################
    2013/05/09 22:44:36 [stdout:3] #           *** pypo  ***               #
    2013/05/09 22:44:36 [stdout:3] #     pypo notification gateway         #
    2013/05/09 22:44:36 [stdout:3] #########################################



    Post edited by Lisa Forbes at 2013-05-11 02:27:30
  • I still can't get these logs still getting permission denied.
  • Vote Up0Vote Down Micz FlorMicz Flor
    Posts: 184Administrator
    Hi Lisa,

    I don't know in what set up you are using Airtime, but you might want to get rid off your current problems and cut down on the sysadmin resources by moving your station to our SaaS provision on airtime.pro ?
  • Hi Micz, thanks for the offer. I currently have Airtime installed on a VPS with unlimited bandwith so not thanks. If you could kindly assist me with my current issue that would be greatly appreciated.
    I have a workaround but I can't monitor my stream 24/7 to make sure it doesn't go down.
    Airtime Pro is not in our budget and the ability to have 10 listeners is not going to do us much good.
  • I guess I'll just do a reinstall.
  • Lisa,

    you need to tell us what exact steps you are doing to get the log file, and why exactly is it failing. As for reinstall, I doubt that would help.

    Try 

    sudo chmod a+r /var/log/airtime/pypo/pypo.log
    cp /var/log/airtime/pypo/pypo.log ~

    Now pypo.log should me in your home directory, and you can upload it here.
    Airtime Pro Hosting: http://airtime.pro
  • I am using Putty and I am entering what you provided on the command line. Is that what I'm supposed to do?

    Since I'm really not sure how I'm supposed to do this I tried different ways but none of them have given me access to the logs. See below.

    Please tell me what I am doing wrong.

    Same thing happened with all of the commands you have given me to try, either permission denied or nothing at all happens.

    root@verbonradio:~# /var/log/airtime/pypo/pypo.log
    -bash: /var/log/airtime/pypo/pypo.log: Permission denied

    root@verbonradio:~# /var/log/airtime/pypo-liquidsoap/ls_script.log
    -bash: /var/log/airtime/pypo-liquidsoap/ls_script.log: Permission denied
    root@verbonradio:~#

    root@verbonradio:~# sudo chmod a+r /var/log/airtime/pypo/pypo.log
    root@verbonradio:~#



  • Hello Lisa,

    On Sun, May 12, 2013 at 10:54 PM, Lisa Forbes <<br />airtime-support@lists.sourcefabric.org> wrote:

    > I am using Putty and I am entering what you provided on the command line.
    > Is that what I'm supposed to do?
    >
    > Since I'm really not sure how I'm supposed to do this I tried different
    > ways but none of them have given me access to the logs. See below.
    >
    > Please tell me what I am doing wrong.
    >
    > Same thing happened with all of the commands you have given me to try,
    > either permission denied or nothing at all happens.
    >
    > root@verbonradio:~# /var/log/airtime/pypo/pypo.log
    > -bash: /var/log/airtime/pypo/pypo.log: Permission denied
    >

    That is not a command. You are attempting to execute the log file. It has
    to be preceded by some command.


    >
    > root@verbonradio:~# /var/log/airtime/pypo-liquidsoap/ls_script.log
    > -bash: /var/log/airtime/pypo-liquidsoap/ls_script.log: Permission denied
    > root@verbonradio:~#
    >

    Same as above.

    >
    > root@verbonradio:~# sudo chmod a+r /var/log/airtime/pypo/pypo.log
    > root@verbonradio:~#


    Here you did exactly what Martin requested and the command was successful.

    Now do this:
    cp /var/log/airtime/pypo/pypo.log ~

    and this:
    cp /var/log/airtime/pypo-liquidsoap/ls_script.log ~

    The result should be a copy of pypo.log and ls_script.log in your home
    directory.

    Hope this helps,
    -Bill
  • Hi Bill,

    I guess I was expecting that the logs would be automatically displayed which they are not. So how do I acces the home directory and get the logs?
  • Hi guysI am still having this same issue and it appears at some point yesterday the entire system just stopped working completely. I upgraded to 2.4 hoping it would solve the problem but no such luck, audio was lost sometime in the early morning same as before.
    Martin was helping me with this but now he is gone. Anyone else willing to take up the cause? Would it be possible just to create an automatic fall back for when audio goes down an if so is there anyone willing to do it for me? I have an email string I can provide so you csn see what he did. Thanks in advance.
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Hi, Lisa, 
    You can send it to me. cliff dot wang at sourcefabric dot org
    Cloud Radio -> http://airtime.pro
  • Sure and thanks
  • here is a good thing to do Lisa,I found that I had almost the same problem where I could not pinpoint the problem so I did a clean install of airtime to 2.4

    Here is my procedure

    • create a fail mount for Icecast refer here

    http://sourcefabric.booktype.pro/airtime-24-for-broadcasters/icecast-handover/

    sudo nano /etc/icecast2/icecast.xml

    <mount>
            <mount-name>"stream"</mount-name>
            <hidden>0</hidden>
       </mount>

       <mount>
            <mount-name>"live"</mount-name>
            <fallback-mount>"stream"</fallback-mount>
            <fallback-override>1</fallback-override>
            <hidden>0</hidden>
       </mount>

       <mount>
            <mount-name>"listen"</mount-name>
            <fallback-mount>"live"</fallback-mount>
            <fallback-override>1</fallback-override>
            <hidden>0</hidden>
       </mount>


    please remove your quotes and put your own mount point.

    let your clients listen on

    http://localhost:port/listen

    I found Icecast to almost perfect in stability and this way you can make substianal changes without disruption

    Now pushor point  butt to use Ip: localhost,/ port: port /mount-point :live

    This will ensure your listeners are not affected and will be feed


    • You can now implement your fixed easily whenever you have problem

    I chose to do a clean install of airtime

    remove airtime and all its configuration files-note this will not remove your media directory but if want to you will do it manually

    sudo apt-get remove airtime
    sudo apt-get purge airtime
    sudo apt-get autoremove


    This is my prefered method of installation
    http://sourcefabric.booktype.pro/airtime-24-for-broadcasters/automated-installation/

    • now to simple reinstall
    sudo apt-get install airtime

    fill out the necessary and since you have Icecast already install,then just use those source,pass etc.

    this will take less than a hour (60 minutes)

    Now if you really want to get your hands dirty with a simple modification of the liquidsoap script,here is what I do.

    just create some directory

    musicbackup,news,public_announcement,jingles,

    I do this so I can upload the news and others via ftp and not have to go through calendar and here is the script

    #default = amplify(id="silence_src", 0.00001, noise())


    myplaylist     = playlist(mode="random",reload=300,"/srv/whatever/music")

    jingles = playlist(mode="random",reload=1,"/srv/whatever/jingles")

    news = playlist(reload=3600,"/srv/whatever/news")

    public= playlist(reload=3600,"/srv/whatever/public")

    security = single("/srv/whatever/drops/station.mp3")

    stationID = single("/srv/whatever/stationID/stationid.mp3")

    mymusicbackup = myplaylist

    mymusicbackup = strip_blank(threshold=-28.,max_blank=15.,mymusicbackup)

    mymusicbackup= smart_crossfade(fade_out=0.5,fade_in=0.5,mymusicbackup)

    schedule=
             add([
                  switch([
                            ({ 0m0s },delay(1.,stationID)),
                            ({ 05m00s},news),
                            ({ 10m00s},public),
                            ({ 15m00s},delay(1.,stationID)),
                            ({ 20m00s},jingles),
                            ({ 30m00s},delay(1.,stationID)),
                            ({ 32m00s},jingles),
                            ({ 40m00s},jingles),
                            ({ 45m00s},delay(1.,stationID)),
                            ({ 55m00s},public),
                         ])
               ])



    playthemusic = fallback(track_sensitive = false, [schedule,crossfade_airtime(mymusicbackup)])

    default = fallback(track_sensitive = false, [playthemusic,security])



    See here http://forum.sourcefabric.org/discussion/15650/airtime-2-4-and-backups-playlists-give-yours for explanation of script.

    now here is the benefit
    at 59m50s  each hour I do the time call for that hour repeat and link no-end
    shows will always be 40 minutes long
    station and public notifications 20 minutes leave blank in all schedule so the at the script operates.

    It makes it so flexible so that I could now do 12hr day and 12 hr night with and I explain that previous how to create your shows
    so when nothing is schedule the system will act as though  it was schedule



    Post edited by Voisses Tech at 2013-07-17 18:39:08
    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.