Hi, tried to drush updatedb from 3.x to 4.0-rc7 and I'm getting an endless loop at multichoice_update_6400. here is what I am seeing:

Executing multichoice_update_6400                                                                                                                                       [success]
Executing multichoice_update_6400                                                                                                                                       [success]
Executing multichoice_update_6400                                                                                                                                       [success]
Executing multichoice_update_6400                                                                                                                                       [success]
Executing multichoice_update_6400                                                                                                                                       [success]
Executing multichoice_update_6400                                                                                                                                       [success]
Executing multichoice_update_6400                                                                                                                                       [success]
Executing multichoice_update_6400                                                                                                                                       [success]

.... etc. thousands of times...

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 78 bytes) in /usr/local/share/drush/includes/backend.inc on line 120
Drush command could not be completed.                                                                                                                                   [error]

With update.php script, It's just hanging at Remaining 27 of 27. Updating multichoice module

Comments

alberto56’s picture

Priority: Normal » Critical

I'll set this to critical because with this bug version 4.0-rc7 is basically unusable for people upgrading.

Thanks,

Albert.

falcon’s picture

Status: Active » Postponed (maintainer needs more info)

I don't know about drush but I just did an update on a site with 28.791 multichoice answers stored in the database. On a quite powerful computer the system seemed to be frozen for about 10 minutes while multichoice updated the old answers.

Are you sure you gave update.php enough time to perform the updates? multichoice_update_6400 is extremely slow, but it gets the job done eventually AFAIK.

falcon’s picture

FYI I've also heard that the update process has taken 2-3 hours on huge databases...

alberto56’s picture

Thanks for your response. I have 17 multi-choice questions, so the size of the database probably isn't an issue. I will try to reproduce the problem on a fresh install to see what happens. One note which might explain things: I am updating from 3.4, which is not the latest 3.x version. Perhaps I should update to 3.5 first, then to 4.x. I'll try that too...

falcon’s picture

How many answers do you have to those questions? If you have stored thousands of answers to them the update will still be slow.

alberto56’s picture

@falcon hi, no actually it's a brand new site with just some test data -- maybe 50 answers maximum. Thanks.

falcon’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)