Upgrade from 1.3.6 to 1.5.1 fails due to max_allowed_packets configuration

Bug #1006004 reported by Darren James Harkness
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Triaged
Medium
Unassigned

Bug Description

When attempting an upgrade of existing Mahara 1.3.6 install to 1.5.1, the upgrade script fails on my installation with the error below.

The problem seems to be in converting text blocks from within existing portfolio views into artefacts on their own. This happens in htdocs/artefact/internal/blocktype/textbox/db/upgrade.php:62-67

This is accompanied by mysql error 2006 (mysql server has gone away), which might be tied to Mysql's max_packet_size or execution time.

It's possible that this is due to the query being larger than the max_packet_size setting in MySQL (which is set to 1MB). I've verified this by setting max_allowed_packets to 4M on local server, which is a workaround for the issue.

Error is attached.

Tags: mysql upgrade
Revision history for this message
Darren James Harkness (darren-athabascau) wrote :
Revision history for this message
Melissa Draper (melissa) wrote :

http://stackoverflow.com/questions/5688403/how-to-check-and-set-max-allowed-packet-mysql-variable

Might be a bit risky to assume we can override that setting. Better error handling at minimum would be worthwhile.

Changed in mahara:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Darren James Harkness (darren-athabascau) wrote :

Agreed - at my institution, I wouldn't have privileges on the database server to make that kind of change programmatically.

Melissa Draper (melissa)
Changed in mahara:
milestone: none → 1.6.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.