Опубликовано Joseph Rézeau

Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя Testers Изображение пользователя Translators

Hi Ken

My problem is not related to the H5P updates. In my original post I wrote "Actually I get that error message for any task I try to "Run now", not just getting the H5P content types".

And also it has nothing to do with a timeout, as I get that error message immediately upon executing my Run now task request. Mystery still un-solved.😡

Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя Testers Изображение пользователя Translators
Thanks Ken, but... There are no errors in my MySQL logs... at least no errors related to my problem.
And I insist that the Run now tasks feature works as expected on my other local Moodle sites ; I can't see any reason why this action would work fine on one local site and trigger error on a very similar local site?
Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя Testers Изображение пользователя Translators

I've found lots of posts about this database connection error, but none similar to my current problem. Here's what happens.

On my localhost machine I have installed a few moodle sites to conduct my tests. I rarely use the "Run now" feature in the Scheduled Tasks. I only use it when I create a new Moodle install, in order to "Download available H5P content types from h5p.org". That's what I was trying to achieve yesterday on a new install, and I got the "Error: Database connection failed" message! Actually I get that error message for any task I try to "Run now", not just getting the H5P content types.

What is strange is that I have a very similar local Moodle site, where I never get such error.  I have checked my databases, config file, etc. they are both ok, but I can't get rid of the error on my new install.

Running Windows 11 Wampserver with Apache/2.4.51 (Win64) PHP/8.1.13 MySQL Version:8.0.27. Trying to install Moodle 4.3.2 (Build: 20231222) from github. I can provide more info if needed.

Any hints welcome!

PS.- As a workaround, I can manage to run the "Download available H5P content types from h5p.org" task using CLI. But not the best option.

Изображение пользователя Core developers Изображение пользователя Plugin developers Изображение пользователя Testers Изображение пользователя Translators

@Ken,

Further to my post here: https://moodle.org/mod/forum/discuss.php?d=454017 Visvanath Ratnaweera re-directe me to your post.

I've just tried your suggestion of adding a new superuser in my DB, did the changes to my Moodle site config ... still no joy.