Ubuntu 10.04 server + Airtime not work
  • 1.
    nano /etc/apt/sources.list
    For Ubuntu Lucid servers, use the Sourcefabric repository:

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

    2. Install the Sourcefabric package signing key:

    $ sudo apt-get update
    $ sudo apt-get install sourcefabric-keyring
    3. Install the database management system:

    $ sudo apt-get install postgresql
    4. Install the streaming media server (optional):

    $ sudo apt-get install icecast2
    5. Remove PulseAudio:

    $ sudo apt-get purge pulseaudio
    6. Install Airtime:

    $ sudo apt-get install airtime

    CPU = Intel(R) Xeon(R) CPU E5507 @ 2.27GHz
    Total RAM = 1048576 kB
    Free RAM = 677876 kB
    OS = Ubuntu 10.04 LTS Intel 80386
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.2.1
    PYTHON_POSTER_VERSION = 0.8.1
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED = YES
    AIRTIME_VERSION = Could not contact server
    PLAYOUT_ENGINE_PROCESS_ID = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = FAILED
    LIQUIDSOAP_PROCESS_ID = FAILED
    LIQUIDSOAP_RUNNING_SECONDS = FAILED
    ICECAST_PROCESS_ID = FAILED

    what's the problem?
    Please help me configure Airtime.
  • 3 Comments sorted by
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    For 1.8.2 you need to reboot after install.

  • I have rebooted server, and then


    root@mitagmio:~# reboot
    root@mitagmio:~#
    Broadcast message from root@mitagmio.ru
    (/dev/pts/0) at 17:18 ...

    The system is going down for reboot NOW!
    login as: root
    root@62.109.0.150's password:
    Linux mitagmio 2.6.18-238.5.1.el5.028stab085.3ent #1 SMP Mon Mar 21 21:16:32 MSK 2011 i686 GNU/Linux
    Ubuntu 10.04 LTS

    Welcome to Ubuntu!
    * Documentation: https://help.ubuntu.com/
    Last login: Sat Sep 3 17:13:02 2011 from 77.247.234.56
    root@mitagmio:~# airtime-check-system
    CPU = Intel(R) Xeon(R) CPU E5507 @ 2.27GHz
    Total RAM = 1048576 kB
    Free RAM = 763896 kB
    OS = Ubuntu 10.04 LTS Intel 80386
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.2.1
    PYTHON_POSTER_VERSION = 0.8.1
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://localhost:80/api/version/api_key/%%api_k ey%%
    APACHE_CONFIGURED = YES
    AIRTIME_VERSION = Could not contact server
    PLAYOUT_ENGINE_PROCESS_ID = 11394
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    -- WARNING! It looks like the playout engine is continually restarting.
    -- /etc/service/pypo: up (pid 11394) 0 seconds
    -- @400000004e62297a158de7fc Traceback (most recent call last):
    -- @400000004e62297a158e6114 File "/usr/lib/airtime/pypo/bin/pypo-cli.py", l ine 118, in <module>
    -- @400000004e62297a1590e984 if not g.selfcheck():
    -- @400000004e62297a1592aea4 File "/usr/lib/airtime/pypo/bin/pypo-cli.py", l ine 62, in selfcheck
    -- @400000004e62297a1593f6c4 return self.api_client.is_server_compatible()
    -- @400000004e62297a1594f4ac File "/usr/lib/airtime/pypo/api_clients/api_cli ent.py", line 193, in is_server_compatible
    -- @400000004e62297a15967f34 version = self.__get_airtime_version(verbose)
    -- @400000004e62297a15977934 File "/usr/lib/airtime/pypo/api_clients/api_cli ent.py", line 156, in __get_airtime_version
    -- @400000004e62297a1598d0f4 if e[1] == 401:
    -- @400000004e62297a159a058c IndexError: tuple index out of range
    LIQUIDSOAP_PROCESS_ID = 7514
    LIQUIDSOAP_RUNNING_SECONDS = 29
    ICECAST_PROCESS_ID = FAILED

    After that I have started icecast
    1) nano /etc/icecast2/icecast.xml
    <hostname>localhost</hostname>
    2) nano /etc/default/icecast2
    ENABLE=true
    3) service icecast2 start

    Starting icecast2: Starting icecast2
    Detaching from the console
    icecast2.
    4) airtime-check-system


    CPU = Intel(R) Xeon(R) CPU E5507 @ 2.27GHz
    Total RAM = 1048576 kB
    Free RAM = 752744 kB
    OS = Ubuntu 10.04 LTS Intel 80386
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.2.1
    PYTHON_POSTER_VERSION = 0.8.1
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED = YES
    AIRTIME_VERSION = Could not contact server
    PLAYOUT_ENGINE_PROCESS_ID = 3653
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
    -- WARNING! It looks like the playout engine is continually restarting.
    -- /etc/service/pypo: up (pid 3653) 0 seconds
    -- @400000004e622b6c24229a4c Traceback (most recent call last):
    -- @400000004e622b6c24230b94 File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 118, in <module>
    -- @400000004e622b6c242428bc if not g.selfcheck():
    -- @400000004e622b6c2424fbac File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 62, in selfcheck
    -- @400000004e622b6c2425b344 return self.api_client.is_server_compatible()
    -- @400000004e622b6c24265f24 File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 193, in is_server_compatible
    -- @400000004e622b6c24277c4c version = self.__get_airtime_version(verbose)
    -- @400000004e622b6c2428282c File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 156, in __get_airtime_version
    -- @400000004e622b6c24291a5c if e[1] == 401:
    -- @400000004e622b6c2429e194 IndexError: tuple index out of range
    LIQUIDSOAP_PROCESS_ID = 7514
    LIQUIDSOAP_RUNNING_SECONDS = 526
    ICECAST_PROCESS_ID = 27685

    what's the problem?
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    Looks like pypo cannot connect to the web server. What happens when you do:


    wget http://localhost:80/api/version/api_key/%%api_key%%

    from the command line? You need to substitute your real API key in place of
    "%%api_key%%", which you can get from /etc/airtime/airtime.conf.