Generic Agent Jobs not running

Moderator: crythias

Locked
SantaPe
Znuny newbie
Posts: 53
Joined: 13 Mar 2013, 18:02
Znuny Version: 3.2.2

Generic Agent Jobs not running

Post by SantaPe »

I created several Generic Agent Jobs to add SLA's to certain tickets. If I run the job everything goes well but they won't run automatically.
I put minutes to '10'
hours to '00'
and for days I selected all days.

--> this should make the job run every 10 minutes right?

I am running OTRS 3.2 on Windows Server 2008 R2. I think something must be wrong with my Cron jobs.
I checked the server and the CronW service is running. I don't know what else I could check.
I found out that I have to make sure "generic_agent-database.dist" is correct but I don't know what should be in htere.

I mostly find information on what to do in Linux environments.
OTRS 3.2 - Windows Server 2008R2 - mysql
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Generic Agent Jobs not running

Post by crythias »

10 means 10 minutes after the hour
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
SantaPe
Znuny newbie
Posts: 53
Joined: 13 Mar 2013, 18:02
Znuny Version: 3.2.2

Re: Generic Agent Jobs not running

Post by SantaPe »

Ok, well it should be ok if they only run once every hour.

The problem is that they don't run at all...
OTRS 3.2 - Windows Server 2008R2 - mysql
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: Generic Agent Jobs not running

Post by reneeb »

Is the GenericAgent added in the crontab?
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
SantaPe
Znuny newbie
Posts: 53
Joined: 13 Mar 2013, 18:02
Znuny Version: 3.2.2

Re: Generic Agent Jobs not running

Post by SantaPe »

yes, I added this line to crontab.txt


*/15 6-20 * * 1,2,3,4,5 D:\Program Files (x86)\OTRS\StrawberryPerl\perl\bin\perl.exe D:\Program Files (x86)\OTRS\OTRS\bin\otrs.GenericAgent.pl

Do I need to move crontab.txt to one of the folders in there? (cron.daily, cron.monthly, cron.weekly)
OTRS 3.2 - Windows Server 2008R2 - mysql
wurzel
Znuny guru
Posts: 3270
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Generic Agent Jobs not running

Post by wurzel »

Hi,

maybe (!) it is your folder with spaces. I had issues with that. Try C:\OTRS and not C:\Program Files

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
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: Generic Agent Jobs not running

Post by reneeb »

Good hint... It should be ok if you put the paths in "
"D:\Program Files (x86)\OTRS\StrawberryPerl\perl\bin\perl.exe" "D:\Program Files (x86)\OTRS\OTRS\bin\otrs.GenericAgent.pl"
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
Locked