Global search not working. Please help! Cron Job working though.

Running SuiteCRM Version 7.9.7 on a shared hosted server on Namecheap. CPanel.

So I’m trying to get my global search working. I have Enable AOD: checked.

I have the Scheduler running the “Optimise AOD Index” but it says it has never ran.

I have the Scheduler running the “Perform Lucene Index” but it says it has never ran.

My CronJob is setup and I’m getting emails alerting me that it is running at the right time.

0,15,30,45 * * * * /usr/local/bin/php /home/hrlovnqk/hrcrm.hrlogin.work/cron.php

I’m getting this error in the Log File:
Thu Mar 15 13:45:36 2018 [596779][-none-][FATAL] cron.php: running as hrlovnqk is not allowed in allowed_cron_users in config.php. Exiting.

My config file is as below:

  'cron' => 
  array (
    'max_cron_jobs' => 10,
    'max_cron_runtime' => 30,
    'min_cron_interval' => 30,
    'allowed_cron_users' => 'hrlovnqk',
    0 =>
    array (
      0 => 'hrlovnqk',
    ),
  ),

Allowed_cron_users is an array, not a string, so you edited your config file wrong. You also messed up the array. :slight_smile: It should be


  'cron' =>
  array (
    'max_cron_jobs' => 10,
    'max_cron_runtime' => 30,
    'min_cron_interval' => 30,
    'allowed_cron_users' =>
    array (
      0 => 'hrlovnqk',
    ),
  ),