I just used the standard highly automated upgrade script on an existing B2.0.1 install to upgrade it to B2.0.2. The install was originally on BOA-1.4S. I'm hosting my sites on platforms on the main Barracuda install rather than using Octopus, as the setting up of multiple FQDNs was distinctly unfun when I was trying to get everything working in the first place.

Anyhoo, edited my FQDN info and email address into the install script, ran it, everything reports back fine. It completes, and the Aegir server page returns a 102 connection refused error while the various hosted websites don't return anything at all. Checking nginx logs shows a repeated error similar to the following:

2012/02/11 14:26:01 [emerg] 30419#0: unknown directive "upload_progress" in /etc/nginx/conf.d/aegir.conf:105

No evident errors in the other log files. It's worth noting that despite the current and former scripts being set to PHP-FPM 5.2, PHP 5.3 is definitely also present on the system. I've also run aptitude full-upgrade at least once in the past owing to receiving repeated, daily emails from the system telling me to do this.

I can't see how to recover this - running the script again didn't help, and nor did rebooting the server. Would you recommend any other steps, or should I reinstall from scratch? I backed up all my sites before upgrading, so it's not the end of the world if necessary.

Comments

omega8cc’s picture

Component: Code » Miscellaneous
Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Please follow the bug submission guidelines: http://drupal.org/node/add/project-issue/barracuda

Also, what is the output when you type nginx -V ?

Finally, please read: http://groups.drupal.org/node/175804#comment-646423

omega8cc’s picture

DanielJohnston’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks for the response! The suggestion to mv /usr/sbin/nginx /usr/sbin/nginx-old and run Barracuda again did the trick. I've included the rest of the requested output anyway (from before I moved nginx and reran), but I'm marking this as fixed since it's all working again.

nginx -V output:

nginx version: nginx/1.0.12
built by gcc 4.4.5 (Debian 4.4.5-8)
TLS SNI support enabled
configure arguments: --prefix=/usr --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --user=www-data --group=www-data --with-http_realip_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_ssl_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --without-http_scgi_module --without-http_uwsgi_module --with-debug --with-ipv6 --with-http_geoip_module --add-module=/var/opt/ngx_cache_purge/

barracuda_log.txt contents:

Tue Aug 16 02:55:16 BST 2011 / Debian.squeeze i686 XEN / Aegir 1.0-boa-T-8.9 / Barracuda 1.0-boa-T-8.9 / Nginx 1.0.5 / PHP 5.2.17 / MariaDB server.danieljohnston.co.uk / SpeedWild YES-NO
Sun Sep 25 18:36:22 BST 2011 / Debian.squeeze i686 XEN / Aegir 1.0-boa-T-8.10 / Barracuda 1.0-boa-T-8.10 / Nginx 1.0.6 / PHP 5.2.17 / MariaDB server.danieljohnston.co.uk / SpeedWild NO-NO
Fri Oct 28 21:51:35 BST 2011 / Debian.squeeze i686 XEN / Aegir BOA-1.4S / Barracuda BOA-1.4S / Nginx 1.0.8 / PHP 5.2.17 / MariaDB server.danieljohnston.co.uk / SpeedWild NO-NO
Tue Jan  3 14:29:07 GMT 2012 / Debian.squeeze i686 XEN / Aegir BOA-2.0.1 / Barracuda BOA-2.0.1 / Nginx 1.0.11 / PHP 5.2.17 / MariaDB server.danieljohnston.co.uk / SpeedWild NO-NO
Mon Jan 30 14:59:20 GMT 2012 / Debian.squeeze i686 XEN / Aegir BOA-2.0.1 / Barracuda BOA-2.0.1 / Nginx 1.0.11 / PHP 5.2.17 / MariaDB server.danieljohnston.co.uk / SpeedWild NO-NO
Sat Feb 11 14:25:13 GMT 2012 / Debian.squeeze i686 XEN / Aegir BOA-2.0.2 / Barracuda BOA-2.0.2 / Nginx 1.0.12 / PHP 5.2.17 and 5.3.10 / FPM 5.2 / MariaDB server.danieljohnston.co.uk / Wildcard NO
Sat Feb 11 14:51:39 GMT 2012 / Debian.squeeze i686 XEN / Aegir BOA-2.0.2 / Barracuda BOA-2.0.2 / Nginx 1.0.12 / PHP 5.2.17 and 5.3.10 / FPM 5.2 / MariaDB server.danieljohnston.co.uk / Wildcard NO

