airtime-media-monitor

  • Dear all,

    sorry to bother you again :(

    i have changed my watched folder
    but media monitor  fail when scanning my folder/

    I've made run "airtime-media-monitor restart"

    I'm wondering what's about read-write right for media folder ?
    www-data 0755    or www-data 2755  ? 

    let's have a look to my media-monitor logs : 

    2012-05-17 17:47:03,048 INFO - [MainThread] [airtimenotifier.py : init_rabbit_mq()] : LINE 38 - Initializing RabbitMQ stuff
    2012-05-17 17:47:03,059 DEBUG - [MainThread] [connection.py : _start()] : LINE 661 - Start from server, version: 8.0, properties: {u'platform': u'Erlang/OTP', u'product': u'RabbitMQ', u'version': u'1.8.1', u'copyright': u'Copyright (C) 2007-2010 LShift Ltd., Cohesive Financial Technologies LLC., and Rabbit Technologies Ltd.', u'information': u'Licensed under the MPL.  See http://www.rabbitmq.com/'}, mechanisms: [u'PLAIN', u'AMQPLAIN'], locales: [u'en_US']
    2012-05-17 17:47:03,060 DEBUG - [MainThread] [connection.py : _open_ok()] : LINE 507 - Open OK! known_hosts [mydomain.net:5672]
    2012-05-17 17:47:03,060 DEBUG - [MainThread] [channel.py : __init__()] : LINE 70 - using channel_id: 1
    2012-05-17 17:47:03,060 DEBUG - [MainThread] [channel.py : _open_ok()] : LINE 484 - Channel open
    2012-05-17 17:47:03,062 INFO - [MainThread] [MediaMonitor.py : <module>()] : LINE 79 - Added watch to /home/subflow/airtime-music/
    2012-05-17 17:47:03,062 INFO - [MainThread] [MediaMonitor.py : <module>()] : LINE 80 - wdd result 1
    2012-05-17 17:47:03,063 INFO - [MainThread] [MediaMonitor.py : <module>()] : LINE 84 - Added watch to /home/subflow/separate/
    2012-05-17 17:47:03,063 INFO - [MainThread] [MediaMonitor.py : <module>()] : LINE 85 - wdd result 5
    2012-05-17 17:47:03,070 ERROR - [MainThread] [MediaMonitor.py : <module>()] : LINE 95 - Exception: 'ascii' codec can't decode byte 0xe4 in position 21: ordinal not in range(128)
    2012-05-17 17:47:03,070 ERROR - [MainThread] [MediaMonitor.py : <module>()] : LINE 96 - traceback: Traceback (most recent call last):
      File "/usr/lib/airtime/media-monitor/MediaMonitor.py", line 83, in <module>
        wdd = notifier.watch_directory(dir)
      File "/usr/lib/airtime/media-monitor/airtimefilemonitor/airtimenotifier.py", line 184, in watch_directory
        return self.wm.add_watch(directory, self.mask, rec=True, auto_add=True)
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/pyinotify.py", line 1887, in add_watch
        for rpath in self.__walk_rec(apath, rec):
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/pyinotify.py", line 2075, in __walk_rec
        for root, dirs, files in os.walk(top):
      File "/usr/lib/airtime/airtime_virtualenv/lib/python2.6/os.py", line 294, in walk
        for x in walk(path, topdown, onerror, followlinks):
      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
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 21: ordinal not in range(128)
    Post edited by Fred Percevault at 2012-05-17 15:20:19
  • 1 Comment sorted by
  • Hi Fred,

    Media Monitor in Airtime 2.0.x had some problems with Unicode filenames. Most if not all of these problems are fixed in 2.1.0 which will have an Release Candidate next week. If you are interested, 2.1.0 beta6 is also available here:

    Airtime Pro Hosting: http://airtime.pro