Hi,
we tried to upgrade from 5.0.2 Patch Level 2 to 5.0.5. An update in the web interface breaked with a timeout. So we restored the database and tried from the command line:
* This is the output from the upgrade script
* It hangs then in the last step here, and the corresponding php process runs at 100%, no systemcalls - thus a kind of endless loop
* We could only kill the process. However the result was a weired layout of our main page.
* That's the function that never returns (I think)
My questions:
- Can we help you debug the problem?
- Could you please provide us a quick work-around for the problem (patch?)?
For now, we are not able to upgrade anymore and we need the german lang pack of 5.0.5!
br
harald strack
we tried to upgrade from 5.0.2 Patch Level 2 to 5.0.5. An update in the web interface breaked with a timeout. So we restored the database and tried from the command line:
Code:
cd /var/www/html/vbull/vb5/core/install sudo -u apache php -f upgrade.php 2>&1 | tee /var/www/html/vbull/upgrade-5.0.5.log
Code:
Upgrading to 5.0.3 Alpha 1 ---------------------------------- Step 1 - Skipping step, not needed Upgrade Complete Upgrading to 5.0.3 Alpha 2 ---------------------------------- Step 1 - Skipping step, not needed Step 2 - Updating routenew table Step 3 - Updating routenew table Step 4 - Skipping step, not needed Step 5 - Skipping step, not needed Step 6 - Correcting node fields (starter, lastcontentid) for orphan infractions Skipping step, not needed Upgrade Complete Upgrading to 5.0.3 Alpha 3 ---------------------------------- Step 1 - Altering cacheevent Table (1 of 1) Step 2 - Skipping step, not needed Step 3 - Updating routenew table Step 4 - Skipping step, not needed Step 5 - Creating index contenttypeid_parentid on node ...skipping... Template Group: Link Template Group: Login Template Group: Media Template Group: Modify Template Group: Pagenav Template Group: Photo Template Group: Picture Template Group: Private Message Template Group: Profile Template Group: Screen Layout Template Group: Search Template Group: Group Admin Template Group: Subscription Template Group: Tag Template Group: User Profile Field Template Group: User Setting Template Group: Widget Template Group: Ungrouped Templates 1 Template Group: Ungrouped Templates 2 Template Group: Ungrouped Templates 3 Template Group: Ungrouped Templates 4 Template Group: Ungrouped Templates 5 Import Done Step 12 - Reseting cache Step 13 - Skipping step, not needed Step 14 - (END)
* We could only kill the process. However the result was a weired layout of our main page.
* That's the function that never returns (I think)
Code:
cd /var/www/html/vbulldev/vb5/core/install/includes vi class_upgrade_final.php
PHP Code:
/** * Step #14 Template Merge * THIS SHOULD ALWAYS BE THE LAST STEP * If this step changes vbulletin-upgrade.js must also be updated in the process_bad_response() function * * @param array contains start info * */ function step_14($data = null) { if ($data['response'] == 'timeout') { $this->show_message($this->phrase['final']['step_timed_out']); return; } $this->show_message($this->phrase['final']['merge_template_changes']); $startat = intval($data['startat']); require_once(DIR . '/includes/class_template_merge.php'); $products = array("'vbulletin'"); $merge_data = new vB_Template_Merge_Data($this->registry); $merge_data->start_offset = $startat; $merge_data->add_condition($c = "tnewmaster.product IN (" . implode(', ', $products) . ")"); $merge = new vB_Template_Merge($this->registry); $merge->time_limit = 4; $output = array(); $completed = $merge->merge_templates($merge_data, $output); if ($output) { foreach($output AS $message) { $this->show_message($message); } } if ($completed) { // Style rebuild sometimes needs a session. vB_Upgrade::createAdminSession(); if ($error = build_all_styles(0, 0, '', true)) { $this->add_error($error, self::PHP_TRIGGER_ERROR, true); return false; } } else { return array('startat' => $startat + $merge->fetch_processed_count() ); } }
- Can we help you debug the problem?
- Could you please provide us a quick work-around for the problem (patch?)?
For now, we are not able to upgrade anymore and we need the german lang pack of 5.0.5!
br
harald strack
Comment