GenericAgent / cronW / Mails from Customer

Moderator: crythias

Locked
CarpeVentum
Znuny newbie
Posts: 29
Joined: 07 Jun 2011, 11:02
Znuny Version: 3.0.8

GenericAgent / cronW / Mails from Customer

Post by CarpeVentum »

Hello there,
well - we installed OTRS 3.0.8 on a Windows Server using the Installer, but we have several problems actually:

- I read something about a known bug by using this windows installer regarding the cronw, the cronw.txt is empty but we have no older files to restore the content, the conw service is running fine so far, this says the log and the Windows service overview
- any tasks for the GenericAgent do not run automatically but manually, the time-settings are correct
- sending mails from the ticket to the customers work, but mails from the customers do not find their way back to the tickets, they are somewhere in the system but not longer seen, I read this could be caused by the not running GenericAgent, in the meantime we had deactivated the postmaster queue to make it not available in the queue settings for tickets, but it's activated again now

Could someone help please to get this bloody GenericAgent back to life? We're going crazy cause we are trying to solve these problems since 2 weeks now. Thanks!
OTRS: 3.0.8, ITSM 3.03, FAQ 2.05
OS: Windows Server 2008 R2 Enterprise on ESX
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: GenericAgent / cronW / Mails from Customer

Post by ferrosti »

This is all due to your empty cron file.
http://doc.otrs.org/3.0/en/html/manual- ... l#cronjobs

In your case you´ll need to use cron4win.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
CarpeVentum
Znuny newbie
Posts: 29
Joined: 07 Jun 2011, 11:02
Znuny Version: 3.0.8

Re: GenericAgent / cronW / Mails from Customer

Post by CarpeVentum »

Thank you for that hint, Ferrosti, so which entries do I need for the mailing problems:

# fetch emails every 10 minutes
*/10 * * * * $HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null


and the generic agent, to run the task which are configured in OTRS:

# start generic agent every 10 minutes
*/10 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null


Does anyone know how to translate the commands to windows? I'm quite sure /dev/null is "unknown" there. :)
OTRS: 3.0.8, ITSM 3.03, FAQ 2.05
OS: Windows Server 2008 R2 Enterprise on ESX
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Re: GenericAgent / cronW / Mails from Customer

Post by MichaelR »

Just get rid of the output redirection, it isn't needed in Windows and is not included in the Windows crontab.txt
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
CarpeVentum
Znuny newbie
Posts: 29
Joined: 07 Jun 2011, 11:02
Znuny Version: 3.0.8

Re: GenericAgent / cronW / Mails from Customer

Post by CarpeVentum »

Thanks, I add these two entries:

# fetch emails every 10 minutes
*/10 * * * * D:\OTRS\StrawberryPerl\perl\bin\perl.exe D:\OTRS\OTRS\bin\otrs.PostMasterMailbox.pl

# start generic agent every 10 minutes
*/10 * * * * D:\OTRS\StrawberryPerl\perl\bin\perl.exe D:\OTRS\OTRS\bin\otrs.GenericAgent.pl -c db

If I do not add the link to the perl.exe on the windows console nothing would happen, with link each script run fine alone, so mails will be forwarded and the GenericAgent task run as well - but the cron job does not run automatically. What's going wrong? The service was restarted.
OTRS: 3.0.8, ITSM 3.03, FAQ 2.05
OS: Windows Server 2008 R2 Enterprise on ESX
CarpeVentum
Znuny newbie
Posts: 29
Joined: 07 Jun 2011, 11:02
Znuny Version: 3.0.8

Re: GenericAgent / cronW / Mails from Customer

Post by CarpeVentum »

Well... the cron service runs, I do not know why, but all 40mins - how could I set it to every 5 minutes?
OTRS: 3.0.8, ITSM 3.03, FAQ 2.05
OS: Windows Server 2008 R2 Enterprise on ESX
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: GenericAgent / cronW / Mails from Customer

Post by ferrosti »

Sorry, the information I gave you was about Linux cron. I am not exactly sure how it works on Windows.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: GenericAgent / cronW / Mails from Customer

Post by ferrosti »

openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
CarpeVentum
Znuny newbie
Posts: 29
Joined: 07 Jun 2011, 11:02
Znuny Version: 3.0.8

Re: GenericAgent / cronW / Mails from Customer

Post by CarpeVentum »

Thank you, that helps to understand the cron script - I build the cron.txt manually now and it runs fine so far, even I do not understand the syntax to run the scripts weekly, daily, each 10 minutes, 2 hours, etc.
OTRS: 3.0.8, ITSM 3.03, FAQ 2.05
OS: Windows Server 2008 R2 Enterprise on ESX
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: GenericAgent / cronW / Mails from Customer

Post by ferrosti »

In case it is the same syntax as described in the manual, you should look for howtos on crontab.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
Locked