Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on max_allowed_packet error despite being set to 256M in the VPS & Dedicated forum
I have recently been getting max_allowed_packets errors. I figured it was just a typically MySQL config issue, with a simple tweak to my.cnf. I checked ...

  1. #1
    Loyal Client
    Join Date
    Mar 2011
    Posts
    62

    max_allowed_packet error despite being set to 256M

    I have recently been getting max_allowed_packets errors. I figured it was just a typically MySQL config issue, with a simple tweak to my.cnf.

    I checked my my.cnf and found that max_allowed_packet was set to 256M, much higher than the recommended 18M.

    What could be causing this? It happened after enabling a module on my Drupal site.

    The error is giant (several scroll length) and starts with "user warning: Got a packet bigger than 'max_allowed_packet' bytes query: UPDATE cache_update SET data =....."

    See previous thread dealing with issue (#1153 - Got a packet bigger than 'max_allowed_packet' bytes on database import)
    Last edited by GherkinDilds; 04-04-2011 at 08:10 PM.

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    Since last time support just did an import for you, we never really found out what was causing the issue. I think they said they increased it to 17M instead of 16M, and that it worked fine. If I recall, you had already said that your configuation file had a higher value. I don't recall, did you run the mysql command
    Code:
    show session variables like "%packet%";
    to see what your server was actually reporting for max packet size in spite of your config setting?
    Good luck

  3. #3
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    My shared server:
    Code:
    mysql> show session variables like "%packet%";
    +--------------------+----------+
    | Variable_name      | Value    |
    +--------------------+----------+
    | max_allowed_packet | 52428800 |
    +--------------------+----------+
    1 row in set (0.01 sec)
    
    mysql>
    Good luck

  4. #4
    JPC Dream Team JPC-Bilal's Avatar
    Join Date
    Nov 2006
    Posts
    1,175
    Hi GherkinDilds,

    Please open a support ticket if you have not already done and Techs will assist you there regarding the issue you are facing. Thank you.

  5. #5
    Loyal Client
    Join Date
    Mar 2011
    Posts
    62
    Quote Originally Posted by JPC-Bilal View Post
    Hi GherkinDilds,

    Please open a support ticket if you have not already done and Techs will assist you there regarding the issue you are facing. Thank you.
    I think checked my my.cnf max_allowed_packets was set at 256M. I think the warning is strictly Drupal related and seems to have corrected itself. It may have been because of my high number of modules.

  6. #6
    Loyal Client
    Join Date
    Mar 2011
    Posts
    62
    Backpedalling.

    The error seems to be reoccurring. I am not sure whether it is a MySQL/server issue or strictly Drupal related. Suggestions appreciated.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •