I have three websites installed on my octopus instance. Two lightweight sites and one heavy site (lots of modules). The lightweight sites do not have any problem. However, the heavy site throws 502 error on every first instance of visiting a page but when I visit the same again by refreshing the browser, it shows the page.

I using VPS from hetzner.de with 512 MB RAM.

/var/aegir/install.log

vps2:/var/xdrago# cat /var/aegir/config/includes/barracuda_log.txt
Thu Jun  7 14:24:24 CEST 2012 / Ubuntu.precise x86_64 XEN / Aegir BOA-2.0.3 / Barracuda BOA-2.0.3 / Nginx 1.3.0 / PHP 5.2.17 and 5.3.13 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.24 localhost / Wildcard YES
Thu Jun  7 17:57:27 CEST 2012 / Ubuntu.precise x86_64 XEN / Aegir BOA-2.0.3 / Barracuda BOA-2.0.3 / Nginx 1.3.0 / PHP 5.2.17 and 5.3.13 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.24 localhost / Wildcard YES
==> MySQL is listening on ***.
==> 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 : ***
  Hostname :  ***
==> Installing drush in /var/aegir
==> Drush seems to be functioning properly
==> Installing provision backend in /var/aegir/.drush
==> Installing the frontend
Aegir BOA-2.0.3 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: master.**.**.co.in
 Master server FQDN: **.**.co.in
 Aegir root: /var/aegir
 Aegir user: aegir
 Web group: www-data
 Web server: nginx
 Aegir DB host: localhost
 Aegir DB user: aegir_root
 Aegir DB password: <previously set>
 Drush make version: 6.x-2.3
 Aegir version: BOA-2.0.3
 Aegir platform path: /var/aegir/hostmaster-BOA-2.0.3
 Aegir makefile: /var/aegir/.drush/provision/aegir.make
 Admin email: support@neokrish.co.in

Do you really want to proceed with the install (y/n): y
Project drush_make (6.x-2.3) downloaded to /var/aegir/.drush/drush_make.                                                                                                                                            [success]
Project drush_make contains 0 modules: .
pressflow downloaded from http://files.aegir.cc/dev/pressflow-6.26.2.tar.gz.                                                                                                                                        [ok]
hostmaster downloaded from http://files.aegir.cc/versions/hostmaster-BOA-2.0.3.tar.gz.                                                                                                                              [ok]
Found makefile: hostmaster.make                                                                                                                                                                                     [ok]
Project information for admin_menu retrieved.                                                                                                                                                                       [ok]
Project information for openidadmin retrieved.                                                                                                                                                                      [ok]
Project information for install_profile_api retrieved.                                                                                                                                                              [ok]
Project information for jquery_ui retrieved.                                                                                                                                                                        [ok]
Project information for modalframe retrieved.                                                                                                                                                                       [ok]
Project information for hosting_platform_pathauto retrieved.                                                                                                                                                        [ok]
admin_menu downloaded from http://ftp.drupal.org/files/projects/admin_menu-6.x-1.8.tar.gz.                                                                                                                          [ok]
openidadmin downloaded from http://ftp.drupal.org/files/projects/openidadmin-6.x-1.2.tar.gz.                                                                                                                        [ok]
install_profile_api downloaded from http://ftp.drupal.org/files/projects/install_profile_api-6.x-2.1.tar.gz.                                                                                                        [ok]
jquery_ui downloaded from http://ftp.drupal.org/files/projects/jquery_ui-6.x-1.4.tar.gz.                                                                                                                            [ok]
modalframe downloaded from http://ftp.drupal.org/files/projects/modalframe-6.x-1.6.tar.gz.                                                                                                                          [ok]
hosting_platform_pathauto downloaded from http://ftp.drupal.org/files/projects/hosting_platform_pathauto-6.x-2.0-beta1.tar.gz.                                                                                      [ok]
jquery_ui downloaded from http://files.aegir.cc/dev/jquery.ui-1.6.zip.                                                                                                                                              [ok]
Created * database                                                                                                                                                                                   [success]
Creating master server node                                                                                                                                                                                         [status]
Task verify was added to the queue. Next queue run is 12:24:00+0000, server time is 12:23:20+0000.                                                                                                                  [status]
Creating db server node                                                                                                                                                                                             [status]
Task verify was added to the queue. Next queue run is 12:24:00+0000, server time is 12:23:20+0000.                                                                                                                  [status]
Task verify was added to the queue. Next queue run is 12:24:00+0000, server time is 12:23:20+0000.                                                                                                                  [status]
Task import was added to the queue. Next queue run is 12:24:00+0000, server time is 12:23:20+0000.                                                                                                                  [status]
Configuring menu items                                                                                                                                                                                              [status]
Configuring Eldir theme                                                                                                                                                                                             [status]
Configuring default blocks                                                                                                                                                                                          [status]
Configuring roles                                                                                                                                                                                                   [status]
Content permissions have been rebuilt.                                                                                                                                                                              [status]
Initializing the hosting system
Dispatch command was run successfully                                                                                                                                                                               [success]
Installed hosting-dispatch cron entry to run every minute                                                                                                                                                           [success]
This command will replace your crontab for this user. continue? (y/n): y
/var/aegir/drush/drush.php '@hostmaster' hosting-dispatch 

