Every media file appears corrupt on upload (Airtime 2.3.1)
  • Greetings.

    I have installed Airtime 2.3.1 on Ubuntu Studio 12.04

    Airtime installation checks OK.

    Monit reports the three services are online and good.



    The problem: When trying to upload ANY form of media to the library, the interface reports that the file appears corrupted and will not be added.

    Log files are HELPLESS (all they indicate is that file stored in tmp... file copied to store (but actually it really wasn't copied!). However, after injecting code into StoredFile.php to save output data to a log file when checking for MPEG tags, I get the following:

    VST_PATH not set, defaulting to /usr/local/lib/vst:/usr/lib/vst
    terminate called after throwing an instance of 'std::logic_error'
      what():  basic_string::_S_construct null not valid
    Aborted (core dumped)

    Help would greatly be appreciated!


    Oh and yes my mp3 files do work.
  • 27 Comments sorted by
  • Has anyone got an answer to this problem. I have searched the internet and the forum and have not found an answer that works.
  • What's your OS? What file types are you uploading?


    On Thu, Jun 6, 2013 at 11:43 AM, Pierre Coovert <<br />airtime-support@lists.sourcefabric.org> wrote:

    > Has anyone got an answer to this problem. I have searched the internet and
    > the forum and have not found an answer that works.
    >
    >
    Airtime Pro Hosting: http://airtime.pro
  • I am using ubuntu studio 13 on one computer and ubuntu 12.04 on another. I have tried loading mp3, ogg, and wav files, all with the same results
  • Take a look into /var/log/airtime/zendphp.log - is there anything obvious there?
    Airtime Pro Hosting: http://airtime.pro
  • try playing one of the files from the command line like so

    liquidsoap 'output.dummy(single("/path/to/file"))'

    Sounds like Liquidsoap is complaining about a missing VST audio plugin.
    Airtime Pro Hosting: http://airtime.pro
  • thanks for your response. I am relatively new to Linux and am trying to make the change.

    As for the log file, here is what is added when I try to upload a file:

    2013-06-06T17:31:16-04:00 INFO (6): [StoredFile.php : uploadFile() : line 857] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p17sdmd1qr2kfl55rskl7psi04.mp3 to /tmp/plupload
    2013-06-06T17:31:17-04:00 INFO (6): [StoredFile.php : uploadFile() : line 857] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p17sdmd1qr2kfl55rskl7psi04.mp3 to /tmp/plupload
    2013-06-06T17:31:17-04:00 INFO (6): [StoredFile.php : uploadFile() : line 857] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p17sdmd1qr2kfl55rskl7psi04.mp3 to /tmp/plupload
    2013-06-06T17:31:18-04:00 INFO (6): [StoredFile.php : uploadFile() : line 857] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p17sdmd1qr2kfl55rskl7psi04.mp3 to /tmp/plupload
    2013-06-06T17:31:18-04:00 INFO (6): [StoredFile.php : uploadFile() : line 857] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p17sdmd1qr2kfl55rskl7psi04.mp3 to /tmp/plupload
    2013-06-06T17:31:18-04:00 INFO (6): [StoredFile.php : uploadFile() : line 857] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p17sdmd1qr2kfl55rskl7psi04.mp3 to /tmp/plupload
    2013-06-06T17:31:19-04:00 INFO (6): [StoredFile.php : copyFileToStor() : line 950] - copyFileToStor: moving file /tmp/plupload/p17sdmd1qr2kfl55rskl7psi04.mp3
    When I try to run the lliquidsoap line I get: Invalid value at line 1, char 20-58: That source is fallible

    Doesn't mean much to me, but maybe I didn't type the command right. Here is what I typed: liquidsoap 'output.dummy(single("home/music/TheBurdenOfAProphet.mp3"))'
  • On Thu, Jun 6, 2013 at 5:52 PM, Pierre Coovert <<br />airtime-support@lists.sourcefabric.org> wrote:

    > thanks for your response. I am relatively new to Linux and am trying to
    > make the change.
    >

    It says the source is fallible, because you didn't insert the correct path.
    Make sure you start with "/home..." instead of "home..."


    --
    Open source radio in the cloud. Get yours now! -
    Airtime Pro Hosting: http://airtime.pro
  • Thanks, but I get the same response.

  • Double check if the file actually exists at that location. I believe you
    are missing username in the path.
    On 2013-06-06 6:05 PM, "Pierre Coovert" <<br />airtime-support@lists.sourcefabric.org> wrote:

    > Thanks, but I get the same response.
    >
    >
    Airtime Pro Hosting: http://airtime.pro
  • Sorry I have been so long in responding. You were right, the username was missing. However, when I add it I still get the same response. The properties for the fail list that path as "/home/pierre/Music" and that is what I used the last time.

    Are we trying to determine if the file is corrupted? I don't think it is because it plays fine in Audacious and other players I have tried.
  • We're trying to see what Liquidsoap says about that file. It could be a Liquidsoap issue.

    The output is still source if fallible? If so, the path is still wrong.
    Airtime Pro Hosting: http://airtime.pro
  • Hi

    I have exactly the same problem. I just tried to use airtime today (after tried Rivendell which seems to be very complicated BUT it has played the files !!), and all the files i tried are "corrupted". I know they are not corrupted at all. Files are played without any problem by another automation software on windows (sorry lol), and also on the computer i'm using for tests, files are well played by audacious and so on... so i don't understand at all.I use Airtime 2.5.1, and Ubuntu 12.04 with a low-latency kernel.
    Post edited by Jean-Philippe Planque at 2014-01-02 11:26:05
  • I get this when trying to play stereo tracks to a mono stream and vice versa and also on some variants of mp3 marked as level 2 on layer 3.
    Check the Airtime Liquid Soap log. Thats where I found it. It said source incompatable with mp3 tracks 2 or similar and plays silence for the time of the track. The silence fallback did NOT kick in.
    Devs said it has been fixed. It is not. The proof is in the log.
    Post edited by John Chewter at 2014-01-02 12:16:30
    No longer using Airtime or Libretime.
  • I don't want to use stream for the moment, i just want to try to use airtime in a fm station. I tried again to send a file this morning and i just found that my copied file was in /tmp/plupload. Any idea ?
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    send yours logs
    and try to update too
    2.5.1 is here, and have a lot of enhancements :-)

    P.S. : tu peux aussi écrire dans la zone fr du forum
  • Are the stor folders writable? 755
    No longer using Airtime or Libretime.
  • tried a new installation, and result is... the same thing. :-w
    What logs should i send ?
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    /var/log/airtime
  • zendphp.log

    2014-01-03T13:37:47+01:00 INFO (6): [ApiController.php : registerComponentAction() : line 754] - Registered Component: media-monitor@127.0.0.1
    2014-01-03T13:37:48+01:00 INFO (6): [ApiController.php : rabbitmqDoPushAction() : line 874] - Notifying RabbitMQ to send message to pypo
    2014-01-03T13:37:49+01:00 INFO (6): [ApiController.php : registerComponentAction() : line 754] - Registered Component: pypo@127.0.0.1
    2014-01-03T13:37:50+01:00 INFO (6): [ApiController.php : registerComponentAction() : line 754] - Registered Component: show-recorder@127.0.0.1
    2014-01-03T13:45:19+01:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18dc25mis1eh215iciuh1sjs1nat4.mp3 to /tmp/plupload
    2014-01-03T13:45:19+01:00 INFO (6): [StoredFile.php : copyFileToStor() : line 994] - copyFileToStor: moving file /tmp/plupload/p18dc25mis1eh215iciuh1sjs1nat4.mp3
    2014-01-03T14:02:48+01:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18dc35lb9jhsl691m971jjbucs4.mp3 to /tmp/plupload
    2014-01-03T14:02:49+01:00 INFO (6): [StoredFile.php : copyFileToStor() : line 994] - copyFileToStor: moving file /tmp/plupload/p18dc35lb9jhsl691m971jjbucs4.mp3
    2014-01-03T14:03:30+01:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18dc371bb1apgbh11rrb1udeqc86.mp3 to /tmp/plupload
    2014-01-03T14:03:30+01:00 INFO (6): [StoredFile.php : copyFileToStor() : line 994] - copyFileToStor: moving file /tmp/plupload/p18dc371bb1apgbh11rrb1udeqc86.mp3
    2014-01-03T14:04:03+01:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18dc380na1nsb1c0s16lu133phri4.mp3 to /tmp/plupload
    2014-01-03T14:04:03+01:00 INFO (6): [StoredFile.php : copyFileToStor() : line 994] - copyFileToStor: moving file /tmp/plupload/p18dc380na1nsb1c0s16lu133phri4.mp3
    2014-01-03T14:09:52+01:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18dc3ikbo4ovar71hussoam4p6.mp3 to /tmp/plupload
    2014-01-03T14:09:52+01:00 INFO (6): [StoredFile.php : copyFileToStor() : line 994] - copyFileToStor: moving file /tmp/plupload/p18dc3ikbo4ovar71hussoam4p6.mp3
    2014-01-03T14:10:37+01:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18dc3k0li1l9r9e5gt2gee1vf98.mp3 to /tmp/plupload
    2014-01-03T14:10:37+01:00 INFO (6): [StoredFile.php : copyFileToStor() : line 994] - copyFileToStor: moving file /tmp/plupload/p18dc3k0li1l9r9e5gt2gee1vf98.mp3
    2014-01-03T14:13:00+01:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18dc3ocftqqp1u361lf11e2j1m4.MP3 to /tmp/plupload
    2014-01-03T14:13:01+01:00 INFO (6): [StoredFile.php : uploadFile() : line 901] - /usr/share/airtime/application/models/StoredFile.php:uploadFile(): filename=p18dc3ocftqqp1u361lf11e2j1m4.MP3 to /tmp/plupload
    2014-01-03T14:13:01+01:00 INFO (6): [StoredFile.php : copyFileToStor() : line 994] - copyFileToStor: moving file /tmp/plupload/p18dc3ocftqqp1u361lf11e2j1m4.MP3
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    look also into /var/log/airtime/media-monitor/
  • media-monitor.log

    2014-01-03 13:37:45,015 INFO - [MainThread] [launcher.py : setup_global()] : LINE 110 - Attempting to set the locale...
    2014-01-03 13:37:45,020 INFO - [Thread-1] [launcher.py : index_create()] : LINE 27 - Attempting to create index file:...
    2014-01-03 13:37:45,020 INFO - [Thread-1] [launcher.py : index_create()] : LINE 34 - Created index file, reloading configuration:
    2014-01-03 13:37:45,020 INFO - [Thread-1] [launcher.py : index_create()] : LINE 37 - Already tried to create index. Will not try again
    2014-01-03 13:37:45,059 INFO - [Thread-1] [watchersyncer.py : __init__()] : LINE 19 - Created timeout thread...
    2014-01-03 13:37:45,061 INFO - [Thread-1] [airtime.py : init_rabbit_mq()] : LINE 36 - Initializing RabbitMQ message consumer...
    2014-01-03 13:37:45,101 INFO - [Thread-1] [airtime.py : init_rabbit_mq()] : LINE 48 - Initialized RabbitMQ consumer.
    2014-01-03 13:37:45,102 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://STUDIO3:80/api/media-monitor-setup/format/json/api_key/MENXQ8E5RMUGQSONC34S
    2014-01-03 13:37:46,364 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://STUDIO3:80/api/list-all-watched-dirs/format/json/api_key/MENXQ8E5RMUGQSONC34S
    2014-01-03 13:37:46,522 INFO - [Thread-1] [launcher.py : run()] : LINE 60 - initializing mm with directories: {u'watched_dirs': [], u'stor': u'/srv/airtime/stor'}
    2014-01-03 13:37:46,522 INFO - [Thread-1] [launcher.py : run()] : LINE 63 - Initing with the following airtime response:{u'watched_dirs': [], u'stor': u'/srv/airtime/stor'}
    2014-01-03 13:37:46,533 INFO - [Thread-1] [handler.py : __init__()] : LINE 50 - Initialized problem file handler. Problem dir: '/srv/airtime/stor/problem_files'
    2014-01-03 13:37:46,534 INFO - [Thread-1] [manager.py : __add_watch()] : LINE 100 - Attempting to add listener to path '/srv/airtime/stor/imported'
    2014-01-03 13:37:46,534 INFO - [Thread-1] [manager.py : __add_watch()] : LINE 101 - Listener: Listener(StoreWatchListener), Signal(hosted_install_watch)
    2014-01-03 13:37:46,551 INFO - [Thread-1] [manager.py : __add_watch()] : LINE 100 - Attempting to add listener to path '/srv/airtime/stor/recorded'
    2014-01-03 13:37:46,551 INFO - [Thread-1] [manager.py : __add_watch()] : LINE 101 - Listener: Listener(StoreWatchListener), Signal(hosted_install_watch)
    2014-01-03 13:37:46,560 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://STUDIO3:80/api/media-monitor-setup/format/json/api_key/MENXQ8E5RMUGQSONC34S
    2014-01-03 13:37:46,712 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://STUDIO3:80/api/list-all-watched-dirs/format/json/api_key/MENXQ8E5RMUGQSONC34S
    2014-01-03 13:37:46,869 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://STUDIO3:80/api/list-all-files/format/json/api_key/MENXQ8E5RMUGQSONC34S/dir_id/1/all/0
    2014-01-03 13:37:47,020 INFO - [Thread-1] [bootstrap.py : flush_watch()] : LINE 63 - Flushed watch directory (/srv/airtime/stor/recorded).                 (added, modified, deleted) = (0, 0, 0)
    2014-01-03 13:37:47,021 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://STUDIO3:80/api/media-monitor-setup/format/json/api_key/MENXQ8E5RMUGQSONC34S
    2014-01-03 13:37:47,193 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://STUDIO3:80/api/list-all-watched-dirs/format/json/api_key/MENXQ8E5RMUGQSONC34S
    2014-01-03 13:37:47,362 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://STUDIO3:80/api/list-all-files/format/json/api_key/MENXQ8E5RMUGQSONC34S/dir_id/1/all/0
    2014-01-03 13:37:47,507 INFO - [Thread-1] [bootstrap.py : flush_watch()] : LINE 63 - Flushed watch directory (/srv/airtime/stor/imported).                 (added, modified, deleted) = (0, 0, 0)
    2014-01-03 13:37:47,509 DEBUG - [Thread-1] [api_client.py : __call__()] : LINE 134 - http://STUDIO3:80/api/register-component/format/json/api_key/MENXQ8E5RMUGQSONC34S/component/media-monitor

    py-interpreter.log is empty
  • @John : I even tried sudo chmod 777 on these directories...
  • for info..

    sudo airtime-check-system

    AIRTIME_STATUS_URL             = http://STUDIO3:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING      = OK
    KERNEL_VERSION                 = 3.2.0-58-lowlatency-pae
    MACHINE_ARCHITECTURE           = i686
    TOTAL_MEMORY_MBYTES            = 1802040
    TOTAL_SWAP_MBYTES              = 1832956
    AIRTIME_VERSION                = 2.5.1
    OS                             = Ubuntu 12.04.3 LTS i686
    CPU                            = Intel(R) Pentium(R) 4 CPU 3.00GHz
    WEB_SERVER                     = Apache/2.2.22 (Ubuntu)
    PLAYOUT_ENGINE_PROCESS_ID      = 8578
    PLAYOUT_ENGINE_RUNNING_SECONDS = 3531
    PLAYOUT_ENGINE_MEM_PERC        = 0.6%
    PLAYOUT_ENGINE_CPU_PERC        = 0.0%
    LIQUIDSOAP_PROCESS_ID          = 8546
    LIQUIDSOAP_RUNNING_SECONDS     = 3531
    LIQUIDSOAP_MEM_PERC            = 1.0%
    LIQUIDSOAP_CPU_PERC            = 6.4%
    MEDIA_MONITOR_PROCESS_ID       = 8449
    MEDIA_MONITOR_RUNNING_SECONDS  = 3536
    MEDIA_MONITOR_MEM_PERC         = 0.5%
    MEDIA_MONITOR_CPU_PERC         = 0.0%
    -- Your installation of Airtime looks OK!

  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    your hostname is it well define ?

    Apache2 / hosts ?
  • hmm.. what is the exact command to type for apache ? 

    another thing : i just tried  the command airtime-import, and it works well. 
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    normal

    airtime-import don't use the same protocol

    you cans find information about your apache declaration here :

    /etc/apache2/sites-enabled/

    and for hosts

    /etc/hosts
  • ok i will try that later, anyway thanks for the help. Airtime is running now and it seems to be very stable (we just have a storm right now and the computer had to restart, and airtime started automatically, a good point !)