Upgraded to 5.7.5 now error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GoHighVoltage
    Senior Member
    • Dec 2010
    • 330
    • 4.2.x

    Upgraded to 5.7.5 now error

    <pre>
    Database error in vBulletin 5.7.5:

    Invalid SQL:
    INSERT INTO `vb_bbcode_data` (`id`, `nodeid`, `bbcode_type`, `hash`, `data`, `expires`)
    VALUES (NULL, 2709, 'Url', 'cdad422f266c34a96de641c6350c06c0', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/unblockservice.com\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493055}', 1695579455),
    (NULL, 2709, 'Url', '34f8a6f0df85b7fc4b4e162a3935dd1c', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/unstop.me\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493055}', 1695579455),
    (NULL, 2709, 'Url', '424537d89b7bc2edf7e280658687e674', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/unstopp.me\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493070}', 1695579470),
    (NULL, 2709, 'Url', 'e606d285c84670fefc5fa3fee1798a08', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/stoppblock.org\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493070}', 1695579470),
    (NULL, 2709, 'Url', 'e81be89f6f2bf8f417ffda08e2687476', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/get-access.me\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493070}', 1695579470),
    (NULL, 2709, 'Url', '6c423bc7426a65b5c840e0dab9118582', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/unstops.net\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493071}', 1695579471),
    (NULL, 2709, 'Url', '8cea8b05be33a2294375f066f953ed4c', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/unstops.biz\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493071}', 1695579471),
    (NULL, 2709, 'Url', '6a4fd11cea90029d1ffe64254efade9e', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/stoppblock.com\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493071}', 1695579471),
    (NULL, 2709, 'Url', '80f93c557c0773be79d0f36f9337614b', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/un-blocking.net\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493095}', 1695579495),
    (NULL, 2709, 'Url', '175d4746dc1a19ae51ad27c96b1abb7b', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/non-block.net\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493095}', 1695579495),
    (NULL, 2709, 'Url', '32183863c1ba3ef23c7295b3b9e5dcb4', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/nonblock.net\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493098}', 1695579498),
    (NULL, 2709, 'Url', '4e29126b77e7f3b234e466180444079c', '{\&quot;title\&quot;:\&quot;404 Not Found\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot;:[],\&quot;url\&quot;:\&quot;http:\\/\\/nonblocks.com\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493098}', 1695579498),
    (NULL, 2709, 'Url', '3dc18b5802af2fb4600751fa1640cced', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/stoppblock.me\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493098}', 1695579498),
    (NULL, 2709, 'Url', '52e66e40d5697cfb970f7eb9586bc690', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/un-blocking.com\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493111}', 1695579511),
    (NULL, 2709, 'Url', '549978e5ec7fe22875718a541cce3bce', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/un-stop.net\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493111}', 1695579511),
    (NULL, 2709, 'Url', '0d926b5cb17645b696340de6642b180e', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/stoppblock.biz\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493127}', 1695579527),
    (NULL, 2709, 'Url', 'c7afbedd56a38dc2a33995fb32202178', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/none-stop.net\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493127}', 1695579527),
    (NULL, 2709, 'Url', '1ca03c4ffcc11255755011d112a3ede6', '{\&quot;title\&quot;:\&quot;\&quot;,\&quot;meta\&quot;:\&quot;\&quot;,\&quot;images\&quot ;:[],\&quot;url\&quot;:\&quot;http:\\/\\/non-block.com\\/wpad.dat\&quot;,\&quot;lastfetch\&quot;:1695493128}', 1695579528),
    (NULL, 2709, 'Url', 'f4b6745375148514f38ab14393304635', '{\&quot;url\&quot;:\&quot;http:\\/\\/www.gohighvoltage.com\\/forum\\/#accordion-1\&quot;,\&quot;vbmeta\&quot;:\&quot;pending just-in-time fetch\&quot;}', 0),
    (NULL, 2709, 'Url', 'df4afd399468c511c2a6ba704f46d467', '{\&quot;url\&quot;:\&quot;http:\\/\\/www.bleepingcomputer.com\\/virus-removal\\/remove-autoconfigurl-browser-hijacker\&quot;,\&quot;vbmeta\&quot;:\&quot;pending just-in-time fetch\&quot;}', 0)
    ON DUPLICATE KEY UPDATE `hash` = VALUES(`hash`), `data` = VALUES(`data`), `expires` = VALUES(`expires`)
    /** bulkUpsertBbCodeData**/;

    MySQL Error : MySQL server has gone away
    Error Number : 2006
    Request Date : Saturday, September 23rd 2023 @ 06:17:35 PM
    Error Date : Saturday, September 23rd 2023 @ 06:18:48 PM
    Script : https://www.gohighvoltage.com/forum/...-removal-guide
    Referrer :
    IP Address : 5.9.6.51
    Username : Guest
    Classname : vB_Database_MySQLi
    MySQL Version :


    Stack Trace:
    #0 vB_Database-&gt;getErrorData() called in phar://[path]/vb/vb.phar/database.php on line 1
    #1 vB_Database-&gt;halt() called in phar://[path]/vb/vb.phar/database/mysqli.php on line 1
    #2 vB_Database_MySQLi-&gt;execute_query() called in phar://[path]/vb/vb.phar/database.php on line 1
    #3 vB_Database-&gt;query_write() called in phar://[path]/vb/vb.phar/db/querydefs.php on line 1
    4.X vB_dB_QueryDefs-&gt;executeWriteQuery() called in phar://[path]/vb/vb.phar/db/mysql/querydefs.php on line 1251
    5.X vB_dB_MYSQL_QueryDefs-&gt;bulkUpsertBbCodeData() called in phar://[path]/vb/vb.phar/db/query/method.php on line 1
    #6 vB_dB_Query_Method-&gt;execSQL() called in phar://[path]/vb/vb.phar/db/assertor.php on line 1
    #7 vB_dB_Assertor-&gt;assertQuery() called in phar://[path]/vb/vb.phar/bbcodedatacache.php on line 2
    #8 vB_BbCodeDataCache-&gt;saveChanges() called in /forum/includes/vb5/template/nodetext.php on line 725
    #9 vB5_Template_NodeText-&gt;fetchNodeText() called in /forum/includes/vb5/template/nodetext.php on line 532
    #10 vB5_Template_NodeText-&gt;replacePlaceholders() called in /forum/includes/vb5/template.php on line 520
    #11 vB5_Template-&gt;renderDelayed() called in /forum/includes/vb5/template.php on line 430
    #12 vB5_Template-&gt;render() called in /forum/includes/vb5/frontend/controller/page.php on line 277
    #13 vB5_Frontend_Controller_Page-&gt;index() called in /forum/index.php on line 65

    </pre>​
    Last edited by GoHighVoltage; Sun 24 Sep '23, 5:31pm.
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 3955
    • 5.7.X

    #2
    "MySQL server has gone away" is a common MySQL error. There are a lot of topics posted about this here. Here's few of them:

    Since upgrading to 5.7.5, I've been getting DBError messages several times a day, and the timing/velocity doesn't seem to indicate anything like a Cron job or a backup failing. Tonight, I went ahead and ran the MyISAM -&gt; InnoDB script as well as the UTF8mb4 conversion, and after that I still was getting some while

    Since upgrading to vBulletin v5.7.2 I have noticed a big jump in the number of database errors. I get an email each time mysql fails. The apparent failure inducing URL hangs the board for a few seconds while it fails. 2 large log files are also generated for each error, so I run out of disk space each week, and the host freezes

    I've seen this a few times in the last 2 months. I've restarted the db, but has since returned. Thoughts? Invalid SQL: /** saveDbCache */ SELECT * FROM vb3cacheevent WHERE cacheid IN ('node_494069_lvl1data'); MySQL Error : MySQL server has gone away Error Number : 2006 Request Date : Monday, February 18th 2019 @ 04:30:48 AM



    Flag Icon Postbit Insert GIPHY Impersonate User INITIALS AVATAR Better Name Card Quote Selected Text Collapsed PM Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 73412
      • 6.0.X

      #3
      Originally posted by GoHighVoltage
      MySQL Error : MySQL server has gone away
      I've experience this on large site upgrades because of the system cache. Though your site doesn't fit the large site profile, it may have the same issue.

      Run these queries against the database and run the upgrade steps again.

      Code:
      truncate table cache;
      truncate table cacheevent;
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      • UKCobra
        Senior Member
        • Aug 2002
        • 249

        #4
        I have the same issue. Went from 5.6.9 on Saturday to the latest 5.7.5 with Security Patch.

        Now I am getting these errors consistently throughout the day. My forum is very quiet, and not what I would expect to be considered large.
        I have not yet run the code suggested above as I would not know where to do that.

        What upgrade steps need to be run again ? The whole upgrade ? Why ?

        Webmaster - Mustang Owners Club of Great Britain

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73412
          • 6.0.X

          #5
          The system won't run a "whole upgrade". It will run the final upgrade steps to rebuild internal caches (i.e datastore) plus rebuild your templates and language phrases. The upgrade system is smart enough to run these steps every time you run it unless it sees that new versions have been added since the last upgrade.

          Doing it this way is a lot quicker than going into the AdminCP and editing a language and save it, then editing a style and saving it, then editing a usergroup and saving it, editing a page of options and saving it, etc… It is also a lot easier for customers to implement than using the individual steps in tools.php.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • UKCobra
            Senior Member
            • Aug 2002
            • 249

            #6
            I will try the upgrade again, it does require my hosting company to increase the resources available to me, as in the past the upgrade would time out and not complete.
            Webmaster - Mustang Owners Club of Great Britain

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 73412
              • 6.0.X

              #7
              Run it from the command line. It will have less overhead and use fewer resources. It will also not be subjected to HTTP based timeouts or access limits. Plus it does the job a lot faster due to this.

              Code:
              cd /path/to/vbulletin/core/install
              php upgrade.php
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              • UKCobra
                Senior Member
                • Aug 2002
                • 249

                #8
                I am not able to run it from the command line as it is a shared hosting service, so I have to do it from the browser.
                Webmaster - Mustang Owners Club of Great Britain

                Comment

                • Wayne Luke
                  vBulletin Technical Support Lead
                  • Aug 2000
                  • 73412
                  • 6.0.X

                  #9
                  Really?

                  Most shared hosting services in the US still provide command line access. Either through a web-based terminal or SSH. I figured it was that way everywhere. Especially with RSA-Key verification available.
                  Translations provided by Google.

                  Wayne Luke
                  The Rabid Badger - a vBulletin Cloud demonstration site.
                  vBulletin 5 API

                  Comment

                  • UKCobra
                    Senior Member
                    • Aug 2002
                    • 249

                    #10
                    Upgrade run again. Still got the error. I ran the commands first, although it said there were no rows to process (I think)

                    Still getting this error :

                    Database error in vBulletin 5.7.5:

                    Invalid SQL:

                    (SELECT nodeid, oldid, starter, routeid
                    FROM node
                    WHERE oldid IN (437788) AND oldcontenttypeid IN (1))
                    UNION
                    (SELECT t.nodeid, t.postid as oldid, n.starter, n.routeid
                    FROM thread_post t
                    INNER JOIN node n ON n.nodeid = t.nodeid
                    WHERE t.postid IN (437788))

                    /**fetchLegacyPostIds**/;

                    MySQL Error : MySQL server has gone away
                    Error Number : 2006
                    Request Date : Sunday, October 1st 2023 @ 08:23:09 AM
                    Error Date : Sunday, October 1st 2023 @ 08:23:42 AM​
                    Webmaster - Mustang Owners Club of Great Britain

                    Comment

                    • Wayne Luke
                      vBulletin Technical Support Lead
                      • Aug 2000
                      • 73412
                      • 6.0.X

                      #11
                      If you wait for the time out to clear and start the upgrade again, it should pick up exactly where it left off. Ugly but should let you get through the upgrade eventually.

                      You can also try smaller batches but that will extend upgrade time, not shorten it. To use smaller batches edit the [var]/core/install/upgrade_options.php file. Find this line: 'masterslider' => 1.0, and change it to 'masterslider' => 0.5,.

                      Finally, a professional upgrade will allow a tech to download a copy of your database and run it in a local environment from the command line. The upgraded database will then be restored on the server either by us or your hosting provider. Though future upgrades may have similar problems on you server.
                      Translations provided by Google.

                      Wayne Luke
                      The Rabid Badger - a vBulletin Cloud demonstration site.
                      vBulletin 5 API

                      Comment

                      • UKCobra
                        Senior Member
                        • Aug 2002
                        • 249

                        #12
                        Thanks for the reply.
                        I did this at 8am on Sunday. It was quiet, and the upgrade completed in about 10 minutes, much faster than going from 5.6.9.
                        The point being this :
                        I ran the commands as suggested, but I don't think they had any impact.
                        The upgraded completed without any issues.
                        I still get the errors.

                        When looking at the IP addresses and the timings, I do not think these are genuine users, but bots. The IP's tend to be outside of the UK (We are a UK based car club, with few overseas members).
                        I suspect that whatever they are doing is creating this.
                        Last night I was getting 2 of these issues per hour.

                        I really need help to stop these issues that have started occurring since the upgrade to 5.7.5 as a result of the Security Vulnerability I made you aware of.
                        Regards
                        Mark



                        Webmaster - Mustang Owners Club of Great Britain

                        Comment

                        • UKCobra
                          Senior Member
                          • Aug 2002
                          • 249

                          #13
                          The three failures I had around 2pm this afternoon, were all from Microsoft IP addresses and in the UK. So my suspicion is some sort of search engine bot is causing a load that the SQL Server under 5.7.5 is not able to cope with.
                          Webmaster - Mustang Owners Club of Great Britain

                          Comment

                          • Wayne Luke
                            vBulletin Technical Support Lead
                            • Aug 2000
                            • 73412
                            • 6.0.X

                            #14
                            Well its a server configuration issue. If you are still getting the error then the server is still timing out on that node. What is the content of node 437788

                            Code:
                            select * from node where nodeid=437788;
                            select * from text where nodeid=437788;
                            How much memory do you have allocated to PHP in the PHP.ini file?
                            Translations provided by Google.

                            Wayne Luke
                            The Rabid Badger - a vBulletin Cloud demonstration site.
                            vBulletin 5 API

                            Comment

                            • eolesen
                              Senior Member
                              • Mar 2023
                              • 159

                              #15
                              My multiple "SQL Server went away" problems stopped after I disabled caching on my site, but I also started blocking bots heavily in both Robots.txt as well adding deny rules to my .htaccess file.

                              Server's been up for three weeks without an issue now.

                              Might be a coincidence, or it might just be the consequence of high bot activity hitting the site and causing an inordinately large cache that eventually collapses MySQL...

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              😀
                              😂
                              🥰
                              😘
                              🤢
                              😎
                              😞
                              😡
                              👍
                              👎