I did a fresh install of Open Atrium 2, went through the setup and once I clicked on the link to go to the site I get the following error.

Error
Error message
Warning: Error while sending QUERY packet. PID=18101 in DatabaseStatementBase->execute() (line 2168 of /home/openatri/public_html/includes/database/database.inc).
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT filename FROM {registry} WHERE name = :name AND type = :type; Array ( [:name] => linkit_profiles_ui [:type] => interface ) in _registry_check_code() (line 3167 of /home/openatri/public_html/includes/bootstrap.inc).
The website encountered an unexpected error. Please try again later.
Uncaught exception thrown in session handler.
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT 1 AS expression FROM {sessions} sessions WHERE ( (sid = :db_condition_placeholder_0) AND (ssid = :db_condition_placeholder_1) ); Array ( [:db_condition_placeholder_0] => Nnz4YcLL8Rdv7CtBOb5hMJAABjo1GKJjkd3zw8eSqT4 [:db_condition_placeholder_1] => ) in _drupal_session_write() (line 209 of /home/openatri/public_html/includes/session.inc).

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /home/openatri/public_html/includes/database/database.inc:2168 Stack trace: #0 /home/openatri/public_html/includes/database/database.inc(2168): PDOStatement->execute(Array) #1 /home/openatri/public_html/includes/database/database.inc(680): DatabaseStatementBase->execute(Array, Array) #2 /home/openatri/public_html/includes/database/database.inc(2347): DatabaseConnection->query('SELECT expire, ...', Array, Array) #3 /home/openatri/public_html/includes/lock.inc(167): db_query('SELECT expire, ...', Array) #4 /home/openatri/public_html/includes/lock.inc(146): lock_may_be_available('schema:runtime:...') #5 /home/openatri/public_html/includes/bootstrap.inc(424): lock_acquire('schema:runtime:...') #6 /home/openatri/public_html/includes/bootstrap.inc(446): DrupalCacheArray->set(Array) #7 [internal function]: DrupalCacheArray->__destruct() #8 {main} thrown in /home/openatri/public_html/includes/database/database.inc on line 2168

Comments

JKingsnorth’s picture

Status: Active » Closed (duplicate)

This is another 'MySQL has gone away' type issue. mpotter has suggested a fix here: https://drupal.org/comment/7689523#comment-7689523

nitin.k’s picture

If you are using MAMP..
Please follow below steps for resolving this issue.

1. Stop mysql service
2. Create a file my.cnf in conf folder of MAMP.
3. Put below code in the that

[mysqld]
max_allowed_packet = 128M

4. Restart mysql service

Please try to increase the packet size if problem persists.