install.log contents:

==> MySQL is listening on 212.110.184.31.
==> This script makes the following assumptions: 
 * you have read INSTALL.txt and prepared the platform accordingly
 * you are running as your "aegir" user
==> Aegir will now generate a mysql super user password for you: 
  Username : aegir_root
  Password : XXXXXXXXXX
  Hostname : server.danieljohnston.co.uk (212.110.184.31)
==> Installing drush in /var/aegir
==> Drush seems to be functioning properly
==> Installing provision backend in /var/aegir/.drush
==> Installing the frontend
Aegir 1.0-boa-T-8.9 automated install script
==============================================================================
Some settings have not been provided and will now be prompted.
Don't worry: you will get to review those settings after the final install

This script will operate the following changes in your system:

1. Create server-level configuration directories
2. Download drush_make
3. Create the Hostmaster frontend platform
4. Install the frontend site
5. Setup the dispatcher (a user cron job)

We are making the following assumptions:
 * you have read and are following the install instructions at:
    http://community.aegirproject.org/installing
 * the FQDN of this machine is valid and resolves
 * you are executing this script as your "aegir" user

The following settings will be used:
 Aegir frontend URL: server.danieljohnston.co.uk
 Master server FQDN: server.danieljohnston.co.uk
 Aegir root: /var/aegir
 Aegir user: aegir
 Web group: www-data
 Web server: nginx
 Aegir DB host: server.danieljohnston.co.uk
 Aegir DB user: aegir_root
 Aegir DB password: <previously set>
 Drush make version: 6.x-2.2
 Aegir version: 1.0-boa-T-8.9
 Aegir platform path: /var/aegir/hostmaster-1.0-boa-T-8.9
 Aegir makefile: /var/aegir/.drush/provision/aegir.make
 Admin email: XXXXXXXXX

