Closed (fixed)
Project:
Barracuda
Version:
6.x-2.0-rc9
Component:
Database Server
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2013 at 19:17 UTC
Updated:
23 Sep 2013 at 19:11 UTC
Hi all,
I am using BOA-2.0.9 / KVM and this problem has occurred several times. I made a few small edits to one of my BOA sites (Drupal 7) and then suddenly I get:
The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.
All sites including the hostmaster are down. When I look at $ htop I can see that there is no user called mysql so I wonder if this means that the mysql service has stopped. Also I get
$ mysql -v
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
$I can fix the problem by rebooting but any ideas please what is causing this problem?
Thanks...
$ cat /var/log/barracuda_log.txt
Sun Jun 2 17:35:15 UTC 2013 / Ubuntu.precise i686 XEN / Aegir BOA-2.0.8 / Barracuda BOA-2.0.9 / Nginx 1.5.0 / PHP 5.2.17 and 5.3.25 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.31 localhost / Wildcard YES
Tue Jun 4 18:55:28 UTC 2013 / Ubuntu.precise i686 XEN / Aegir BOA-2.0.8 / Barracuda BOA-2.0.9 / Nginx 1.5.0 / PHP 5.2.17 and 5.3.25 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.31 localhost / Wildcard YES
Tue Jun 11 18:21:13 UTC 2013 / Ubuntu.precise i686 XEN / Aegir BOA-2.0.8 / Barracuda BOA-2.0.9 / Nginx 1.5.1 / PHP 5.2.17 and 5.3.26 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.31 localhost / Wildcard YES
Fri Jun 28 23:52:07 UTC 2013 / Ubuntu.precise i686 XEN / Aegir BOA-2.0.8 / Barracuda BOA-2.0.9 / Nginx 1.5.1 / PHP 5.2.17 and 5.3.26 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.31 localhost / Wildcard YES
Mon Jul 8 12:27:57 UTC 2013 / Ubuntu.precise i686 XEN / Aegir BOA-2.0.8 / Barracuda BOA-2.0.9 / Nginx 1.5.2 / PHP 5.2.17 and 5.3.26 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.31 localhost / Wildcard YES
Fri Jul 19 19:05:25 UTC 2013 / Ubuntu.precise i686 XEN / Aegir BOA-2.0.8 / Barracuda BOA-2.0.9 / Nginx 1.5.2 / PHP 5.2.17 and 5.3.27 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.32 localhost / Wildcard YES
Wed Jul 24 18:59:48 UTC 2013 / Ubuntu.precise i686 XEN / Aegir BOA-2.0.8 / Barracuda BOA-2.0.9 / Nginx 1.5.2 / PHP 5.2.17 and 5.3.27 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.32 localhost / Wildcard YES
Thu Aug 1 10:29:02 UTC 2013 / Ubuntu.precise i686 XEN / Aegir BOA-2.0.8 / Barracuda BOA-2.0.9 / Nginx 1.5.2 / PHP 5.2.17 and 5.3.27 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.32 localhost / Wildcard YES
Fri Aug 2 19:42:21 UTC 2013 / Ubuntu.precise i686 XEN / Aegir BOA-2.0.8 / Barracuda BOA-2.0.9 / Nginx 1.5.2 / PHP 5.2.17 and 5.3.27 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.32 localhost / Wildcard YES
Wed Sep 4 16:45:00 UTC 2013 / Ubuntu.precise i686 XEN / Aegir BOA-2.0.8 / Barracuda BOA-2.0.9 / Nginx 1.5.2 / PHP 5.2.17 and 5.3.27 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.32 localhost / Wildcard YES
$
$ cat /root/.barracuda.cnf
###
### Configuration created on 130602-1720
### with Barracuda version BOA-2.0.9
###
### 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=YES
_MY_OWNIP="12.345.6.78"
_MY_HOSTN="***.co.uk"
_MY_FRONT="***.co.uk"
_THIS_DB_HOST=localhost
_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="***@mail.com"
_XTRAS_LIST="PDS CSF CHV FTP WMN"
_AUTOPILOT=YES
_SYSTEM_UPGRADE_ONLY=YES
_AEGIR_UPGRADE_ONLY=NO
_DEBUG_MODE=NO
_DB_SERVER=MariaDB
_DB_BINARY_LOG=NO
_DB_ENGINE=InnoDB
_SSH_PORT=22
_LOCAL_DEBIAN_MIRROR="ftp.debian.org"
_LOCAL_UBUNTU_MIRROR="archive.ubuntu.com"
_FORCE_GIT_MIRROR=""
_DNS_SETUP_TEST=YES
_NGINX_WORKERS=AUTO
_NGINX_DOS_LIMIT=300
_BUILD_FROM_SRC=NO
_PHP_MODERN_ONLY=YES
_PHP_FPM_VERSION=5.3
_PHP_CLI_VERSION=5.3
_PHP_FPM_WORKERS=AUTO
_NGINX_EXTRA_CONF=""
_NGINX_LDAP=NO
_PHP_GEOS=NO
_PHP_MONGODB=NO
_PHP_EXTRA_CONF=""
_LOAD_LIMIT_ONE=1444
_LOAD_LIMIT_TWO=888
_CUSTOM_CONFIG_CSF=YES
_CUSTOM_CONFIG_SQL=NO
_CUSTOM_CONFIG_REDIS=NO
_CUSTOM_CONFIG_PHP_5_2=NO
_CUSTOM_CONFIG_PHP_5_3=NO
_SPEED_VALID_MAX=3600
_USE_MEMCACHED=NO
_NEWRELIC_KEY=
_USE_STOCK=NO
_EXTRA_PACKAGES=
_STRONG_PASSWORDS=NO
###
### Configuration created on 130602-1720
### with Barracuda version BOA-2.0.9
###
$
Comments
Comment #0.0
juc1 commentedx
Comment #0.1
juc1 commentedxx
Comment #0.2
juc1 commentedmore detail
Comment #0.3
couturier commentedx
Comment #1
couturier commentedWhen you have problems this major, it is really time to start upgrading to Drupal 7. You also should take a close look at your server capacities. Is it adequate for Drupal? Sometimes increasing the php memory helps a lot. I am not sure what your specific problem is based on your error message, but my previous two suggestions could go a long way to resolving your issue.
You said this error is in Drupal 7, but you've filed the issue against the Drupal 6 module?
Comment #2
omega8cc commentedYou probably want to look for hints in your system logs, typically
grep mysql /var/log/syslog, plus, you don't need to reboot, just check what happens when you runservice mysql restartwhile monitoring syslog withtail -f /var/log/syslog | grep mysqlComment #3
juc1 commented@ omega8cc yes the problem is fixed by the restart mysql command. I have pasted some extracts from /var/log/syslog from the relevant day below (full file is here) - can you please tell me whether this looks like a server issue or is it mysql settings such as my.cnf (which I think are set by BOA). I am pretty sure that the server did not run out of memory because I can see about 100MB of free memory in the resource log and also because this is a test server with almost zero traffic / mysql requests.
Thanks...
/var/log/syslog =
Comment #4
juc1 commented@ couturier - yes it is an Aegir thing - there is no D7 version of Aegir / Barracuda yet but they manage D7 sites...
Comment #5
omega8cc commented@Juc1 The syslog clearly says that the parent system kills mysql. This is rather weird, because BOA is trying to use some very modest defaults, depending on the amount of RAM available. You would need to adjust limits in /etc/mysql/my.cnf until it stops killing it, and then set _CUSTOM_CONFIG_SQL=YES in the /root/.barracuda.cnf to avoid overwriting custom config on upgrade.
What is the name of your provider and the amount of RAM you have there?
This looks very typical for 512 MB droplet on digitalocean, by the way.
Comment #6
omega8cc commentedAlso, please paste the /etc/mysql/my.cnf you have there now.
Comment #7
omega8cc commentedWe have improved mysql limits tuning on low-memory systems (like 512 MB -- tested on digitalocean) so I would recommend to upgrade to head and see how it works:
barracuda up-head systemComment #8
juc1 commentedYes you are correct it is 512 MB Digital Ocean
Here is my.cnf below.
Thanks...
Comment #9
omega8cc commentedOK, then please make sure you have _CUSTOM_CONFIG_SQL=NO and then run
barracuda up-head systemComment #10
juc1 commented@ omega8cc ok I have done that. I will report back if it is not fixed.
Thanks...
Comment #11.0
(not verified) commentedD7