Moodle

Index update stops during cronjob

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.9, 1.9.1
  • Fix Version/s: None
  • Component/s: Global search
  • Labels:
    None
  • Environment:
    Debian 'etch' / PHP 5.x / MySQL 5.x
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE

Description

Global search index update stops cron job at data module update, preventing further cronjob execution (backup, stats ...).
"....
Finished chat.

Checking data module for updates."

Index table is not updated.

Activity

Hide
Stuart R Mealor added a comment - - edited

I don't think this should be a Minor priority because it stops backups completing.

I'm encountering this problem also.
The Cron job on one site is failing (the Cron job does start, and other sites on same server are completing without problem).
I've checked the database using MySQLAdmin - no problems.

Updated site to the latest version: Moodle 1.9 + (Build: 20080409) (vanilla installation aside from Themes).
But the Cron is still just stopping at 'Checking glossary module for additions.' (see below)

After suggestion from Eloy I checked all courses for instances of the Global Search Block.
Moodle reported 7.
So I went to each course and deleted them - but there were only 4.
See screenshot attached that shows Moodle reporting 3 instances of the Global Search block (but this figure is not linked to any courses!)
So, I disabled the Global Search block, and then removed var/www/.../blocks/search and it works OK
Original error message follows
(thanks Stuart):

Starting activity modules
Processing module function assignment_cron ...done.
Processing module function chat_cron ...done.
Processing module function forum_cron ...Starting digest processing...
Cleaned old digest records
done.
Processing module function scorm_cron ...done.
Processing module function workshop_cron ...done.
Finished activity modules
Starting blocks
Processing cron function for rss_client....
http://computerworld.co.nz/rss/computerworld.xml ok
[Martin D deleted some links here]....
http://www.checkpoint-elearning.com/rss/index.xml ok
58 feeds refreshed (took 1.58687 seconds)
done.
Processing cron function for search....
-DELETE---
Starting clean-up of removed records...
Index size before: 1052

Checking chat module for deletions.
No types to delete.

Finished chat.

Checking data module for deletions.
Finished data.

Checking forum module for deletions.
Finished forum.

Checking glossary module for deletions.
Finished glossary.

Checking lesson module for deletions.
Finished lesson.

Checking resource module for deletions.
Finished resource.

Checking wiki module for deletions.
Finished wiki.

Finished 0 removals.
Index size after: 1306
-UPDATE---
Starting index update (updates)...

Checking chat module for updates.
No types to update.

Finished chat.

Checking data module for updates.
Finished data.

Checking forum module for updates.
Finished forum.

Checking glossary module for updates.
Finished glossary.

Checking lesson module for updates.
Finished lesson.

Checking resource module for updates.
Finished resource.

Checking wiki module for updates.
Finished wiki.

Finished 0 updates
-ADD------
Starting index update (additions)...
Index size before: 1052

Checking chat module for additions.
No types to add.

Finished chat.

Checking data module for additions.
Finished data.

Checking forum module for additions.
Finished forum.

Checking glossary module for additions.

Show
Stuart R Mealor added a comment - - edited I don't think this should be a Minor priority because it stops backups completing. I'm encountering this problem also. The Cron job on one site is failing (the Cron job does start, and other sites on same server are completing without problem). I've checked the database using MySQLAdmin - no problems. Updated site to the latest version: Moodle 1.9 + (Build: 20080409) (vanilla installation aside from Themes). But the Cron is still just stopping at 'Checking glossary module for additions.' (see below) After suggestion from Eloy I checked all courses for instances of the Global Search Block. Moodle reported 7. So I went to each course and deleted them - but there were only 4. See screenshot attached that shows Moodle reporting 3 instances of the Global Search block (but this figure is not linked to any courses!) So, I disabled the Global Search block, and then removed var/www/.../blocks/search and it works OK Original error message follows (thanks Stuart): Starting activity modules Processing module function assignment_cron ...done. Processing module function chat_cron ...done. Processing module function forum_cron ...Starting digest processing... Cleaned old digest records done. Processing module function scorm_cron ...done. Processing module function workshop_cron ...done. Finished activity modules Starting blocks Processing cron function for rss_client.... http://computerworld.co.nz/rss/computerworld.xml ok [Martin D deleted some links here].... http://www.checkpoint-elearning.com/rss/index.xml ok 58 feeds refreshed (took 1.58687 seconds) done. Processing cron function for search.... -DELETE--- Starting clean-up of removed records... Index size before: 1052 Checking chat module for deletions. No types to delete. Finished chat. Checking data module for deletions. Finished data. Checking forum module for deletions. Finished forum. Checking glossary module for deletions. Finished glossary. Checking lesson module for deletions. Finished lesson. Checking resource module for deletions. Finished resource. Checking wiki module for deletions. Finished wiki. Finished 0 removals. Index size after: 1306 -UPDATE--- Starting index update (updates)... Checking chat module for updates. No types to update. Finished chat. Checking data module for updates. Finished data. Checking forum module for updates. Finished forum. Checking glossary module for updates. Finished glossary. Checking lesson module for updates. Finished lesson. Checking resource module for updates. Finished resource. Checking wiki module for updates. Finished wiki. Finished 0 updates -ADD------ Starting index update (additions)... Index size before: 1052 Checking chat module for additions. No types to add. Finished chat. Checking data module for additions. Finished data. Checking forum module for additions. Finished forum. Checking glossary module for additions.
Hide
Stuart R Mealor added a comment -

Ubuntu 7.10 server 64
Apache 2.2.4
MySQL 5.0.45
PHP 5.2.4
Moodle 1.9+ (20080409)

Show
Stuart R Mealor added a comment - Ubuntu 7.10 server 64 Apache 2.2.4 MySQL 5.0.45 PHP 5.2.4 Moodle 1.9+ (20080409)
Hide
steve baxter added a comment -

After upgrading 1.9.2 to 1.9.3 this issue appeared for me. Here were the steps I used to fix:

1) Deleted all references to global search from manage blocks
2) Remove the block from /var/www
3) Run the cron manually - completed successfully.
4) Re-install search block from downloaded 1.9.3 code directory moodle/block/search
5) Visited admin page to update database
6) Add a global search block on the home page
7) Test cron manually again - completes as expected.

Debian Etch x86
Apache 2.2
MySql 5.0.32
PHP 5.2.0-8+etch11
Moodle 1.9.3 (Build: 20081015)
Previous Moodle version: 1.9 + (Build: 20080312)

Show
steve baxter added a comment - After upgrading 1.9.2 to 1.9.3 this issue appeared for me. Here were the steps I used to fix: 1) Deleted all references to global search from manage blocks 2) Remove the block from /var/www 3) Run the cron manually - completed successfully. 4) Re-install search block from downloaded 1.9.3 code directory moodle/block/search 5) Visited admin page to update database 6) Add a global search block on the home page 7) Test cron manually again - completes as expected. Debian Etch x86 Apache 2.2 MySql 5.0.32 PHP 5.2.0-8+etch11 Moodle 1.9.3 (Build: 20081015) Previous Moodle version: 1.9 + (Build: 20080312)
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: