-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during search index rebuild #62
Comments
Software versions: |
We were getting failures at various points in the search index rebuild process. If it failed during forumng, then there would be no previous message in the logs to indicate why. Looking at our PHP config the max_execution_time for our Moodle environment is set at 600 seconds. Considering this and looking further at the code, it turned out that this setting was being over-ridden by a call to set_time_limit($timelimitbefore); with a timelimitbefore value of 300. This was persisting through the rest of the index rebuild process. Interesting note: Attempting to remove this completely (assuming that the php timout of 600 seconds would be sufficient) it failed with a "Maximum execution time of 600 seconds exceeded" ;-( The solution for us was to simply change the timeout value on line 3445 in mod_forumng.php from 300 to 600. Long term solution suggested in moodleou/moodle-local_ousearch#7 was to use something like core_php_time_limit::raise() in order to only increase the time limit and not decrease it. Saying that though, the "generally sufficient" 300 seconds is unfortunately not always sufficient, which is what makes this a tricky one. For now, our solution is sufficient for us so I will close this call. Cheers, |
Actually, I think it's best to leave this one open for now as the above solution is a bit of a short-term "hacky" solution. I'll leave it to yourselves to decide on the best way forward in the longer term. From what we've experienced, a fairly simple solution could be to: Regards, |
Hi
We are attempting to rebuild the search indexes which fails with the below message:
`Potential coding error - active database transaction detected during request shutdown:
, referer: https://www-test.moodle.is.ed.ac.uk/local/ousearch/postinstall.php`
Do you know what can be done about this?
Thanks in advance for your time.
Best regards,
Andrew Gleeson
University of Edinburgh
The text was updated successfully, but these errors were encountered: