Crontab.txt is empty

Moderator: crythias

Post Reply
Jordi
OTRS newbie
Posts: 4
Joined: 06 Jun 2011, 18:22
OTRS Version?: 3.0.8
Real Name: Jordi
Company: UNIGESTION

Crontab.txt is empty

Post by Jordi » 06 Jun 2011, 18:24

Hello,

I installed OTRS 3.0.8 on my windows 7 (x64), for a demo to my society. I can check the mailbox manualy but the schedule (10 mn) doesn’t work. My file crontab.txt is empty.
I tried the command perl.exe "C:\Program Files (x86)\OTRS\otrs\bin\otrs.Cron4Win32.pl", but the file is recreated empty…
How can I do?
Thank you for your help.
Kind regards,

ferrosti
OTRS ninja
Posts: 723
Joined: 10 Oct 2007, 14:30
OTRS Version?: 3.0
Location: Hamburg, Germany

Re: Crontab.txt is empty

Post by ferrosti » 15 Jun 2011, 11:29

This is well described in the manual.
I am sure you only have *.dist files in your $HOME/var/cron directory, missing your own ones without .dist .
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

Jordi
OTRS newbie
Posts: 4
Joined: 06 Jun 2011, 18:22
OTRS Version?: 3.0.8
Real Name: Jordi
Company: UNIGESTION

Re: Crontab.txt is empty

Post by Jordi » 15 Jun 2011, 11:35

Yes I have only *.dist files in the C:\OTRS\OTRS\var\cron directory. For solve my problem, I installed OTRS 3.0.7. With this version I have the right Crontab.txt. So I copied it and past in my 3.0.8 installation and it's work.
So I think it's a problem with this version 3.0.8.

ferrosti
OTRS ninja
Posts: 723
Joined: 10 Oct 2007, 14:30
OTRS Version?: 3.0
Location: Hamburg, Germany

Re: Crontab.txt is empty

Post by ferrosti » 15 Jun 2011, 12:06

crontab.txt should be created by the program you have described in your first post.
You need to have cron files depending on the .dist cron files in the same directory to get otrs.Cron4Win32.pl to work. .dist are example files. Copy cache.dist to cache, change it to your needs and otrs.Cron4Win32.pl will take this file and update Crontab.txt as desired.
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

Mike_B
Moderator
Posts: 266
Joined: 12 Jan 2010, 18:16
OTRS Version?: CVS HEAD

Re: Crontab.txt is empty

Post by Mike_B » 16 Jun 2011, 12:16

ferrosti wrote:crontab.txt should be created by the program you have described in your first post.
You need to have cron files depending on the .dist cron files in the same directory to get otrs.Cron4Win32.pl to work. .dist are example files. Copy cache.dist to cache, change it to your needs and otrs.Cron4Win32.pl will take this file and update Crontab.txt as desired.
There's an issue with otrs.Cron4Win32.pl in OTRS 3.0.8, it will be fixed in OTRS 3.0.9. You can replace it with this version: http://source.otrs.org/viewvc.cgi/otrs/ ... ortby=date

Cron4Win32 will, unlike on Linux, work with the .dist files. If you want to have different settings, change the .dist files and re-generate the crontab.txt.
huntingbears.nl - @michielbeijen on Twitter

gumboot
OTRS newbie
Posts: 8
Joined: 22 Mar 2011, 21:58
OTRS Version?: 3.0.9

Re: Crontab.txt is empty

Post by gumboot » 24 Jun 2011, 00:02

I have just Flagged my crontab.txt as Read Only which seems to be taking care of it being deleted during a restart.

Cheers
OTRS 3.0.9 on Ubuntu with MySQL database. Active Directory for Authentication

Post Reply