[Airtime 2.5.1] Can't upload audio files
  • Hello,

    Congratulations about the great software you are makeing.

    I've checked the thousand of threads about uploaded files not showing in playlist builder, but my problem is that the uploaded files are not even in the /srv/airtime/stor (and I think it's not permissions problem because  the owner is www-data). My OS is Ubuntu 13.10 and I'm using freshly installed Airtime 2.5.1. 

    Everything seems to be OK with the logs and airtime-check-system:

    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 3.11.0-15-generic
    MACHINE_ARCHITECTURE           = x86_64
    TOTAL_MEMORY_MBYTES            = 8088684
    TOTAL_SWAP_MBYTES              = 8298492
    AIRTIME_VERSION                = 2.5.1
    OS                             = Ubuntu 13.10 x86_64
    CPU                            = Intel(R) Pentium(R) CPU B950 @ 2.10GHz
    WEB_SERVER                     = Apache/2.4.6 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID      = 2240
    PLAYOUT_ENGINE_RUNNING_SECONDS = 3883
    PLAYOUT_ENGINE_MEM_PERC        = 0.2%
    PLAYOUT_ENGINE_CPU_PERC        = 0.0%
    LIQUIDSOAP_PROCESS_ID          = 9696
    LIQUIDSOAP_RUNNING_SECONDS     = 713
    LIQUIDSOAP_MEM_PERC            = 0.2%
    LIQUIDSOAP_CPU_PERC            = 2.4%
    MEDIA_MONITOR_PROCESS_ID       = 4724
    MEDIA_MONITOR_RUNNING_SECONDS  = 3208
    MEDIA_MONITOR_MEM_PERC         = 0.1%
    MEDIA_MONITOR_CPU_PERC         = 0.0%
    -- Your installation of Airtime looks OK!

    Apache vhosts file:

    <VirtualHost *:80>
          #ServerName __SERVER_NAME__
          #ServerAlias www.example.com

          ServerAdmin skrechy

          DocumentRoot /usr/share/airtime/public
          DirectoryIndex index.php

          SetEnv APPLICATION_ENV "production"

          <Directory /usr/share/airtime/public>
                  Options -Indexes +FollowSymLinks +MultiViews
                  AllowOverride All
                  Order allow,deny
                  Allow from all
          </Directory>
    </VirtualHost> 

    airtime.conf:

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

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

    [general]
    api_key = ****
    web_server_user = www-data
    airtime_dir = /usr/share/airtime
    base_url = localhost
    base_port = 80
    base_dir = /
    cache_ahead_hours = 1

    [monit]
    monit_user = guest
    monit_password = airtime

    [soundcloud]
    connection_retries = 3
    time_between_retries = 60

    api_client.conf:

    bin_dir = /usr/lib/airtime/api_clients
    api_key = '****'
    api_base = api
    host = localhost
    base_port = 80
    base_dir = /

    media monitor log, no errors:

    2014-02-13 18:45:08,613 INFO - [MainThread] [launcher.py : setup_global()] : LINE 110 - Attempting to set the locale...
    2014-02-13 18:45:08,630 INFO - [Thread-1] [watchersyncer.py : __init__()] : LINE 19 - Created timeout thread...
    2014-02-13 18:45:08,630 INFO - [Thread-1] [airtime.py : init_rabbit_mq()] : LINE 36 - Initializing RabbitMQ message consumer...
    2014-02-13 18:45:08,642 INFO - [Thread-1] [airtime.py : init_rabbit_mq()] : LINE 48 - Initialized RabbitMQ consumer.
    2014-02-13 18:45:08,643 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://localhost:80/api/media-monitor-setup/format/json/api_key/H6KQ5IBMOUKW30ZDK2HC
    2014-02-13 18:45:08,704 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://localhost:80/api/list-all-watched-dirs/format/json/api_key/H6KQ5IBMOUKW30ZDK2HC
    2014-02-13 18:45:08,758 INFO - [Thread-1] [launcher.py : run()] : LINE 60 - initializing mm with directories: {u'watched_dirs': [], u'stor': u'/srv/airtime/stor'}
    2014-02-13 18:45:08,758 INFO - [Thread-1] [launcher.py : run()] : LINE 63 - Initing with the following airtime response:{u'watched_dirs': [], u'stor': u'/srv/airtime/stor'}
    2014-02-13 18:45:08,759 INFO - [Thread-1] [handler.py : __init__()] : LINE 50 - Initialized problem file handler. Problem dir: '/srv/airtime/stor/problem_files'
    2014-02-13 18:45:08,760 INFO - [Thread-1] [manager.py : __add_watch()] : LINE 100 - Attempting to add listener to path '/srv/airtime/stor/imported'
    2014-02-13 18:45:08,760 INFO - [Thread-1] [manager.py : __add_watch()] : LINE 101 - Listener: Listener(StoreWatchListener), Signal(hosted_install_watch)
    2014-02-13 18:45:08,761 INFO - [Thread-1] [manager.py : __add_watch()] : LINE 100 - Attempting to add listener to path '/srv/airtime/stor/recorded'
    2014-02-13 18:45:08,761 INFO - [Thread-1] [manager.py : __add_watch()] : LINE 101 - Listener: Listener(StoreWatchListener), Signal(hosted_install_watch)
    2014-02-13 18:45:08,762 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://localhost:80/api/media-monitor-setup/format/json/api_key/H6KQ5IBMOUKW30ZDK2HC
    2014-02-13 18:45:08,812 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://localhost:80/api/list-all-watched-dirs/format/json/api_key/H6KQ5IBMOUKW30ZDK2HC
    2014-02-13 18:45:08,869 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://localhost:80/api/list-all-files/format/json/api_key/H6KQ5IBMOUKW30ZDK2HC/dir_id/1/all/0
    2014-02-13 18:45:08,908 INFO - [Thread-1] [bootstrap.py : flush_watch()] : LINE 63 - Flushed watch directory (/srv/airtime/stor/recorded).                 (added, modified, deleted) = (0, 0, 0)
    2014-02-13 18:45:08,908 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://localhost:80/api/media-monitor-setup/format/json/api_key/H6KQ5IBMOUKW30ZDK2HC
    2014-02-13 18:45:08,950 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://localhost:80/api/list-all-watched-dirs/format/json/api_key/H6KQ5IBMOUKW30ZDK2HC
    2014-02-13 18:45:08,991 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://localhost:80/api/list-all-files/format/json/api_key/H6KQ5IBMOUKW30ZDK2HC/dir_id/1/all/0
    2014-02-13 18:45:09,032 INFO - [Thread-1] [bootstrap.py : flush_watch()] : LINE 63 - Flushed watch directory (/srv/airtime/stor/imported).                 (added, modified, deleted) = (0, 0, 0)
    2014-02-13 18:45:09,034 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://localhost:80/api/register-component/format/json/api_key/H6KQ5IBMOUKW30ZDK2HC/component/media-monitor

    last messages of pypo log, no errors:

    2014-02-13 19:44:21,842 INFO - [silananalyzer.py : run() : line 85] - Sleeping for 5...
    2014-02-13 19:44:22,469 INFO - [replaygainupdater.py : run() : line 76] - Running replaygain updater
    2014-02-13 19:44:22,469 DEBUG - [api_client.py : __call__() : line 134] - http://localhost:80/api/list-all-watched-dirs/format/json/api_key/H6KQ5IBMOUKW30ZDK2HC
    2014-02-13 19:44:22,513 DEBUG - [api_client.py : __call__() : line 134] - http://localhost:80/api/get-files-without-replay-gain/api_key/H6KQ5IBMOUKW30ZDK2HC/dir_id/1
    2014-02-13 19:44:22,554 INFO - [replaygainupdater.py : main() : line 68] - Processed: 0 songs
    2014-02-13 19:44:26,404 DEBUG - [api_client.py : __call__() : line 134] - http://localhost:80/api/get-stream-parameters/api_key/H6KQ5IBMOUKW30ZDK2HC/format/json
    2014-02-13 19:44:26,451 DEBUG - [api_client.py : get_stream_parameters() : line 504] - {u'stream_params': {u's3': {u'admin_pass': u'', u'enable': u'false', u'description': u'', u'url': u'', u'bitrate': u'48', u'mount': u'', u'liquidsoap_error': u'waiting', u'channels': u'stereo', u'host': u'', u'admin_user': u'', u'user': u'', u'pass': u'', u'genre': u'', u'output': u'icecast', u'type': u'ogg', u'port': u'', u'name': u''}, u's2': {u'admin_pass': u'', u'enable': u'false', u'description': u'', u'url': u'', u'bitrate': u'48', u'mount': u'', u'liquidsoap_error': u'waiting', u'channels': u'stereo', u'host': u'', u'admin_user': u'', u'user': u'', u'pass': u'', u'genre': u'', u'output': u'icecast', u'type': u'ogg', u'port': u'', u'name': u''}, u's1': {u'admin_pass': u'adminlog', u'admin_user': u'admin', u'name': u'10 Tons Heavy Radio!', u'url': u'', u'bitrate': u'128', u'mount': u'airtime_128', u'liquidsoap_error': u'waiting', u'channels': u'stereo', u'host': u'192.168.0.101', u'enable': u'false', u'user': u'', u'pass': u'castlog', u'genre': u'10 Tons Heavy Riddims', u'output': u'icecast', u'type': u'ogg', u'port': u'8000', u'description': u''}}}


  • 7 Comments sorted by
  • and continuation...

    last messages of liquidsoap log, no errors:

    2014/02/13 19:44:37 [server:3] Client localhost disconnected.
    2014/02/13 19:44:47 [server:3] New client: localhost.
    2014/02/13 19:44:47 [server:3] Client localhost disconnected.
    2014/02/13 19:44:57 [server:3] New client: localhost.
    2014/02/13 19:44:57 [server:3] Client localhost disconnected.
    2014/02/13 19:45:07 [server:3] New client: localhost.
    2014/02/13 19:45:07 [server:3] Client localhost disconnected.
    2014/02/13 19:45:17 [server:3] New client: localhost.
    2014/02/13 19:45:17 [server:3] Client localhost disconnected.
    2014/02/13 19:45:27 [server:3] New client: localhost.
    2014/02/13 19:45:27 [server:3] Client localhost disconnected.
    2014/02/13 19:45:37 [server:3] New client: localhost.
    2014/02/13 19:45:37 [server:3] Client localhost disconnected.
    2014/02/13 19:45:47 [server:3] New client: localhost.
    2014/02/13 19:45:47 [server:3] Client localhost disconnected.
    2014/02/13 19:45:57 [server:3] New client: localhost.
    2014/02/13 19:45:57 [server:3] Client localhost disconnected.
    2014/02/13 19:46:07 [server:3] New client: localhost.
    2014/02/13 19:46:07 [server:3] Client localhost disconnected.
    2014/02/13 19:46:17 [server:3] New client: localhost.
    2014/02/13 19:46:17 [server:3] Client localhost disconnected.
    2014/02/13 19:46:27 [server:3] New client: localhost.
    2014/02/13 19:46:27 [server:3] Client localhost disconnected.
    2014/02/13 19:46:37 [server:3] New client: localhost.
    2014/02/13 19:46:37 [server:3] Client localhost disconnected.
    2014/02/13 19:46:47 [server:3] New client: localhost.
    2014/02/13 19:46:47 [server:3] Client localhost disconnected.

    And the only indication that there is an attempt to upload something is in the zend log:

    2014-02-13T18:34:19+02:00 INFO (6): [ApiController.php : rabbitmqDoPushAction() : line 874] - Notifying RabbitMQ to send message to pypo
    2014-02-13T18:34:20+02:00 INFO (6): [ApiController.php : registerComponentAction() : line 754] - Registered Component: show-recorder@127.0.0.1
    2014-02-13T18:37:32+02:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18gm1ocpbuc3rs21q63s3g1jo74.mp3 to /plupload
    2014-02-13T18:37:33+02:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18gm1ocpbuc3rs21q63s3g1jo74.mp3 to /plupload
    2014-02-13T18:40:21+02:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18gm1tigo1qkt15qk1ceepnm13hg4.mp3 to /plupload
    2014-02-13T18:45:09+02:00 INFO (6): [ApiController.php : registerComponentAction() : line 754] - Registered Component: media-monitor@127.0.0.1
    2014-02-13T18:45:30+02:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18gm271k0qum15312r01fs82bb4.mp3 to /plupload
    2014-02-13T18:48:58+02:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18gm2da73oo116ljjtd16e7qo34.mp3 to /plupload

    So any help would be appreciated! :)
  • Having the same problem to the /srv/airtime/stor/ destination.  Started using the watch folders but that caused  a different problem.
  • Back to basics. I suppose your folder permissions are 755?
    No longer using Airtime or Libretime.
  • drwxr-sr-x 2 root www-data 4096 фев 13 18:06 imported/
    drwxrwxr-x 2 root www-data 4096 фев 13 18:05 organize/
    drwxr-sr-x 2 root www-data 4096 фев 13 18:06 problem_files/
    drwxr-sr-x 2 root www-data 4096 фев 13 18:06 recorded/

  • I figured it out myself. The problem was that file airtime.ini was not present in the /etc/php5/apache2/conf.d directory. I suppose that this is an installation script problem.
  • so, what was the solution? i think i have the same problem, can you help me out?

  • cd /etc/php5/apache2/conf.d
    sudo ln -s /etc/php5/conf.d/airtime.ini .
    sudo apache2 restart

    Now you will see a right path in the logs:

    BEFORE:

    2014-12-06T13:19:34+01:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p198foha3paeupmt1u6116tj1dfd4.mp3 to /plupload

    AFTER:

    2014-12-06T14:13:44+01:00 INFO (6): [StoredFile.php : copyFileToStor() : line 994] - copyFileToStor: moving file /tmp/plupload/p198froopf1hie109bblhrng9nn4.mp3