
Hi Michiel,
I am sorry I have to bore you again I am having problems with
installing the conrjob for PostMasterMailbox.pl. I tried to get some
help on different forums to no avail.
So the command I run manually is:
sudo su - www-data
cd /usr/share/otrs/bin
./PostMasterMailbox.pl
this works
the cronjob I tried
*/10 * * * * sudo su - www-data
/usr/share/otrs/bin/PostMasterMailbox.pl >> /dev/null
I am being asked for the password and then I get
/usr/share/otrs/bin/PostMasterMailbox.pl: 23: use: not found
/usr/share/otrs/bin/PostMasterMailbox.pl: 24: use: not found
/usr/share/otrs/bin/PostMasterMailbox.pl: 27: use: not found
/usr/share/otrs/bin/PostMasterMailbox.pl: 28: Syntax error: "(" unexpected
Press ENTER to continue and close this window.
I was told to try
*/1 * * * * www-data /usr/share/otrs/bin/PostMasterMailbox.pl >> /dev/null
still no luck
help please! :)
thank you
On Wed, Apr 29, 2009 at 3:36 PM, Michiel Beijen
So OK, here's the catch..
I found out that the otrs2 package on Debian/Ubuntu uses the www-data user for this. If you'd like to run PostMasterMailbox.pl by hand you'd use 'sudo su - www-data'
The cronjobs for OTRS are NOT installed after using the otrs2 package; please refer to:
http://doc.otrs.org/2.3/en/html/x414.html#cronjobs
Also, there's an issue with the configuration of Apache2::Reload if you are using the otrs2 package; see bug http://bugs.otrs.org/show_bug.cgi?id=3811 -this renders the Package Manager unusable.
What you could do is to install OTRS from sourceĀ - as I explained in the bug. It's not that much work.
Kind regards, -- Michiel Beijen Software Consultant +31 6 - 457 42 418 Bee Free IT + http://beefreeit.nl
On Wed, Apr 29, 2009 at 14:33, maximx86
wrote: Hi Michiel,
Right, I've done exactly like you said:
maximx86@MAXIM:~$ sudo su - otrs maximx86@MAXIM:~$ maximx86@MAXIM:~$ cd /usr/share/otrs/bin maximx86@MAXIM:/usr/share/otrs/bin$ maximx86@MAXIM:/usr/share/otrs/bin$ ./PostMasterMailbox.pl Can't locate /etc/otrs/database.pm in @INC (@INC contains: /usr/share/otrs/Kernel/cpan-lib /usr/share/otrs /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/otrs/Kernel/Config.pm line 25. BEGIN failed--compilation aborted at /usr/share/otrs/Kernel/Config.pm line 35. Compilation failed in require at ./PostMasterMailbox.pl line 36. BEGIN failed--compilation aborted at ./PostMasterMailbox.pl line 36. maximx86@MAXIM:/usr/share/otrs/bin$
Got the same error msg... :(
I found this info but not sure how to follow http://lists.otrs.org/pipermail/otrs/2008-July/023999.html
Thanks again! On Wed, Apr 29, 2009 at 12:14 PM, Michiel Beijen
wrote: Could this just be a permissions issue? When you run it from the web you'll run it as the OTRS user; did you do 'sudo su - otrs' before you tried running PostMasterMailbox.pl? -- Michiel Beijen Software Consultant +31 6 - 457 42 418 Bee Free IT + http://beefreeit.nl
On Wed, Apr 29, 2009 at 12:07, maximx86
wrote: on Ubuntu 9.04 from its repositories. It works perfectly, The only thing I cannot get set up is PostMasterMailbox.pl to schedule fetching emails from the POP account.
It works fine when in Mail
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/