Forums | Mahara Community
Support
/
Update error 20.04 => anything newer
07 July 2021, 17:32
Today i tried to update our Mahara 19.10 Server. It is now on Ubuntu 20.04.
I could do the upgrade to Mahara Version 20.04, but with every newer version (i tried 20.10, 21.04.0 and 21.04.01) i get the following error on executing the upgrade script:
[INF] 89 (lib/mahara.php:242) core wird aktualisiert
[DBG] 89 (lib/db/upgrade.php:1659) Update the View table to add coverimage column
[DBG] 89 (lib/db/upgrade.php:1662) Adding coverimage to view table
[DBG] 89 (lib/db/upgrade.php:1670) Update the Collection table to add coverimage column
[DBG] 89 (lib/db/upgrade.php:1673) Adding coverimage to collection table
[DBG] 89 (lib/db/upgrade.php:1684) Fixing skins for new format options
[DBG] 89 (lib/db/upgrade.php:1705) Moving page description to a text block on the top of the page
[DBG] 89 (lib/db/upgrade.php:1745) 1000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 2000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 3000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 4000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 5000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 6000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 7000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 8000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 9000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 10000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 11000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 12000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 13000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 14000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 15000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 16000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 17000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 18000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 19000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 20000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 21000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 22000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 23000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 24000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 25000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 26000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 27000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 28000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 29000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 30000/40149
[DBG] 89 (lib/db/upgrade.php:1745) 31000/40149
[WAR] 89 (lib/mahara.php:1617) File /var/www/html/blocktype/embedly/lib.php did not exist
Call stack (most recent first):
* safe_require() at /var/www/html/blocktype/lib.php:1954
* BlockInstance->rebuild_artefact_list() at /var/www/html/blocktype/lib.php:1933
* BlockInstance->commit() at /var/www/html/lib/db/upgrade.php:1733
* xmldb_core_upgrade() at /var/www/html/lib/upgrade.php:376
* upgrade_core() at /var/www/html/lib/mahara.php:276
* upgrade_mahara() at /var/www/html/admin/cli/upgrade.php:74
But there is no embedly folder inside blocktype!
System:
Mahara 20.04
Ubuntu 20.04
Mysql: 8.0.25-0ubuntu0.20.04.1 (Ubuntu)
08 July 2021, 6:22
Hi there,
I am doing the upgrade from 20.10 to 21.04, and also ran into a similar error during the upgrade. The script output complaints about "blocktype/linkedinprofile/lib.php not exist" but I don't even have the subdirectory called ../linkedinprofile.
[INF] 23 (admin/cli/upgrade.php:70) Upgrading Mahara
[INF] 23 (lib/mahara.php:242) Upgrading core
[DBG] 23 (lib/db/upgrade.php:1966) Add new fields to export_queue and archived submissions tables
[DBG] 23 (lib/db/upgrade.php:1996) Adjust navigation block on collection pages in old format
[DBG] 23 (lib/db/upgrade.php:2033) Remove not null restriction for "usr" field in "artefact_peer_assessment"
[DBG] 23 (lib/db/upgrade.php:2041) Change the constraint on view_instruction_lock.originaltemplate field
[DBG] 23 (lib/db/upgrade.php:2055) Adding verifier role
[DBG] 23 (lib/db/upgrade.php:2066) Add "lock" column to collection
[DBG] 23 (lib/db/upgrade.php:2076) Add "progress" page type
[WAR] 23 (lib/mahara.php:1617) File /opt/rh/httpd24/root/var/www/html/mahara/blocktype/linkedinprofile/lib.php did not exist
Call stack (most recent first):
* safe_require(string(size 9), string(size 15)) at /opt/rh/httpd24/root/var/www/html/mahara/lib/upgrade.php:1233
* install_blocktype_viewtypes_for_plugin(string(size 15)) at /opt/rh/httpd24/root/var/www/html/mahara/lib/upgrade.php:1271
* install_blocktype_extras() at /opt/rh/httpd24/root/var/www/html/mahara/lib/db/upgrade.php:2083
* xmldb_core_upgrade(string(size 10)) at /opt/rh/httpd24/root/var/www/html/mahara/lib/upgrade.php:376
* upgrade_core(object(stdClass)) at /opt/rh/httpd24/root/var/www/html/mahara/lib/mahara.php:276
* upgrade_mahara(array(size 1)) at /opt/rh/httpd24/root/var/www/html/mahara/admin/cli/upgrade.php:74
A nonrecoverable error occurred. This probably means you have encountered a bug in the system
Any help is appreciated.
Bei
16 July 2021, 15:55
Hi Bei,
We resolved the problem with the plugins you mentioned together with you outside of the forums.
Thank you,
Doris
16 July 2021, 15:56
Hi Gerald,
The Embed.ly plugin was merged into Mahara a while ago and is available via the 'Embedded media' block. We recommend that you remove any references to ‘blocktype/embedly’ in your codebase and references in your ‘blocktype_installed’ database table because you can use built-in functionality. Before you do that though, please check if any pages are still using the block. If that were the case, then the content would be removed.
If you don't want that to happen, then a more thorough investigation would be required to keep the blocktype alive for you, which goes beyond the support we can provide in the forums as it pertains to a third-party plugin. The last update to the plugin was done several years ago.
Thank you,
Doris
17 July 2021, 7:00
Hi Doris,
thanks for the hint. It worked now. (we had same problems with facebooklike and a twitter plugin, but i removed them the same way)
regards
Gerald