Scheduler Not Running

Moderator: crythias

Locked
thunter28
Znuny newbie
Posts: 34
Joined: 29 Apr 2011, 15:53
Znuny Version: 5.0.27
Real Name: Tony Hunter
Company: SecureData 365

Scheduler Not Running

Post by thunter28 »

I recently upgraded to 4.0.15 on a Centos build. All seems to be functioning correctly, but at time a red banner reading "Scheduler is not running" pops up. Once I refresh it immediately goes away, but it seems to occur 2-3 times an hour. I have followed the directions in the pop-up window that tell how to start or make sure the scheduler is running, but it does not seem to help the matter.

In the otrs.log file I am seeing the following errors:

Module Kernel/System/Ticket/Custom.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd)

I also noticed I have an abundance of SchedulerERR-145xxxx.log, SchedulerOUT-145xxxx.log, files that seem to be consistent with the times the scheduler drops. Most are empty, but one that had any content was the following:

Traceback (3874):
Module: main::_AutoStop Line: 653
Module: main::_Start Line: 425
Module: /opt/otrs/bin/otrs.Scheduler.pl Line: 156

ALSO, there is an error "error OTRS-otrs.Scheduler-10 Scheduler could not delete PID file:'/opt/otrs/var/run/scheduler.pid'! Permission denied ". After checking the file it seems that root has rw permissions on this. Who should have the permissions on this file?
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Scheduler Not Running

Post by RStraub »

In the original framework they deliver only a Custom.pm.example.

Did you customize on your older version? It seems you used the file and it's not properly migrated to your new version.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
thunter28
Znuny newbie
Posts: 34
Joined: 29 Apr 2011, 15:53
Znuny Version: 5.0.27
Real Name: Tony Hunter
Company: SecureData 365

Re: Scheduler Not Running

Post by thunter28 »

We have some customization's, but I have done this upgrade process many times and this is the first time this has occurred.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Scheduler Not Running

Post by RStraub »

Do you have an older version still around? Try to locate the file and see if it's used.

Next step could be, to search for the string "Custom.pm" in ~otrs/Kernel/Config/Files:

Code: Select all

grep 'Config.pm' *
And see if it's expected from one of your config files.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
thunter28
Znuny newbie
Posts: 34
Joined: 29 Apr 2011, 15:53
Znuny Version: 5.0.27
Real Name: Tony Hunter
Company: SecureData 365

Re: Scheduler Not Running

Post by thunter28 »

I have a Custom.pm.example file, but no Custom.pl in the Kernel/System/Ticket folder
Locked