Moodle

Upgrade to moodle 1.9.x from 1.8 stalls

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Not a bug
  • Affects Version/s: 1.9.2
  • Fix Version/s: 1.9.1
  • Component/s: Quiz
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

When trying to update a Moodle 1.8 (latest build) containing course with more than 2500 quiz attempts, the upgrade procedure stops silently after several minutes.

Tried to increase the memory limit without success.

If needed, I can provide credentials for a test site.

Issue Links

Activity

Hide
Tim Hunt added a comment -

If it fails silently, how do you know it is the quiz that is causing the problem? There must be some indication how far the upgrade got? What was the previous SQL statement that succeeded, and hence which is the one that failed? (moodledata/upgradelogs)

Show
Tim Hunt added a comment - If it fails silently, how do you know it is the quiz that is causing the problem? There must be some indication how far the upgrade got? What was the previous SQL statement that succeeded, and hence which is the one that failed? (moodledata/upgradelogs)
Hide
Andrea Bicciolo added a comment -

Hi Tim, thank you for letting me reflect and make further investigation. Tried again to update the 1.8 Database (either Moodel version are at teh latest weekly build).

The last ouput in the web interface are::
quiz module needs upgrading
(mysql): SELECT id FROM mdl_question_numerical_units WHERE id > (SELECT MIN(iqnu.id) FROM mdl_question_numerical_units iqnu WHERE iqnu.question = mdl_question_numerical_units.question AND iqnu.unit = mdl_question_numerical_units.unit) (mysql): SHOW TABLES (mysql): SHOW INDEX FROM mdl_question_numerical_units (mysql): CREATE UNIQUE INDEX mdl_quesnumeunit_queuni_uix ON mdl_question_numerical_units (question, unit)
Operazione eseguita con successo
(mysql): ALTER TABLE mdl_quiz MODIFY COLUMN timelimit BIGINT(10) unsigned NOT NULL DEFAULT 0 after timemodified
Operazione eseguita con successo

and this from the upgradelogs:
resource module needs upgrading
resource tabelle sono state impostate correttamente
scorm module needs upgrading
scorm tabelle sono state impostate correttamente
survey module needs upgrading
survey tabelle sono state impostate correttamente
wiki module needs upgrading
wiki tabelle sono state impostate correttamente
workshop module needs upgrading
workshop tabelle sono state impostate correttamente

Looks like the problem is eleswhere.

Show
Andrea Bicciolo added a comment - Hi Tim, thank you for letting me reflect and make further investigation. Tried again to update the 1.8 Database (either Moodel version are at teh latest weekly build). The last ouput in the web interface are:: quiz module needs upgrading (mysql): SELECT id FROM mdl_question_numerical_units WHERE id > (SELECT MIN(iqnu.id) FROM mdl_question_numerical_units iqnu WHERE iqnu.question = mdl_question_numerical_units.question AND iqnu.unit = mdl_question_numerical_units.unit) (mysql): SHOW TABLES (mysql): SHOW INDEX FROM mdl_question_numerical_units (mysql): CREATE UNIQUE INDEX mdl_quesnumeunit_queuni_uix ON mdl_question_numerical_units (question, unit) Operazione eseguita con successo (mysql): ALTER TABLE mdl_quiz MODIFY COLUMN timelimit BIGINT(10) unsigned NOT NULL DEFAULT 0 after timemodified Operazione eseguita con successo and this from the upgradelogs: resource module needs upgrading resource tabelle sono state impostate correttamente scorm module needs upgrading scorm tabelle sono state impostate correttamente survey module needs upgrading survey tabelle sono state impostate correttamente wiki module needs upgrading wiki tabelle sono state impostate correttamente workshop module needs upgrading workshop tabelle sono state impostate correttamente Looks like the problem is eleswhere.
Hide
Tim Hunt added a comment -

Resolving, as per last comment.

Show
Tim Hunt added a comment - Resolving, as per last comment.
Hide
Andrea Bicciolo added a comment - - edited

Reopening, even if it is not a Quiz Bug, I think there are some issue to be further investigated. The stall problem persists.

Show
Andrea Bicciolo added a comment - - edited Reopening, even if it is not a Quiz Bug, I think there are some issue to be further investigated. The stall problem persists.
Hide
Andrea Bicciolo added a comment -

Assigning to Petr

Show
Andrea Bicciolo added a comment - Assigning to Petr
Hide
Chris Bandy added a comment -

We experienced this during our upgrade and discovered it is simply a browser/server timeout. These patches (1.) provide a notice before the time consuming process of converting quiz grades and (2.) prevent the browser timeout.

Show
Chris Bandy added a comment - We experienced this during our upgrade and discovered it is simply a browser/server timeout. These patches (1.) provide a notice before the time consuming process of converting quiz grades and (2.) prevent the browser timeout.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: