Suddenly can't duplicate playlists
  • Hello, we've been running 2.3.1 for quite some time without any issues. We're live both on FM and streaming via a relay.

    I've been scheduling a specific weekly slot for several weeks now and have always created a new playlist by duplicating the previous week's, editing it, and then dropping it into the calendar. Starting today, this is no longer working. Airtime seems to pause a moment but eventually I get 0:00 length playlist with no title. I believe other people schedule in the same way so this could be problematic for us.

    No system updates had been done for a few months (running 12.04.2 LTS) so I am baffled as to what triggered this. Any suggestions as to where I should begin looking? I do notice some php errors in zendphp.log, which were not happening before:

    2013-08-09T00:05:19-04:00 INFO (6): [Playlist.php : getFadeInfo() : line 615] - Getting fade info for pos 33
    2013-08-09T00:05:19-04:00 INFO (6): [Playlist.php : addAudioClips() : line 475] - Adding to playlist
    2013-08-09T00:05:19-04:00 INFO (6): [Playlist.php : addAudioClips() : line 476] - at position 0
    2013-08-09T00:05:19-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 166
    2013-08-09T00:05:19-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 2065
    2013-08-09T00:05:19-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 3512
    2013-08-09T00:05:19-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 2066
    2013-08-09T00:05:19-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 1131
    2013-08-09T00:05:19-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 3072
    2013-08-09T00:05:20-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 3496
    2013-08-09T00:05:20-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 56
    2013-08-09T00:05:20-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 2024
    2013-08-09T00:05:21-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding block 26
    2013-08-09T00:05:21-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 3072
    2013-08-09T00:05:21-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 2364
    2013-08-09T00:05:22-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 2698
    2013-08-09T00:05:22-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 3490
    2013-08-09T00:05:23-04:00 INFO (6): [Playlist.php : addAudioClips() : line 481] - Adding audioclip 1131
    2013-08-09T00:05:23-04:00 NOTICE (5): Undefined variable: entry
    2013-08-09T00:05:23-04:00 INFO (6): [index.php : () : line 71] - Undefined variable: entry
    2013-08-09T00:05:23-04:00 INFO (6): [index.php : () : line 73] - #0 [internal function]: exception_error_handler(8, 'Undefined varia...', '/usr/share/airt...', 416, Array)
    #1 /usr/share/php/libzend-framework-php/Zend/Log.php(598): call_user_func('exception_error...', 8, 'Undefined varia...', '/usr/share/airt...', 416, Array)
    #2 /usr/share/airtime/application/models/Playlist.php(416): Zend_Log->errorHandler(8, 'Undefined varia...', '/usr/share/airt...', 416, Array)
    #3 /usr/share/airtime/application/models/Playlist.php(479): Application_Model_Playlist->buildEntry(Array, 15)
    #4 /usr/share/airtime/application/controllers/LibraryController.php(366): Application_Model_Playlist->addAudioClips(Array, NULL, 'begining')
    #5 /usr/share/php/libzend-framework-php/Zend/Controller/Action.php(516): LibraryController->duplicateAction()
    #6 /usr/share/php/libzend-framework-php/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('duplicateAction')
    #7 /usr/share/php/libzend-framework-php/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #8 /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
    #9 /usr/share/php/libzend-framework-php/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
    #10 /usr/share/airtime/public/index.php(64): Zend_Application->run()
    #11 {main}
    2013-08-09T00:05:28-04:00 INFO (6): [ScheduleController.php : eventFeedPreloadAction() : line 133] - agendaWeek
    2013-08-09T00:06:06-04:00 INFO (6): [Playlist.php : getContents() : line 156] - Getting contents for playlist 753
    2013-08-09T00:06:06-04:00 INFO (6): [Playlist.php : getFadeInfo() : line 615] - Getting fade info for pos 0
    2013-08-09T00:06:06-04:00 INFO (6): [Playlist.php : getFadeInfo() : line 615] - Getting fade info for pos 1
    2013-08-09T00:06:06-04:00 INFO (6): [Playlist.php : getFadeInfo() : line 615] - Getting fade info for pos 2
    2013-08-09T00:06:06-04:00 INFO (6): [Playlist.php : getFadeInfo() : line 615] - Getting fade info for pos 3
    2013-08-09T00:06:06-04:00 INFO (6): [Playlist.php : getFadeInfo() : line 615] - Getting fade info for pos 4


    But again, what could have caused this?

  • 12 Comments sorted by
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    Hi Ed,
    what does "sudo airtime-check-system" say? everything running?
    Is it possible, that one of the files of the previous playlist got deleted?
    cheers
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • Woah, big problem:

    AIRTIME_SERVER_RESPONDING      = FAILED


    This is odd. We haven't had a problem for months. I can't do a fresh install as this system is live. Any suggestions?
  • Airtime was streaming without problems last night but we were on an off-air block (we share the frequent with 2 other groups so we're only on air ⅓ of the week). We come on today at 1pm EST. Do you think we'll fail to produce audio output?

    I updated packages not related to airtime last night but didn't touch those I worried might affect the install. The pending list:

    The following packages will be upgraded:
      apache2 apache2-mpm-itk apache2-utils apache2.2-bin apache2.2-common apport gpgv libapache2-mod-php5 libapt-inst1.4 libasound2 libc-bin libc-dev-bin libc6 libc6-dev libdrm-intel1 libdrm-nouveau1a
      libdrm-radeon1 libdrm2 libjack-jackd2-0 libldap-2.4-2 libplymouth2 libpulse0 libpython2.7 php-pear php5-cli php5-common php5-curl php5-dev php5-gd php5-pgsql plymouth plymouth-theme-ubuntu-text
      python python-apport python-apt python-apt-common python-minimal python-problem-report python2.7 python2.7-minimal silan


  • One last thing: the web status panel shows no issue. See attached image.
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator

    Ed Porras said:

    Airtime was streaming without problems last night but we were on an off-air block (we share the frequent with 2 other groups so we're only on air ⅓ of the week). We come on today at 1pm EST. Do you think we'll fail to produce audio output?


    I updated packages not related to airtime last night but didn't touch those I worried might affect the install. The pending list:

    The following packages will be upgraded:
      apache2 apache2-mpm-itk apache2-utils apache2.2-bin apache2.2-common apport gpgv libapache2-mod-php5 libapt-inst1.4 libasound2 libc-bin libc-dev-bin libc6 libc6-dev libdrm-intel1 libdrm-nouveau1a
      libdrm-radeon1 libdrm2 libjack-jackd2-0 libldap-2.4-2 libplymouth2 libpulse0 libpython2.7 php-pear php5-cli php5-common php5-curl php5-dev php5-gd php5-pgsql plymouth plymouth-theme-ubuntu-text
      python python-apport python-apt python-apt-common python-minimal python-problem-report python2.7 python2.7-minimal silan




    did you reboot the machine since updating packages?
    You say you are only 1/3 a week on air, so reboot the server during off-air-slot.
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • I did.

    I tried duplicating a playlist yesterday evening and noticed the problem. I ssh'd in, couldn't find anything wrong, and noticed updates pending. We were off the air so I applied them, then rebooted the system. I confirmed we were still streaming afterward.

    This is where I am now.
  • Ok, I just noticed something else: several of the recent playlists now show a length of "N/A". Each was a copy of the previous one and I know these were valid because they were scheduled and played. 

    At one point (perhaps the one date 20130621) I built the playlist using dynamic blocks to randomly fill PSAs and Bumpers, and I'm guessing this is why that playlist shows the leading "~". Still, I don't understand why this would keep working until now.

    I just worked around it by copying 20130613 to create today's playlist. I'm still hoping we're going to air at 1pm EST though.

    I'm attaching another screenshot showing what a copy of 20130802 results in. There's no menu so I can't even edit the name or content. I have to log in as admin to delete this playlist.
  • BTW, I'm subscribed to notifications when comments are made but I'm not receiving them and I seem to be missing the popups. I'm also not sure where to view / edit my email to confirm it's correct. Is this possible?

    Thank you for the help, hoerich.
  • 1pm EST: we're broadcasting. 

    Any idea why the status script reports an error?

  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    hm, try
    sudo service airtime-playout restart

    logs would be nice.
    sudo airtime-log --dump
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • Is it safe to do this while broadcasting? We'll have a break between 16h-20h EST so I can try it then if it might interrupt playback.
  • Ok, I ran the command and I'm still getting the error:

    AIRTIME_SERVER_RESPONDING      = FAILED

    The logs are here:


    (Hope there's no sensitive info in there).

    Some other notes: we're running airtime on port 1000, if that makes a difference.