Upgrade to 21.04.1 fails with file ".../embedly/lib.php" does not exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
New
|
Undecided
|
Unassigned |
Bug Description
**History**
Yesterday I tried to upgrade from 20.04 to 21.04.1 which failed when as usual trying to run
sudo -u www-data php cli/upgrade.php
I sadly did not manage to copy the message, it was somewhat about a missing file named
...embedly/lib.php
leaving the upgrade non functional.
Today I ran cron on my 20.04 and got a very similar message:
[WAR] c7 (lib/mahara.
Call stack (most recent first):
* safe_require(
* recalculate_quota() at /var/www/
A nonrecoverable error occurred. This probably means you have encountered a bug in the system
**Problem**
Both files mentioned (...outcome/lib.php and ...embedly/lib.php) DO NOT exist. But why does the script try to get them? Did not find any hint in database or file system.
**Versions**
Mahara 20.04.0
Ubuntu 16.04.4
mariadab 10.4.18
summary: |
- Error when starting cron or upgrade on command line .../lib.php not - found + Upgrade to 21.04.1 fails with File .../embedly/lib.php does not exist |
summary: |
- Upgrade to 21.04.1 fails with File .../embedly/lib.php does not exist + Upgrade to 21.04.1 fails with file ".../embedly/lib.php" does not exist |
Hi hermannkm,
Can you check to see if those directories exist ?
The way Mahara works is if it spots a subdirectory in certain folders, like artefact or module it will expect there to be a plugin to install and so tries to read the lib.php file to find out more information.
If the directories exist but not the lib.php files then it's safe to assume there was an old plugin there but now has been partially removed. So feel free to delete those directories and things should work as expected again.
Hope that helps
Robert