Search index not adding new pages

Describe the issue / Steps to reproduce:
Since upgrading to BlueSpice 4.5 with OpenSearch, I have found that new pages are not automatically added to the index. Running purgeIndexes.php, initBackends.php & rebuildIndex.php forces the new pages into the search index.

Expected behavior:
New pages should automatically be included in the search index (as they were with ElasticSearch).

System info:
view system requirements

  • OS: Rocky Linux 9.6
  • Server: Apache 2.4.62
  • PHP: 8.2.28 (fpm-fcgi)
  • Database: 10.5.27-MariaDB
  • BlueSpice version: 4.5.3 (build:20241120083336)
  • Browser version: All browsers

Hello Doc_Dish,

the search index of BlueSpice is updated by a scheduled mechanism called “jobRunner”. To check whether it is working correctly, you can run maintenance/showJobs.php to see jobs waiting to be executed: most of the time the returned number should be 0, or if it is a larger number it should go down when you re-check it minutes later.

In case your jobRunner is not working correctly, please first force run all remaining jobs, then adjust the crontab settings on your system:

Step 1. Force run jobs with this command:

while  [ "$(php maintenance/showJobs.php)" != "0" ]; do php maintenance/runJobs.php --maxjobs 100; done

Step 2. Adjust crontab settings, see Cronjobs - BlueSpice Helpdesk
Tips:

  1. Install crontab if it is not yet present.
  2. Add the following entries of crontab on behalf of the root user (e.g run crontab -e as root)
*/5 * * * * /usr/bin/php /var/www/bluespice/w/maintenance/runJobs.php --memory-limit=max
*/1 * * * * /usr/bin/php /var/www/bluespice/w/vendor/mwstake/mediawiki-component-processmanager/maintenance/processRunner.php /var/www/bluespice/w/maintenance/Maintenance.php --max-processes=100 --wait >/dev/null 2>&1

These not only fixes the jobRunner, but another backend service called processRunner as well. The latter is needed for tasks like sending change summary emails to users.

Please note that the paths used here are only examples, you will need to correspond to real-life paths on your server before applying the settings.

Best regards,
Hua

1 Like

Thanks Hua. The showjobs.php command returned ~1800 jobs on both my UAT and Live instances of BlueSpice.

I have cleared the jobs and added the crontab entries, which will hopefully resolve the issue.

Thanks again, Doc Dish

1 Like