No files on library after uploads
  • Hello,

    Im new with airtime and im having a problem after what apparently was a no error install...

    Im using a openvz vps with ubuntu 10.04 as a guest and the problem is that wen i try to ad a media file, the file doesnt show up in the playlist builder
    all it says is "No data available in table"

    The mp3 files were store in /srv/airtime/stor/organize/
    and are owned by ww-data

    I dont know where to look :/ i was cheking folder permissions and they looks fine..
    Again, my setup is this one:
    • Openvz VPS 512 Ram
    • Ubuntu 10.04
    • Airtime 1.9.4
    • Icecast on same server

    I'll really appreciated if anybody give me a hand here...

    thanks.




    Post edited by Amauri Berroa at 2011-11-11 07:36:57
  • 12 Comments sorted by
  • The folder has been set correctly but nothing :/ same error :/

    here some error that im gething 

    # airtime-check-system
    CPU                            = Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
    Total RAM                      = 524288 kB
    Free RAM                       = 264188 kB
    OS                             = Ubuntu 10.04.3 LTS x86-64
    AIRTIME_CONFIG_FILES           = OK
    POSTGRESQL_DATABASE            = OK
    PYTHON_KOMBU_VERSION           = 1.2.0
    PYTHON_POSTER_VERSION          = 0.8.1
    PYTHON_MUTAGEN_VERSION         = 1.20
    PYTHON_PYINOTIFY_VERSION       = 0.9.2
    RABBITMQ_SERVER                = OK
    AIRTIME_VERSION_URL            = http://localhost:80/api/version/api_key/%%api_k                     ey%%
    APACHE_CONFIGURED              = YES
    AIRTIME_VERSION                = 1.9.4
    PLAYOUT_ENGINE_PROCESS_ID      = 263
    PLAYOUT_ENGINE_RUNNING_SECONDS = 1123
    LIQUIDSOAP_PROCESS_ID          = 267
    LIQUIDSOAP_RUNNING_SECONDS     = 1123
    MEDIA_MONITOR_PROCESS_ID       =
    MEDIA_MONITOR_RUNNING_SECONDS  = 0
      -- WARNING! It looks like the Media Monitor engine is continually restarting.
      -- 2011-11-11 07:41:25,279 INFO - [MainThread] [MediaMonitor.py : <module>()]                      : LINE 32 -
      --
      -- *** Media Monitor bootup ***
      --
      --
      -- 2011-11-11 07:41:25,280 INFO - [MainThread] [MediaMonitor.py : <module>()]                      : LINE 38 - Setting up monitor
      -- 2011-11-11 07:41:25,354 INFO - [MainThread] [api_client.py : setup_media_mo                     nitor()] : LINE 394 - Connected to Airtime Server. Json Media Storage Dir: {u'wa                     tched_dirs': [], u'stor': u'/srv/airtime/'}
      -- 2011-11-11 07:41:30,360 INFO - [MainThread] [MediaMonitor.py : <module>()]                      : LINE 46 - Storage Directory is: /srv/airtime/
      -- 2011-11-11 07:41:30,363 ERROR - [MainThread] [MediaMonitor.py : <module>()]                      : LINE 55 - Exception: [Errno 38] Function not implemented
      -- 2011-11-11 07:41:30,375 ERROR - [MainThread] [MediaMonitor.py : <module>()]                      : LINE 92 - Exception: name 'multi_queue' is not defined
    SHOW_RECORDER_PROCESS_ID       = 272
    SHOW_RECORDER_RUNNING_SECONDS  = 1123
    ICECAST_PROCESS_ID             = 273

  • I also tried changing the media folder to where the mp3 files are "/srv/airtime/stor/organize" with no sucess at all.


    Post edited by Amauri Berroa at 2011-11-11 08:31:34
  • Hi Amauri,

    This is a known problem on some hosted platforms. This appears to be the solution:

    Here's the rest of the thread:


    Post edited by Martin Konecny at 2011-11-11 09:11:20
    Airtime Pro Hosting: http://airtime.pro
  • I have tried that , still same problem.  Im going to rebuilt the vps and try with a fresh install again.. :/
    I'll get back with more info.. 

    Thanks Martin.
    Post edited by Amauri Berroa at 2011-11-11 09:52:20
  • I have reinstalled the vps, followed the system preparation/. i have no sound, and im in a fresh ubuntu 10.04 64bit, so no webmin, no Rabitmq.

    Then, started the installation process, no error at the moment..

    The Installation went trough just fine..,

    *** Verifying your system environment ***
    CPU                            = Intel(R) Xeon(R) CPU E31230 @ 3.20GHz
    Total RAM                      = 524288 kB
    Free RAM                       = 1228 kB
    OS                             = Ubuntu 10.04.3 LTS x86-64
    AIRTIME_CONFIG_FILES           = OK
    POSTGRESQL_DATABASE            = OK
    PYTHON_KOMBU_VERSION           = 1.2.0
    PYTHON_POSTER_VERSION          = 0.8.1
    PYTHON_MUTAGEN_VERSION         = 1.20
    PYTHON_PYINOTIFY_VERSION       = 0.9.2
    RABBITMQ_SERVER                = OK
    AIRTIME_VERSION_URL            = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED              = YES
    AIRTIME_VERSION                = 1.9.4
    PLAYOUT_ENGINE_PROCESS_ID      = 3641
    PLAYOUT_ENGINE_RUNNING_SECONDS = 5
    LIQUIDSOAP_PROCESS_ID          = 3644
    LIQUIDSOAP_RUNNING_SECONDS     = 5
    MEDIA_MONITOR_PROCESS_ID       = 3686
    MEDIA_MONITOR_RUNNING_SECONDS  = 5
    SHOW_RECORDER_PROCESS_ID       = 3667
    SHOW_RECORDER_RUNNING_SECONDS  = 5
    ICECAST_PROCESS_ID             = 3314

      -- System setup looks OK!


    Double chek the  Post Installation steps

    But still no joy :( , it doesn't even upload the file.

    Update: after restarting the server, airtime-check-system still says everything is ok but still cant upload any media, tested with all mayor browsers.

    How is this possible? 4 fresh reinstall and nothing :/








    Post edited by Amauri Berroa at 2011-11-11 10:56:05
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    adding :

    # -*- coding: utf-8 -*-

    on the first line of

    nano /usr/lib/airtime/media-monitor/MediaMonitor.py

    resolve this problem in a lot of cases for me ;)
  • You guys wont believe this...  Earlier, i was truly having problems showing the media on the playlist builder.

    If you read back I told that after my 4th install there was a new error, I wasn't able to upload the files at all. 
    That wasn't true! It was my fault, I completely forgot to hit the start upload after +Add files, it was like i was waiting for airtime to do it on the fly..

    so now that i wake up feeling to give another try to airtime,  this time i did get notice of the button and the file uploaded and it is on the playlist builder. :)

    I don't know which one of these modification made the trick, but it is worth to give a try

    added the following to my /etc/fstab/
    none dev/shm tmpfs rw,nosuid,nodev,noexec 0 0

    added # -*- coding: utf-8 -*-
    to /usr/lib/airtime/media-monitor/MediaMonitor.py 

    Thanks all for your help :)


    Post edited by Amauri Berroa at 2011-11-11 17:47:18
  • The first item is definitely the cause of the fix. The second item isn't related to your problem in this case 

    LINE 92 - Exception: name 'multi_queue' is not defined - this is caused when you are on a hosting environment like Amazon S3, and shared memory between processes is disabled by default.
    Airtime Pro Hosting: http://airtime.pro
  • I'd actually recommend undoing the " # -*- coding: utf-8 -*-" change, because now you are running a custom version of Airtime, and any problems you experience in the future may not be reproducible by us. 
    Airtime Pro Hosting: http://airtime.pro
  • Hello,

    I just removed the # -*- coding: utf-8 -*- part, rebooted and everything is fine..

    Thanks Martin.

    PS: i guest that you mean Amazon EC2 right?
  • Hi guys,
    I am having the same problem. I can upload files to server and they all appear in /srv/airtime/stor/imported  . However, none of them are added to the library.

    I've added the line to /etc/fstab and I even tried with the extra line in media_monitor.py , but still nothing.
    When I restart RabbitMQ. I can see in the logs file that it finds all my files. In fact, every time I upload an mp3, I get this on the media-monitor.log


    2013-07-13 01:01:16,869 INFO - [Thread-1] [owners.py : get_owner()] : LINE 12 - Received owner for /srv/airtime/stor/imported/2/Mana/Mana/1-Robot-128kbps.mp3. Owner: 2
    2013-07-13 01:01:16,870 INFO - [Thread-1] [events.py : __init__()] : LINE 93 - matched path: /srv/airtime/stor/imported/2/Mana/Mana/1-Robot-128kbps.mp3
    2013-07-13 01:01:16,870 INFO - [Thread-1] [watchersyncer.py : handle()] : LINE 65 - Received event 'NewFile'. Path: '/srv/airtime/stor/imported/2/Mana/Mana/1-Robot-128kbps.mp3'
    2013-07-13 01:01:16,870 INFO - [Thread-1] [watchersyncer.py : push_queue()] : LINE 97 - Added event into queue
    2013-07-13 01:01:19,731 INFO - [Thread-3] [watchersyncer.py : run()] : LINE 39 - We have 1 events that are unflushed
    2013-07-13 01:01:19,732 INFO - [Thread-3] [watchersyncer.py : flush_events()] : LINE 107 - Force flushing events...
    2013-07-13 01:01:19,732 INFO - [Thread-3] [watchersyncer.py : push_request()] : LINE 146 - WatchSyncer : Unleashing request
    2013-07-13 01:01:19,732 INFO - [Thread-8] [request.py : run_request()] : LINE 34 - Attempting request with 1 items.
    2013-07-13 01:01:19,739 INFO - [Thread-8] [api_client.py : send_media_monitor_requests()] : LINE 299 - Pumping out 1 requests...
    2013-07-13 01:01:20,352 INFO - [Thread-8] [request.py : run_request()] : LINE 54 - Request was successful


    It seems like everything is OK, but my media library is empty. One particular thing I've noticed: using the console, if I cd into any dir with spaces in its name (say "Amy Winehouse"), I get this message:

    root@airtime imported/2# cd Amy\ Winehouse/
    dirname: extra operand `Winehouse'
    Try `dirname --help' for more information.
    dirname: missing operand
    Try `dirname --help' for more information.
    -bash: [: =: unary operator expected

    Maybe that's a clue for you guys. For me it's like chinese :D

    Thanks for any help!