Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I updated my site from 5.12 to 5.14. That went well.
But when I wanted to go into admin screens I got a screen full og MYSQL GONE AWAY warnings and than MYSQL LOCK TABLE and no update of cache. So I couldn't work with the site anymore.
The warnings I got was a couple of screens full of:
Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '<em>MySQL server has gone away\nquery: LOCK TABLES cache WRITE</em> in <em>/public_html/includes/database.mysql.inc</em> on line <em>174</em>.', 2, '', 'admin', 'http://www.example.nl/', 'ip-number', 1230632353) in /public_html/includes/database.mysql.inc on line 174
Only after disabling update-status module I got my site working again!
Thanks a lot for going into this!
Greetings,
Martijn
Comments
Comment #1
edvanleeuwenOk, this is the same I suspected: http://drupal.org/node/222073#comment-1179229
Comment #2
webernet CreditAttribution: webernet commented"MySQL server has gone away" has nothing to do with the update_status module.
Comment #3
Summit CreditAttribution: Summit commentedHow is it then, that when I disable the update_status module, the errors are gone and the site respons normal.
Enabling the update_status module, I got after 2-3 minutes waiting a whole screen full of MYSQL server has gone away errors.
There must be a connection then, may be the update_status module is asking for to much resources?
May be finetuning needed?
Can I set this than to actice again, because I find it not normal that with enabling the update_status module I got all these warnings and a non-functional site, and with disabling I got a working site, but no update information, like security fixes?
Thanks a lot in advance for again going into this.
Greetings,
Martijn
Comment #4
Summit CreditAttribution: Summit commentedDuplicate of http://drupal.org/node/222073 and see http://drupal.org/node/186384 also.
Greetings, Martijn
Comment #5
espirates CreditAttribution: espirates commentedI was told by my host that these mysql away warnings has everything to do with the module and/or the manner in which Drupal uses it is and also resource intensive and not secure. I don't know much about any of that but since the messages do go away after you disable the module, chances are it's the module or Drupal. Tuning Mysql doesn't do anything. D6 the warnings keep appearing as long as the update module is enabled.
Comment #6
ngaur CreditAttribution: ngaur commentedMy problems also went away after disabling the updates module, though I'm using D6
Comment #7
ngaur CreditAttribution: ngaur commentedI don't have a clear understanding of what the mysql query limit is that is being over-run, but the updates module clearly is a big enough contributor to the problem that it's presence or not is likely to make the difference.
Given an otherwise unusable site, (varying between the 'Mysql has gone away' symptoms and the 'White Screen of Death' symptoms, depending on which page is viewed), I've been able to get the site functioning by removing the updates directory from the core modules folder.
Is someone able to clarify what the limit that is being overrun is? There's reports that changing mysql's max_packet_size variable helps many people. Why is the update packet causing such a large packet to be generated?
Is it possible to lessen the impact on the mysql server from the updates module?
Comment #8
ngaur CreditAttribution: ngaur commentedI'm removing the 'duplicate' status of this issue, at least for discussion purposes.
This issue does not look to me to match the symptoms of bug #222073: Update Status causing Drupal to run very slowly
[#186384] does appear to match the symptoms, but multiple causes are possible. At least some of those are apparently specific to the way the updates module is implemented. (Correct me if I'm wrong on that, but some explanation would be appreciated). It seems to me to make sense to address the issue as related to the updates module rather than being a general post installation support issue.
People have identified problems with exceeding mysql's max_packet_size. Why is the updates module generating such a big packet? Is it possible to store the data differently such that this issue goes away?
While there are no doubt other possible causes of large packets, it seems clear that the updates module is a common cause of this symptom.
Comment #9
hass CreditAttribution: hass commentedSolution: http://drupal.org/node/186384#comment-284542
Comment #10
espirates CreditAttribution: espirates commentedThat's not really a solution, drupal is the problem not mysql.
Comment #11
hass CreditAttribution: hass commentedhttp://drupal.org/requirements
Sum up - Your server setting does not fulfil the Drupal requirements. Fix your broken server settings, please.