Problem importing music
  • Vote Up0Vote Down LinusLinus
    Posts: 12Member
    I have this odd problem.

    When I put something in the watch-folder everything is working perfect as it should. But when I put something in the organize-folder. The file moves to the import-folder but nothing is stored in the database.

     This is what I get from the media-monitor.log

    -03-20 14:43:25,005 INFO - [Thread-3] [watchersyncer.py : run()] : LINE 39 - We have 1 events that are unflushed
    2013-03-20 14:43:25,005 INFO - [Thread-3] [watchersyncer.py : flush_events()] : LINE 107 - Force flushing events...
    2013-03-20 14:43:25,005 INFO - [Thread-3] [watchersyncer.py : push_request()] : LINE 146 - WatchSyncer : Unleashing request
    2013-03-20 14:43:25,005 INFO - [Thread-10] [request.py : run_request()] : LINE 34 - Attempting request with 1 items.
    2013-03-20 14:43:26,723 INFO - [Thread-10] [api_client.py : send_media_monitor_requests()] : LINE 295 - Pumping out 1 requests...
    2013-03-20 14:43:27,059 INFO - [Thread-10] [request.py : run_request()] : LINE 54 - Request was successful
    2013-03-20 14:43:35,416 INFO - [Thread-2] [listeners.py : flush_events()] : LINE 62 - Bootstrapping: File in 'organize' directory:                     '/mnt/airtime/stor/organize/01 Askungen.mp3'
    2013-03-20 14:43:35,590 INFO - [Thread-2] [owners.py : get_owner()] : LINE 12 - Received owner for /mnt/airtime/stor/organize/01 Askungen.mp3. Owner: -1
    2013-03-20 14:43:35,590 INFO - [Thread-2] [events.py : __init__()] : LINE 96 - did not match path: /mnt/airtime/stor/organize/01 Askungen.mp3
    2013-03-20 14:43:42,351 INFO - [Thread-2] [manager.py : __add_watch()] : LINE 99 - Attempting to add listener to path '/mnt/airtime/stor/imported/1/Okänd artist/Askungen'
    2013-03-20 14:43:42,352 INFO - [Thread-2] [manager.py : __add_watch()] : LINE 100 - Listener: Listener(StoreWatchListener), Signal(hosted_install_watch)
    2013-03-20 14:43:42,355 INFO - [Thread-2] [organizer.py : handle()] : LINE 80 - Organized: "/mnt/airtime/stor/organize/01 Askungen.mp3" into "/mnt/airtime/stor/imported/1/Okand artist/Askungen/1-Askungen-192kbps.mp3"
    2013-03-20 14:43:42,356 INFO - [Thread-1] [owners.py : get_owner()] : LINE 12 - Received owner for /mnt/airtime/stor/imported/1/Okand artist/Askungen/1-Askungen-192kbps.mp3. Owner: 1
    2013-03-20 14:43:42,357 INFO - [Thread-1] [events.py : __init__()] : LINE 93 - matched path: /mnt/airtime/stor/imported/1/Oand artist/Askungen/1-Askungen-192kbps.mp3
    2013-03-20 14:43:42,357 INFO - [Thread-1] [watchersyncer.py : handle()] : LINE 65 - Received event 'NewFile'. Path: '/mnt/airtime/stor/imported/1/Okand artist/Askungen/1-Askungen-192kbps.mp3'
    2013-03-20 14:43:42,357 INFO - [Thread-1] [watchersyncer.py : push_queue()] : LINE 97 - Added event into queue
    2013-03-20 14:43:43,020 INFO - [Thread-3] [watchersyncer.py : run()] : LINE 39 - We have 1 events that are unflushed
    2013-03-20 14:43:43,021 INFO - [Thread-3] [watchersyncer.py : flush_events()] : LINE 107 - Force flushing events...
    2013-03-20 14:43:43,021 INFO - [Thread-3] [watchersyncer.py : push_request()] : LINE 146 - WatchSyncer : Unleashing request
    2013-03-20 14:43:43,021 INFO - [Thread-11] [request.py : run_request()] : LINE 34 - Attempting request with 1 items.
  • 6 Comments sorted by
  • Vote Up0Vote Down LinusLinus
    Posts: 12Member
    I just upgraded from 2.2 to 2.3 but the problem still remains.
  • Vote Up0Vote Down LinusLinus
    Posts: 12Member

    I tried to remove silan but that didnt helped.
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    upgrade to 2.3.1 and retry
    but sometimes this problem is due to an host misconfiguration

  • Vote Up0Vote Down LinusLinus
    Posts: 12Member
    No. Sorry it didnt help. Is it any other logs that I can take a look in?

    Were is the host configured?
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    the hostname ;-)

    anyway look here : /var/log/airtime/
  • Vote Up0Vote Down LinusLinus
    Posts: 12Member
    I maybe got something here from pypo.log. 


    2013-03-21 11:03:47,876 ERROR - [silananalyzer.py : main() : line 56] - No JSON object could be decoded
    2013-03-21 11:03:47,877 ERROR - [silananalyzer.py : main() : line 57] - Traceback (most recent call last):
      File "/usr/lib/airtime/pypo/bin/media/update/silananalyzer.py", line 47, in main
        info = json.loads(out)
      File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
        return _default_decoder.decode(s)
      File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
        raise ValueError("No JSON object could be decoded")
    ValueError: No JSON object could be decoded


    If I want to add an extra line to silananalyzer.py to print_out the json-call in the log. Do I need to compile the file or is it just adding an extra line?

    Im thinking of adding

    self.logger.error(out)

    to line 56

    Post edited by Linus at 2013-03-21 07:08:27