Airtime 1.8.2 install oddities
  • Trying to install airtime, followed the directions from http://en.flossmanuals.net/airtime

    It... went strangely. Not sure what happened. I purged the first install and started over. Installed everything before trying to install Airtime, config'd Icecast and liquisdoap, rebooted to make sure that daemontools was running.

    I don't need the install to modify my Apache2 config, so that part is ignorable. I've got several vhosts on the box in addition to the radio station.

    This is a streaming radio station, it exists as a VPS. There is no sound card onboard, and no local access. Icecast is up and I can hit the web stats on the configured Icecast port.

    Can anyone see where I went wrong? It seems to be something with pypo, but the traceback isn't giving me much to work with.

    Output from my second attempt, bits I think are relevant are BOLDED:

    ~$ sudo apt-get install airtime
    [sudo] password for *****:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Suggested packages:
    gnome-alsamixer alsamixergui alsa-utils
    The following NEW packages will be installed:
    airtime
    0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
    Need to get 0B/12.7MB of archives.
    After this operation, 69.3MB of additional disk space will be used.
    Preconfiguring packages ...
    Selecting previously deselected package airtime.
    (Reading database ... 78027 files and directories currently installed.)
    Unpacking airtime (from .../airtime_1.8.2-6_all.deb) ...
    Setting up airtime (1.8.2-6) ...
    ERROR: Site default does not exist!
    ERROR: Site default does not exist!
    Channel "pear.phing.info" is already initialized
    phing/phing is already installed and is the same as the released version 2.4.2
    install failed
    Requirement already satisfied: kombu in /usr/local/lib/python2.6/dist-packages
    Requirement already satisfied: anyjson>=0.3.1 in /usr/local/lib/python2.6/dist-packages (from kombu)
    Requirement already satisfied: amqplib>=0.6 in /usr/local/lib/python2.6/dist-packages (from kombu)
    Installing collected packages: amqplib, anyjson, kombu
    Successfully installed kombu
    Requirement already satisfied: poster in /usr/local/lib/python2.6/dist-packages
    Installing collected packages: poster
    Successfully installed poster


    ******************************** Install Begin *********************************
    New Airtime Install.
    * Creating INI files
    * Installing PHP code to /var/www/airtime
    * Installing binaries to /usr/lib/airtime
    * Initializing INI files
    * Airtime Version: 1.8.2

    *** Database Installation ***
    * Creating Airtime database user
    * Database user 'airtime' created.
    * Creating Airtime database
    * Database 'airtime' created.
    * Connected to database
    * Installing Postgres scripting language
    * Creating database tables
    * Storage directory setup
    * Skipping directory already exists: /srv/airtime
    * Skipping directory already exists: /srv/airtime/stor
    * Giving Apache permission to access /srv/airtime/stor
    * Creating /usr/bin symlinks
    * Installing airtime-import
    * Installing airtime-clean-storage
    * Installing airtime-update-db-settings
    * Installing airtime-check-system
    * Creating logs directory /var/log/airtime

    *** Pypo Installation ***
    Starting daemontool script pypo
    Starting daemontool script pypo-liquidsoap
    Checking and removing any existing pypo processes
    Checking for user pypo
    Creating user pypo
    Creating directory /var/log/airtime/pypo
    Creating directory /var/log/airtime/pypo-liquidsoap
    Creating directory /usr/lib/airtime/pypo/bin
    Creating directory /var/tmp/airtime/pypo/cache/
    Creating directory /var/tmp/airtime/pypo/files/
    Creating directory /var/tmp/airtime/pypo/tmp/
    Installing 64-bit liquidsoap binary
    Copying directory /var/lib/airtime/python_apps/pypo to /usr/lib/airtime/pypo/bin
    Copying directory /var/lib/airtime/python_apps/api_clients to /usr/lib/airtime/pypo/api_clients
    Setting permissions
    Creating symbolic links
    Installing pypo daemon
    Creating directory /etc/service/pypo
    Creating directory /etc/service/pypo/log
    Installing liquidsoap daemon
    Creating directory /etc/service/pypo-liquidsoap
    Creating directory /etc/service/pypo-liquidsoap/log
    Waiting for processes to start...
    /etc/service/pypo: up (pid 3239) 1 seconds

    /etc/service/pypo-liquidsoap: up (pid 3195) 3 seconds


    *** Recorder Installation ***
    Starting daemontool script recorder
    Checking and removing any existing recorder processes
    Checking for user pypo
    User already exists.
    Creating temporary media storage directory
    Creating directory /var/tmp/airtime/show-recorder/
    Creating log directories
    Creating directory /var/log/airtime/show-recorder
    Copying directory /var/lib/airtime/python_apps/show-recorder to /usr/lib/airtime/show-recorder
    Setting permissions
    Creating symbolic links
    Installing recorder daemon
    Creating directory /etc/service/recorder
    Creating directory /etc/service/recorder/log
    Waiting for processes to start...
    /etc/service/recorder: up (pid 3451) 1 seconds


    *** Verifying Correct System Environment ***
    CPU = Quad-Core AMD Opteron(tm) Processor 2374 HE
    Total RAM = 379644 kB
    Free RAM = 17760 kB
    OS = Ubuntu 10.04.2 LTS x86-64
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.1.6
    PYTHON_POSTER_VERSION = 0.8.1
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED = NO
    AIRTIME_VERSION = Could not contact server
    PLAYOUT_ENGINE_PROCESS_ID = 3458
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    -- WARNING! It looks like the playout engine is continually restarting.
    -- /etc/service/pypo: up (pid 3458) 0 seconds
    -- @400000004df900f410023694 Traceback (most recent call last):
    -- @400000004df900f41002b77c File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 118, in <module>
    -- @400000004df900f41003e444 if not g.selfcheck():
    -- @400000004df900f41004f99c File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 62, in selfcheck
    -- @400000004df900f41005d45c return self.api_client.is_server_compatible()
    -- @400000004df900f41006ddfc File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 193, in is_server_compatible
    -- @400000004df900f4100831d4 version = self.__get_airtime_version(verbose)
    -- @400000004df900f410093b74 File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 156, in __get_airtime_version
    -- @400000004df900f4100a54b4 if e[1] == 401:
    -- @400000004df900f4100b817c IndexError: tuple index out of range
    LIQUIDSOAP_PROCESS_ID = 3277
    LIQUIDSOAP_RUNNING_SECONDS = 16
    ICECAST_PROCESS_ID = FAILED


    -- There appears to be problems with your setup. Please visit
    -- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.
  • 4 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    please change in /etc/airtime/pypo.cfg base_url parameter. By default there is 'localhost' but should be defined real airtime server name like airtime.domain. After then just reboot linux box and check status again
  • I often see a recommendation to reboot the server and was wondering what is it there that requires entire machines + OS to cycle? Isn't it just possible to restart apache or airtime-pypo-stop/start ?

    In my case where I share airtime installation with other applications it's just silly and reminds me of restarting Windows every time an application is installed.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Quote:
    I often see a recommendation to reboot the server and was wondering what is it there that requires entire machines + OS to cycle? Isn't it just possible to restart apache or airtime-pypo-stop/start ?


    pypo scripts uses daemontools which has known bug. It requires linux box restarting after first install.
    http://forum.sourcefabric.org/index.php/m/9754/?srch=daemont ools#msg_9754
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    On Thu, Jun 16, 2011 at 4:03 AM, Jacek Lakomiec <
    airtime-support@lists.sourcefabric.org> wrote:

    > **
    > I often see a recommendation to reboot the server and was wondering what
    > is it there that requires entire machines + OS to cycle? Isn't it just
    > possible to restart apache or airtime-pypo-stop/start ?
    >
    > In my case where I share airtime installation with other applications it's
    > just silly and reminds me of restarting Windows every time an application is
    > installed.
    >

    This will be fixed in the 1.9 release. No more rebooting necessary then.