The following error took me by surprise. It is a testing
server, so flogged much. Still I'm careful not to disturb the LEMP operation, I thought.
===
!!! Coding error detected, it must be fixed by a programmer: A lock was created but not released at:
[
dirroot]/lib/classes/task/manager.php on line 913
Code should look like:
$factory = \core\lock\lock_config::get_lock_factory('type');
$lock = $factory->get_lock([longhash]);
$lock->release(); // Locks must ALWAYS be released like this.
!!!
!!
Error code: codingerror !!
!! Stack trace: * line 135 of /lib/classes/lock/lock.php: coding_exception thrown
* line 73 of /lib/cronlib.php: call to core\lock\lock->__destruct()
* line 178 of /admin/cli/cron.php: call to cron_run()
!!
===
The error is reported quite late. Checking logs, it started on 17 Nov 16:08 after a server update.
- Server: Ubuntu 22.04.3 LTS
- PHP 8.1.2-1ubuntu2.14 (cli)
- Nginx with php-fpm
- Moodle 4.1.6+ (Build: 20231110)
The Moodle (test) instance functions perfectly.
Never seen that. Started debugging. Posting here, in case this has been reported.