Itâs quite likely Iâve screwed something up, but need some help troubleshooting this one.
I had an issue that required me to restore the installation from a backup a couple of weeks ago, and Iâm now realizing that all the âschedulersâ have not been running since.
Environment:
Ubuntu Linux 20.04.6/Apache
SuiteCrm V 7.14.2
Iâve used the Rebuild Schedulers tool to go back to âfactoryâ schedulers.
Also, deleted the hung jobs from the job_queue table.
Even still, all the jobs seem to hang at ârunning-queuedâ.
Iâve reset all File and Folder ownership, and permissions;
The crontab file looks ok to me;
Not seeing any related errors in the suite error log;
Anyone have any thoughts on how to track this down? (@pgr ??)
Iâm seeing a ton of these in the Apache logâŚdoes this seem relevant?
(Smells like the library wasnât fully restored or somethingâŚ?? Yikes??)
AH01071: Got error âPHP message: PHP Warning: Class âGoogle_Serviceâ not found in /var/www/html/vendor/google/apiclient-services/autoload.php on line 21; PHP message: PHP Warning: Class âGoogle_Service_Resourceâ not found in /var/www/html/vendor/google/apiclient-services/autoload.php on line 21; PHP message: PHP Warning: Class âGoogle_Modelâ not found in /var/www/html/vendor/google/apiclient-services/autoload.php on line 21; PHP message: PHP Warning: Class âGoogle_Collectionâ not found in /var/www/html/vendor/google/apiclient-services/autoload.php on line 21â,
I also forgot to mention, that the Executing the âDiagnostic toolsâ feature will also not âworkââŚdoes that help point to anything?
Is there a method to make sure all the (non-custom) files are in place? (for example, will âupgradingâ to the new version re-install all the libraries etc? or perhaps some other method?)
Ok, i have the google services problem either solved, or disabled at this point, but still getting all the schedulers to âstuckâ.
Can you confirm, IF you run the ârebuildâ schedulers feature, âshouldâ that remove all your custom schedulers?? My system is behaving that way, which if NOT expected, might point me more certainly toward my custom schedulers.
Thoughts?
Any other tests you can think of that might point me at the issue?
Do any of these apache errors log entries help??
[Sat Mar 01 13:40:09.075260 2025] [proxy_fcgi:error] [pid 722] [client 97.103.252.251:59609] AH01071: Got error âPHP message: PHP Warning: Undefined array key âadvanced_searchâ in /var/www/html/include/SearchForm/SearchForm2.php on line 626â, referer: https://zzzzzzzzzzz/index.php?module=Administration&action=index
[Sat Mar 01 13:42:27.266586 2025] [proxy_fcgi:error] [pid 721] [client 97.103.252.251:59789] AH01071: Got error âPHP message: PHP Warning: Undefined array key âadvanced_searchâ in /var/www/html/include/SearchForm/SearchForm2.php on line 626â, referer: https://zzzzzzzzzzzzzzzzzzzz/index.php?module=Schedulers&action=index
[Sat Mar 01 13:43:46.349058 2025] [proxy_fcgi:error] [pid 381] [client 97.103.252.251:59841] AH01071: Got error âPHP message: PHP Warning: Undefined array key âadvanced_searchâ in /var/www/html/include/SearchForm/SearchForm2.php on line 626â, referer: https://zzzzzzzzzzz/index.php?module=Administration&action=index
[Sat Mar 01 13:44:11.837087 2025] [proxy_fcgi:error] [pid 722] [client 97.103.252.251:59875] AH01071: Got error âPHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524; PHP message: PHP Warning: Undefined property: Scheduler::$job_url in /var/www/html/data/SugarBean.php on line 2524â, referer: https://zzzzzzzzzzzzzzzzzzzzzz.com/index.php?module=Administration&action=RebuildSchedulers
YeahâŚIâve done that a few times.
Seems something is making them âallâ hang.
Iâve rebuilt the schedulers (which seems to delete all the custom scheduled jobs from the Dbase), and disabled all the schedulers except: âRun Report Generation Scheduled Tasksâ (to try to isolate any misbehaving ones)âŚ
Each time I reset them, and wait for the Report Gen job to run, it first goes to âqueued - queuedâ, then after a few seconds ârunning - queuedââŚbut it hangs there forever.
Then Iâll go into Dbase, and delete that running job,âŚbut same keeps happening.
Iâm not seeing any errors in the SuiteCrm error log that seem to correlate, and Iâve solved a bunch of âotherâ errors in the Apache log, and now left with a bunch of âSmartyâ deprecation errorsâŚbut donât seem relevant.
Iâm fearful that itâs related to some custom scheduler or other custom code Iâve injected, but when I used the ârebuildâ schedulers feature, all the custom schedulers Iâd bult over time seem to have been deleted (though the code is still there).
Ok, I had to go a little more ânuclearâ than Iâm comfortable with.
I did what youâre describing, set the âmin_cron_intervalâ to 0.
But I was still getting fatal error from aow_utils.php on line 645.
I commented that line out (for now), and the schedulers are now working again.
(Clearly this is NOT a good permanent solutionâŚ)
It said I was declaring $sfh more than once?
(Does that help identify where I might look?)
Iâm sure something else is still in bad shapeâŚbut Iâm struggling to track it down.
Is there someone you trust that I might be able to contract with to help me?
I see that in my logs too in the last month but differently to you, all my schedulers all seem to run OK.
That error text is thrown in file: include/SugarQueue/SugarCronJobs.php
And seems to be caused by a lock file date - something on my set up is creating that file wrongly - possibly due to a 3rd-party plugin we added recently?