Mercury site crashing every few hours

Events happening in the community are now at Drupal community events on www.drupal.org.
manuj_78's picture

Hi
My site was just migrated from Drupal to Mercury today morning...however now the site seems to be crashing every few hours :-(

The culprit seems to be Varnish ..I keep getting the following error messages

Page Could Not Be Loaded

We're very sorry, but the page could not be loaded properly. This should be fixed very soon, and we apologize for any inconvenience.
Debug Info:

Status: 503
Response: Service Unavailable
XID: 515792788

Varnish

Can someone guide me on how I can debug it?

The site is on Rackspace running on Ubuntu 10.04 LTS
1024MB RAM
Pressflow 6.17

Comments

look into the logs, i.e.

wik's picture

look into the logs, i.e. /var/log/apache2/error.log

Had a look at the error logs

manuj_78's picture

Had a look at the error logs and it seems to be full of the following errors

PHP Warning:  Module 'ffmpeg' already loaded in Unknown on line 0
[Sun Jul 04 20:02:53 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.2.10-2ubuntu6.4 with Suhosin-Patch configured -- resuming normal operations
[Tue Jul 06 16:06:47 2010] [notice] caught SIGTERM, shutting down

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/mhash.so' - /usr/lib/php5/20060613/mhash.so: cannot open shared object file: No such file or dire$
[Sat Jul 10 12:46:35 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.2.10-2ubuntu6.4 with Suhosin-Patch configured -- resuming normal operations
[Sat Jul 10 12:47:47 2010] [notice] Graceful restart requested, doing restart
apache2: apr_sockaddr_info_get() failed for MySiteName
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

sendmail: fatal: www-data(33): No recipient addresses found in message header

I wanted to try and attach the error log here but as I dont see the attach option for some reason, I have added the error log to dropbox for your reference

http://dl.dropbox.com/u/1484709/error.log

Any help will be really appreciated

The culprit is not varnish

aruna.kulatunga's picture

Varnish is simply displaying a message indicating that it has not received data. From your error log, there are a number of errors, including a maxclient limit being reached (in apache). How did you migrate to mercury?

Aruna

I didnt do the migration, but

manuj_78's picture

I didnt do the migration, but from what I know, I beleive the rackspace server was setup with the pantheon image by the developer

After that the drupal site was moved to the server with drupal being replaced by pressflow...

Does this answer the question? Or did you want something specific?

Manuj

Pantheon Setup

aruna.kulatunga's picture

I am not aware of a pantheon image for rackspace existed. If you or your developer had followed the pantheon scripts, the scripts should have configured the server correctly and set up the optimised configuration settings.

Pantheon image and the scripts available are pre-configured with Pressflow. By replacing the optimized Pressflow that was already in the Pantheon with another, you may have indadvertedly changed some settings. Please copy your settings.php file here.. Also your php.ini / the mysql settings file and the apache2.conf files.

Also, there are a number of steps suggested to move an existing drupal site to a pantheon site. You need to go through the documentation and the answers provided in this group or contact a Linux Administrator to set up Pantheon for you and do the migration properly. Pantheon and its components are not simple to manage and are part of a high performance linux stack and one needs some understanding of how that complete stack works.

Rackspace has said that they

brianmercer's picture

Rackspace has said that they plan to allow sharing disk images, but they have been slow to implement these new "cloudy" features, and it may be many months before that one goes in.

I guess the best thing will

manuj_78's picture

I guess the best thing will be for the devloper who setup my server and migrated my site to answer your question else I will only cause confusions here..
I will ask him to post all the necessary details as to how he migrated the server plus the requested files first thing tomorrow morning

Manuj

Config Values

sreyas's picture

Hi Aruna,

These are the some variables set on the server.

export APACHE_MAXCLIENTS="256"

/etc/apparmor.d/usr.sbin.mysqld

export APPARMOR_MYSQLD=""

/etc/default/tomcat6

export TOMCAT_MEMORY="64"

/etc/default/varnish

export VARNISH_MEMORY="128"

/etc/memcached.conf

export MEMCACHED_MEMORY="128"

/etc/mysql/my.cnf

export INNODB_BUFFER_POOL_SIZE=""

in bytes (ie, 1Gb = 1073741824 bytes)

export INNODB_LOG_FILE_SIZE=""
export KEY_BUFFER_SIZE=""
export MYSQL_MAX_CONNECTIONS="300"

/etc/php5/apache2/php.ini

export PHP_MEMORY="256"

/etc/php5/conf.d/apc.ini

export APC_MEMORY="128"

Let us know your valuable comments.

Regards
Sreyas

Hi Sorry am not sure why my

sreyas's picture

Hi

Sorry am not sure why my fonts got bigger

Anyway i have used this for now..
http://groups.drupal.org/node/70258

And server seems to be running fine. shall update you later.

Regards
Sreyas

Mercury

Group organizers

Group categories

Post Type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: