airtime-import not working?
  • Hi,

    After upgrade to 2.2.0 , I can't upload files from web interface.
    Upload produces no error, but files are only moved to "/srv/airtime/stor/organize/"

    For some reason, files aren't imported correctly to Airtime.

    - Checked permissions:
    drwxrwsr-x 602 root     www-data 20480 2012-10-30 11:44 imported
    drwxrwsr-x   2 root     www-data  4096 2012-10-30 17:41 organize

    - I've tried upload with mp3 files and ogg

    - Log file shows no errors:

    # tail /var/log/airtime/zendphp.log
    2012-10-30T17:37:29+00:00 INFO (6): [StoredFile.php : uploadFile() : line 811] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p17apbv4q2146ab82db1umr1t9b4.mp3 to /tmp/plupload
    2012-10-30T17:37:29+00:00 INFO (6): [StoredFile.php : copyFileToStor() : line 904] - copyFileToStor: moving file /tmp/plupload/p17apbv4q2146ab82db1umr1t9b4.mp3
    2012-10-30T17:37:29+00:00 INFO (6): [StoredFile.php : copyFileToStor() : line 956] - Successfully written identification file for
                    uploaded '/srv/airtime/stor/organize/moscanasopa.mp3'
    2012-10-30T17:37:29+00:00 INFO (6): [StoredFile.php : copyFileToStor() : line 958] - copyFileToStor: moving file /tmp/plupload/p17apbv4q2146ab82db1umr1t9b4.mp3 to /srv/airtime/stor/organize/moscanasopa.mp3
    2012-10-30T17:41:11+00:00 INFO (6): [StoredFile.php : uploadFile() : line 811] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p17apc69t918n2fg3fr193u4864.ogg to /tmp/plupload
    2012-10-30T17:41:11+00:00 INFO (6): [StoredFile.php : copyFileToStor() : line 904] - copyFileToStor: moving file /tmp/plupload/p17apc69t918n2fg3fr193u4864.ogg
    2012-10-30T17:41:11+00:00 INFO (6): [StoredFile.php : copyFileToStor() : line 956] - Successfully written identification file for
                    uploaded '/srv/airtime/stor/organize/04-oficinatoze-224kbps.ogg'
    2012-10-30T17:41:11+00:00 INFO (6): [StoredFile.php : copyFileToStor() : line 958] - copyFileToStor: moving file /tmp/plupload/p17apc69t918n2fg3fr193u4864.ogg to /srv/airtime/stor/organize/04-oficinatoze-224kbps.ogg




    - I've already tried to reinstall Airtime (apt-get install --reinstall airtime)


    - Using airtime-import produces same issue. Files are only stored in /srv/airtime/stor/organize/



    Any clue on what I can check?
    Thanks
  • 8 Comments sorted by
  • Hi Mario,

    Can you run airtime-check-system and see if media monitor is running?
    Also, can you please attach media-monitor log file?

    Thank you.
  • Reply to @James+Moon: Hi,
    Thanks for the help.

    Here´s the check system output and attached the log.


    # airtime-check-system 
    PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
    PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 2.6.32-42-generic
    MACHINE_ARCHITECTURE           = i686
    TOTAL_MEMORY_MBYTES            = 2044292
    TOTAL_SWAP_MBYTES              = UNKNOWN
    AIRTIME_VERSION                = 2.2.0
    OS                             = Ubuntu 10.04.4 LTS i686
    CPU                            = AMD Athlon(tm) 64 X2 Dual Core Processor 3400+
    WEB_SERVER                     = Apache/2.2.14 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID      = 1136
    PLAYOUT_ENGINE_RUNNING_SECONDS = 14558
    PLAYOUT_ENGINE_MEM_PERC        = 0.5%
    PLAYOUT_ENGINE_CPU_PERC        = 0.0%
    LIQUIDSOAP_PROCESS_ID          = 1211
    LIQUIDSOAP_RUNNING_SECONDS     = 14558
    LIQUIDSOAP_MEM_PERC            = 1.1%
    LIQUIDSOAP_CPU_PERC            = 18.9%
    MEDIA_MONITOR_PROCESS_ID       = 1066
    MEDIA_MONITOR_RUNNING_SECONDS  = 14559
    MEDIA_MONITOR_MEM_PERC         = 0.6%
    MEDIA_MONITOR_CPU_PERC         = 0.4%
    RABBITMQ_PROCESS_ID            = 1124
    RABBITMQ_RUNNING_SECONDS       = 14556
    RABBITMQ_MEM_PERC              = 0.6%
    RABBITMQ_CPU_PERC              = 0.0%
    -- Your installation of Airtime looks OK!
  • Try this create new folder outside of current airtime storage folder for example /root/music  with proper owner/group (chmod -R www-data:www-data /root/music) 775 "music folder permission" move all mp3s in it go in airtime change the storage folder to your new folder restart airtime media monitor see if that helps...

    Might be related to airtime no scanning for missing mp3s files anymore in 2.2.0 this is a bug or media monitor have some different bug i had the same problem but i fixed with my example from above..
    Post edited by Topea at 2012-10-30 16:47:00
  • Hi,

    I've installed 2.2.0 on a new clean Ubuntu 12.04 and, uploads work ok.
    I've checked owner/group and permission of folders of this new install and, I see:

    OLD SERVER:
    drwxrwsr-x 602 root     www-data 20480 2012-10-30 11:44 imported
    drwxrwsr-x   2 root     www-data  4096 2012-10-30 17:41 organize

    NEW:
    drwxr-sr-x 3 root www-data 4096 Out 30 21:25 imported
    drwxrwsr-x 2 root www-data 4096 Out 30 21:25 organize

    So, owner and permissions look the same... 
    (old server has W permissions for group...but I've changed it too and... still problems...) 

    @Topea  About your suggestion,  changing the storage folder will remove all files from DB... right?

    Any other ideas?
    I really appreciate any help.

    Many Thanks
  • Additionally, I've run airtime-import in new server and, all files goes to airtime normally...


    Copying /importOgg/mnt/Jessie J/Top1/01-Domino-320kbps.ogg to /srv/airtime/stor/organize/01-Domino-320kbps.ogg...
    Copying /importOgg/mnt/Miguel Araújo/portuguesa/01-Os Maridos Das Outras-224kbps.ogg to /srv/airtime/stor/organize/01-Os Maridos Das Outras-224kbps.ogg...
    Copying /importOgg/mnt/M People/unknown/01-One Night in Heaven-256kbps.ogg to /srv/airtime/stor/organize/01-One Night in Heaven-256kbps.ogg...
    Copying /importOgg/mnt/- Mirtes/-Trilha-/01-Boa NOITE www | Lenta-320kbps.ogg to /srv/airtime/stor/organize/01-Boa NOITE www | Lenta-320kbps.ogg...




    And in the minute I've started import, I've seen the "importing animation" in airtime...


    Looks like there's something with Media Monitor in upgraded Airtime...

    thanks
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Please try to restart media-monitor service, by:
    sudo service airtime-media-monitor restart.

    I've opened a bug with similar symptom : http://dev.sourcefabric.org/browse/CC-4652
    Cloud Radio -> http://airtime.pro
  • Hi

    Already tried to restart media monitor, reinstall Airtime, restart OS, etc...

    Then, I'd remember that, when you use the interface to update a metatag, you see the "importing file" animation...

    So, I believe this "edit-file-md" is monitored by media-monitor... (maybe I'm wrong)

    I've clicked on a file, edited metatags and then... "importing file" animation showing...
    After this, I've tried to upload file and file successfully uploaded!!

    Makes no sense to me... but it worked.

    So, now that I can't help on this upgrade issue... I'll start a fresh install in this old server.

    Regards,

  • (edited) duplicate
    Post edited by Mario Costa at 2012-10-31 22:53:30