Watched folders: subdirectories, update speed, sym links
  • Hi,

    some questions re watched folders:

    1. Is the subdirectory of a watched folder also watched?
    2. How often is the watched folder checked, means, how fast appear files in the media library
    3. can I watch symlinked folders (if the permissions are right?)
    4. which permissions should a watched folder have? (I have an extra user for dropbox, do I need to grant o+w (write access) or is read access ok?

    fg
  • 13 Comments sorted by
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    1 -> yes
    2 -> it's a deamon, depending of your cpu, not more few seconds
    3 -> sorry, i've never try (do it Wink, but why do you need a symlinked folder ?
    4 -> a read acces is enought, but if you want change metadatas, you need a write access (but for me this option of airtime don't work...)

  • Ok, then it seems I have a general problem with the media library: neither with the built in fil eupload nor with the watched dropbox folder I get files into the system.

    the files exist physically on the system:

    Quote:

    root@ds023:/srv/airtime/stor/organize# ls -lisa
    total 17948
    5242884 4 drwxrwsrwx 2 www-data www-data 4096 2011-10-10 10:36 .
    5242883 4 drwxrwsrwx 3 www-data www-data 4096 2011-10-09 19:51 ..
    5242886 12928 -rw-r--r-- 1 www-data www-data 13235200 2011-10-10 10:36 18 - Ella Fitzgerald - Take The 'A' Train.mp3
    5242885 5012 -rw-r--r-- 1 www-data www-data 5131264 2011-10-10 00:36 19 - Ella Fitzgerald - Mr. Paganini.mp3

    /home/dropbox/Dropbox/fg@falschgold.net# ls -lisa
    total 26348
    262322 4 drwxr-xr-x 2 dropbox users 4096 2011-10-10 00:11 .
    262313 4 drwxrwxrwx 6 dropbox users 4096 2011-10-09 23:59 ..
    262325 1464 -rw-r--r-- 1 dropbox users 1496454 2010-11-02 10:23 01 - Ella Fitzgerald - Introduction.mp3
    262326 3808 -rw-r--r-- 1 dropbox users 3895696 2010-11-02 10:23 02 - Ella Fitzgerald - Lover Come Back To Me.mp3
    262334 4944 -rw-r--r-- 1 dropbox users 5059982 2010-11-02 10:25 03 - Ella Fitzgerald - Too Close For Comfort.mp3
    262338 5400 -rw-r--r-- 1 dropbox users 5529483 2010-11-02 10:27 04 - Ella Fitzgerald - Little White Lies.mp3
    262339 5432 -rw-r--r-- 1 dropbox users 5562264 2010-11-02 10:30 05 - Ella Fitzgerald - On The Sunny Side Of The Street.mp3
    262335 5288 -rw-r--r-- 1 dropbox users 5411223 2010-11-02 10:32 06 - Ella Fitzgerald - Ac-cent-tchu-ate The Positive.mp3
    262323 4 -rw-r--r-- 1 dropbox users 46 2011-10-09 23:59 .dropbox



    and the directories have at least read rights.

    the log (is it /var/log/airtime/media-monitor/media-monitor.log ?) show's nothing what helps me immediately:

    Quote:

    2011-10-09 19:52:09,809 DEBUG - [MainThread] [connection.py : _open_ok()] : LINE 494 - Open OK! known_hosts [ds023.patsplanet.com:5672]
    2011-10-09 19:52:09,809 DEBUG - [MainThread] [channel.py : __init__()] : LINE 70 - using channel_id: 1
    2011-10-09 19:52:09,810 DEBUG - [MainThread] [channel.py : _open_ok()] : LINE 484 - Channel open
    2011-10-09 19:52:10,075 INFO - [MainThread] [MediaMonitor.py : <module>()] : LINE 78 - Added watch to /srv/airtime/stor/
    2011-10-09 19:52:10,075 INFO - [MainThread] [MediaMonitor.py : <module>()] : LINE 79 - wdd result 1
    2011-10-10 00:04:57,570 INFO - [MainThread] [airtimenotifier.py : handle_message()] : LINE 63 - Received md from RabbitMQ: {"directory":"\/
    home\/dropbox\/Dropbox","event_type":"new_watch"}
    2011-10-10 00:04:57,570 INFO - [MainThread] [airtimenotifier.py : handle_message()] : LINE 71 - AIRTIME NOTIFIER add watched folder event /
    home/dropbox/Dropbox
    2011-10-10 00:05:58,359 DEBUG - [MainThread] [airtimeprocessevent.py : handle_created_file()] : LINE 48 - PROCESS_IN_CREATE: False, name: m
    _efL56CemPeh9K8It3h1xul9m9iBqxLb6SGsBjrpuY, pathname: /home/dropbox/Dropbox/.dropbox.cache/m_efL56CemPeh9K8It3h1xu l9m9iBqxLb6SGsBjrpuY
    2011-10-10 00:05:58,359 ERROR - [MainThread] [MediaMonitor.py : <module>()] : LINE 92 - Exception: list index out of range


    could it be, that this thing crashed? what process should be running?

    fg
  • to answer 3. - It may be that a lot of different media folders will be being watched and to symlink them all into one sub directory would help to clean them up from time to time..
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    to answer 3 (too) - I don't really anderstand why, with the 1.9.x versions you can add/delete viewed directories when you decide to do...

    but if that's working for you, why not Wink
  • sure, but I plan to do some maintenace from time to time a la:

    Quote:

    find /srv/airtime -type f -mtime +60 | xargs rm


  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    By Thor !

    this is a way, that's sure Wink
  • yep, we plan a colaborative radio station and all experience tells, that the DJs start to use you server as file storage Wink
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    Well, it's a good idea
    but airtime, is not really prepared to that...
    we can not attach a song to a user (or have in the playlist builder any information about the uploader)
    and another thing, all users have access to the integrality of songs... not really a good way to do what you want...(in general is not a good way Sad
  • that's a noble thought, but with limited resources, a fair warning followed by a clean up should be ok. the x days limit will apply to everyone.. the only question remains, can airtime cope with the sudden disappearance of files..
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    Airtime does handle this and will automatically remove the file from the
    schedule and any playlists that it belongs to.

  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    Looks like it did crash, I have created a ticket for this:
    http://dev.sourcefabric.org/browse/CC-2954

  • It seems it doesn't get along with the rapid creation/deletion of a lot of strangely named files in the dropbox cache. the easiest solution would be to exclude the .dropbox-cache directory and sub directories..

    fg
  • Hi Herr,

    Have a quick question about the situation.

    1. Did you copy or move the file?
    2. Did you copy/move file on the local machine? or via Web?

    It would be great if you can describe the steps you went through before you got into the situation.

    Thank you