• 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
    • [4.1 Alpha 1] New installation stuck in a loop at Step 7

    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: [4.1 Alpha 1] New installation stuck in a loop at Step 7

    • Issue Tools
      • View Changes
    1. issueid=5558 January 1, 2019 8:27 AM
      ACL ACL is offline
      Regular Member
      [4.1 Alpha 1] New installation stuck in a loop at Step 7

      I've tried installing a new instance of VaultWiki 4.1 Alpha 1 to my XF2.0 local dev environment, however the addon installation is hanging at step 7, or rather it seems to be caught in a loop.

      Here is an excerpt of the install log around the point where the loop starts:
      Code:
      == Step 4 ==
      creating_attachment_directory
      
      == Step 5 ==
      Adding data to table: xf_option
      Creating prefix for Special pages
      
      == Step 6 ==
      Adding data to table: vw_permission
      
      == Step 7 ==
      Preparing database
      Adding data to table: vw_index
      Adding data to table: vw_permission
      Adding data to table: vw_special... ((3))
      
      == Step 7 ==
      Preparing database
      Adding data to table: vw_index
      Adding data to table: vw_permission
      Adding data to table: vw_special... ((3))
      
      == Step 7 ==
      Preparing database
      Adding data to table: vw_index
      Adding data to table: vw_permission
      Adding data to table: vw_special... ((3))
      After seeing 43 instances of Step 7, I killed the addon installation. No errors were logged by XenForo. The installer was reporting 477 queries at this point.
    Issue Details
    Issue Number 5558
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 Alpha 1 Public
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. January 1, 2019 9:01 AM
      ACL ACL is offline
      Regular Member
      This was encoutered with XenForo 2.0.7, and I wasn't using the CLI options for installing VaultWiki ... just the standard web-based one through the admin cp.

      I've since upgraded my local dev forum to 2.0.12 and tried to resume the installation (XF says Action pending, Last action: install:7). It still seems to be stuck in a loop, with 53 instances of step 7 now.
      Reply Reply  
    2. January 1, 2019 11:43 AM
      pegasus pegasus is offline
      VaultWiki Team
      Please check your database for existence of a table called vw_upgradelog and provide the contents of this table.
      If the table does not exist, it would explain this.

      If the table exists but does not contain a row like
      Code:
      C     0.0.0    6    3
      if it has a 0 in the last column or the row is missing, there might be a database error being suppressed. In that case, let's try to get more information about the error. In src/addons/vw/vw/Setup/Caller/Install.php, find:
      Code:
      \vw_DB::get()->func()->hide_errors();
      Replace with:
      Code:
      //\vw_DB::get()->func()->hide_errors();
      Reply Reply  
    3. January 1, 2019 11:48 AM
      ACL ACL is offline
      Regular Member
      vw_upgradelog contains two records.

      upgradetypeversionstepoffset
      C0.0.063
      F4.1.0 Alpha 100
      Reply Reply  
    4. January 1, 2019 12:05 PM
      pegasus pegasus is offline
      VaultWiki Team
      So we know that it is at least writing the correct position. Let's see if it's reading the position on the next go. In src/addons/vw/vw/Setup/View.php, find:
      Code:
      		$text = $this->sprintf($text, $step);
      AFTER it, add:
      Code:
      		//if ($this->caller->offset)
      		{
      			$text .= ' (' . $this->caller->offset . ')';
      		}
      This will add the starting offset next to the step number in the log, whereas the next (number) would be the ending offset. I suspect the starting offset is becoming 0 somewhere.

      Once you make this change, allow the installer to perform 2 or 3 cycles before aborting again. Then check the bottom of the log file for new information. Please include about 5 of the steps listed, starting from the bottom.
      Reply Reply  
    5. January 1, 2019 12:24 PM
      ACL ACL is offline
      Regular Member
      I've let the installer run for a bit and there are now a total of 75 step 7 instances.

      What ends up being logged is step 7 with a zeroed offset each time. For completeness here are the last three steps from the log:
      Code:
      == Step 7 (0) ==
      Preparing database
      Adding data to table: vw_index
      Adding data to table: vw_permission
      Adding data to table: vw_special... ((3))
      
      == Step 7 (0) ==
      Preparing database
      Adding data to table: vw_index
      Adding data to table: vw_permission
      Adding data to table: vw_special... ((3))
      
      == Step 7 (0) ==
      Preparing database
      Adding data to table: vw_index
      Adding data to table: vw_permission
      Adding data to table: vw_special... ((3))
      Reply Reply  
    6. January 1, 2019 12:41 PM
      pegasus pegasus is offline
      VaultWiki Team
      Okay, let's find the 0. This can go much faster if you submit a ticket, but if you prefer to do it this way (to see how everything works together), I can keep posting edits for you.

      In src/addons/vw/vw/Setup.php, find:
      Code:
      $version = $caller->get('versioninfo');
      AFTER it, add:
      Code:
      \XF::dump($install_key);
      \XF::dump($version);
      Find:
      Code:
      $result = $this->vwRunStep('install', $stepObject, $stepParams, $internalStep);
      BEFORE it, add:
      Code:
      \XF::dump($stepParams);
      Once the output is displayed on screen, cancel the browser refresh so you have a chance to copy it.
      Reply Reply  
    7. January 1, 2019 12:54 PM
      ACL ACL is offline
      Regular Member
      I'm using a local development environment for the VW 4.1 alphas so without external FTP access it might be 'interesting'

      Code:
      "C"
      
      array:3 [
        "C" => "0.0.0"
        "steps" => array:2 [
          "C" => array:2 [
            0 => 6
            1 => 3
          ]
          "F" => array:2 [
            0 => 0
            1 => 0
          ]
        ]
        "F" => "4.1.0 Alpha 1"
      ]
      
      []
      Reply Reply  
    8. January 1, 2019 12:58 PM
      pegasus pegasus is offline
      VaultWiki Team
      I believe I've found it. In src/addons/vw/vw/Setup/Caller/AbstractCaller.php, find:
      Code:
      $this->params["$name"] = $value;
      Replace with:
      Code:
      $this->params["$paramname"] = $value;
      Reply Reply  
    9. January 1, 2019 1:03 PM
      ACL ACL is offline
      Regular Member
      We have lift off! Setup has now made it through to the importing add-on data stage (after a pause at step 9 for user input).
      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 2:40 AM.
    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.