Airtime playout service down [SOLVED]
  • Vote Up0Vote Down LukeLuke
    Posts: 4Member
    Hi all, 

    i just did a fresh install of airtime 2.5.2.1 with Debian Jessie (8.0) .
    I got this message:

    "Check that the airtime-playout service is installed correctly in /etc/init, and ensure that it's running with 
    initctl list | grep airtime-playout
    If not, try 
    sudo service airtime-playout restart"

    and (of course) playout wont start.....

    Log file /var/log/airtime/pypo/notify.log is empty (true... the service wont start).

    So, after looking a bit around I discover this:

    -----------------------------------------------------------------------------
    /usr/bin/airtime-playout  -t    

    2018-06-29 08:03:17,267 [__main__] [INFO ]  New locale set to: C
    Traceback (most recent call last):
      File "/usr/bin/airtime-playout", line 4, in <module>
        __import__('pkg_resources').run_script('airtime-playout==1.0', 'airtime-playout')
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_script
        self.require(requires)[0].run_script(script_name, ns)
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1438, in run_script
        execfile(script_filename, namespace, namespace)
      File "/usr/local/lib/python2.7/dist-packages/airtime_playout-1.0-py2.7.egg/EGG-INFO/scripts/airtime-playout", line 4, in <module>
        runpy.run_module("pypo", run_name="__main__")
      File "/usr/lib/python2.7/runpy.py", line 180, in run_module
        fname, loader, pkg_name)
      File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
        exec code in run_globals
      File "/usr/local/lib/python2.7/dist-packages/airtime_playout-1.0-py2.7.egg/pypo/__main__.py", line 152, in <module>
        configure_locale()
      File "/usr/local/lib/python2.7/dist-packages/airtime_playout-1.0-py2.7.egg/pypo/__main__.py", line 142, in configure_locale
        current_locale_encoding = locale.getlocale()[1].lower()
    AttributeError: 'NoneType' object has no attribute 'lower'
    -----------------------------------------------------------------------------

    I look around airtime log files but nothing of interesting that can help.... same in syslog log.

    I think there's something of missing about pypo.... but what?
    Luke.


    Post edited by Luke at 2018-06-29 04:33:48
  • 1 Comment sorted by
  • Vote Up0Vote Down LukeLuke
    Posts: 4Member
    .... FIXED

    dpkg-reconfigure locales

    On airtime I use ENGLISH (BRITAIN) so i select this "locales":

    C.UTF-8      
    en_GB.UTF-8  
    en_IE.UTF-8  


    reconfigure it and... It works....

    I hope this post will help someone :)

    Luke.