Am getting:
Warning: Got a packet bigger than 'max_allowed_packet' bytes query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:1548521:\"Got a packet bigger than 'max_allowed_packet' bytes\nquery: UPDATE cache_menu SET data = 'a:975:{s:4:\\"node\\";a:26:{s:5:\\"title\\";s:7:\\"Content\\";s:13:\\"page callback\\";s:17:\\"node_page_default\\";s:16:\\"access arguments\\";a:1:{i:0;s:14:\\"access content\\";}s:4:\\"type\\";i:4;s:6:\\"module\\";s:4:\\"node\\";s:14:\\"load_functions\\";s:0:\\"\\";s:16:\\"to_arg_functions\\";s in /usr/home/hoslo/public_html/includes/database.mysql.inc on line 128
when creating or updating content. I know it is probably a mod....possibly simplenews
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | max_alow.jpg | 279.05 KB | vip_sa |
Comments
Comment #1
kenorb commentedIncrease your max_allowed_packet variable in mysql configuration file.
http://drupal.org/node/317775
Comment #3
francewhoaThe following worked for me on Ubuntu 8.04.x LTS desktop edition http://drupal.org/node/541396
Comment #4
kenorb commentedOn shared hosting you may try: http://drupal.org/project/drupal_tweaks
to increase max_allowed_packet variable on the fly
Comment #5
deshilachado commentedI run into the same problem when importing images with image_import. I have successfully uploaded some images, but if I go to
http://example.com/admin/content/image_import
and try to import one small image (600x800 / 40kB) from the list I get an error like
In #570678: add docs for troubleshooting large imports it was stated that this is a Drupal issue, not an image_import issue.
PHP settings are
memory_limit=128M
upload_max_filesize = 16M
post_max_size = 8M
and MySQL settings are
max_allowed_packet=1*1024*1024
As I am on shared hosting (domaingo.de), I cannot change the MySQL settings and as this probably applies to many users I think the import should also work with MySQL default settings, which are max_allowed_Packet=1M. Shouldn't the batch API be capable to split this up into MySQL several smaller commands?
I have spent quite some time reading in the forums & googleing around and I tried almost all solutions proposed, but none could solve my problem.
I also tried the mini module described here: http://drupal.org/node/379976
which as I understand does the same as the Drupal tweaks module.
According to http://example.com/admin/help/max_packet the max_allowed_packet was increased (for each session respectively) to 16M, but the error persists.
The error logged in the dblog report (http://example.com/admin/reports/dblog) is a bit different:
Any ideas what else I could try? Thanks
Comment #6
damien tournoud commentedComment #7
deshilachado commentedComment #8
deshilachado commentedok, i just found
#434032: Batch update fails with access denied message comment #41/42
#629794: Scaling issues with batch API
looks like this a bad desing of batch API that should be changed
as a workaround, drupal tweaks or the max_allowed_packet mini-module try to increase the max_allowed_packet per session (apparenty succesfull), but for some reason this does not resolve my problem
Comment #9
vip_sa commentedI have a dedicated server and I have increased the max_allowed_packet to 32M but still my whole site is in shambles. How do I get it back? Please can someone help me and tell me how can I check on the server what the setting currently is as well as how to fix this please.
Nevermind I got it fixed!!!!!
Comment #10
EvanDonovan commentedMarking as fixed since you say that you got it fixed.
Comment #11
borngunners commentedHow did you get it fix. I am having the same issue right now.... Your help will be greatly appreciated
Comment #12
apotek commentedThe fact that Drupal requires a 32mb packet size for basic things like menu items, especially considering the platform was originally intended to work on shared hosting, economy plans, is bad architecture, bad design.
That said, the answer is, as has been noted above, that MySQL's max packet allowed setting needs to be set. If you can't change it in your application, you may simply need to reduce the amount of modules/url-aliases, and other cruft in your system, until Drupal can begin caching the menu system again.
Comment #13
vip_sa commentedYou need access to your server or you should ask your server guys to increase the max_allowed_packet to something like 32M
Comment #15
shyamprakash commentedIncrease your max_packet_size in my.cnf and restart your mysql server after making the change. Make max_packet_size to be 32 or 64 or 128M or More as per your requirement.
Comment #16
shyamprakash commentedSET GLOBAL max_allowed_packet=32M or more; and do enjoy ha ha. You can check your current configuration "mysqladmin variables | grep packet." command,
The reason why we experienced that error is because we originally had the max_allowed_packet set 32M temporarily and we rebooted our server so it returned to the default value.
Comment #17
poorva commentedI have raised the max_allowed_packet size up to 50M,
But still i m facing this error during cron run.
Comment #18
poorva commentedComment #19
EvanDonovan commentedCan you list the modules that you are running? I would suspect that the problem is caused by a module that is misbehaving.
In any case, the "needs review" status is only intended to be used for patches needing review.
Comment #20
poorva commentedI have resolved my problem. I think the main problem was due to currency module. It insert a lots of messages in watchdog.
That was occurring an error.