please help to install airtime 2.1.3
  • after installation script i have dis vindov


    *** Verifying your system environment, running airtime-check-system ***
    AIRTIME_STATUS_URL = http://localhost:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING = OK
    KERNEL_VERSION = UNKNOWN
    MACHINE_ARCHITECTURE = UNKNOWN
    TOTAL_MEMORY_MBYTES = UNKNOWN
    TOTAL_SWAP_MBYTES = UNKNOWN
    AIRTIME_VERSION = UNKNOWN
    OS = Ubuntu 10.10 i686
    CPU = Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
    WEB_SERVER = A
    PLAYOUT_ENGINE_PROCESS_ID = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    PLAYOUT_ENGINE_MEM_PERC = 0%
    PLAYOUT_ENGINE_CPU_PERC = 0%
    LIQUIDSOAP_PROCESS_ID = FAILED
    LIQUIDSOAP_RUNNING_SECONDS = 0
    LIQUIDSOAP_MEM_PERC = 0%
    LIQUIDSOAP_CPU_PERC = 0%
    MEDIA_MONITOR_PROCESS_ID = FAILED
    MEDIA_MONITOR_RUNNING_SECONDS = 0
    MEDIA_MONITOR_MEM_PERC = 0%
    MEDIA_MONITOR_CPU_PERC = 0%
    RABBITMQ_PROCESS_ID = FAILED
    RABBITMQ_RUNNING_SECONDS = 0
    RABBITMQ_MEM_PERC = 0%
    RABBITMQ_CPU_PERC = 0%

    -- There appears to be a problem with your Airtime installation.

    -- Please visit http://wiki.sourcefabric.org/x/HABQ
    dpkg: error processing airtime (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    airtime
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    on the page to log into the admin panel, I see the following:

    <?php

    //error_reporting(E_ALL|E_STRICT);
    //error_reporting(E_ALL);
    //ini_set('display_errors', 'on');

    // Define path to application directory
    defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

    // Define application environment
    defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

    // Ensure library/ is on include_path
    set_include_path(implode(PATH_SEPARATOR, array(
    get_include_path(),
    realpath(APPLICATION_PATH . '/../library')
    )));

    set_include_path(APPLICATION_PATH . '/common' . PATH_SEPARATOR . get_include_path());

    //Propel classes.
    set_include_path(APPLICATION_PATH . '/models' . PATH_SEPARATOR . get_include_path());

    //Controller plugins.
    set_include_path(APPLICATION_PATH . '/controllers/plugins' . PATH_SEPARATOR . get_include_path());

    //Zend framework
    if (file_exists('/usr/share/php/libzend-framework-php')){
    set_include_path('/usr/share/php/libzend-framework-php' . PATH_SEPARATOR . get_include_path());
    }

    /** Zend_Application */
    require_once 'Zend/Application.php';

    // Create application, bootstrap, and run
    $application = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
    );
    $application->bootstrap()
    ->run();


    tell me that I'm dividing is wrong?

    Post edited by Андрей Лось at 2012-07-23 09:57:56
  • 12 Comments sorted by
  • Looks like PHP is disabled or not installed.

    DId you run the install script from "install_full" or "install_minimal"? 
    Airtime Pro Hosting: http://airtime.pro
  • my actions

    sudo nano /etc/apt/sources.list

    deb http://apt.sourcefabric.org/ lucid main


    1. sudo apt-get install postgresql postgresql-client postgresql-contrib

    2. pg_createcluster --start -e UTF-8 8.4 main

    3. sudo apt-get install apache2 curl ecasound gzip libao-ocaml \
    libapache2-mod-php5 libcamomile-ocaml-dev libesd0 libmad-ocaml \
    libmp3lame-dev libportaudio2 libsamplerate0 libsoundtouch-ocaml \
    libtaglib-ocaml libvorbis-ocaml-dev monit mpg123 odbc-postgresql \
    patch php-pear php5-curl php5-gd php5-pgsql python2.6 \
    python-virtualenv rabbitmq-server sudo tar unzip

    4. sudo apt-get install airtime


    We used the guide at:

    http://en.flossmanuals.net/airtime-en-2-0/automated-installation/


    Post edited by Андрей Лось at 2012-07-23 11:48:15
  • You don't need steps 1,2,3 but it shouldn't hurt either. Please post the full output of "apt-get install airtime" from a fresh install.
    Airtime Pro Hosting: http://airtime.pro
  • progress of the installation
    Welcome to Ubuntu!
    * Documentation: https://help.ubuntu.com/
    andrey@vyshneve:~$ sudo apt-get install airtime
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Suggested packages:
    airtime-audio-samples alsa-utils
    The following NEW packages will be installed:
    airtime
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B/8,641kB of archives.
    After this operation, 36.9MB of additional disk space will be used.
    Preconfiguring packages ...
    Selecting previously deselected package airtime.
    (Reading database ... 46588 files and directories currently installed.)
    Unpacking airtime (from .../airtime_2.1.3-1_all.deb) ...
    Setting up airtime (2.1.3-1) ...
    Site airtime-vhost already disabled
    Setting up apache2...
    Enabling site airtime-vhost.
    Run '/etc/init.d/apache2 reload' to activate new configuration!
    Module rewrite already enabled
    Site default already disabled
    Configuring php5...
    Setting up icecast2...
    Restarting icecast2: Starting icecast2
    Detaching from the console
    icecast2.
    Setting up monit configuration...
    Stopping daemon monitor: monit.
    Starting daemon monitor: monit.
    * Restarting web server apache2 ... waiting [ OK ]
    Creating symlink for Liquidsoap...

    Debian package of Airtime detected...

    * Making sure /etc/default/locale is set properly
    LANG=en_US.UTF-8
    * None found.
    * Temporarily stopping any previous running services

    ******************************** Install Begin *********************************
    Ensuring python-virtualenv version > 1.4.8...Success!

    *** Creating Virtualenv for Airtime ***
    Already using interpreter /usr/bin/python
    New python executable in /usr/lib/airtime/airtime_virtualenv/bin/python
    Installing distribute.................................................................................................................................................................................done.

    *** Installing Python Libraries ***
    Unpacking /var/lib/airtime/tmp/python_apps/python-virtualenv/airtime_virtual_env.pybundle
    Downloading/unpacking mutagen
    Running setup.py egg_info for package mutagen
    Downloading/unpacking kombu
    Running setup.py egg_info for package kombu
    Downloading/unpacking amqplib
    Running setup.py egg_info for package amqplib
    Downloading/unpacking pyinotify
    Running setup.py egg_info for package pyinotify
    Downloading/unpacking pytz
    Running setup.py egg_info for package pytz
    warning: no files found matching '*.pot' under directory 'pytz'
    warning: no previously-included files found matching 'test_zdump.py'
    Downloading/unpacking configobj
    Running setup.py egg_info for package configobj
    Downloading/unpacking anyjson
    Running setup.py egg_info for package anyjson
    Downloading/unpacking poster
    Running setup.py egg_info for package poster
    Installing collected packages: amqplib, anyjson, configobj, kombu, mutagen, poster, pyinotify, pytz
    Running setup.py install for amqplib
    Running setup.py install for anyjson
    Running setup.py install for configobj
    Running setup.py install for kombu
    Running setup.py install for mutagen
    changing mode of build/scripts-2.6/mutagen-inspect from 644 to 755
    changing mode of build/scripts-2.6/moggsplit from 644 to 755
    changing mode of build/scripts-2.6/mid3v2 from 644 to 755
    changing mode of build/scripts-2.6/mutagen-pony from 644 to 755
    changing mode of build/scripts-2.6/mid3iconv from 644 to 755
    changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mutagen-inspect to 755
    changing mode of /usr/lib/airtime/airtime_virtualenv/bin/moggsplit to 755
    changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mid3v2 to 755
    changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mutagen-pony to 755
    changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mid3iconv to 755
    Running setup.py install for poster
    Running setup.py install for pyinotify
    Running setup.py install for pytz
    warning: no files found matching '*.pot' under directory 'pytz'
    warning: no previously-included files found matching 'test_zdump.py'
    Successfully installed amqplib anyjson configobj kombu mutagen poster pyinotify pytz
    Cleaning up...

    *** Patching Python Libraries ***
    * Patching virtualenv libraries in /usr/lib/airtime/airtime_virtualenv/lib/python2.6

    ---Applying Patches for mutagen---
    patching file site-packages/mutagen/mp3.py
    Hunk #2 succeeded at 169 (offset -4 lines).
    patching file site-packages/mutagen/mp3.py
    Hunk #1 succeeded at 204 (offset -5 lines).
    * Checking for user pypo
    * Creating user pypo
    * Creating INI files
    * Initializing INI files
    * Airtime Version: 2.1.3
    * Storage directory setup
    * Skipping directory already exists: /srv/airtime/stor
    * Giving Apache permission to access /srv/airtime/stor
    * Skipping directory already exists: /srv/airtime/stor/organize
    * Giving Apache permission to access /srv/airtime/stor/organize
    * Checking database for correct encoding

    * Database Installation
    * Creating Airtime database user
    * Database user 'airtime' created.
    * Creating Airtime database
    * Database 'airtime' created.
    * Installing Postgres scripting language
    * Creating database tables
    * Setting Airtime version
    * Inserting stor directory location /srv/airtime/stor/ into music_dirs table
    * Creating /etc/airtime
    * Creating /etc/monit/conf.d/monit-airtime-generic.cfg
    * Creating /etc/cron.d/airtime-crons
    * Creating /usr/lib/airtime
    * Creating symbolic links in /usr/bin
    * Creating /var/log/airtime
    * Creating /usr/share/airtime
    * Creating /var/log/airtime
    * Creating /var/tmp/airtime
    * Waiting for media-monitor processes to start...
    Starting Airtime Media Monitor: Done.
    * Detecting OS: ... Found Ubuntu 10.10 (maverick) on i386 architecture
    * Clearing previous pypo cache
    * Waiting for pypo processes to start...
    Stopping daemon monitor: monit.
    Starting daemon monitor: monit.

    *** Verifying your system environment, running airtime-check-system ***
    AIRTIME_STATUS_URL = http://localhost:80/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING = OK
    KERNEL_VERSION = UNKNOWN
    MACHINE_ARCHITECTURE = UNKNOWN
    TOTAL_MEMORY_MBYTES = UNKNOWN
    TOTAL_SWAP_MBYTES = UNKNOWN
    AIRTIME_VERSION = UNKNOWN
    OS = Ubuntu 10.10 i686
    CPU = Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz
    WEB_SERVER = A
    PLAYOUT_ENGINE_PROCESS_ID = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    PLAYOUT_ENGINE_MEM_PERC = 0%
    PLAYOUT_ENGINE_CPU_PERC = 0%
    LIQUIDSOAP_PROCESS_ID = FAILED
    LIQUIDSOAP_RUNNING_SECONDS = 0
    LIQUIDSOAP_MEM_PERC = 0%
    LIQUIDSOAP_CPU_PERC = 0%
    MEDIA_MONITOR_PROCESS_ID = FAILED
    MEDIA_MONITOR_RUNNING_SECONDS = 0
    MEDIA_MONITOR_MEM_PERC = 0%
    MEDIA_MONITOR_CPU_PERC = 0%
    RABBITMQ_PROCESS_ID = FAILED
    RABBITMQ_RUNNING_SECONDS = 0
    RABBITMQ_MEM_PERC = 0%
    RABBITMQ_CPU_PERC = 0%

    -- There appears to be a problem with your Airtime installation.

    -- Please visit http://wiki.sourcefabric.org/x/HABQ
    dpkg: error processing airtime (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    airtime
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    andrey@vyshneve:~$
    Post edited by Андрей Лось at 2012-07-23 15:29:46
  • is there anyone?
  • Ok from the output of the last step "airtime-check-system" we can see there are some problems.

    First what is the output of "sudo monit status"?

    Also, please do

    "tar czf airtime.tar.gz /var/log/airtime"

    and post airtime.tar.gz here.
    Airtime Pro Hosting: http://airtime.pro
  • andrey@vyshneve:~$ sudo monit status
    [sudo] password for andrey:
    The Monit daemon 5.1.1 uptime: 3d 5h 18m

    Process 'rabbitmq-server'
    status running
    monitoring status monitored
    pid 24041
    parent pid 1
    uptime 3d 5h 18m
    children 3
    memory kilobytes 14492
    memory kilobytes total 15876
    memory percent 5.5%
    memory percent total 6.0%
    cpu percent 0.0%
    cpu percent total 0.0%
    data collected Fri Jul 27 15:13:45 2012

    Process 'airtime-playout'
    status PID changed
    monitoring status monitored
    pid 5540
    parent pid 1
    uptime 0m
    children 0
    memory kilobytes 8476
    memory kilobytes total 8476
    memory percent 3.2%
    memory percent total 3.2%
    cpu percent 0.0%
    cpu percent total 0.0%
    data collected Fri Jul 27 15:13:45 2012

    Process 'airtime-media-monitor'
    status running
    monitoring status monitored
    pid 21937
    parent pid 1
    uptime 3d 5h 18m
    children 0
    memory kilobytes 7944
    memory kilobytes total 7944
    memory percent 3.0%
    memory percent total 3.0%
    cpu percent 0.0%
    cpu percent total 0.0%
    data collected Fri Jul 27 15:13:45 2012

    Process 'airtime-liquidsoap'
    status Execution failed
    monitoring status monitored
    data collected Fri Jul 27 15:13:50 2012

    System 'vyshneve.net'
    status running
    monitoring status monitored
    load average [0.37] [0.26] [0.44]
    cpu 3.0%us 1.0%sy 18.1%wa
    memory usage 262144 kB [100.0%]
    data collected Fri Jul 27 15:13:50 2012


  • Is your server hosting other content as well? Airtime needs to be the document root of your web server. So if your site is www.andrew.com, Airtime needs to be accessible via that same location (not as a sub-directory).
    Airtime Pro Hosting: http://airtime.pro
  • After installation, I turn to page http://178.63.204.222

    on the page I see this message:

    Warning: realpath(): open_basedir restriction in effect. File(/usr/share/airtime/application) is not within the allowed path(s): (.) in /usr/share/airtime/public/index.php on line 9 Warning: file_exists(): open_basedir restriction in effect. File(/usr/share/php/libzend-framework-php) is not within the allowed path(s): (.) in /usr/share/airtime/public/index.php on line 30 Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in /usr/share/airtime/public/index.php on line 35 Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='/controllers/plugins:/models:/common:.:/usr/share/php:/usr/share/pear:') in /usr/share/airtime/public/index.php on line 35

    Post edited by Андрей Лось at 2012-07-27 12:59:56
  • Try searching for this on Google as it appears to be a common problem. Seems like you have some PHP setting's enabled that don't allow Airtime to access its files.
    Airtime Pro Hosting: http://airtime.pro
  • Where can I read the documentation for system requirements and installation of version 2,1,3
  • http://www.sourcefabric.org/en/airtime/manuals/

    However, you should find your PHP system setting that prevents Airtime from accessing files outside of /usr/share/airtime/public which is the problem here.
    Airtime Pro Hosting: http://airtime.pro