Media monitor not works after update Airtime 2.0.3 to 2.1.2
  • I have just updated Airtime 2.0.3 to  2.1.2 on dedian server, but I have some errors.  

    Media monitor is not working. Here is the display of airtime-check-system

    AIRTIME_STATUS_URL             = http://localhost:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 2.6.32-5-amd64
    MACHINE_ARCHITECTURE           = x86_64
    TOTAL_MEMORY_MBYTES            = 2027756
    TOTAL_SWAP_MBYTES              = UNKNOWN
    AIRTIME_VERSION                = 2.1.2
    OS                             = Debian GNU/Linux 6.0.5 (squeeze) x86_64
    CPU                            = VIA Nano processor U2250 (1.6GHz Capable)
    WEB_SERVER                     = Apache/2.2.16 (Debian)
    PLAYOUT_ENGINE_PROCESS_ID      = 9930
    PLAYOUT_ENGINE_RUNNING_SECONDS = 266215
    PLAYOUT_ENGINE_MEM_PERC        = 0.7%
    PLAYOUT_ENGINE_CPU_PERC        = 0.0%
    LIQUIDSOAP_PROCESS_ID          = 9934
    LIQUIDSOAP_RUNNING_SECONDS     = 266215
    LIQUIDSOAP_MEM_PERC            = 1.0%
    LIQUIDSOAP_CPU_PERC            = 100.0%
    MEDIA_MONITOR_PROCESS_ID       = FAILED
    MEDIA_MONITOR_RUNNING_SECONDS  = -1
    MEDIA_MONITOR_MEM_PERC         = 0%
    MEDIA_MONITOR_CPU_PERC         = 0%
    RABBITMQ_PROCESS_ID            = 1097
    RABBITMQ_RUNNING_SECONDS       = 298437
    RABBITMQ_MEM_PERC              = 1.3%
    RABBITMQ_CPU_PERC              = 0.0%

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


    Version : 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux


    Thanks in advance
    DS
  • 5 Comments sorted by
  • here are the errors on /var/log/airtime/media-monitor/media-monitor.log :

    2012-07-09 15:32:20,929 ERROR - [MainThread] [media_monitor.py : <module>()] : LINE 144 - traceback: Traceback (most recent call last):
    2012-07-09 15:32:31,156 ERROR - [MainThread] [mediamonitorcommon.py : exec_command()] : LINE 285 - Could not decode None using UTF-8
    2012-07-09 15:32:31,157 ERROR - [MainThread] [media_monitor.py : <module>()] : LINE 143 - Exception: 'NoneType' object has no attribute 'splitlines'

    Thanks
    DS
    Post edited by davy steeve at 2012-07-09 09:36:12
  • Hi Davy,

    This has to do with your system not have a UTF-8 locale by default.

    Since you are running Debian this is an easy fix. Please run 

    sudo dpkg-reconfigure locales

    which will bring up a menu to allow you to select a locale. For me I would use en_CA.UTF-8 for English/Canada. Make sure your locale has a UTF-8 ending. Now press OK, and on the next screen make sure this locale is the default one. Then media-monitor should run.


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

    Thank you for your feedback, but this  setting is already done.

    #  File generated by update-locale
    LANG=fr_FR.UTF-8

    Thanks

  • What is the output of

    "locale"

    on your system?

    Also out of curiousity, are you mounting an external or network drive for use in media-monitor?
    Airtime Pro Hosting: http://airtime.pro
  • hi,

    here is :

    LANG=fr_FR.UTF-8
    LANGUAGE=
    LC_CTYPE="fr_FR.UTF-8"
    LC_NUMERIC="fr_FR.UTF-8"
    LC_TIME="fr_FR.UTF-8"
    LC_COLLATE="fr_FR.UTF-8"
    LC_MONETARY="fr_FR.UTF-8"
    LC_MESSAGES="fr_FR.UTF-8"
    LC_PAPER="fr_FR.UTF-8"
    LC_NAME="fr_FR.UTF-8"
    LC_ADDRESS="fr_FR.UTF-8"
    LC_TELEPHONE="fr_FR.UTF-8"
    LC_MEASUREMENT="fr_FR.UTF-8"
    LC_IDENTIFICATION="fr_FR.UTF-8"
    LC_ALL=

    And I only use an internal drive.

    Thanks
    DS