Upgrade issues. rabbitmq-server fails to start
  • I tried doing an upgrade, and got the following message:

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      linux-headers-3.2.0-23-generic linux-headers-3.2.0-23
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up airtime (2.1.2-1) ...
    Site airtime-vhost disabled.
    To activate the new configuration, you need to run:
      service apache2 reload
    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...
     * Stopping daemon monitor monit                                                                                                               [ OK ] 
     * Starting daemon monitor monit                                                                                                               [ OK ] 
    invoke-rc.d: initscript rabbitmq-server, action "status" failed.
    www-data www-data 750 /srv/airtime
    dpkg-statoverride: warning: An override for '/srv/airtime' already exists, but --force specified so will be ignored.
     * Restarting web server apache2                                                                                                                      [Thu Jun 21 22:01:59 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
     ... waiting [Thu Jun 21 22:02:00 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
                                                                                                                                                   [ OK ]
    Liquidsoap symlink points to the right place!

    Debian package of Airtime detected...

    * Making sure /etc/default/locale is set properly
    LANG="en_US.UTF-8"
    * Checking for existing Airtime installation...
     * Same version of Airtime already installed!
    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)

    From what I gather the issue is with rabbitmq-server, so i checked the /var/log/rabbitmq/startup_err and /var/log/rabbitmq/startup_log, neither of which are of much use i'm afraid. startup_log looks like this:

    Sat Jun 16 15:19:12 PDT 2012 - rabbitmq successfully started
    Sat Jun 16 16:24:12 PDT 2012 - rabbitmq successfully started

    and startup_err is very long, but is just this line repeated over and over with different dates and times:

    Thu Jun 21 22:08:00 PDT 2012 - rabbitmq failed to start

    So: suggestions? 
  • 10 Comments sorted by
  • It appears the real cause of the problem is that Airtime is already installed, but for some reason the debian package isn't attempting a re-install. 

    Did you try installing Airtime before, and if so, was is successful?


    Airtime Pro Hosting: http://airtime.pro
  • Yes, it was installed, then i ran apt-get upgrade and got that
  • What version did you have previously installed?
    Airtime Pro Hosting: http://airtime.pro
  • Um, 2.0.1 i believe. The one that was the latest two weeks ago. That's when it was installed.
  • What happens if you do

    sudo -u postgres psql -c "UPDATE cc_pref SET valstr='2.1.1' WHERE keystr='system_version'" airtime;

    and then run the deb install again
    Airtime Pro Hosting: http://airtime.pro
  • this:

    finn@radio:~$ sudo -u postgres psql -c "UPDATE cc_pref SET valstr='2.1.1' WHERE keystr='system_version'" airtime;
    [sudo] password for finn: 
    UPDATE 1

  • And then run the deb install again :)
    Airtime Pro Hosting: http://airtime.pro
  • It's hanging after this:

    * Checking for existing Airtime installation...
     * Previous version of Airtime already installed..will perform upgrade
    * Temporarily stopping any previous running services

  • Ok that ended up freezing the machine and forcing me to reboot. I ran sudo apt-get install -f to finish installing/upgrading. It did the same thing, this time with a bit more text during the artime upgrade, which seemed to go fine, then being unable to start rabbitmq
  • SOLVED: Airtime was running on a non-standard port, but apparently the apache vhost got overwritten during the upgrade, but not the api config or the airtime config, so the port changed and neither of the configs updated. I solved this problem by changing the configs before the upgrade, running the postgres update line, then apt-get upgrade.