Airtime 2.1.2 hotfix patch out now
  • Hi everyone,

    Avid forum followers will have spotted that on Friday night we found an issue introduced in our 2.1.1 patch that required a rapid hotfix.

    We made the one-line change yesterday, packaged it as Airtime 2.1.2 and rolled it out. Most of you will have been notified via the update notifier. It fixes our Pypo scheduler so that it correctly retrieves the program schedule after extended periods of inactivity by the user.

    Install and upgrade guides can be found on the Airtime download page.

    Thanks, Adam
    Post edited by Adam Thomas at 2012-06-19 07:11:45
  • 27 Comments sorted by
  • Upgrade completed correctly. Feedback will follow.

    Thanks for great support!
  • I updated from 2.1.0 to 2.1.2 and now I can't add any shows to the calendar. The add show box just goes grey - see attached screenshot.

    Nevermind, I think I missed out this step:

    sudo -u postgres dropdb airtime

    Post edited by James Dunn at 2012-06-21 11:09:16
  • Hi James,

    It's all good now?
  • Me and James Dunn worked together to fix this problem. Somehow his database row id's became unsynchronized from the row id sequence table filling the postgresql logs with entries similar to:

    2012-06-21 16:44:00 BST ERROR:  duplicate key value violates unique constraint "cc_show_pkey"
    2012-06-21 16:44:00 BST DETAIL:  Key (id)=(10) already exists.


    Not sure if this is an Airtime bug at the moment since we don't have any code that manages these sequence tables (Postgresql handles it automatically). Ticket created here: http://dev.sourcefabric.org/browse/CC-3999
    Airtime Pro Hosting: http://airtime.pro
  • Someone has managed to install and operate 100% versions 2.1.1 and 2.1.2 on a VPN server? Unfortunately I could not, and every form of installation returns a different problem. I tried Ubuntu and Derbi. No works! I'm going back to version 2.0.3 it worked perfectly

     

    Edilson

  • @Edilson,

    We would be more than happy to resolve your problem with 2.1.

    I believe the issue you may be having is that many VPN's dont come with a locale defined. In 2.0 we let this slide but ultimately it caused too many problems with files and unicode characters. Therefore 2.1 is much more strict in this regard. If you show us the install errors we'll see what we can do.
    Airtime Pro Hosting: http://airtime.pro
  • I again simulate the installation of all the options tested and post the errors here.

    OPTION 1

    Reload VPS Operating System in Veportal
    OS: Debian 6.0 -X86 (New installation)

    Airtime version: 2.1.1 and 2.1.2

    Installation type:
    Automated installation
     
    The installation was perfect until that point!
    ERROR:

     

    * Database Installation
     * Creating Airtime database user
      * Database user 'airtime' created.
     * Creating Airtime database
      * Database 'airtime' already exists.
    Unable to open PDO connection [wrapped: SQLSTATE[08006] [7] FATAL:  database "airtime" does not exist]
     Database connection problem.
    Check if database 'airtime' exists with corresponding permissions.
    * Creating /etc/airtime
    * Creating /etc/monit/conf.d/monit-airtime-generic.cfg
    * Creating /etc/cron.d/airtime-crons
    * Creating /usr/lib/airtime
    * Creating symbolic links in /usr/bin
    * Creating /var/log/airtime
    * Creating /usr/share/airtime
    * Creating /var/log/airtime
    * Creating /var/tmp/airtime
    * Waiting for media-monitor processes to start...
    Starting Airtime Media Monitor: Done.
    dpkg: error processing airtime (--configure):
     subprocess installed post-installation script returned error exit status 1
    Processing triggers for python-support ...
    Errors were encountered while processing:
     airtime
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  • OPTION 2

    Reload VPS Operating System in Veportal
    OS: Ubuntu 11.10 x86_64 (New installation)

    Airtime version: 2.1.1 and 2.1.2

    Installation type:
    Automated installation

    The installation was perfect until that point!
    ERROR:

     

    * Database Installation
     * Creating Airtime database user
      * Database user 'airtime' created.
     * Creating Airtime database
    could not change directory to "/root/airtime-2.1.2/install_minimal"
    createdb: database creation failed: ERROR:  new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
    HINT:  Use the same encoding as in the template database, or use template0 as template.
      * Database 'airtime' already exists.
    Unable to open PDO connection [wrapped: SQLSTATE[08006] [7] FATAL:  database "airtime" does not exist]
    Database connection problem.
    Check if database 'airtime' exists with corresponding permissions.
    * Creating /etc/airtime
    * Creating /etc/monit/conf.d/monit-airtime-generic.cfg
    * Creating /etc/cron.d/airtime-crons
    * Creating /usr/lib/airtime
    * Creating symbolic links in /usr/bin
    * Creating /var/log/airtime
    * Creating /usr/share/airtime
    * Creating /var/log/airtime
    * Creating /var/tmp/airtime
    Starting Airtime Media Monitor: Done.
    * Waiting for media-monitor processes to start...
    * Detecting OS: ...  Found Ubuntu 11.10 (oneiric) on amd64 architecture
     * Installing Liquidsoap binary
    * Clearing previous pypo cache
    * Waiting for pypo processes to start...
     * Stopping daemon monitor monit
       ...done.
     * Starting daemon monitor monit
       ...done.

    *** Verifying your system environment, running airtime-check-system ***
    AIRTIME_STATUS_URL             = http://localhost:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = UNKNOWN
    MACHINE_ARCHITECTURE           = UNKNOWN
    TOTAL_MEMORY_MBYTES            = UNKNOWN
    TOTAL_SWAP_MBYTES              = UNKNOWN
    AIRTIME_VERSION                = UNKNOWN
    OS                             = Ubuntu 11.10 x86_64
    CPU                            = Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
    WEB_SERVER                     = A
    PLAYOUT_ENGINE_PROCESS_ID      = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    PLAYOUT_ENGINE_MEM_PERC        = 0%
    PLAYOUT_ENGINE_CPU_PERC        = 0%
    LIQUIDSOAP_PROCESS_ID          = FAILED
    LIQUIDSOAP_RUNNING_SECONDS     = 0
    LIQUIDSOAP_MEM_PERC            = 0%
    LIQUIDSOAP_CPU_PERC            = 0%
    MEDIA_MONITOR_PROCESS_ID       = FAILED
    MEDIA_MONITOR_RUNNING_SECONDS  = 0
    MEDIA_MONITOR_MEM_PERC         = 0%
    MEDIA_MONITOR_CPU_PERC         = 0%
    RABBITMQ_PROCESS_ID            = FAILED
    RABBITMQ_RUNNING_SECONDS       = 0
    RABBITMQ_MEM_PERC              = 0%
    RABBITMQ_CPU_PERC              = 0%

    -- There appears to be a problem with your Airtime installation.

    -- Please visit http://wiki.sourcefabric.org/x/HABQ

  • If you can help, I found that in all error situations the folder var/lib/airtime  does not exist.
  • After this operation, 3,871 kB of additional disk space will be used.
    WARNING: The following packages cannot be authenticated!
      icecast2 lame libmp3lame0 libmp3lame-dev
    Get:1 http://mirror.yandex.ru/debian/ squeeze/main libtheora0 amd64 1.1.1+dfsg.1-3 [381 kB]
    Get:2 http://mirror.yandex.ru/debian/ squeeze/main libxslt1.1 amd64 1.1.26-6 [247 kB]
    Get:3 http://www.debian-multimedia.org/ squeeze/main icecast2 amd64 1:2.3.2kh29-0.4squeeze1 [223 kB]
    Get:4 http://www.debian-multimedia.org/ squeeze/main lame amd64 3.98.4-0.0 [349 kB]
    Get:5 http://www.debian-multimedia.org/ squeeze/main libmp3lame0 amd64 3.98.4-0.0 [261 kB]
    Get:6 http://www.debian-multimedia.org/ squeeze/main libmp3lame-dev amd64 3.98.4-0.0 [301 kB]
    Failed to fetch http://www.debian-multimedia.org/pool/main/i/icecast2-dmo/icecast2_2.3.2kh29-0.4squeeze1_amd64.deb  Hash
     Sum mismatch
    Failed to fetch http://www.debian-multimedia.org/pool/main/l/lame/lame_3.98.4-0.0_amd64.deb  Hash Sum mismatch
    Failed to fetch http://www.debian-multimedia.org/pool/main/l/lame/libmp3lame0_3.98.4-0.0_amd64.deb  Hash Sum mismatch
    Failed to fetch http://www.debian-multimedia.org/pool/main/l/lame/libmp3lame-dev_3.98.4-0.0_amd64.deb  Hash Sum mismatch

    Fetched 1,763 kB in 12s (137 kB/s)
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  • The Airtime would be an awesome program if it worked well and had good support. Still has much to do in this program. I think I'll stick with the same old version. I see that nobody knows how to solve problems.
  • Reply to @Edilson+R+Chiquetano:

    Your problem has already been solved by our support team in this same forum.

    Airtime Pro Hosting: http://airtime.pro
  • Martin,

    None of this works on my VPS server. Only works the installation of 2.0.3 on Debian Airtime 6.

    • Automated installation

    Airtime 2.0.3 on Debian 6.0 - OK

    Airtime 2.0.3 on Ubuntu 10.04 and 11.04 and 11.10 - Error

    Airtime 2.1.2 on Debian 6.0 - Error

    Airtime 2.1.2 on Ubuntu 10.04 and 11.04 and 11.10 - Error

    Tip:

    1 - Installing the same version 2.1.2 installing version 2.0.3 or the creation of a tutorial and to solve all the problems of install mode. A good program like this can not have problems with install mode.

    2 - Include in next version, the option to relay other radios in the day and time scheduled.

     

  • @Edilson,

    The error message is right here in your log:

    "createdb: database creation failed: ERROR:  new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) "

    Your database is using ASCII, whereas it is supposed to be using UTF8. In Airtime 2.0.x we naively allowed this but it causes too many problems, and as a result has been disabled for 2.1.x. If you attempt to upload a file with UTF8 metadata in 2.0, you will be in for a unpleasant surprise.
    Airtime Pro Hosting: http://airtime.pro
  • @Martin,

    Ok I understand the problem.

    Do you have corrected a problem and created a new problem. Ideally, the Airtime work properly without these errors.

    What should I do to use the version 2.1.2?

    So far no one has posted a solution that really works.

    You think I should give up using version 2.1.2 and other future releases?

  • This is the only way to fix the problem unfortunately:


    Or if your postgresql database isn't storing any data, then simple do

    sudo apt-get purge postgresql

    and then

    sudo apt--get install postgresql
    Airtime Pro Hosting: http://airtime.pro
  • hy write error when adding?



    ftp://81.9.25.194/Harry Gregson-Williams-Old Snake.mp3

    Harry Gregson-Williams-Old Snake.mp3 This file appears to be corrupted and will not be added to media library.
  • hy write error when adding?



    ftp://81.9.25.194/Harry Gregson-Williams-Old Snake.mp3

    Harry Gregson-Williams-Old Snake.mp3 This file appears to be corrupted and will not be added to media library.
  • Vote Up0Vote Down VerheekVerheek
    Posts: 158Member
    I upgraded to 2.1.2 with apt-get but found On Air light was off and restarting the airtime-playout service did not help.  After reboot everything was running again.  Not sure why that happened.


  • Reply to @Swidch+Swidcheg:

    Our MP3 validator is a little over-zealous at the moment and will deny MP3 files for the tiniest issue. We've relaxed the errors that can happen for 2.1.3.
    Airtime Pro Hosting: http://airtime.pro
  • Hello Martin and other Developers,
    I have installed airtime 2.12 on my debian 6.05 and your nice webapp works fine.
    I have troubles with adding of my mounted partition (/mnt/music/bands/albums/files.mp3) to media folders.
    I can add only a new files with your drag&drop uploader, another folder are everytime empty (ajax loader does hang - it don´t accept my selected folder in main directory or watched folders). The trick with %20 for spaces doesn´t work for me.

    Cheers tom
    Post edited by john doe at 2012-07-12 19:15:47
  • Please take a look in /var/log/airtime/media-monitor/media-monitor.log for anything suspicious.
    Airtime Pro Hosting: http://airtime.pro
  • I found only these errors :

    2012-07-13 02:03:35,900 DEBUG - [MainThread] [airtimemediamonitorbootstrap.py : scan()] : LINE 51 - 2, /var/www/xxxxx/wp-content/uploads/music/
    2012-07-13 02:03:35,963 DEBUG - [MainThread] [mediamonitorcommon.py : scan_dir_for_new_files()] : LINE 291 - find "/var/www/xxxxxxxx/wp-content/uploads/music/" -iname "*.ogg" -o -iname "*.mp3" -type f -readable


    2012-07-13 02:03:15,981 ERROR - [MainThread] [mediamonitorcommon.py : exec_command()] : LINE 285 - Could not decode None using UTF-8
    2012-07-13 02:03:15,982 ERROR - [MainThread] [media_monitor.py : <module>()] : LINE 143 - Exception: 'NoneType' object has no attribute 'splitlines'
    2012-07-13 02:03:15,982 ERROR - [MainThread] [media_monitor.py : <module>()] : LINE 144 - traceback: Traceback (most recent call last):
      File "/usr/lib/airtime/media-monitor/media_monitor.py", line 116, in <module>
        bootstrap.scan()
      File "/usr/lib/airtime/media-monitor/airtimefilemonitor/airtimemediamonitorbootstrap.py", line 52, in scan
        self.sync_database_to_filesystem(id, dir)
      File "/usr/lib/airtime/media-monitor/airtimefilemonitor/airtimemediamonitorbootstrap.py", line 97, in sync_database_to_filesystem
        all_files = self.mmc.scan_dir_for_new_files(dir)
      File "/usr/lib/airtime/media-monitor/airtimefilemonitor/mediamonitorcommon.py", line 294, in scan_dir_for_new_files
        return stdout.splitlines()
    AttributeError: 'NoneType' object has no attribute 'splitlines'

    2012-07-13 02:03:20,589 INFO - [MainThread] [media_monitor.py : <module>()] : LINE 78 - 

  • Reply to @john+doe:

    Please try 2.1.3, this should be fixed.
    Airtime Pro Hosting: http://airtime.pro
  • After upgrade with apt-get to 2.1.3 and restart of server, i have still some troubles with encoding and now with permission :

    apache log : 
    PHP Warning:  json_encode(): Invalid UTF-8 sequence in argument in /usr/share/airtime/application/controllers/PreferenceController.php on line 312, referer: http://airtime.mydomain.net/Preference/directory-config

    airtime log: 
    2012-07-14 18:13:17,108 WARNING - [MainThread] [mediamonitorcommon.py : is_user_readable()] : LINE 67 - File does not have correct permissions: '/var/www/xxxxx/wp-content/uploads/musicfolder'
    2012-07-14 18:13:17,116 ERROR - [MainThread] [airtimeprocessevent.py : notifier_loop_callback()] : LINE 429 - Exception: 'utf8' codec can't decode byte 0xe9 in position 6: invalid continuation byte
    2012-07-14 18:13:17,119 ERROR - [MainThread] [airtimeprocessevent.py : notifier_loop_callback()] : LINE 430 - traceback: Traceback (most recent call last):
      File "/usr/lib/airtime/media-monitor/airtimefilemonitor/airtimeprocessevent.py", line 424, in notifier_loop_callback
        notifier.connection.drain_events(timeout=0.1)
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/kombu/connection.py", line 175, in drain_events
        return self.transport.drain_events(self.connection, **kwargs)
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/kombu/transport/pyamqplib.py", line 238, in drain_events
        return connection.drain_events(**kwargs)
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/kombu/transport/pyamqplib.py", line 57, in drain_events
        return self.wait_multi(self.channels.values(), timeout=timeout)
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/kombu/transport/pyamqplib.py", line 84, in wait_multi
        return amqp_method(channel, args, content)
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/amqplib/client_0_8/channel.py", line 2060, in _basic_deliver
        func(msg)
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/kombu/messaging.py", line 452, in _receive_callback
        self.receive(decoded, message)
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/kombu/messaging.py", line 418, in receive
        callback(body, message)
      File "/usr/lib/airtime/media-monitor/airtimefilemonitor/airtimenotifier.py", line 80, in handle_message
        self.walk_newly_watched_directory(m['directory'])
      File "/usr/lib/airtime/media-monitor/airtimefilemonitor/airtimenotifier.py", line 206, in walk_newly_watched_directory
        for (path, dirs, files) in os.walk(directory):
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/os.py", line 284, in walk
        if isdir(join(top, name)):
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/posixpath.py", line 70, in join
        path += '/' + b
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/encodings/utf_8.py", line 16, in decode
        return codecs.utf_8_decode(input, errors, True)
    UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 6: invalid continuation byte


  • Hi,

    This appears to be a bug that happens with python 2.6, and a files with strange characters in your watched directory.

    Upgrading to python 2.7 appears to fix this. You can also hunt through your music directory for any files with strange characters in their filename, and try removing these.

    For our next version of Airtime we'll look into a better way to get around this bug.
    Post edited by Martin Konecny at 2012-07-14 17:16:51
    Airtime Pro Hosting: http://airtime.pro
  • On second thought, I believe the problem here is that you have some files on your filesystem that have an invalid filename encoding (not a Python 2.6 bug).

    First, what is the output of "locale" (type this into your terminal)?
    Post edited by Martin Konecny at 2012-07-14 17:35:41
    Airtime Pro Hosting: http://airtime.pro