sudo apt-get install rabbitmq-server
Setting up rabbitmq-server (1.7.2-1ubuntu1) ...
Starting rabbitmq-server: TIMEOUT - check /var/log/rabbitmq/startup_{log,err}
rabbitmq-server.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo /usr/sbin/rabbitmq-multi 1
su: Authentication failure
It's a weird one. If I run essentially what the init script start command does:
sudo /usr/sbin/rabbitmq-multi 1
I get the normal sudo password prompt and then another one. After that fails I get
Quote:su: Authentication failure
This must be the password for the rabbitmq user?
Still digging...
$ cat /var/log/rabbitmq/startup_err
Password:
su: Authentication failure
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up rabbitmq-server (1.7.2-1ubuntu1) ...
Starting rabbitmq-server:
Starting rabbitmq-server: TIMEOUT - check /var/log/rabbitmq/startup_{log,err}
rabbitmq-server.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt-get purge rabbitmq
$ sudo apt-get install rabbitmq
/etc/init.d/rabbitmq-server start
sudo sed -i 's/nullok_secure/nullok/' /etc/pam.d/common-auth
The question is why there a difference between my setup and a clean install that requires these steps?
mediashout@MediaStation:/usr/local/src/Airtime/install$ sudo php airtime-install.php
******************************** 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' already exists.
* Creating Airtime database
Password:
createdb: database creation failed: ERROR: role "airtime" does not exist
* Database 'airtime' already exists.
DB Error: connect failed
[nativecode=pg_connect(): Unable to connect to PostgreSQL server: FATAL: password authentication failed for user "airtime"
FATAL: password authentication failed for user "airtime"] ** pgsql(pgsql)://airtime:PASSWORD@localhost/airtime
Database connection problem.
Check if database 'airtime' exists with corresponding permissions.
* 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 32-bit liquidsoap binary
Copying directory /usr/local/src/Airtime/python_apps/pypo to /usr/lib/airtime/pypo/bin
Copying directory /usr/local/src/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 10793) 4 seconds
/etc/service/pypo-liquidsoap: up (pid 10795) 4 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 /usr/local/src/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 11032) 0 seconds
*** Verifying Correct System Environment ***
OS = Ubuntu 10.04.2 LTS
AIRTIME_CONFIG_FILES = OK
POSTGRESQL_DATABASE = FAILED
PYTHON_KOMBU_VERSION = 1.0.7
PYTHON_POSTER_VERSION = 0.8.0
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 = 11058
PLAYOUT_ENGINE_RUNNING_SECONDS = 1
-- WARNING! It looks like the playout engine is continually restarting.
-- /etc/service/pypo: up (pid 11058) 1 seconds
-- @400000004de6494d074a9d84 Traceback (most recent call last):
-- @400000004de6494d074ad81c File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 118, in <module>
-- @400000004de6494d074b60d4 if not g.selfcheck():
-- @400000004de6494d074bb6c4 File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 62, in selfcheck
-- @400000004de6494d074c0cb4 return self.api_client.is_server_compatible()
-- @400000004de6494d074ca50c File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 193, in is_server_compatible
-- @400000004de6494d074d4534 version = self.__get_airtime_version(verbose)
-- @400000004de6494d074d9354 File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 156, in __get_airtime_version
-- @400000004de6494d074e143c if e[1] == 401:
-- @400000004de6494d074e6e14 IndexError: tuple index out of range
LIQUIDSOAP_PROCESS_ID = 10835
LIQUIDSOAP_RUNNING_SECONDS = 19
ICECAST_PROCESS_ID = 1961
-- There appears to be problems with your setup. Please visit
-- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.
******************************* Install Complete *******************************
RabbitMQ won't start on Airtime 1.7.0+
Try the creating /etc/rabbitmq/rabbitmq.conf with these lines:
NODENAME=rabbit@localhost
NODE_IP_ADDRESS=127.0.0.1
Another thing to try (warning: this was sent in by a user and not tested, see: http://forum.sourcefabric.org/index.php?t=rview&goto=112 62#msg_11262):
sudo sed -i 's/nullok_secure/nullok/' /etc/pam.d/common-auth
sudo passwd -d postgres
then blank the password for postgres.
$ /etc/init.d/rabbitmq-server start Starting rabbitmq-server: sh: /var/log/rabbitmq/startup_log: Permission denied FAILED - check /var/log/rabbitmq/startup_{log, _err} rabbitmq-server.
$ /etc/init.d/rabbitmq-server start
$ sudo service rabbitmq-server start
It looks like you're new here. If you want to get involved, click one of these buttons!