Do you really want to proceed with the install (y/n): y
Project drush_make (6.x-2.2) downloaded to /var/aegir/.drush//drush_make.                                                                                                                                                         [1;32;40m[1m[success][0m
Project drush_make contains 0 modules: .
pressflow downloaded from lp:pressflow/6.x.                                                                                                                                                                                       [1;32;40m[1m[ok][0m
hostmaster downloaded from http://files.aegir.cc/versions/hostmaster-1.0-boa-T-8.9.tar.gz.                                                                                                                                        [1;32;40m[1m[ok][0m
Found makefile: hostmaster.make                                                                                                                                                                                                   [1;32;40m[1m[ok][0m
Project information for admin_menu retrieved.                                                                                                                                                                                     [1;32;40m[1m[ok][0m
Project information for openidadmin retrieved.                                                                                                                                                                                    [1;32;40m[1m[ok][0m
Project information for install_profile_api retrieved.                                                                                                                                                                            [1;32;40m[1m[ok][0m
Project information for jquery_ui retrieved.                                                                                                                                                                                      [1;32;40m[1m[ok][0m
Project information for modalframe retrieved.                                                                                                                                                                                     [1;32;40m[1m[ok][0m
admin_menu downloaded from http://ftp.drupal.org/files/projects/admin_menu-6.x-1.6.tar.gz.                                                                                                                                        [1;32;40m[1m[ok][0m
openidadmin downloaded from http://ftp.drupal.org/files/projects/openidadmin-6.x-1.2.tar.gz.                                                                                                                                      [1;32;40m[1m[ok][0m
install_profile_api downloaded from http://ftp.drupal.org/files/projects/install_profile_api-6.x-2.1.tar.gz.                                                                                                                      [1;32;40m[1m[ok][0m
jquery_ui downloaded from http://ftp.drupal.org/files/projects/jquery_ui-6.x-1.4.tar.gz.                                                                                                                                          [1;32;40m[1m[ok][0m
modalframe downloaded from http://ftp.drupal.org/files/projects/modalframe-6.x-1.6.tar.gz.                                                                                                                                        [1;32;40m[1m[ok][0m
jquery_ui downloaded from http://omega8.cc/dev/jquery.ui-1.6.zip.                                                                                                                                                                 [1;32;40m[1m[ok][0m
Created serverdanieljohn database                                                                                                                                                                                                 [1;32;40m[1m[success][0m
Creating master server node                                                                                                                                                                                                       [1;32;40m[1m[status][0m
Task verify was added to the queue. Next queue run is 01:48:00+0000, server time is 01:47:37+0000.                                                                                                                                [1;32;40m[1m[status][0m
Task verify was added to the queue. Next queue run is 01:48:00+0000, server time is 01:47:37+0000.                                                                                                                                [1;32;40m[1m[status][0m
Task import was added to the queue. Next queue run is 01:48:00+0000, server time is 01:47:37+0000.                                                                                                                                [1;32;40m[1m[status][0m
Configuring menu items                                                                                                                                                                                                            [1;32;40m[1m[status][0m
Configuring Eldir theme                                                                                                                                                                                                           [1;32;40m[1m[status][0m
Configuring default blocks                                                                                                                                                                                                        [1;32;40m[1m[status][0m
Configuring roles                                                                                                                                                                                                                 [1;32;40m[1m[status][0m
Content permissions have been rebuilt.                                                                                                                                                                                            [1;32;40m[1m[status][0m
Initializing the hosting system
Dispatch command was run successfully                                                                                                                                                                                             [1;32;40m[1m[success][0m
Installed hosting-dispatch cron entry to run every minute                                                                                                                                                                         [1;32;40m[1m[success][0m
This command will replace your crontab for this user. continue? (y/n): y
/var/aegir/drush/drush.php '@hostmaster' hosting-dispatch 
Aegir is now installed. You can visit it at http://server.danieljohnston.co.uk/user/reset/1/1313459259/XXXXXXXXX

.barracuda.cnf contents:

###
### Configuration created on 111028-2123 with
### Barracuda version BOA-1.4S
###
### NOTE: the group of settings displayed bellow will *not* be overriden
### on upgrade by the Barracuda script nor by this configuration file.
### They can be defined only on initial Barracuda install.
###
_HTTP_WILDCARD=NO
_MY_OWNIP="212.110.184.31"
_MY_HOSTN="server.danieljohnston.co.uk"
_MY_FRONT="server.danieljohnston.co.uk"
_THIS_DB_HOST=FQDN
_SMTP_RELAY_TEST=YES
_SMTP_RELAY_HOST=""
_LOCAL_NETWORK_IP=""
_LOCAL_NETWORK_HN=""
###
### NOTE: the group of settings displayed bellow
### will *override* all listed settings in the Barracuda script,
### both on initial install and upgrade.
###
_MY_EMAIL="XXXXXXXXXX"
_XTRAS_LIST="CHV CSF BDD CGP WMN"
_AUTOPILOT=NO
_DEBUG_MODE=NO
_DB_SERVER=MariaDB
_SSH_PORT=22
_LOCAL_DEBIAN_MIRROR=""
_LOCAL_UBUNTU_MIRROR=""
_FORCE_GIT_MIRROR=""
_USE_SPEED_BOOSTER=NO
_DNS_SETUP_TEST=YES
_NGINX_EXTRA_CONF=""
_PHP_FORCE_REINSTALL=NO
_SQL_FORCE_REINSTALL=NO
###
### Configuration created on 111028-2123 with
### Barracuda version BOA-1.4S
###
### Configuration added on 120211-1340
_NGINX_WORKERS=AUTO
_PHP_FPM_WORKERS=AUTO
### Configuration added on 120211-1340
_PHP_INSTALL_NEW=YES
### Configuration added on 120211-1340
_PHP_FPM_VERSION=5.2

VPS provider is Bytemark, root access VM with a moderate amount of memory and storage, using a Debian Squeeze install.

DanielJohnston’s picture

Sigh. The install.log paste contained characters that zapped display on this site. I've created a paste of the above post at http://pastebin.com/AP4GYB0N but obviously your suggestion worked anyway, so it's only there if there's anything you want to explore further for your own interest. Thanks again for your help.

omega8cc’s picture

Thank you.

To explain why it failed: the nginx -V output didn't include expected --add-module=/var/opt/nginx-upload-progress-module/ line. It was probably some edge case, since it looks like it failed to download this module from GitHub, while other modules have been downloaded without issues.

However, Barracuda should then use Nginx config without upload_progress directive to avoid the error you reported. But even this would not help when it is an upgrade, since Octopus config may include upload_progress related location, so it would fail anyway, until the Nginx server is rebuild with this module again. This is also why it is always better to use Barracuda script to fix issues than trying to fix them manually.

Anyway, I'm glad it worked this time.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.