Results 1 to 9 of 9

Thread: MYSQL server has gone away

  1. #1
    time2see is offline Senior Member
    Join Date
    Dec 2008
    Posts
    25

    Default MYSQL server has gone away

    I'm getting this error when I click on a contact at the bottom of thier details
    Error running count query for Contact List: Query Failed SELECT count(*) c FROM leads where ( leads.contact_id= 'b99ba2fa-028a-f3bd-8056-496d29ec455b' AND leads.deleted=0) AND leads.deleted=0 )::MySQL error 2006: MySQL server has gone away

    Running version 5.2.0 CE and have inet googlemap 1.4 as an extra module loaded.

  2. #2
    daniel.passarini's Avatar
    daniel.passarini is offline Sugar Community Member
    Join Date
    Apr 2006
    Location
    São Paulo - SP / Brasil
    Posts
    80

    Default Re: MYSQL server has gone away

    Probaly, your MySQL server has timed out and closed the connection. But does it occur only with leads?
    Daniel de Carvalho Passarini

    "Fascinating" - Dr. Spock

  3. #3
    letrium is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    614

  4. #4
    daniel.passarini's Avatar
    daniel.passarini is offline Sugar Community Member
    Join Date
    Apr 2006
    Location
    São Paulo - SP / Brasil
    Posts
    80

    Default Re: MYSQL server has gone away

    Quote Originally Posted by letrium View Post
    it seems that is the bad query
    hum.. i dont think so. Except for the last parenthesis, the query works perfectly. Even if was the query, it should display another error message. Try this query directly in a mysql console or any other IDE. Does this problem occurs in any other part of the system??
    Daniel de Carvalho Passarini

    "Fascinating" - Dr. Spock

  5. #5
    tamaravilhosa is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    19

    Default Re: MYSQL server has gone away

    Hi

    When I try to send Queued Emails the following error message appears:

    1Retrieving record by id emails:deab2b25-0185-a884-a911-4977bbf2a435 found Query Failed:SELECT emails.* FROM emails WHERE emails.id = 'deab2b25-0185-a884-a911-4977bbf2a435' LIMIT 0,1::MySQL error 2006: MySQL server has gone away

    How to solve it?

    Tks,
    Tamara

  6. #6
    time2see is offline Senior Member
    Join Date
    Dec 2008
    Posts
    25

    Default Re: MYSQL server has gone away

    It happens with contacts and Accounts.
    Every now and again it is ok though....strainge?
    Sugar is installed on our hosted webserver if that makes a difference?

  7. #7
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: MYSQL server has gone away

    It sounds like the MySQL server might be crashing from time to time. Perhaps it depends on how much data the query is returning.

    Have you run any diagnostics on the server side to make sure everything is working fine there?
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  8. #8
    time2see is offline Senior Member
    Join Date
    Dec 2008
    Posts
    25

    Default Re: MYSQL server has gone away

    No I have not, what is the best way to do that/

  9. #9
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: MYSQL server has gone away

    I've had this issue in the past and solved it with this post from the comments at http://dev.mysql.com/doc/refman/5.0/en/gone-away.html

    This also happens when you use compression of the mysql connection handler and due to some limitations of mysql server which cannot return easily an error message. Instead, it just kills the connection without a message. So turn off the compression and remove the 'quick' option from /etc/my.cnf if you observe lost connections to get the message.

    Read the answer from Michael Widenius:
    http://bugs.mysql.com/bug.php?id=1011

    <quote>
    [19 Aug 2003 15:41] Michael Widenius

    Sorry about the last bug entry, but it was not true. Sinisa had a patch pending but I
    didn't approve of it as it didn't solve this problem for all cases.

    This problem is already documented in the manual section
    'MySQL server has gone away Error':

    -----
    You can also get these errors if you send a query to the server that is
    incorrect or too large. If mysqld gets a packet that is too large.
    or out of order, it assumes that something has gone wrong with the client and
    closes the connection.
    -----

    We fixed this problem in 4.0 for not compressed packets but for
    compressed packets it's VERY hard to fix it without having to allocate
    a buffer bigger than max_allowed_packet, which would defeat the
    purpose of this flag. Ane problem is that to be able to skip the
    packet we have to decompress all packets in the stream and this would
    make it easy for someone to force the server to allocate a lot of big
    packets even if the MySQL administrator has forbidden this.

    I looked into fixing this but didn't come up with a good way to to fix
    it without a major amount of work (8-16 hours).

    As we have more important things on our todo (this is not a serious
    bug) we have to put this on hold for now and look at fixing this in
    4.1 or 5.0.

    The easy way to avoid this problem is to ensure that max_allowed_packet is set bigger in
    the mysqld server than in the client and that all clients uses the same value for
    max_allowed_packet.

    Regards,
    Monty
    </quote>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 2008-04-21, 11:09 PM
  2. Upgrade MySQL Server to MS SQL Server
    By z.chafi in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2007-09-03, 04:09 PM
  3. Replies: 2
    Last Post: 2007-07-30, 02:58 AM
  4. Replies: 2
    Last Post: 2007-07-01, 09:55 PM
  5. Replies: 0
    Last Post: 2007-06-26, 11:38 AM

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
  •