Unable to upgrade from Drupal 5 to 6.0 RC2

ByteEnable - January 21, 2008 - 02:07
Project:Drupal
Version:6.0-rc2
Component:update system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:by design
Description

Invoking the update.php URL does not update, control is transferred to core via drupal_bootstrap in update.php and never returns.

install.php is loaded instead of upgrading.

Turned off all non-core modules.
Reset theme to bluemarine.
Set $update_free_access = TRUE;

#1

BryanSD - January 21, 2008 - 03:05

I witnessed something similar last night too. I didn't see this problem with RC1, but experienced it with RC2. I'm going to run through everything again tonight and see if I run into the same problem (I'm hoping this is user error).

#2

ByteEnable - January 21, 2008 - 03:28

Its caused by database.inc:

if (empty($db_url)) {
include_once 'includes/install.inc';
install_goto('install.php');
}

Its because db_url empty.

Byte

#3

andycowl - January 21, 2008 - 22:11

I note the same issue upgrading from (vanilla) 5.3 and 5.6.

Worse, site is inaccessible after failed upgrade and I needed a full DB restore.

I am not complaining as this is beta and the warnings are already there. Just stressing the fact that a DB backup (that can be restored) is absolutely required.

#4

Gábor Hojtsy - January 21, 2008 - 23:07
Status:active» by design

On upgrades, you need to restore the database settings in a settings.php (as documented), or otherwise Drupal will think it is going to be installed, not updated. This is documented in the upgrade instructions.

#5

ByteEnable - January 22, 2008 - 03:36

My database settings are correct in sites/default/default.settings.php.

Byte

#6

ByteEnable - January 22, 2008 - 03:38
Status:by design» active

Bumping back to active bug.

#7

ScoutBaker - January 22, 2008 - 05:45
Status:active» by design

The UPDATE.txt specifically states, in part,

...the configuration file is the "settings.php" file...

I have had no issues when I followed the update directions correctly.

(By design as noted by Gábor previously.)

#8

andycowl - January 22, 2008 - 23:35

Mea culpa. When I used my existing 'settings.php', my upgrade worked too. Hurrah !

 
 

Drupal is a registered trademark of Dries Buytaert.