Lance Korsun said:So, first things first... would it be wise to do a test install locally on my MAMP setup?
ERROR: DB Error: connect failed [nativecode=pg_connect(): Unable toAnyone know what could have gone wrong?
connect to PostgreSQL server: could not connect to server: Connection
refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?] **
pgsql(pgsql)://airtime:PASSWORD@localhost/airtime
Here is the terminal output for Database Installation:
--------
*** Database Installation ***
* Creating Airtime database user
* Database user 'airtime' already exists.
* Creating Airtime database
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
createdb: could not connect to database postgres: 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"?
* Database 'airtime' already exists.
DB Error: connect failed
[nativecode=pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime
Database connection problem.
Check if database 'airtime' exists with corresponding permissions.
DB Error: connect failed
[nativecode=pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime
Database connection problem.
Check if database 'airtime' exists with corresponding permissions.
Lance Korsun said:perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Lance Korsun said:I assume I need to do that before installing Airtime! :)
*** Database Installation ***
* Creating Airtime database user
* Database user 'airtime' already exists.
* Creating Airtime database
createdb: could not connect to database postgres: 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"?
* Database 'airtime' already exists.
DB Error: connect failed
[nativecode=pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime
Database connection problem.
Check if database 'airtime' exists with corresponding permissions.
DB Error: connect failed
[nativecode=pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime
Database connection problem.
Check if database 'airtime' exists with corresponding permissions.
Lance Korsun said:Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
sudo /etc/init.d/postgresql status
*** Database Installation ***
* Creating Airtime database user
* Database user 'airtime' already exists.
* Creating Airtime database
* Database 'airtime' already exists.
DB Error: connect failed
[nativecode=pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime
Database connection problem.
Check if database 'airtime' exists with corresponding permissions.
DB Error: connect failed
[nativecode=pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime
Database connection problem.
Check if database 'airtime' exists with corresponding permissions.
dpkg: error processing airtime (--configure):
subprocess installed post-installation script returned error exit status 1
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)
*** Database Installation ***
* Creating Airtime database user
* Database user 'airtime' already exists.
* Creating Airtime database
createdb: could not connect to database postgres: 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"?
* Database 'airtime' already exists.
DB Error: connect failed
[nativecode=pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime
Database connection problem.
Check if database 'airtime' exists with corresponding permissions.
DB Error: connect failed
[nativecode=pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime
Database connection problem.
Check if database 'airtime' exists with corresponding permissions.
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
postgresql postgresql-8.4 postgresql-client-8.4 postgresql-client-common postgresql-common
Suggested packages:
airtime-audio-samples gnome-alsamixer alsamixergui alsa-utils oidentd ident-server postgresql-doc-8.4
The following NEW packages will be installed:
airtime postgresql postgresql-8.4 postgresql-client-8.4 postgresql-client-common postgresql-common
0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/20.6 MB of archives.
After this operation, 86.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
Can't exec "/tmp/postgresql-common.config.96861": Permission denied at /usr/share/perl/5.10/IPC/Open3.pm line 168.
open2: exec of /tmp/postgresql-common.config.96861 configure failed at /usr/share/perl5/Debconf/ConfModule.pm line 59
postgresql-common failed to preconfigure, with exit status 255
Can't exec "/tmp/airtime.config.96863": Permission denied at /usr/share/perl/5.10/IPC/Open3.pm line 168.
open2: exec of /tmp/airtime.config.96863 configure failed at /usr/share/perl5/Debconf/ConfModule.pm line 59
airtime failed to preconfigure, with exit status 255
Selecting previously deselected package postgresql-client-common.
(Reading database ... 29969 files and directories currently installed.)
Unpacking postgresql-client-common (from .../postgresql-client-common_114_all.deb) ...
Selecting previously deselected package postgresql-client-8.4.
Unpacking postgresql-client-8.4 (from .../postgresql-client-8.4_8.4.9-0ubuntu0.11.04_amd64.deb) ...
Selecting previously deselected package postgresql-common.
Unpacking postgresql-common (from .../postgresql-common_114_all.deb) ...
Selecting previously deselected package postgresql-8.4.
Unpacking postgresql-8.4 (from .../postgresql-8.4_8.4.9-0ubuntu0.11.04_amd64.deb) ...
Selecting previously deselected package postgresql.
Unpacking postgresql (from .../postgresql_8.4.9-0ubuntu0.11.04_all.deb) ...
Processing triggers for man-db ...
Setting up postgresql-client-common (114) ...
Setting up postgresql-client-8.4 (8.4.9-0ubuntu0.11.04) ...
update-alternatives: using /usr/share/postgresql/8.4/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode.
Setting up postgresql-common (114) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Setting up postgresql-8.4 (8.4.9-0ubuntu0.11.04) ...
Creating new cluster (configuration: /etc/postgresql/8.4/main, data: /var/lib/postgresql/8.4/main)...
Moving configuration file /var/lib/postgresql/8.4/main/postgresql.conf to /etc/postgresql/8.4/main...
Moving configuration file /var/lib/postgresql/8.4/main/pg_hba.conf to /etc/postgresql/8.4/main...
Moving configuration file /var/lib/postgresql/8.4/main/pg_ident.conf to /etc/postgresql/8.4/main...
Configuring postgresql.conf to use port 5432...
update-alternatives: using /usr/share/postgresql/8.4/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode.
* Starting PostgreSQL 8.4 database server [ OK ]
Setting up postgresql (8.4.9-0ubuntu0.11.04) ...
Selecting previously deselected package airtime.
(Reading database ... 30335 files and directories currently installed.)
Unpacking airtime (from .../airtime_1.9.5-3_amd64.deb) ...
Setting up airtime (1.9.5-3) ...
Site airtime-vhost already disabled
Installing phing...
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
Setting up apache2...
Module rewrite already enabled
Configuring php5...
Setting monit configuration...
Stopping daemon monitor: monit.
Starting daemon monitor: monit.
Setting local time zone...
* Restarting web server apache2 ... waiting [ OK ]
Debian package of Airtime detected...
Ensuring python-virtualenv version > 1.4.8...Success!
******************************** Install Begin *********************************
*** Creating Virtualenv for Airtime ***
Running virtualenv with interpreter /usr/bin/python2.6
New python executable in /usr/lib/airtime/airtime_virtualenv/bin/python2.6
Also creating executable in /usr/lib/airtime/airtime_virtualenv/bin/python
Installing distribute.................................................................................................................................................................................done.
*** Installing Python Libraries ***
Unpacking ./airtime_virtual_env.pybundle
Downloading/unpacking poster
Running setup.py egg_info for package poster
Downloading/unpacking anyjson
Running setup.py egg_info for package anyjson
Downloading/unpacking pyinotify
Running setup.py egg_info for package pyinotify
Downloading/unpacking kombu
Running setup.py egg_info for package kombu
Downloading/unpacking configobj
Running setup.py egg_info for package configobj
Downloading/unpacking amqplib
Running setup.py egg_info for package amqplib
Downloading/unpacking mutagen
Running setup.py egg_info for package mutagen
Installing collected packages: amqplib, anyjson, configobj, kombu, mutagen, poster, pyinotify
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-pony from 644 to 755
changing mode of build/scripts-2.6/mid3v2 from 644 to 755
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/mid3iconv from 644 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/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/mid3iconv to 755
Running setup.py install for poster
Running setup.py install for pyinotify
Successfully installed amqplib anyjson configobj kombu mutagen poster pyinotify
Cleaning up...
*** Patching Python Libraries ***
---Applying Patches for mutagen---
patching file /usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/mutagen/mp3.py
Hunk #1 succeeded at 205 (offset -4 lines).
patching file /usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/mutagen/mp3.py
Hunk #2 succeeded at 169 (offset -4 lines).
*** Creating Pypo User ***
Checking for user pypo
Creating user pypo
New Airtime Install.
* Creating INI files
* Installing PHP code to /usr/share/airtime
* Installing binaries to /usr/lib/airtime
* Initializing INI files
* Airtime Version: 1.9.5
* 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
*** 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 /usr/bin symlinks
* Installing airtime-import
* Installing airtime-update-db-settings
* Installing airtime-check-system
* Installing airtime-user
* Creating logs directory /var/log/airtime
* Creating Cron File
*** API Client Installation ***
Copying directory /var/lib/airtime/tmp/python_apps/api_clients to /usr/lib/airtime/api_clients
*** Pypo Installation ***
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 (Natty)
Copying directory /var/lib/airtime/tmp/python_apps/pypo to /usr/lib/airtime/pypo/bin
Setting permissions
Installing pypo daemon
Waiting for processes to start...
Starting Airtime Playout: Done.
*** Recorder Installation ***
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/tmp/python_apps/show-recorder to /usr/lib/airtime/show-recorder
Setting permissions
Installing show-recorder daemon
Waiting for processes to start...
Starting Airtime Show Recorder: Done.
*** Media Monitor Installation ***
Creating log directories
Creating directory /var/log/airtime/media-monitor
Copying directory /var/lib/airtime/tmp/python_apps/media-monitor to /usr/lib/airtime/media-monitor
Setting permissions
Installing media-monitor daemon
Waiting for processes to start...
Starting Airtime Media Monitor: Done.
*** Verifying your system environment ***
CPU = Intel(R) Xeon(R) CPU L5630 @ 2.13GHz
Total RAM = 946344 kB
Free RAM = 428936 kB
OS = Ubuntu 11.04 x86-64
AIRTIME_CONFIG_FILES = OK
POSTGRESQL_DATABASE = OK
PYTHON_KOMBU_VERSION = 1.2.0
PYTHON_POSTER_VERSION = 0.8.1
PYTHON_MUTAGEN_VERSION = 1.20
PYTHON_PYINOTIFY_VERSION = 0.9.2
RABBITMQ_SERVER = OK
AIRTIME_VERSION_URL = http://localhost:80/api/version/api_key/%%api_key%%
APACHE_CONFIGURED = YES
AIRTIME_VERSION = 1.9.5
PLAYOUT_ENGINE_PROCESS_ID = 12022
PLAYOUT_ENGINE_RUNNING_SECONDS = 6
LIQUIDSOAP_PROCESS_ID = 12026
LIQUIDSOAP_RUNNING_SECONDS = 6
MEDIA_MONITOR_PROCESS_ID = 12092
MEDIA_MONITOR_RUNNING_SECONDS = 5
SHOW_RECORDER_PROCESS_ID = 12057
SHOW_RECORDER_RUNNING_SECONDS = 5
ICECAST_PROCESS_ID = 8181
-- System setup looks OK!
###########################################
# Liquidsoap config file #
###########################################
###########################################
# Output settings #
###########################################
output_sound_device = false
output_icecast_vorbis = true
output_icecast_mp3 = true
output_shoutcast = false
#output_bitrate = 128
#output_samplerate = 44100
#output_stereo = true
###########################################
# Logging settings #
###########################################
log_file = "/var/log/airtime/pypo-liquidsoap/<script>.log"
#log_level = 3
###########################################
# Icecast Stream settings #
###########################################
icecast_host = "72.10.48.133"
icecast_port = 8000
icecast_pass = "hackme"
# Icecast mountpoint names
mount_point_mp3 = "airtime.mp3"
mount_point_vorbis = "airtime.ogg"
# Webstream metadata settings
icecast_url = "72.10.48.133"
icecast_description = "Stimulation For Your Imagination : House Music Radio St. Louis!"
icecast_genre = "House Music Baby!"
$sudo service airtime-playout
This was the result:CPU = Intel(R) Xeon(R) CPU L5630 @ 2.13GHz
Total RAM = 946344 kB
Free RAM = 175988 kB
OS = Ubuntu 11.04 x86-64
AIRTIME_CONFIG_FILES = OK
POSTGRESQL_DATABASE = OK
PYTHON_KOMBU_VERSION = 1.2.0
PYTHON_POSTER_VERSION = 0.8.1
PYTHON_MUTAGEN_VERSION = 1.20
PYTHON_PYINOTIFY_VERSION = 0.9.2
RABBITMQ_SERVER = OK
AIRTIME_VERSION_URL = http://localhost:80/api/version/api_key/%%api_key%%
APACHE_CONFIGURED = YES
AIRTIME_VERSION = 1.9.5
PLAYOUT_ENGINE_PROCESS_ID = 19562
PLAYOUT_ENGINE_RUNNING_SECONDS = 79333
LIQUIDSOAP_PROCESS_ID = 19567
LIQUIDSOAP_RUNNING_SECONDS = 79333
MEDIA_MONITOR_PROCESS_ID =
MEDIA_MONITOR_RUNNING_SECONDS = 0
-- WARNING! It looks like the Media Monitor engine is continually restarting.
-- 2011-11-29 16:28:28,064 INFO - [MainThread] [MediaMonitor.py : <module>()] : LINE 38 - Setting up monitor
-- 2011-11-29 16:28:28,213 INFO - [MainThread] [api_client.py : setup_media_monitor()] : LINE 397 - Connected to Airtime Server. Json Media Storage Dir: {u'watched_dirs': [u'/home/zunskigraphics/music/'], u'stor': u'/srv/airtime/stor/'}
-- 2011-11-29 16:28:33,214 INFO - [MainThread] [MediaMonitor.py : <module>()] : LINE 46 - Storage Directory is: /srv/airtime/stor/
-- 2011-11-29 16:28:33,218 ERROR - [MainThread] [MediaMonitor.py : <module>()] : LINE 55 - Exception: [Errno 38] Function not implemented
-- 2011-11-29 16:28:33,244 ERROR - [MainThread] [MediaMonitor.py : <module>()] : LINE 94 - Exception: name 'multi_queue' is not defined
-- 2011-11-29 16:28:33,244 ERROR - [MainThread] [MediaMonitor.py : <module>()] : LINE 95 - traceback: Traceback (most recent call last):
-- File "/usr/lib/airtime/media-monitor/MediaMonitor.py", line 62, in <module>
-- pe = AirtimeProcessEvent(queue=multi_queue, airtime_config=config, wm=wm, mmc=mmc, api_client=api_client)
-- NameError: name 'multi_queue' is not defined
--
SHOW_RECORDER_PROCESS_ID = 12057
SHOW_RECORDER_RUNNING_SECONDS = 98715
ICECAST_PROCESS_ID = 8181
-- There appears to be problems with your setup. Please visit
-- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.
It looks like you're new here. If you want to get involved, click one of these buttons!