Mailbox AutoFetch not working

Moderator: crythias

Locked
mdemicoli
Znuny newbie
Posts: 25
Joined: 26 Jan 2011, 17:28
Znuny Version: 3.3.13
Real Name: Michael Demicoli
Location: Malta

Mailbox AutoFetch not working

Post by mdemicoli »

Hello,

I'm having problems having creating tickets automatically by sending emails to mailboxes set in OTRS. Basically if I do a manual fetch from the admin panel within OTRS retrieves email and works fine; however it auto fetch through cronw never worked in the first place.

Opening the command prompt and running the following worked fine (As a workaround until someone helps I was thinking of creating a scheduled task running this every 5mins):

C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.PostMasterMailbox.pl

Below please find installation details and actions taken so far:

Version:
OTRS 3.3.13 running on Windows Server 2012 R2

Everything is working fine except for mailbox auto fetching.

Crontab Settings:
MAILTO="root@localhost"
20 0 * * 0 C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.DeleteCache.pl --expired
30 0 * * 0 C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.LoaderCache.pl -o delete
5 * * * * C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.GenerateDashboardStats.pl
*/10 * * * * C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.GenericAgent.pl -c db
*/20 * * * * C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.GenericAgent.pl
45 */2 * * * C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.PendingJobs.pl
*/5 * * * * C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.PostMasterMailbox.pl
01 01 * * * C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.RebuildTicketIndex.pl
*/5 * * * * C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.Scheduler.pl -w 1
55 */2 * * * C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.DeleteSessionIDs.pl --expired
35 * * * * C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.UnlockTickets.pl --timeout

Problems & Actions Taken:

Upon installing OTRS i had the error Scheduler not running whenever I logged within the system using root or admin users.
The above was fixed by doing the following;

Installed all perl scripts as it seemed I had missing ones by using the following method:

Launch the command line.
+ cd to your CRONw installation directory
+ type the following commands
ppm install -noforce -follow modules\Win32-Daemon.ppd
ppm install -noforce -follow modules\Test-Simple.ppd
ppm install -noforce -follow modules\Number-Compare.ppd
ppm install -noforce -follow modules\Attribute-Handlers.ppd
ppm install -noforce -follow modules\Text-Glob.ppd
ppm install -noforce -follow modules\File-Find-Rule.ppd
ppm install -noforce -follow modules\Date-Manip.ppd
ppm install -noforce -follow modules\Params-Validate.ppd
ppm install -noforce -follow modules\Log-Dispatch.ppd
ppm install -noforce -follow modules\Log-Log4perl.ppd
ppm install -noforce -follow modules\Log-Dispatch-FileRotate.ppd

Installed CRONw as a service using the following method:

perl cronHelper.pl --install

After doing the above, I restarted the system and verified that CRONw has been installed as a services (run services.msc and found OTRS Schedulers running). I also logged into the system as root and the Scheduler not running error has gone. Checked C:\otrs\CRONw\logs and there are no errors except for the following:

[2016/07/04 20:23:46] starting service
[2016/07/04 20:23:46] no crontab defined!
[2016/07/04 20:24:52] starting service
[2016/07/04 20:24:52] no crontab defined!

However these were cleared after I ran the scripts i listed and todate i have no errors.

Hope I provided you with all information needed, thanks in advance for your help and looking forward to your feedback!

Regards,
Mike
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Mailbox AutoFetch not working

Post by wurzel »

Hi,

Your OTRS is an old version, latest OTRS requries Linux.

Windows Perl + Windows Cron is not part of OTRS, and I can not help you with that.

My recommendation: switch to linux

Florian
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.
mdemicoli
Znuny newbie
Posts: 25
Joined: 26 Jan 2011, 17:28
Znuny Version: 3.3.13
Real Name: Michael Demicoli
Location: Malta

Re: Mailbox AutoFetch not working

Post by mdemicoli »

Dear Florian,

Thank you for your feedback, i understand that perl and cron are both not part of OTRS but its the same with Linux, so this would not solve my issue if I used such platform.

As for old version of OTRS, unfortunately i don't have any option as the requirement is to have this available on Windows platform, 3.3.13 is tha latest version supported on such platform.

So if anyone maybe came through such problem in the past and can help I appriciate a lot!

Regards,
Michael Demicoli
Locked