• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Can't write; duplicate key in table 'vw_route'

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Can't write; duplicate key in table 'vw_route'

    • Issue Tools
      • View Changes
    1. issueid=5442 August 17, 2018 3:35 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Can't write; duplicate key in table 'vw_route'

      Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Can't write; duplicate key in table 'vw_route' - library/Zend/Db/Statement/Mysqli.php:214
      Generated By: Alfa, 5 minutes ago

      Stack Trace
      #0 /library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array)
      #1 /library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
      #2 /library/Zend/Db/Adapter/Abstract.php(632): Zend_Db_Adapter_Abstract->query('UPDATE `vw_rout...', Array)
      #3 /library/XenForo/DataWriter.php(1654): Zend_Db_Adapter_Abstract->update('vw_route', Array, '(routeid = 424)')
      #4 /library/XenForo/DataWriter.php(1623): XenForo_DataWriter->_update()
      #5 /library/vw/XenForo/DataWriter.php(369): XenForo_DataWriter->_save()
      #6 /library/XenForo/DataWriter.php(1419): vw_XenForo_DataWriter->_save()
      #7 /vault/core/controller/dm/xf.php(436): XenForo_DataWriter->save()
      #8 /vault/core/controller/dm/base/routable/vw.php(518): vw_DM_Controller_XF->save()
      #9 /vault/core/controller/dm/page/vw.php(1507): vw_DM_Base_Routable_Controller->save_path(Array)
      #10 /library/vw/XenForo/DataWriter.php(505): vw_DM_Page_Controller->post_save_each()
      #11 /library/XenForo/DataWriter.php(1423): vw_XenForo_DataWriter->_postSave()
      #12 /vault/core/controller/dm/xf.php(436): XenForo_DataWriter->save()
      #13 /library/vw/XenForo/TagHandler/vwPage.php(87): vw_DM_Controller_XF->save()
      #14 /library/XenForo/Model/Tag.php(570): vw_XenForo_TagHandler_vwPage->updateContentTagCache(Array, Array)
      #15 /library/XenForo/Deferred/TagRecache.php(50): XenForo_Model_Tag->rebuildTagCache('vwpage', 424)
      #16 /library/XenForo/Model/Deferred.php(295): XenForo_Deferred_TagRecache->execute(Array, Array, 7.278774023056, 'Deleting... Tag...')
      #17 /library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.278774023056, 'Deleting... Tag...', false)
      #18 /library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, 'Deleting... Tag...', false)
      #19 /library/XenForo/ControllerAdmin/Tools.php(159): XenForo_Model_Deferred->run(true, NULL, 'Deleting... Tag...', false)
      #20 /library/XenForo/FrontController.php(369): XenForo_ControllerAdmin_Tools->actionRunDeferred()
      #21 /library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #22 /admin.php(13): XenForo_FrontController->run()
      #23 {main}
      Request State
      array(3) {
      ["url"] => string(52) "https://my-forum.com/admin.php?tools/run-deferred"
      ["_GET"] => array(1) {
      ["tools/run-deferred"] => string(0) ""
      }
      ["_POST"] => array(3) {
      ["redirect"] => string(33) "https://my-forum.com/admin.php"
      ["execute"] => string(1) "1"
      ["_xfToken"] => string(8) "********"
      }
      }
    Issue Details
    Issue Number 5442
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Forum Bug
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.23
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. August 18, 2018 9:59 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      This bug and the one before are blocking all XF rebuilds.
      Reply Reply  
    2. August 20, 2018 1:13 PM
      pegasus pegasus is offline
      VaultWiki Team
      I should note that this error was possible at the fault of VaultWiki prior to the patch for VWE-2018-4348; however the error would have occurred consistently, and you have been patched against this for some time.

      I cannot reproduce this issue on your site using the same rebuild mentioned above or using the isolated data set that triggered this error. Since your database does not meet other criteria, it is possible that the table or its indexes were damaged by a previous database crash. If this occurs again, try using:
      Code:
      REPAIR TABLE vw_route
      There are cases where "can't write" happens because the database crashed at the same time as the write was taking place (not necessarily a fault of that write). The write is successful but the database's logs haven't marked the write completed yet. So after the database is restarted, MySQL might try to write it again, or MySQL simply has an inaccurate picture of the keys that are in use.

      For now, marking this Cannot Reproduce. If you can get it to occur again and REPAIR TABLE has no effect, please add more information to this report.
      Reply Reply  
    3. December 21, 2018 2:34 PM
      pegasus pegasus is offline
      VaultWiki Team
      After researching this more, I have determined that this is a bug in the InnoDB engine, which is part of MySQL. They have been studying it for some time and have not yet found a fix that works: https://jira.mariadb.org/browse/MDEV-15237
      The bug is related to FULLTEXT indexes on InnoDB tables (which applies to vw_route).
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 4:49 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.