OTRS 3.0.9 not auto fetching tickets [2]
Moderator: crythias
-
- Znuny newbie
- Posts: 12
- Joined: 17 Aug 2011, 15:06
- Znuny Version: 3.0.9
- Real Name: -
- Company: -
OTRS 3.0.9 not auto fetching tickets [2]
Dear,
We have the same issue with an new installation. the file otrs.Cron4Win32.pl is mentioned as above not correctly.
In the file i see this:
my $PerlExe = "c:/perl/bin/perl.exe";
my $Directory = "e:/workspace/otrs30/var/cron";
my $CronTabFile = "e:/workspace/otrs30/crontab.txt";
my $OTRSHome = "e:/workspace/otrs30";
I work on an CentOs system so the install is in /opt/otrs/
Can anyone help me to provide me the right links?
Regards,
Sander
mod note: split topic because it was getting hard to follow helping three people on one thread -- crythias
We have the same issue with an new installation. the file otrs.Cron4Win32.pl is mentioned as above not correctly.
In the file i see this:
my $PerlExe = "c:/perl/bin/perl.exe";
my $Directory = "e:/workspace/otrs30/var/cron";
my $CronTabFile = "e:/workspace/otrs30/crontab.txt";
my $OTRSHome = "e:/workspace/otrs30";
I work on an CentOs system so the install is in /opt/otrs/
Can anyone help me to provide me the right links?
Regards,
Sander
mod note: split topic because it was getting hard to follow helping three people on one thread -- crythias
Re: OTRS 3.0.9 not auto fetching tickets
for Linux use Cron.sh
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 12
- Joined: 17 Aug 2011, 15:06
- Znuny Version: 3.0.9
- Real Name: -
- Company: -
Re: OTRS 3.0.9 not auto fetching tickets
Thanks for your help, right now i receive a error every minute in my log file.jojo wrote:for Linux use Cron.sh
Error:
Wed Aug 24 12:28:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
What does this error mean? and how can i configure STDIN or how can i check this configuration?
-
- Znuny expert
- Posts: 241
- Joined: 06 Feb 2009, 11:15
- Znuny Version: 3.0.x
- Company: Perl-Services.de
- Contact:
Re: OTRS 3.0.9 not auto fetching tickets
Your crontab should have an entry like this:
Note: it's PostMaster*Mailbox*.pl, not PostMaster.pl
Code: Select all
# fetch mail every 5 minutes
*/5 * * * * /opt/otrs/bin/otrs.PostMasterMailbox.pl >> /tmp/cron.log
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
-
- Znuny newbie
- Posts: 12
- Joined: 17 Aug 2011, 15:06
- Znuny Version: 3.0.9
- Real Name: -
- Company: -
Re: OTRS 3.0.9 not auto fetching tickets
renee wrote:Your crontab should have an entry like this:
Note: it's PostMaster*Mailbox*.pl, not PostMaster.plCode: Select all
# fetch mail every 5 minutes */5 * * * * /opt/otrs/bin/otrs.PostMasterMailbox.pl >> /tmp/cron.log
Dear Renee,
Thanks for this advice, i have check the files and the settings mentioned in the quote are there but still the error in my syslog and no auto fetch mail.
Regards,
Sander
-
- Znuny expert
- Posts: 241
- Joined: 06 Feb 2009, 11:15
- Znuny Version: 3.0.x
- Company: Perl-Services.de
- Contact:
Re: OTRS 3.0.9 not auto fetching tickets
Can you post your settings?
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
-
- Znuny newbie
- Posts: 12
- Joined: 17 Aug 2011, 15:06
- Znuny Version: 3.0.9
- Real Name: -
- Company: -
Re: OTRS 3.0.9 not auto fetching tickets
File: /opt/otrs/var/cron/postmaster_mailbox
File: /opt/otrs/bin/otrs.PostMasterMailbox.pl
File: /opt/otrs/bin/otrs.Cron4Win32.pl
If there are more file configurations needed please let me know and i wil post them.
Edit: Add otrs.Cron4Win32.pl
Code: Select all
# --
# cron/postmaster_mailbox - postmaster_mailbox cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: postmaster_mailbox.dist,v 1.3 2009/11/09 15:24:13 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
# fetch emails every 1 minutes
*/1 * * * * $HOME/bin/otrs.PostMasterMailbox.pl >> /tmp/cron.log
Code: Select all
}
else {
my %List = $MailAccount->MailAccountList( Valid => 1 );
for my $Key ( keys %List ) {
my %Data = $MailAccount->MailAccountGet( ID => $Key );
$MailAccount->MailAccountFetch(
%Data,
Debug => $Opts{d},
CMD => 1,
UserID => 1,
);
}
}
# debug info
if ( $Opts{d} > 2 ) {
$CommonObject{LogObject}->Log(
Priority => 'debug',
Message => 'Global OTRS email handle (PostMasterMailbox.pl) stopped.',
);
}
}
Code: Select all
CRONFILE:
for my $CronData (@Entries) {
next CRONFILE if ( !-f "$Directory/$CronData" );
next CRONFILE if ( $CronData eq 'postmaster.dist' );
open( my $Data, '<', "$Directory/$CronData" )
or die "ERROR: Can't open file $Directory/$CronData: $!";
LINE:
while ( my $Line = <$Data> ) {
next LINE if ( $Line =~ m{ \A \# }xms );
next LINE if ( $Line eq "\n" );
# replace $HOME with path to Perl plus path to script
$Line =~ s{\$HOME}{$PerlExe $OTRSHome}xms;
# there's no /dev/null on Win32, remove it:
$Line =~ s{>>\s*/dev/null}{}xms;
print $CronTab "$Line";
}
close($Data);
}
close($CronTab);
1;
Edit: Add otrs.Cron4Win32.pl
-
- Znuny newbie
- Posts: 12
- Joined: 17 Aug 2011, 15:06
- Znuny Version: 3.0.9
- Real Name: -
- Company: -
Re: OTRS 3.0.9 not auto fetching tickets
Thanks for post with original files, but i can't find a difference in my files and still no auto import and error in my log file.
Can anyone help me with solve this ?
Can anyone help me with solve this ?
Re: OTRS 3.0.9 not auto fetching tickets
For linux use Cron.sh!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 12
- Joined: 17 Aug 2011, 15:06
- Znuny Version: 3.0.9
- Real Name: -
- Company: -
Re: OTRS 3.0.9 not auto fetching tickets
There will be right now 2 issues in this topic. For my case:sdekroon wrote:Thanks for your help, right now i receive a error every minute in my log file.jojo wrote:for Linux use Cron.sh
Error:
Wed Aug 24 12:28:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
What does this error mean? and how can i configure STDIN or how can i check this configuration?
I have already use Cron.sh, i see right now every minute an error, so the script runs.
What i mentioned already, i don't have right now auto import mail and have the error above in my log file.
Please advice.
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS 3.0.9 not auto fetching tickets
Why are you using Windows paths in a CentOs environment?sdekroon wrote:Dear,
We have the same issue with an new installation. the file otrs.Cron4Win32.pl is mentioned as above not correctly.
In the file i see this:
my $PerlExe = "c:/perl/bin/perl.exe";
my $Directory = "e:/workspace/otrs30/var/cron";
my $CronTabFile = "e:/workspace/otrs30/crontab.txt";
my $OTRSHome = "e:/workspace/otrs30";
I work on an CentOs system so the install is in /opt/otrs/
Can anyone help me to provide me the right links?
Regards,
Sander
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
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
-
- Znuny newbie
- Posts: 12
- Joined: 17 Aug 2011, 15:06
- Znuny Version: 3.0.9
- Real Name: -
- Company: -
Re: OTRS 3.0.9 not auto fetching tickets
I don't have change this, default it is in place.crythias wrote:Why are you using Windows paths in a CentOs environment?sdekroon wrote:Dear,
We have the same issue with an new installation. the file otrs.Cron4Win32.pl is mentioned as above not correctly.
In the file i see this:
my $PerlExe = "c:/perl/bin/perl.exe";
my $Directory = "e:/workspace/otrs30/var/cron";
my $CronTabFile = "e:/workspace/otrs30/crontab.txt";
my $OTRSHome = "e:/workspace/otrs30";
I work on an CentOs system so the install is in /opt/otrs/
Can anyone help me to provide me the right links?
Regards,
Sander
Can you tell me what the right url's are?
Thanks for your help in advance.
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS 3.0.9 not auto fetching tickets [2]
First, your issue is not related at all to CronWin32.pl
Second, please explain how you installed otrs, what version, what works, what doesn't, what the log messages say (System Log), and then it'll be easier to address.
Second, please explain how you installed otrs, what version, what works, what doesn't, what the log messages say (System Log), and then it'll be easier to address.
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
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
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS 3.0.9 not auto fetching tickets [2]
By the way, your cron needs to NOT have PostMaster.pl in it.
Code: Select all
Wed Aug 24 12:28:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
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
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
-
- Znuny newbie
- Posts: 12
- Joined: 17 Aug 2011, 15:06
- Znuny Version: 3.0.9
- Real Name: -
- Company: -
Re: OTRS 3.0.9 not auto fetching tickets [2]
I have run CentOS 5.5 on a server (clean) with install the OTRS 3.0.9 RPM file as mentioned by http://wiki.otrs.org/index.php?title=In ... CentOS_5.5.
Everything works right now what we need, so we can create / modify tickets and can send e-mails to an adres.
When we run manual fetch e-mail the e-mail will be imported from the e-mail adres. Right now i will automate this process.
The syslog entry show the error message from the moment of run Cron.sh.
Fri Aug 26 15:39:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:38:02 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:37:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:36:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:35:02 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:34:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:33:02 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:32:02 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:31:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:30:02 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
I don't have do anything with PostMaster.pl, so i don't know why this file is mentioned in the log..
Everything works right now what we need, so we can create / modify tickets and can send e-mails to an adres.
When we run manual fetch e-mail the e-mail will be imported from the e-mail adres. Right now i will automate this process.
The syslog entry show the error message from the moment of run Cron.sh.
Fri Aug 26 15:39:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:38:02 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:37:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:36:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:35:02 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:34:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:33:02 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:32:02 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:31:01 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
Fri Aug 26 15:30:02 2011 error OTRS-otrs.PostMaster.pl-10 Got no email on STDIN!
I don't have do anything with PostMaster.pl, so i don't know why this file is mentioned in the log..
-
- Znuny newbie
- Posts: 12
- Joined: 17 Aug 2011, 15:06
- Znuny Version: 3.0.9
- Real Name: -
- Company: -
Re: OTRS 3.0.9 not auto fetching tickets [2]
Today i have spent time on the auto import e-mail issue, after compare a lot of default files and my files i have fix it.
In the fetchmail script i have set otrs.postmaster.pl and replace this with otrs.postmastermailbox.pl.
Right now every minute there is an auto import e-mail so it works fine, the only issue what i have right now is that the log files says "error sending e-mail"
See log files below:
In the fetchmail script i have set otrs.postmaster.pl and replace this with otrs.postmastermailbox.pl.
Right now every minute there is an auto import e-mail so it works fine, the only issue what i have right now is that the log files says "error sending e-mail"
See log files below:
Code: Select all
Mon Aug 29 16:53:05 2011 notice OTRS-PostMasterMailbox.pl-10 IMAPS: Fetched 1 email(s) from tickets@domein.nl/imap.gmail.com.
Mon Aug 29 16:53:05 2011 notice OTRS-PostMasterMailbox.pl-10 Sent agent 'NewTicket' notification to 'sdekroon@domein.nl'.
[b]Mon Aug 29 16:53:05 2011 info OTRS-PostMasterMailbox.pl-10 Error sending message[/b]
Mon Aug 29 16:53:03 2011 notice OTRS-PostMasterMailbox.pl-10 New Ticket [1000029/test] created (TicketID=29,Queue=Postmaster,Priority=2 Normal,State=new)
Mon Aug 29 16:50:07 2011 notice OTRS-PostMasterMailbox.pl-10 IMAPS: Fetched 1 email(s) from tickets@domein.nl/imap.gmail.com.
-
- Znuny superhero
- Posts: 723
- Joined: 10 Oct 2007, 14:30
- Znuny Version: 3.0
- Location: Hamburg, Germany
Re: OTRS 3.0.9 not auto fetching tickets [2]
Please read the manual
I am almost certain, that you changed your /opt/otrs/var/cron/postmaster_mailbox, but you did not run Cron.sh afterwards, since the old jobs were still alive.
`crontab -l -u otrs` will show you exactly how OTRSs crontab looks like at system level.
Doing a mix of fetchmail with postmaster and postmastermailbox will most likely fail.
I am almost certain, that you changed your /opt/otrs/var/cron/postmaster_mailbox, but you did not run Cron.sh afterwards, since the old jobs were still alive.
`crontab -l -u otrs` will show you exactly how OTRSs crontab looks like at system level.
Doing a mix of fetchmail with postmaster and postmastermailbox will most likely fail.
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
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