** Changed in: mahara
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1455122

Title:
  Upgrade form 1.10 to 15.04 fails if 3rd party plugins are not present

Status in Mahara:
  Fix Released
Status in Mahara 15.04 series:
  Fix Released
Status in Mahara 15.10 series:
  Fix Released

Bug description:
  When upgrading from 1.10 (latest build) to 15.04 (latest build) today
  I get the following error because some 3rd party plugins are not
  present on my server but, due to the lack on auto-unstallation, their
  traces remain in the database.

  If I run again the command later I get the second error message (see
  below).

  The upgrade process should be resilient when 3rd party plugins are not
  here. I think we already had this with previous versions of Mahara and
  it has been fixed. My only way to upgrade to 15.04 is either :

  1/ Find all the bit of information related to the missing plugins and delete 
them from the database
  or
  2/ Reinstall everything from scratch loosing all the data from the Groups (no 
option to export group work in Leap2a)
  or
  3/ Reinstall the missing plugins. I already tried this solution without 
success; some plugins are so old and unmaintaned that they crash the server 
when re-introduced inside Mahara.

  
  ---- Message I got after the first attempt for upgrading the system 

  root@ubuntu:/var/www/html/mahara/htdocs# php admin/cli/upgrade.php
  [INF] 61 (admin/cli/upgrade.php:49) Mise à jour de Mahara
  [INF] 61 (lib/mahara.php:221) Mise à jour de core
  [WAR] 61 (lib/mahara.php:1429) File 
/var/www/html/mahara/htdocs/blocktype/chemnih/lib.php did not exist
  Call stack (most recent first):
    * safe_require("blocktype", "chemnih") at 
/var/www/html/mahara/htdocs/lib/upgrade.php:1128
    * install_blocktype_categories_for_plugin("chemnih") at 
/var/www/html/mahara/htdocs/lib/db/upgrade.php:3974
    * xmldb_core_upgrade("2014092314") at 
/var/www/html/mahara/htdocs/lib/upgrade.php:359
    * upgrade_core(object(stdClass)) at 
/var/www/html/mahara/htdocs/lib/mahara.php:253
    * upgrade_mahara(array(size 40)) at 
/var/www/html/mahara/htdocs/admin/cli/upgrade.php:50

  A nonrecoverable error occurred. This probably means you have
  encountered a bug in the
  systemroot@ubuntu:/var/www/html/mahara/htdocs# git pull

  ------- Message I got after my second attempt
  root@ubuntu:/var/www/html/mahara/htdocs# php admin/cli/upgrade.php
  [INF] 87 (admin/cli/upgrade.php:49) Mise à jour de Mahara
  [INF] 87 (lib/mahara.php:221) Mise à jour de core
  [WAR] 87 (lib/errors.php:747) Failed to get a recordset: mysqli error: [1062: 
Duplicate entry 'shortcut' for key 'PRIMARY'] in adodb_throw(INSERT INTO 
"blocktype_category" ("name", "sort") VALUES ('shortcut', '0'), )
  [WAR] 87 (lib/errors.php:747) Command was: INSERT INTO "blocktype_category" 
("name", "sort") VALUES (?, ?) and values was (shortcut,0)
  Call stack (most recent first):
    * log_message("Failed to get a recordset: mysqli error: [1062: Du...", 8, 
true, true) at /var/www/html/mahara/htdocs/lib/errors.php:97
    * log_warn("Failed to get a recordset: mysqli error: [1062: Du...") at 
/var/www/html/mahara/htdocs/lib/errors.php:747
    * SQLException->__construct("Failed to get a recordset: mysqli error: 
[1062: Du...") at /var/www/html/mahara/htdocs/lib/dml.php:1054
    * insert_record("blocktype_category", object(stdClass)) at 
/var/www/html/mahara/htdocs/lib/db/upgrade.php:3856
    * xmldb_core_upgrade("2014092314") at 
/var/www/html/mahara/htdocs/lib/upgrade.php:359
    * upgrade_core(object(stdClass)) at 
/var/www/html/mahara/htdocs/lib/mahara.php:253
    * upgrade_mahara(array(size 40)) at 
/var/www/html/mahara/htdocs/admin/cli/upgrade.php:50

  [WAR] 87 (lib/dml.php:1054) Failed to get a recordset: mysqli error: [1062: 
Duplicate entry 'shortcut' for key 'PRIMARY'] in adodb_throw(INSERT INTO 
"blocktype_category" ("name", "sort") VALUES ('shortcut', '0'), )
  [WAR] 87 (lib/dml.php:1054) Command was: INSERT INTO "blocktype_category" 
("name", "sort") VALUES (?, ?) and values was (shortcut,0)
  Call stack (most recent first):
    * insert_record("blocktype_category", object(stdClass)) at 
/var/www/html/mahara/htdocs/lib/db/upgrade.php:3856
    * xmldb_core_upgrade("2014092314") at 
/var/www/html/mahara/htdocs/lib/upgrade.php:359
    * upgrade_core(object(stdClass)) at 
/var/www/html/mahara/htdocs/lib/mahara.php:253
    * upgrade_mahara(array(size 40)) at 
/var/www/html/mahara/htdocs/admin/cli/upgrade.php:50

  A nonrecoverable error occurred. This probably means you have
  encountered a bug in the
  systemroot@ubuntu:/var/www/html/mahara/htdocs#

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1455122/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to