CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Getting MySQL error max_user_connections on 4.6.0
Pages: [1]

Author Topic: Getting MySQL error max_user_connections on 4.6.0  (Read 1806 times)

Yaazkal

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: CiviCRM 4.6.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Getting MySQL error max_user_connections on 4.6.0
April 14, 2015, 08:10:54 pm
Hi, I'm using CiviCRM 4.6.0 with Drupal 7.36 and I'm getting this error message a lot of time, even at the home page of CiviCRM

Code: [Select]
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => simpleHandler
        )
 
    [code] => -24
    [message] => DB Error: connect failed
    [mode] => 16
    [debug_info] =>  [nativecode=User civicrmdb already has more than 'max_user_connections' active connections]
    [type] => DB_Error
    [user_info] =>  [nativecode=User civicrmdb already has more than 'max_user_connections' active connections]
    [to_string] => [db_error: message="DB Error: connect failed" code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix="" info=" [nativecode=User civicrmdb already has more than 'max_user_connections' active connections]"]
)
http://awesomescreenshot.com/0894tm8ob7

On /etc/mysql/my.cnf I changed max_user_connections from 5 to 10 and even to 100 but nothing, and also increased the max_connections value without luck.

If I work only on Drupal it works good, I can add, edit, modify or delete nodes, but when I click CiviCRM it takes years a lot of time to load a thing (if it loads anything) and then that error apears again (many of the times only the error, I mean, no Drupal menu, blocks, etc).

Also, from time to time, i got this on Drupal:

Code: [Select]
    Warning: ini_restore() has been disabled for security reasons en CRM_Utils_VersionCheck->pingBack() (línea 420 de /data/disk/o1/static/civicrm-4.6.0/sites/all/modules/civicrm/CRM/Utils/VersionCheck.php).
    Warning: ini_restore() has been disabled for security reasons en CRM_Utils_VersionCheck->pingBack() (línea 420 de /data/disk/o1/static/civicrm-4.6.0/sites/all/modules/civicrm/CRM/Utils/VersionCheck.php).

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Getting MySQL error max_user_connections on 4.6.0
April 15, 2015, 04:39:18 am
Can you ask your host about this? Adjusting the MySQL configuration should fix this.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Yaazkal

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: CiviCRM 4.6.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Re: Getting MySQL error max_user_connections on 4.6.0
April 15, 2015, 06:21:18 am
Hi, as I told in the OP, I modifyed the MySQL variables and it's not better.

Take in consideration that that VPS host only about 4 sites max and they are not very popular (or had concurrent user connections) so is not a VPS load.

andrewhunt

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 13
    • AGH Strategies
  • CiviCRM version: all of 'em
  • CMS version: Drupal, Joomla, and WordPress
Re: Getting MySQL error max_user_connections on 4.6.0
April 15, 2015, 07:06:18 am
Have you restarted MySQL after editing my.cnf?  If not, you'll still have the old settings active.
You can find me at AGH Strategies.
Need help now?  Civi911 is your go-to for CiviCRM support.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Getting MySQL error max_user_connections on 4.6.0
April 15, 2015, 08:04:17 am
Do you not have support for your VPS? Or a sysadmin who can help you?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Yaazkal

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: CiviCRM 4.6.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Re: Getting MySQL error max_user_connections on 4.6.0
April 15, 2015, 08:34:30 am
Quote from: andrewhunt on April 15, 2015, 07:06:18 am
Have you restarted MySQL after editing my.cnf?  If not, you'll still have the old settings active.

Yes, sure, MySQL is restarted and I can see that it has taked the correct values:

Code: [Select]
MariaDB [(none)]> SHOW VARIABLES LIKE 'max_connections';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 100   |
+-----------------+-------+
1 row in set (0.00 sec)

Code: [Select]
MariaDB [(none)]> SHOW VARIABLES LIKE 'max_user_connections';
+----------------------+-------+
| Variable_name        | Value |
+----------------------+-------+
| max_user_connections | 50    |
+----------------------+-------+
1 row in set (0.00 sec)

Also tried with max_user_connections = 100 or 200 or even 500 and nothing.

Quote from: Hershel on April 15, 2015, 08:04:17 am
Do you not have support for your VPS? Or a sysadmin who can help you?

Well, I use Linode, they give support about this?

Thanks !

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Getting MySQL error max_user_connections on 4.6.0
April 15, 2015, 09:28:58 am
Quote from: Yaazkal on April 15, 2015, 08:34:30 am
Well, I use Linode, they give support about this?

I don't know, but I would certainly ask them. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Getting MySQL error max_user_connections on 4.6.0

This forum was archived on 2017-11-26.