no crontab defined! at cronservice.pl line 410

Moderator: crythias

Locked
redone
Znuny newbie
Posts: 7
Joined: 26 Oct 2013, 21:10
Znuny Version: 3.2.11
Real Name: redone
Company: redone

no crontab defined! at cronservice.pl line 410

Post by redone »

Hi Guys;

i ahve an issue with mailfetching...OTRS 3.2.11 installed on windows server 2008 with IIS7 webserver.

the otrs/bin/otrs.cron4win32.pl works fine and updates the crontab.txt properly.

Code: Select all

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 
*/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 
*/1 * * * *    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 
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 
the otrs.PostMasterMailbox.pl is set to fetch mails every 1 minute. when excuting this module the system get the tickets from the mailbox.

excuting the module " perl cronService.pl " on cmd prompt says no crontab defined

Code: Select all

c:\otrs\CRONw>perl cronService.pl
no crontab defined! at cronService.pl line 410.
here is the cronService.pl file:

Code: Select all

	my $cronfile = $config{'crontab'};

	$log->info('starting service');
	$log->debug('programdir: '.$programdir);
	$log->debug('logfile: '.$logfile);
	if (not defined $config{'crontab'})	{
		$log->error("no crontab defined!\n");
		die "no crontab defined!";
		# fixme: crontab detection?
	}
	$log->debug('crontab: '.$config{'crontab'});

	checkCronDirs(dirname($config{'crontab'}));

	if ($config{'unknownParameter'})  { $log->warn('unknown command line parameters: '.join(', ', @ARGV)); }

	eval ("use lib('".$programdir."'); use Crontab;");
	if ($@)  { $log->error($@); return; }
	eval { $crontab = Crontab->new($config{'crontab'}, {'enableExceptions' => $true}); };
	if ($@)  { $log->error($@); return; }

the Cronw log says the following:

Code: Select all

[2013/11/11 08:26:35] starting service
[2013/11/11 08:26:35] no crontab defined!
[2013/11/11 09:37:24] starting service
[2013/11/11 09:37:24] no crontab defined!
[2013/11/11 09:37:39] starting service
[2013/11/11 09:37:39] no crontab defined!
[2013/11/11 09:41:17] starting service
[2013/11/11 09:41:17] no crontab defined!
[2013/11/11 11:43:58] starting service
[2013/11/11 11:43:58] no crontab defined!
[2013/11/12 11:30:04] starting service
[2013/11/12 11:30:04] no crontab defined!
[2013/11/12 11:30:26] starting service
[2013/11/12 11:30:26] no crontab defined!
[2013/11/12 12:27:58] starting service
[2013/11/12 12:27:58] no crontab defined!
[2013/11/12 12:28:25] starting service
[2013/11/12 12:28:25] no crontab defined!
[2013/11/12 12:39:21] starting service
[2013/11/12 12:39:21] no crontab defined!
[2013/11/12 13:19:28] starting service
[2013/11/12 13:19:28] no crontab defined!
[2013/11/12 13:39:47] starting service
[2013/11/12 13:39:47] no crontab defined!
[2013/11/12 14:38:39] starting service
[2013/11/12 14:38:39] no crontab defined!
[2013/11/12 14:40:51] starting service
[2013/11/12 14:40:51] no crontab defined!

Please any help or suggestions!!!
redone
Znuny newbie
Posts: 7
Joined: 26 Oct 2013, 21:10
Znuny Version: 3.2.11
Real Name: redone
Company: redone

Re: no crontab defined! at cronservice.pl line 410

Post by redone »

anyone can help me..please!!

i found a temporarly solution to fetch email using teh windows task scheduler to run the otrs.postmastermailbox.pl every 1 minute....it work really fine but i hope some body can tell me how to fix the issue of the OTRS Cronw since there is other scripts that needed to bu ran periodicly.

maybe someone can give me the cronw file and try it in my installation.

thank you guys...!!
Locked