Airtime 2.3.0 - "This file appears to be corrupted and will not be added to media library."
  • I have researched that this error was a bug in 2.1 but was then fixed.

    I have just reinsalled my server box with Ubuntu 12.04.2 LTS 
    root@luvasiaradio:/home/radio# lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 12.04.2 LTS
    Release: 12.04
    Codename: precise
    And have the problem when uploading MP3's through the interface that it says  "This file appears to be corrupted and will not be added to media library."

    It's happy to import mp3/mp4 to the library when using 'airtime-import'

    Also at the end of the installation and when I re-run airtime-easy-setup it will come up with this error when finishing the install: 

    Reading package lists... Done
    W: Duplicate sources.list entry http://apt.sourcefabric.org/ precise/main amd64 Packages (/var/lib/apt/lists/apt.sourcefabric.org_dists_precise_main_binary-amd64_Packages)
    W: Duplicate sources.list entry http://apt.sourcefabric.org/ precise/main i386 Packages (/var/lib/apt/lists/apt.sourcefabric.org_dists_precise_main_binary-i386_Packages)
    W: You may want to run apt-get update to correct these problems
    Setting defaults for non-interactive installation...
    Can't open /usr/share/airtime/debconf-selections: No such file or directory at /usr/bin/debconf-set-selections line 117.
    Installing the Airtime system...
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    airtime is already the newest version.
    liquidsoap is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up airtime-easy-setup (2.2.1-1) ...
    Installing Sourcefabric package signing key...
    OK
    Setting up Airtime for Europe/London timezone...
    sed: can't read /usr/share/airtime/debconf-selections: No such file or directory
    dpkg: error processing airtime-easy-setup (--configure):
     subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
     airtime-easy-setup
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Can anyone help as this is driving me mad!

    Cheers,

    Peter
  • 5 Comments sorted by
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Hey, Peter,
    Can you try:
        uname -a
    to make sure the system type?

    The 2 entries of source.list may cause the problem:
    "
    W: Duplicate sources.list entry http://apt.sourcefabric.org/ precise/main amd64 Packages (/var/lib/apt/lists/apt.sourcefabric.org_dists_precise_main_binary-amd64_Packages)
    W: Duplicate sources.list entry http://apt.sourcefabric.org/ precise/main i386 Packages (/var/lib/apt/lists/apt.sourcefabric.org_dists_precise_main_binary-i386_Packages)
    "

    Cloud Radio -> http://airtime.pro
  • Hi,

    Are you using the debian package or the tar ball? Did you edit your /etc/apt/sources.list manually? AS cliff mentioned there are duplicate entries in that file that may be causing your problem.

     
    Airtime Pro Hosting: http://airtime.pro
  • Hello both, 

    the output of uname -a is

    Linux luvasiaradio 3.5.0-24-generic #37~precise1-Ubuntu SMP Thu Feb 7 22:09:59 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

    I first tried installing with gdebi then again with ubuntu software center.

    I haven't edited sources.list manually but will try editing out one entry manually.
  • there is only 1 mention of sourcefabric in my sources:
    ## Uncomment the following two lines to add software from Ubuntu's
    ## 'extras' repository.
    ## This software is not part of Ubuntu, but is offered by third-party
    ## developers who want to ship their latest software.
    # deb-src http://extras.ubuntu.com/ubuntu precise main
  • Fixed "This file appears to be corrupted and will not be added to media library." issue by following Bill Burton response in http://forum.sourcefabric.org/discussion/14980/airtime-2-2-1-uploaded-mp3-file-appears-to-be-corrupted-and-will-not-be-added-to-media-library/p1

    Hello,

    I had the same issue on Ubuntu 12.04 LTS and Airtime 2.2.1 behind nginx. PHP version is: PHP 5.3.10-1ubuntu3.4 with Suhosin-Patch (cli).

    After extensive tracing and debugging, the best I could come up with is that the PHP exec() in StoredFile.php in the method liquidsoapFilePlayabilityTest, is not returning the expected value even though the call to /usr/bin/airtime-liquidsoap line IS returning the correct value and completes successfully.

    So I patched StoredFile.php in the method liquidsoapFilePlayabilityTest as follows:
    public static function liquidsoapFilePlayabilityTest($audio_file)
    ...
    //exec($command, $output, $rv); // comment this line out
    $output = shell_exec($command); // add this line

    $isError = count($output) > 0 && in_array($output[0], $LIQUIDSOAP_ERRORS);

    //return ($rv == 0 && !$isError); // comment this line out
    return ($output != NULL && !$isError); // add this line

    Hope this helps,
    -Bill

    The other error doesn't seem to be effecting the running on Airtime - I have removed the mention of "deb http://apt.sourcefabric.org/ precise main" to avoid errors appearing when running apt-get  from my sources.list
     
    Thanks,

    Peter