Unable to access uploaded tracks in the Playlist Builder
  • Hi Guy´s...

    We are having some issues regarding being able to access the uploadet tracks after the upload is finished..
    It says that it´s 100 % uploaded and there´s a green tag (v) after the percentage. But we cant find it in the playlistfolder.

    Anyone with a solution??

    Thx :)
  • 10 Comments sorted by
  • Please post media monitor log. It's in /var/log/airtime/media-monitor
    What version of Airtime are you using?
  • Using the newest version.... I´ll ask my webguy to find the log you are asking for :)

  • 2012-05-31 21:57:50,575 INFO - [Thread #0] [airtimemetadata.py : get_md_from_file()] : LINE 120 - getting info from filepath /srv/airtime/stor/imported/Mixed by Jesper Nexø/unkno
    wn/01-TechHouse DJ Promotion Mix-230kbps.mp3
    2012-05-31 21:57:50,925 ERROR - [Thread #0] [api_client.py : update_media_metadata()] : LINE 454 - Exception with file {'MDATA_KEY_CREATOR': 'Mixed by Jesper Nex\xc3\xb8', 'MDATA_KEY_GENRE': 'Tech-House', 'MDATA_KEY_MD5': 'cb63bfba5b1d142d547f67bb8666141d', 'MDATA_KEY_ENCODER': 'Lame-encoded', 'MDATA_KEY_BPM': 128, 'MDATA_KEY_COPYRIGHT': 'Various copyrights by VA', 'MDATA_KEY_YEAR': '2010', 'MDATA_KEY_MIME': 'audio/mp3', 'MDATA_KEY_FILEPATH': '/srv/airtime/stor/imported/Mixed by Jesper Nex\xc3\xb8/unknown/01-TechHouse DJ Promotion Mix-230kbps.mp3', 'MDATA_KEY_DURATION': '0:58:24.718367', 'MDATA_KEY_SAMPLERATE': 44100, 'MDATA_KEY_LABEL': 'None', 'MDATA_KEY_FTYPE': 'audioclip', 'MDATA_KEY_TRACKNUMBER': 1, 'MDATA_KEY_BITRATE': 230201, 'MDATA_KEY_COMPOSER': 'JJ', 'MDATA_KEY_TITLE': 'TechHouse DJ Promotion Mix'}: HTTP Error 404: Not Found
    2012-05-31 21:58:57,446 INFO - [MainThread] [airtimeprocessevent.py : process_IN_MOVED_TO()] : LINE 175 - process_IN_MOVED_TO: <Event cookie=90365 dir=False mask=0x80 maskname=IN_MOVED_TO name=Dj Engell - 1 times Mix Maj.mp3 path=/srv/airtime/stor/organize pathname=/srv/airtime/stor/organize/Dj Engell - 1 times Mix Maj.mp3 wd=2 >
    2012-05-31 21:58:57,447 INFO - [MainThread] [mediamonitorcommon.py : organize_new_file()] : LINE 270 - Organizing new file: /srv/airtime/stor/organize/Dj Engell - 1 times Mix Maj.mp3
    2012-05-31 21:58:57,447 INFO - [MainThread] [airtimemetadata.py : get_md_from_file()] : LINE 120 - getting info from filepath /srv/airtime/stor/organize/Dj Engell - 1 times Mix Maj.mp3
    2012-05-31 21:58:57,669 INFO - [MainThread] [mediamonitorcommon.py : create_file_path()] : LINE 240 - Unique filepath: /srv/airtime/stor/imported/Dj Engell/Engels Megamix/1 times mix maj-128kbps.mp3
    2012-05-31 21:58:57,670 DEBUG - [MainThread] [mediamonitorcommon.py : organize_new_file()] : LINE 276 - Moving from /srv/airtime/stor/organize/Dj Engell - 1 times Mix Maj.mp3 to /srv/airtime/stor/imported/Dj Engell/Engels Megamix/1 times mix maj-128kbps.mp3
    2012-05-31 21:58:57,772 INFO - [MainThread] [airtimeprocessevent.py : process_IN_CREATE()] : LINE 93 - event: <Event dir=True mask=0x40000100 maskname=IN_CREATE|IN_ISDIR name=Engels Megamix path=/srv/airtime/stor/imported/Dj Engell pathname=/srv/airtime/stor/imported/Dj Engell/Engels Megamix wd=312 >
    2012-05-31 21:58:57,773 INFO - [MainThread] [airtimeprocessevent.py : process_IN_MOVED_FROM()] : LINE 163 - process_IN_MOVED_FROM: <Event cookie=90366 dir=False mask=0x40 maskname=IN_MOVED_FROM name=Dj Engell - 1 times Mix Maj.mp3 path=/srv/airtime/stor/organize pathname=/srv/airtime/stor/organize/Dj Engell - 1 times Mix Maj.mp3 wd=2 >
    2012-05-31 21:58:57,773 INFO - [MainThread] [airtimeprocessevent.py : process_IN_MOVED_TO()] : LINE 175 - process_IN_MOVED_TO: <Event cookie=90366 dir=False mask=0x80 maskname=IN_MOVED_TO name=1 times mix maj-128kbps.mp3 path=/srv/airtime/stor/imported/Dj Engell/Engels Megamix pathname=/srv/airtime/stor/imported/Dj Engell/Engels Megamix/1 times mix maj-128kbps.mp3 src_pathname=/srv/airtime/stor/organize/Dj Engell - 1 times Mix Maj.mp3 wd=360 >
    2012-05-31 21:58:57,774 INFO - [Thread #3] [workerprocess.py : process_file_events()] : LINE 9 - received event {'is_recorded_show': False, 'mode': 'create', 'filepath': '/srv/airtime/stor/imported/Dj Engell/Engels Megamix/1 times mix maj-128kbps.mp3'}
    2012-05-31 21:58:57,774 INFO - [Thread #3] [airtimenotifier.py : update_airtime()] : LINE 134 - updating filepath: /srv/airtime/stor/imported/Dj Engell/Engels Megamix/1 times mix maj-128kbps.mp3
    2012-05-31 21:58:57,774 INFO - [Thread #3] [airtimemetadata.py : get_md_from_file()] : LINE 120 - getting info from filepath /srv/airtime/stor/imported/Dj Engell/Engels Megamix/1 times mix maj-128kbps.mp3
    2012-05-31 21:58:57,954 ERROR - [Thread #3] [api_client.py : update_media_metadata()] : LINE 454 - Exception with file {'MDATA_KEY_MD5': 'c988b49ff03735c2852a45ab7bf2d587', 'MDATA_KEY_GENRE': 'House', 'MDATA_KEY_CREATOR': 'Dj Engell', 'MDATA_KEY_FTYPE': 'audioclip', 'MDATA_KEY_FILEPATH': '/srv/airtime/stor/imported/Dj Engell/Engels Megamix/1 times mix maj-128kbps.mp3', 'MDATA_KEY_MIME': 'audio/mp3', 'MDATA_KEY_DURATION': '1:2:15.20525', 'MDATA_KEY_SAMPLERATE': 44100, 'MDATA_KEY_SOURCE': 'Engels Megamix', 'MDATA_KEY_BITRATE': 128000, 'MDATA_KEY_TITLE': '1 times mix maj'}: HTTP Error 404: Not Found
    2012-05-31 22:03:00,324 INFO - [MainThread] [MediaMonitor.py : <module>()] : LINE 32 -

    *** Media Monitor bootup ***


    2012-05-31 22:03:00,395 ERROR - [MainThread] [api_client.py : register_component()] : LINE 577 - Exception: <urlopen error [Errno 111] Connection refused>
    2012-05-31 22:03:00,395 INFO - [MainThread] [MediaMonitor.py : <module>()] : LINE 39 - Setting up monitor
    2012-05-31 22:03:00,396 ERROR - [MainThread] [api_client.py : get_response_from_server()] : LINE 188 - Error Authenticating with remote server: [Errno socket error] [Errno 111] Connection refused
    2012-05-31 22:03:05,464 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 413 - Exception: No JSON object could be decoded
    2012-05-31 22:03:10,470 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 413 - Exception: No JSON object could be decoded
    2012-05-31 22:03:15,477 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 413 - Exception: No JSON object could be decoded
    2012-05-31 22:03:20,483 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 413 - Exception: No JSON object could be decoded
    2012-05-31 22:03:25,486 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 413 - Exception: No JSON object could be decoded
    2012-05-31 22:03:30,492 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 413 - Exception: No JSON object could be decoded
    2012-05-31 22:03:35,497 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 413 - Exception: No JSON object could be decoded
    2012-05-31 22:03:40,502 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 413 - Exception: No JSON object could be decoded


    The last one goes on forever.

    Status is green for all services in the admin.
  • It looks like the media monitor is not able to connect to apache. Can you post your airtime.conf file?
    it's under /etc/airtime/.
    When you post it, please remove api key as that is unique password for everyone.

  • Can you also post api_client.cfg as well? it's also under /etc/airtime
  • Ok :) I´ll ask him to send me the data, then I´ll post it... it might first be in the morning as it is 23:30 here in Denmark right now, but I´ll try to see if he´s still up. :)

  • ok if that's a case, can you also post /var/log/airtime/media-monitor/py-interpreter.log?
    It would be helpful if you can get me exact version number of airtime. It's say on the bottom of login screen.
    Can you also find out what port on the server is airtime running on? if you manually changed port, that could be the problem.
  • Hi James,

    Here is the first part:

    airtime.conf:


    [database]
    host = 127.0.0.1
    dbname = airtime
    dbuser = airtime
    dbpass = airtime

    [rabbitmq]
    host = 127.0.0.1
    port = 5672
    user = guest
    password = guest
    vhost = /

    [general]
    api_key = <removed>
    web_server_user = www-data
    airtime_dir = /usr/share/airtime/
    base_url = localhost
    base_port = 80

    [soundcloud]
    connection_retries = 3
    time_between_retries = 60


    Can I change the db-password by the wway?

    api_client.cf with comments removed - sorted, and unique lines only:

    add_watched_dir = 'add-watched-dir/format/json/api_key/%%api_key%%/path/%%path%%'
    api_base = 'api'
    api_key = '<removed>'
    base_port = 80
    base_url = 'localhost'
    bin_dir = "/usr/lib/airtime/api_clients"
    export_url = 'schedule/api_key/%%api_key%%'
    generate_range_url = 'generate_range_dp.php'
    get_media_url = 'get-media/file/%%file%%/api_key/%%api_key%%'
    get_stream_setting = 'get-stream-setting/format/json/api_key/%%api_key%%/'
    list_all_db_files = 'list-all-files/format/json/api_key/%%api_key%%/dir_id/%%dir_id%%'
    list_all_watched_dirs = 'list-all-watched-dirs/format/json/api_key/%%api_key%%'
    media_setup_url = 'media-monitor-setup/format/json/api_key/%%api_key%%'
    register_component = 'register-component/format/json/api_key/%%api_key%%/component/%%component%%'
    remove_watched_dir = 'remove-watched-dir/format/json/api_key/%%api_key%%/path/%%path%%'
    set_storage_dir = 'set-storage-dir/format/json/api_key/%%api_key%%/path/%%path%%'
    show_schedule_url = 'recorded-shows/format/json/api_key/%%api_key%%'
    update_item_url = 'notify-schedule-group-play/api_key/%%api_key%%/schedule_id/%%schedule_id%%'
    update_liquidsoap_status = 'update-liquidsoap-status/format/json/api_key/%%api_key%%/msg/%%msg%%/stream_id/%%stream_id%%/boot_time/%%boot_time%%'
    update_media_url = 'reload-metadata/format/json/api_key/%%api_key%%/mode/%%mode%%'
    update_start_playing_url = 'notify-media-item-start-play/api_key/%%api_key%%/media_id/%%media_id%%/schedule_id/%%schedule_id%%'
    upload_file_url = 'upload-file/format/json/api_key/%%api_key%%'
    upload_recorded = 'upload-recorded/format/json/api_key/%%api_key%%/fileid/%%fileid%%/showinstanceid/%%showinstanceid%%'
    upload_retries = 3
    upload_wait = 60
    version_url = 'version/api_key/%%api_key%%'


    But then my webguy says:

    "i think the error is found. it seems that your application ties up apache pretty hard to the default vhost. can i use a named vhost instead?"
  • Hi,

    I don't know what he means by airtime "ties up apache pretty hard to default vhost". Airtime doesn't modify/use default vhost file. It create it's own. You can use any vhost file as long as that file has correct configuration. But if you're not using port 80 for airtime. You should change the port filed in airtime.cfg and api_clinet.cfg.
  • @Kim,

    Did you solve the problem?
    Airtime Pro Hosting: http://airtime.pro