Scheduler is not running

Moderator: crythias

Locked
gloowee
Znuny newbie
Posts: 5
Joined: 08 Sep 2014, 16:15
Znuny Version: 3.3.8
Real Name: Terry

Scheduler is not running

Post by gloowee »

Just downloaded the OTRS 3.3.9 Appliance 1.0.9 and set it up on an ESXi host. Literally right out of the box this thing reports the following error:

Scheduler not running

OTRS-otrs.scheduler-58 Can not write into the PID file:'/opt/otrs/var/run/scheduler.pid'! Permission denied

I searched the forums but wasn't able to find a fix. Has anybody ever encountered this? If so, what did you do to resolve the issue?
OTRS 3.3.9 appliance 1.0.9
askvicky
Znuny newbie
Posts: 39
Joined: 08 Sep 2014, 08:29
Znuny Version: otrs-3.38

Re: Scheduler is not running

Post by askvicky »

I have got this error sometime, i overcome it by running otrs.PostMasterMailbox.pl manually
otrs 3.3.8 OS windows 8 pro
gloowee
Znuny newbie
Posts: 5
Joined: 08 Sep 2014, 16:15
Znuny Version: 3.3.8
Real Name: Terry

Re: Scheduler is not running

Post by gloowee »

askvicky wrote:I have got this error sometime, i overcome it by running otrs.PostMasterMailbox.pl manually
Where do I find that file? This is the appliance that I downloaded and am running as a VM. Is it supposed to be included?
OTRS 3.3.9 appliance 1.0.9
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Scheduler is not running

Post by reneeb »

/opt/otrs/bin/otrs.PostMaster.pl

But the PostMaster has nothing to do with the Scheduler...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Re: Scheduler is not running

Post by Giulio Soleni »

Hello,
I didn't try the appliance, however it might be an issue due to multiple scheduler process records stuck in the database. It often happens when you change the IP and/or hostname of the server where OTRS runs.
The entries here are not deleted by OTRS and the Scheduler status check does not correctly filter its check by correct hostname or PID.

First try to stop OTRS service and scheduler with force option.

service otrs stop
/opt/otrs/bin/otrs.Scheduler.pl -a stop --force
service otrs start

If that does not work try to stop all OTRS processes and clean up process_id table.

from inside mysql prompt, issue:
use otrs;
delete from process_id;

then restart your otrs service.

You may have a check also to viewtopic.php?f=62&t=17742

HTH
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
askvicky
Znuny newbie
Posts: 39
Joined: 08 Sep 2014, 08:29
Znuny Version: otrs-3.38

Re: Scheduler is not running

Post by askvicky »

I am using windows, and scheduler run postmaster in my case
otrs 3.3.8 OS windows 8 pro
Locked