AirTime Installation Issue - apt-get
  • I'm unable to install AirTime on my server. I've attached a full console log. I'd appreciate any assistance on this matter.

    mckendree@radio:~$ sudo apt-get install airtime
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
    erlang-asn1 erlang-corba erlang-docbuilder erlang-edoc erlang-erl-docgen
    erlang-eunit erlang-ic erlang-inviso erlang-nox erlang-odbc erlang-os-mon
    erlang-parsetools erlang-percept erlang-snmp erlang-ssh erlang-xmerl
    liquidsoap postgresql rabbitmq-server
    Suggested packages:
    airtime-audio-samples erlang erlang-manpages erlang-doc xsltproc fop
    erlang-ic-java festival mplayer liguidsoap liquidsoap-plugin-mad
    liquidsoap-plugin-lame liquidsoap-plugin-taglib liquidsoap-plugin-vorbis
    liquidsoap-plugin-flac liquidsoap-plugin-voaacenc liquidsoap-plugin-icecast
    liquidsoap-plugin-faad liquidsoap-plugin-pulseaudio
    liquidsoap-plugin-samplerate liquidsoap-plugin-xmlplaylist
    The following NEW packages will be installed:
    airtime erlang-asn1 erlang-corba erlang-docbuilder erlang-edoc
    erlang-erl-docgen erlang-eunit erlang-ic erlang-inviso erlang-nox
    erlang-odbc erlang-os-mon erlang-parsetools erlang-percept erlang-snmp
    erlang-ssh erlang-xmerl liquidsoap postgresql rabbitmq-server
    0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/21.6 MB of archives.
    After this operation, 58.3 MB of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    Preconfiguring packages ...
    Selecting previously unselected package postgresql.
    (Reading database ... 251706 files and directories currently installed.)
    Unpacking postgresql (from .../postgresql_9.1+129_all.deb) ...
    Selecting previously unselected package liquidsoap.
    Unpacking liquidsoap (from .../liquidsoap_1.0.1~precise~sfo-1_i386.deb) ...
    Selecting previously unselected package erlang-asn1.
    Unpacking erlang-asn1 (from .../erlang-asn1_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-corba.
    Unpacking erlang-corba (from .../erlang-corba_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-xmerl.
    Unpacking erlang-xmerl (from .../erlang-xmerl_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-edoc.
    Unpacking erlang-edoc (from .../erlang-edoc_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-docbuilder.
    Unpacking erlang-docbuilder (from .../erlang-docbuilder_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-erl-docgen.
    Unpacking erlang-erl-docgen (from .../erlang-erl-docgen_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-eunit.
    Unpacking erlang-eunit (from .../erlang-eunit_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-ic.
    Unpacking erlang-ic (from .../erlang-ic_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-inviso.
    Unpacking erlang-inviso (from .../erlang-inviso_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-odbc.
    Unpacking erlang-odbc (from .../erlang-odbc_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-snmp.
    Unpacking erlang-snmp (from .../erlang-snmp_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-os-mon.
    Unpacking erlang-os-mon (from .../erlang-os-mon_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-parsetools.
    Unpacking erlang-parsetools (from .../erlang-parsetools_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-percept.
    Unpacking erlang-percept (from .../erlang-percept_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-ssh.
    Unpacking erlang-ssh (from .../erlang-ssh_1%3a14.b.4-dfsg-1ubuntu1_i386.deb) ...
    Selecting previously unselected package erlang-nox.
    Unpacking erlang-nox (from .../erlang-nox_1%3a14.b.4-dfsg-1ubuntu1_all.deb) ...
    Selecting previously unselected package rabbitmq-server.
    Unpacking rabbitmq-server (from .../rabbitmq-server_2.7.1-0ubuntu4_all.deb) ...
    Processing triggers for man-db ...
    Processing triggers for ureadahead ...
    ureadahead will be reprofiled on next reboot
    Setting up postgresql (9.1+129) ...
    Selecting previously unselected package airtime.
    (Reading database ... 252941 files and directories currently installed.)
    Unpacking airtime (from .../airtime_2.1.3-1_all.deb) ...
    Processing triggers for desktop-file-utils ...
    Processing triggers for bamfdaemon ...
    Rebuilding /usr/share/applications/bamf.index...
    Processing triggers for gnome-menus ...
    Processing triggers for man-db ...
    Setting up liquidsoap (1.0.1~precise~sfo-1) ...
    Starting channels: OK
    Setting up erlang-asn1 (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-corba (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-xmerl (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-edoc (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-docbuilder (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-erl-docgen (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-eunit (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-ic (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-inviso (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-odbc (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-snmp (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-os-mon (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-parsetools (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-percept (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-ssh (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up erlang-nox (1:14.b.4-dfsg-1ubuntu1) ...
    Setting up rabbitmq-server (2.7.1-0ubuntu4) ...
    Starting rabbitmq-server: SUCCESS
    rabbitmq-server.
    Setting up airtime (2.1.3-1) ...
    Site airtime-vhost already disabled
    Setting up apache2...
    Enabling site airtime-vhost.
    To activate the new configuration, you need to run:
    service apache2 reload
    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...
    /etc/init.d/monit: 39: [: restart: unexpected operator
    /etc/init.d/monit: 39: [: stop: unexpected operator
    * Stopping daemon monitor monit [ OK ]
    /etc/init.d/monit: 39: [: start: unexpected operator
    * Starting daemon monitor monit [ OK ]
    * Restarting web server apache2 [Wed Aug 29 19:04:59 2012] [warn] NameVirtualHost *:8080 has no VirtualHosts
    ... waiting [Wed Aug 29 19:05:00 2012] [warn] NameVirtualHost *:8080 has no VirtualHosts
    [ 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
    The --no-site-packages flag is deprecated; it is now the default behavior.
    New python executable in /usr/lib/airtime/airtime_virtualenv/bin/python
    Installing distribute.............................................................................................................................................................................................done.
    Installing pip...............done.

    *** Installing Python Libraries ***
    Unpacking /var/lib/airtime/tmp/python_apps/python-virtualenv/airtime_virtual_env.pybundle
    Downloading/unpacking configobj
    Running setup.py egg_info for package configobj

    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 mutagen
    Running setup.py egg_info for package mutagen

    Downloading/unpacking kombu
    Running setup.py egg_info for package kombu

    Downloading/unpacking poster
    Running setup.py egg_info for package poster

    Downloading/unpacking amqplib
    Running setup.py egg_info for package amqplib

    Downloading/unpacking anyjson
    Running setup.py egg_info for package anyjson

    Downloading/unpacking pyinotify
    Running setup.py egg_info for package pyinotify

    Installing collected packages: configobj, pytz, mutagen, kombu, poster, amqplib, anyjson, pyinotify
    Running setup.py install for configobj

    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'
    Running setup.py install for mutagen
    changing mode of build/scripts-2.7/mid3iconv from 644 to 755
    changing mode of build/scripts-2.7/mutagen-inspect from 644 to 755
    changing mode of build/scripts-2.7/mutagen-pony from 644 to 755
    changing mode of build/scripts-2.7/mid3v2 from 644 to 755
    changing mode of build/scripts-2.7/moggsplit from 644 to 755

    changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mid3iconv to 755
    changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mutagen-inspect to 755
    changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mutagen-pony to 755
    changing mode of /usr/lib/airtime/airtime_virtualenv/bin/mid3v2 to 755
    changing mode of /usr/lib/airtime/airtime_virtualenv/bin/moggsplit to 755
    Running setup.py install for kombu

    Running setup.py install for poster

    Running setup.py install for amqplib

    Running setup.py install for anyjson

    Running setup.py install for pyinotify

    Successfully installed configobj pytz mutagen kombu poster amqplib anyjson pyinotify
    Cleaning up...

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

    ---Applying Patches for mutagen---
    patching file site-packages/mutagen/mp3.py
    Hunk #1 succeeded at 205 (offset -4 lines).
    patching file site-packages/mutagen/mp3.py
    Hunk #2 succeeded at 169 (offset -4 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
    * Unfortunately your postgresql database has not been created using a UTF-8 encoding.
    * As of Airtime 2.1, installs will fail unless the encoding has been set to UTF-8. Please verify this is the case
    * and try the install again
    There was an error during install. Exit code 1
    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)
    Post edited by Dustin Page at 2012-08-29 20:42:47
  • 10 Comments sorted by
  • AirTime is now installed and functioning properly.

    In case anyone is having issues with removing postgresql, I found this guide from stackoverflow:

    Thanks again for all of your help!
    Post edited by Dustin Page at 2012-09-01 00:24:41
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    Unfortunately your postgresql database has not been created using a UTF-8 encoding.

    * As of Airtime 2.1, installs will fail unless the encoding has been set to UTF-8. Please verify this is the case

    * and try the install again
  • I followed similar instructions such as adding a new repo like on this other post: http://forum.sourcefabric.org/discussion/comment/19103#Comment_19103

    I am still receiving errors on AirTime even after running apt-get purge on postgre, airtime, and others.

    Here's where I am at right now.


       ---Applying Patches for mutagen---
    patching file site-packages/mutagen/mp3.py
    Hunk #1 succeeded at 205 (offset -4 lines).
    patching file site-packages/mutagen/mp3.py
    Hunk #2 succeeded at 169 (offset -4 lines).
    * Checking for user pypo
    User already exists.
    * 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
    psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
     * Unfortunately your postgresql database has not been created using a UTF-8 encoding.
     * As of Airtime 2.1, installs will fail unless the encoding has been set to UTF-8. Please verify this is the case
     * and try the install again
    There was an error during install. Exit code 1

    I would appreciate any help on this matter.  Thanks again!
  • I just ran the commands listed in the forum.

    export LANGUAGE=en_US.UTF-8 
    export LANG=en_US.UTF-8 
    export LC_ALL=en_US.UTF-8 
    locale-gen en_US.UTF-8 
    dpkg-reconfigure locales

    I'm still having issues with installation.

    ---Applying Patches for mutagen---
    patching file site-packages/mutagen/mp3.py
    Hunk #1 succeeded at 205 (offset -4 lines).
    patching file site-packages/mutagen/mp3.py
    Hunk #2 succeeded at 169 (offset -4 lines).
    * Checking for user pypo
    User already exists.
    * 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
     * Unfortunately your postgresql database has not been created using a UTF-8 encoding.
     * As of Airtime 2.1, installs will fail unless the encoding has been set to UTF-8. Please verify this is the case
     * and try the install again
    There was an error during install. Exit code 1
    dpkg: error processing airtime (--configure):
     subprocess installed post-installation script returned error exit status 1
    No apport report written because MaxReports is reached already
                                                                  Setting up odbcinst (2.2.14p2-5ubuntu3) ...
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place
    Errors were encountered while processing:
     airtime
    E: Sub-process /usr/bin/dpkg returned an error code (1)
  • Hi Dustin,

    The way we checking database encoding is simply by using

    sudo -u postgres psql -c "SHOW SERVER_ENCODING"

    For example, on my system, running this command gives me the following:

    martin@Thinkpad-T410:~/workspace/airtime$ sudo -u postgres psql -c "SHOW SERVER_ENCODING"
    [sudo] password for martin: 
     server_encoding 
    -----------------
     UTF8
    (1 row)



    Please play around with postgresql until you get UTF8 as the output of this command.

    This series of command should work:

    sudo -s
    apt-get purge postgresql
    export LC_ALL=en_US.UTF-8
    apt-get install postgresql

    Now run the SERVER_ENCODING command from above and tell us the output
    Post edited by Martin Konecny at 2012-08-31 11:21:36
    Airtime Pro Hosting: http://airtime.pro
  • Martin, I followed the instructions above and here's the output I receive from SERVER_ENCODING.

    mckendree@radio:~$ sudo -u postgres psql -c "SHOW SERVER_ENCODING"
    psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
    Post edited by Dustin Page at 2012-08-31 14:04:52
  • Is postgresql running/installed? 

    Try 
    sudo service postgresql start
    Airtime Pro Hosting: http://airtime.pro
  • I believe postgresql is installed.  I ran the command suggested.

    mckendree@radio:~$ sudo service postgresql start
    [sudo] password for mckendree: 
    mckendree@radio:~$ sudo -u postgres psql -c "SHOW SERVER_ENCODING"
    psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
    mckendree@radio:~$ sudo apt-get install postgresql
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    postgresql is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    mckendree@radio:~$ 
  • I'm really not sure what's wrong with your database installation. Please purge the installation like so:

    sudo apt-get purge postgres*

    This will completely remove all postgresql packages. Then try

    sudo apt-get install postgresql

    again.
    Airtime Pro Hosting: http://airtime.pro