==============================================================================


Congratulations, Aegir has now been installed.

/root/.barracuda.cnf

_XTRAS_LIST="PDS CSF CHV FTP"
_AUTOPILOT=YES
_DEBUG_MODE=NO
_DB_SERVER=MariaDB
_SSH_PORT=22
_LOCAL_DEBIAN_MIRROR="ftp.debian.org"
_LOCAL_UBUNTU_MIRROR="archive.ubuntu.com"
_FORCE_GIT_MIRROR=""
_DNS_SETUP_TEST=YES
_NGINX_EXTRA_CONF=""
_NGINX_WORKERS=AUTO
_PHP_FPM_WORKERS=AUTO
_BUILD_FROM_SRC=NO
_PHP_MODERN_ONLY=YES
_PHP_FPM_VERSION=5.3
_PHP_CLI_VERSION=5.3
_LOAD_LIMIT_ONE=1444
_LOAD_LIMIT_TWO=888
_CUSTOM_CONFIG_CSF=NO
_CUSTOM_CONFIG_SQL=NO
_CUSTOM_CONFIG_REDIS=NO
_CUSTOM_CONFIG_PHP_5_2=NO
_CUSTOM_CONFIG_PHP_5_3=NO
_SPEED_VALID_MAX=3600
_NGINX_DOS_LIMIT=300
_SYSTEM_UPGRADE_ONLY=NO
_USE_MEMCACHED=NO
###
### Configuration created on 120607-1332
### with Barracuda version BOA-2.0.3

Comments

omega8cc’s picture

Status: Active » Closed (duplicate)

I believe that it is directly related to this serious bug: #1643616: APC is missing in the Ubuntu Precise based install

Closing as duplicate.

krishworks’s picture

Status: Closed (duplicate) » Active

This is not related to the APC missing bug. I have added the hot fix suggested in [#1642616] but still I get this error.

As a logged in user, I visit a page and it throws me 502 error. I reload the same page in my browser twice or thrice and in any of these tries the same page works fine. This happens for many pages of my website.

krishworks’s picture

Status: Active » Postponed

changing the status so that I can test the related ticket #1643616: APC is missing in the Ubuntu Precise based install which is active again before having the maintainer spent time on this.

Nebel54’s picture

Hi! I 've stumbled accross the same issues (seems that i have a pretty similar setup: ubuntu 12.04, hetzner vserver with 1gb ram) and applied the hot fix suggested in [#1642616] - I will keep you updated when i find some hints ...

omega8cc’s picture

Status: Postponed » Closed (duplicate)

No follow-up after almost 2 months, so I'm going to close this again.

PlayfulWolf’s picture

I can confirm ,that heavy sites have this problem on 2.0.3 stable, I am getting it everytime when updating modules

omega8cc’s picture

@PlayfulWolf Do you have the update module enabled by any chance? If yes, disable it. I don't think there is any BOA related issue here. If you think there is and you can provide some steps to reproduce the problem with your system specs etc, please open new issue with all required info and config files.

hanamizuki’s picture

I got this error as well and I eventually disable all modules (non-core) and enable them one by one to see what caused the error.

Here's a easy way to disable all non-core modules.

babusaheb.vikas’s picture