MySQL has gone away

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trilogy33
    Senior Member
    • Mar 2008
    • 271

    [Forum] MySQL has gone away

    A few days ago, we moved servers (shared hosting) and since then, there's been a few sporadic MySQL errors, when checking the database errors log file see below:

    Code:
    Database error in vBulletin 4.0.3:
    
    Invalid SQL:
    
    			REPLACE INTO cache
    			SET cacheid = 'widget.0321dc51cd934847a62c95448744bb49',
    				expires = 1273450228,
    				created = 1273449928,
    				locktime = 0,
    				data = "a:6:{s:5:\"items\";a:8:{i:0;a:8:{s:4:\"link\";s:104:\"http://www.thisisnottingham.co.uk/news/Power-cut-affects-1-900-homes/article-2135396-detail/article.html\";s:11:\"description\";s:165:\"<P>A POWER cut left 1,900 homes in darkness at the weekend – with a caravan site and sports centre still without electricity last night.</P>...\";s:5:\"title\";s:29:\"Power cut affects 1,900 homes\";s:2:\"id\";s:104:\"http://www.thisisnottingham.co.uk/news/Power-cut-affects-1-900-homes/article-2135396-detail/article.html\";s:4:\"date\";s:19:\"09-05-2010 04:00 PM\";s:14:\"enclosure_link\";s:0:\"\";s:7:\"content\";N;s:6:\"author\";N;}i:1;a:8:{s:4:\"link\";s:108:\"http://www.thisisnottingham.co.uk/news/Flights-Ireland-Bergamo-cancelled/article-2135363-detail/article.html\";s:11:\"description\";s:170:\"<P>PASSENGERS were urged to check their flights today after volcanic ash grounded some services over the weekend.</P> <P>Ryanair cancelled flights to...\";s:5:\"title\";s:40:\"Flights to Ireland and Bergamo cancelled\";s:2:\"id\";s:108:\"http://www.thisisnottingham.co.uk/news/Flights-Ireland-Bergamo-cancelled/article-2135363-detail/article.html\";s:4:\"date\";s:19:\"09-05-2010 02:23 PM\";s:14:\"enclosure_link\";s:0:\"\";s:7:\"content\";N;s:6:\"author\";N;}i:2;a:8:{s:4:\"link\";s:101:\"http://www.thisisnottingham.co.uk/news/people-rescued-house-fires/article-2135368-detail/article.html\";s:11:\"description\";s:171:\"<P>TWO people were rescued from house fires in Notts yesterday. </P> <P>Firefighters were called to Spinningdale, in Arnold, just after midnight. They...\";s:5:\"title\";s:35:\"Two people rescued from house fires\";s:2:\"id\";s:101:\"http://www.thisisnottingham.co.uk/news/people-rescued-house-fires/article-2135368-detail/article.html\";s:4:\"date\";s:19:\"09-05-2010 11:05 AM\";s:14:\"enclosure_link\";s:0:\"\";s:7:\"content\";N;s:6:\"author\";N;}i:3;a:8:{s:4:\"link\";s:107:\"http://www.thisisnottingham.co.uk/news/Victoria-Cross-memorial-unveiled/article-2132300-detail/article.html\";s:11:\"description\";s:155:\"<P>A LONE bugler played, men and women walked forward bearing wreaths and, in a quiet corner of the Nottingham Castle grounds, lasting tribute was...\";s:5:\"title\";s:32:\"Victoria Cross memorial unveiled\";s:2:\"id\";s:107:\"http://www.thisisnottingham.co.uk/news/Victoria-Cross-memorial-unveiled/article-2132300-detail/article.html\";s:4:\"date\";s:19:\"08-05-2010 09:00 AM\";s:14:\"enclosure_link\";s:0:\"\";s:7:\"content\";N;s:6:\"author\";N;}i:4;a:8:{s:4:\"link\";s:113:\"http://www.thisisnottingham.co.uk/news/Thieves-lie-way-elderly-people-s-homes/article-2131566-detail/article.html\";s:11:\"description\";s:171:\"<P>THIEVES, posing as members of the water board, have targeted elderly people in Notts. </P> <P>An 82-year-old woman  in Sutton-in-Ashfield, had cash...\";s:5:\"title\";s:49:\"Thieves lie their way into elderly people\'s homes\";s:2:\"id\";s:113:\"http://www.thisisnottingham.co.uk/news/Thieves-lie-way-elderly-people-s-homes/article-2131566-detail/article.html\";s:4:\"date\";s:19:\"08-05-2010 09:00 AM\";s:14:\"enclosure_link\";s:0:\"\";s:7:\"content\";N;s:6:\"author\";N;}i:5;a:8:{s:4:\"link\";s:111:\"http://www.thisisnottingham.co.uk/news/College-hosting-hairdressing-contest/article-2131579-detail/article.html\";s:11:\"description\";s:170:\"<P>A CITY college is hosting a hairdressing competition today. </P> <P>The WorldSkills UK contest will be at New College Nottingham\'s (ncn) Clarendon...\";s:5:\"title\";s:36:\"College hosting hairdressing contest\";s:2:\"id\";s:111:\"http://www.thisisnottingham.co.uk/news/College-hosting-hairdressing-contest/article-2131579-detail/article.html\";s:4:\"date\";s:19:\"08-05-2010 09:00 AM\";s:14:\"enclosure_link\";s:0:\"\";s:7:\"content\";N;s:6:\"author\";N;}i:6;a:8:{s:4:\"link\";s:107:\"http://www.thisisnottingham.co.uk/news/Man-sped-pregnant-wife-sent-pain/article-2130655-detail/article.html\";s:11:\"description\";s:169:\"<P>A MAN admitted driving at 102mph after receiving a text message from his pregnant wife to say she was having back pains.</P> <P>Khurranm Shehzad,...\";s:5:\"title\";s:50:\"Man sped after pregnant wife sent \'back pain\' text\";s:2:\"id\";s:107:\"http://www.thisisnottingham.co.uk/news/Man-sped-pregnant-wife-sent-pain/article-2130655-detail/article.html\";s:4:\"date\";s:19:\"08-05-2010 09:00 AM\";s:14:\"enclosure_link\";s:0:\"\";s:7:\"content\";N;s:6:\"author\";N;}i:7;a:8:{s:4:\"link\";s:92:\"http://www.thisisnottingham.co.uk/news/Van-crashes-house/article-2131608-detail/article.html\";s:11:\"description\";s:170:\"<P>AN EMPTY van crashed into a house moments after colliding with a car.</P> <P>Police and firefighters were called to Somerfields Way in Kirk Hallam...\";s:5:\"title\";s:22:\"Van crashes into house\";s:2:\"id\";s:92:\"http://www.thisisnottingham.co.uk/news/Van-crashes-house/article-2131608-detail/article.html\";s:4:\"date\";s:19:\"08-05-2010 09:00 AM\";s:14:\"enclosure_link\";s:0:\"\";s:7:\"content\";N;s:6:\"author\";N;}}s:5:\"title\";s:30:\"News feed - This is Nottingham\";s:11:\"description\";s:16:\"Channel RSS feed\";s:4:\"link\";s:38:\"http://www.thisisnottingham.co.uk/news\";s:4:\"more\";b:1;s:3:\"url\";s:59:\"http://www.thisisnottingham.co.uk/news/rss.html?chid=176999\";}",
    				serialized = '1';
    
    MySQL Error   : MySQL server has gone away
    Error Number  : 2006
    Request Date  : Monday, May 10th 2010 @ 01:05:28 AM
    Error Date    : Monday, May 10th 2010 @ 01:05:58 AM
    Script        : http://www.mx5nem.org.uk/
    Referrer      : 
    IP Address    : **.***.***.*
    Username      : Unregistered
    Classname     : vB_Database
    MySQL Version : 
    =====================================================
    I guess this is happening when the RSS News feed is being called from the CMS widget.
    Along with the server move, we also moved from MySQL Version 4.1.22 to Version 5.0.90-community if that makes any difference.

    It's not happening all the time, just every couple of days it seems...
    Any ideas please, or is this a host issue?


    vB Version 4.0.3
    Browser: Any
    Last edited by trilogy33; Fri 14 May '10, 3:53am. Reason: version
  • Biker
    Senior Member
    • Oct 2003
    • 1261
    • 4.0.0

    #2
    It happens. Nothing to really worry about.
    I drank WHAT?! - Socrates

    Comment

    • Lynne
      Former vBulletin Support
      • Oct 2004
      • 26255

      #3
      It's a server issue. See this: http://www.vbulletin.com/docs/html/t...mysql_goneaway and this: http://www.vbulletin.com/forum/showt...265#post310265

      Please don't PM or VM me for support - I only help out in the threads.
      vBulletin Manual & vBulletin 4.0 Code Documentation (API)
      Want help modifying your vbulletin forum? Head on over to vbulletin.org
      If I post CSS and you don't know where it goes, throw it into the additional.css template.

      W3Schools <- awesome site for html/css help

      Comment

      • trilogy33
        Senior Member
        • Mar 2008
        • 271

        #4
        Thanks.
        If it becomes a more widespread problem, I'll attack it

        Comment

        • trilogy33
          Senior Member
          • Mar 2008
          • 271

          #5
          Another problem this morning so, as expected, it hasn't gone away, at least the problem hasn't.
          Didn't get these errors before under MySQL Version 4.1.22
          I've raised the issue with the host.

          Comment

          • Videx
            Senior Member
            • Jan 2007
            • 848

            #6
            The most common cause of this error is an oversold shared server. Especially if the error moves around to different modules. Use cpanel to check server load.

            Comment

            • trilogy33
              Senior Member
              • Mar 2008
              • 271

              #7
              Originally posted by Videx
              The most common cause of this error is an oversold shared server. Especially if the error moves around to different modules. Use cpanel to check server load.
              Thanks for the info. I'd recently moved from server to another before these errors, this is now a lot quieter.
              The errors themselves have now come to a stop, fingers crossed this "should" be solved

              Comment

              • trilogy33
                Senior Member
                • Mar 2008
                • 271

                #8
                Last couple of weeks have been active again, as far as these errors are concerned.
                They all stem from an RSS Newsfeed widget placed on the CMS.
                http://www.mx5nem.org.uk/content.php - see the "News feed - This is Nottingham RSS" widget.

                The host has since upped the interactive_timeout to 28800 up from an obscure low figure which I can't remember now
                wait_timeout is currently set to 30 : so I've asked them to up this to 28800 - see if this solves it.

                Comment

                • trilogy33
                  Senior Member
                  • Mar 2008
                  • 271

                  #9
                  Ready for a chuckle?

                  Host says:
                  It appears that the script that is trying to run is taking more than 30 CPU seconds and this is causing the script to fail. Our Terms of service state:
                  "Banned Scripts

                  1. We do not allow scripts that requires more than 8Mb of memory space, more than 30 CPU seconds, or use more than 5% of all available shared system resources at any time."

                  If it is working sometimes and not at others it could be because of load on the server. If you continue to experiance problems with this you should look into our dedicated servers or VPS.net service so that you can be the only one using the space and have more control over these settings.
                  If you have any further questions please let us know.
                  Regards,
                  So, ok, this is a simple RSS feed on the content.php page, that, ran quite happily for months on an oversold server (CPanel1). Now after moving to a quieter server (CPanel36) of same spec, why is that occuring? Anyone?
                  And, wtf is up with an RSS feed that takes 30 seconds to pull results?

                  Ah, sod it. It seems I'm gonna have to pull the RSS feed off the page entirely.

                  Comment

                  • trilogy33
                    Senior Member
                    • Mar 2008
                    • 271

                    #10
                    Just checked, the wait_timeout has been changed (by them) to 40
                    The plot thickens.

                    Comment

                    • Videx
                      Senior Member
                      • Jan 2007
                      • 848

                      #11
                      I'm glad you were able to track it down to a specific script. You're right - the solution is to scrap it. Perhaps it's delays from the rss source causing the trouble. Anyway, people can use their own rss readers to get that info.

                      I don't think it's the RSS Widget, because I've had two of them for a long time. Thanks for getting me to look though, because one isn't working and it seems they went and changed the URL on me a couple months ago!

                      Comment

                      • trilogy33
                        Senior Member
                        • Mar 2008
                        • 271

                        #12
                        True Videx. Thank you.
                        It's more hassle than it's worth to be honest - I'll disable the feed and the widget and see what happens

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...