Các bài đăng được tạo bởi Alain Raap

Moodle in English -> General help -> Redis in Moodle 4.1

Bởi Alain Raap -
I have a Moodle 4.1 environment running on Redhat 8, PHP 8.0, Apache 2.4, Redis 5 and MariaDB 10.5
I configured two Redis instances, one on port 6379  (MUC) and one on port 6380 (Session) on the same server.
This configuration runs fine.

I see problems with this new admin task of Redis, the task doesn't work and fails with errors:

Maak geheugen vrij dat gebruikt wordt door verlopen items in de Redis cache\cachestore_redis\task\ttlRediscachestore_redisThursday, 20 October 2022, 07:57Thursday, 3 November 2022, 15:1557****480Ja

In the tasks logs I see these errors:

Execute scheduled task: Maak geheugen vrij dat gebruikt wordt door verlopen items in de Redis cache (cachestore_redis\task\ttl)
... started 15:02:02. Current memory use 4.5 MB.
Debugging increased temporarily due to faildelay of 120
core/capabilities: ... used 0 dbqueries
... used 0.0090029239654541 seconds
Scheduled task failed: Maak geheugen vrij dat gebruikt wordt door verlopen items in de Redis cache (cachestore_redis\task\ttl),Wrong parameter count for Redis::zRem()
Backtrace:
* line 445 of /cache/stores/redis/lib.php: call to Redis->zRem()
* line 611 of /cache/stores/redis/lib.php: call to cachestore_redis->delete_many()
* line 75 of /cache/stores/redis/classes/task/ttl.php: call to cachestore_redis->expire_ttl()
* line 259 of /lib/cronlib.php: call to cachestore_redis\task\ttl->execute()
* line 120 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
* line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
* line 178 of /admin/cli/cron.php: call to cron_run()
Is it a problem if this task doesn't work, and anyone who has an idea why it goes wrong? 
Trung bình điểm đánh giá: -
Hi Simey,

I'm already testing for a while with the Moodle 4.1 branch, is there a forum where I can share my experiences what I have done to get it working in our (Redhat 8) Linux enviroment and the obstacles I ran into?

Moodle in English -> Installing and upgrading help -> Installation Moodle 4.1dev+

Bởi Alain Raap -
I try to install Moodle on Redhat 8 with PHP 8.0.13 and the warning I got in the previous PHP 7.4 version has changed to a fatal error. Is this a bug in the Moodle code?

Error thrown during run of admin/cli/install.php:

                                 .-..-.

   _____                         | || |

  /____/-.---_  .---.  .---.  .-.| || | .---.

  | |  _   _  |/  _  \/  _  \/  _  || |/  __ \

  * | | | | | || |_| || |_| || |_| || || |___/

    |_| |_| |_|\_____/\_____/\_____||_|\_____)


Moodle 4.1dev+ (Build: 20221025) command line installatieprogramma

PHP Fatal error:  Uncaught Error: Undefined constant "NO_DEBUG_DISPLAY" in /var/www/moodle/lib/weblib.php:3259


Trung bình điểm đánh giá: -
Hi Ken,

We can't install/use Moosh on our servers, so I can't have a look at the course info. I think we'd better call it a day to find the cause.
I'm going to have a deeper look at Moodle 4.1, now preparing for PHP 8.