
Hi, I installed OTRS 2.3.2-2 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 Account Management i click 'Run Now!' When I execute the file I get: 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. What can I do to fix it? Thanks

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
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

Hello Michiel,
No, I did not! Thank you. I am a Linux and OTRS beginner. I ran it now:
sudo su - otrs PostMasterMailbox.pl
and I didnt receive any information in the terminal, but the script
didn't fetch any emails. What would be the next step? Where shall I
look now?
Many thanks!
On Wed, Apr 29, 2009 at 12:14 PM, Michiel Beijen
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/

Hi Maxim,
you should first do 'sudo su - otrs' - that will switch you to the OTRS
user.
After that, you can cd to /usr/share/otrs/bin and then run
'./PostMasterMailbox.pl' - you should see output with that.
KR
--
Michiel Beijen
Software Consultant
+31 6 - 457 42 418
Bee Free IT + http://beefreeit.nl
On Wed, Apr 29, 2009 at 14:01, maximx86
Hello Michiel,
No, I did not! Thank you. I am a Linux and OTRS beginner. I ran it now:
sudo su - otrs PostMasterMailbox.pl
and I didnt receive any information in the terminal, but the script didn't fetch any emails. What would be the next step? Where shall I look now?
Many thanks!
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/

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
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/

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
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/

Hello Michiel,
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'
You are completely right and I am just being a muppet! It works perfectly.
The cronjobs for OTRS are NOT installed after using the otrs2 package; please refer to:
I will have a look and give it a try.
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.
I am testing OTRS in vmware now and I guess I will stay for some time with it till I get more familiar with Linux and OTRS. Again thank you for you help. You are a legend! maxim
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/

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/

Hi Maxim, Welcome in the exciting world of unix administration ;-) a. The cronjob should run under user www-data. Then there is no need to 'su' b. perhaps it is because of e-mail, but it appears the script is on a new line. In a 'crontab' you can _never_ use a new line (unless you escape/end it with a "\") For (a): Either "sudo su - www-data" and then "crontab -e" to edit, Or "sudo crontab -e -u ww-data" (edit as 'root' the user's crontab). For (b): once editing, I suggest you fill it with all, or part of the attached file. The crucial part is: # fetch emails every 10 minutes */10 * * * * $HOME/bin/PostMasterMailbox.pl >> /dev/null $HOME suggests it is ranfrom 'otrs' user, so may need to be replaced with the full path, in your case: # fetch emails every 10 minutes */10 * * * * /usr/share/otrs/bin/PostMasterMailbox.pl >> /dev/null Send us the output of sudo crontab -l -u www-data to verify :-) gr, Frans P.S. /usr/share/otrs/var/cron hold the examples. P.P.S. more tips on croin&ubuntu: http://ubuntuforums.org/showthread.php?t=102626&highlight=cron
-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of maximx86 Sent: vrijdag 1 mei 2009 15:40 To: User questions and discussions about OTRS. Subject: Re: [otrs] error executing PostMasterMailbox.pl
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
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
On Wed, Apr 29, 2009 at 3:36 PM, Michiel Beijen
wrote: - www-data'
The cronjobs for OTRS are NOT installed after using the otrs2 package; please refer to:

Hello Michiel
I did like you said and isntalled OTRS from source. The installation
went fine, but when I try to log in a get:
Error: Can't write /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm: Permission denied!
I ran SetPermissions.sh again and heres is the output:
support@otrs:/opt/otrs/bin$ sudo /opt/otrs/bin/SetPermissions.sh
/opt/otrs otrs otrs
SetPermissions.sh <$Revision: 1.35 $> - set OTRS file permissions
Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
bin/SetPermissions.pl <1.3> - set OTRS file permissions
Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
Setting permissions on /opt/otrs
Setting permissions on /opt/otrs/var
Setting permissions on /opt/otrs/bin
Setting permissions on Kernel/Config.pm
support@otrs:/opt/otrs/bin$
I also ran SetPermissions.pl but still get lot of accessdenied
Is there a way of setting permissions manually?
Regards,
maxim
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/

Usually, under Debian/Ubuntu, you should run Setpermission.sh as:
sudo /opt/otrs/bin/SetPermissions.sh /opt/otrs otrs www-data www-data www-data
or, if you run Apache as otrs user (which is not my case, so I'm guessing!) this should change this to:
sudo /opt/otrs/bin/SetPermissions.sh /opt/otrs otrs otrs www-data www-data
if you've put otrs user under group www-data.
-----Messaggio originale-----
Da: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] Per conto di maximx86
Inviato: venerdì 8 maggio 2009 9:45
A: User questions and discussions about OTRS.
Oggetto: Re: [otrs] error executing PostMasterMailbox.pl
Hello Michiel
I did like you said and isntalled OTRS from source. The installation went fine, but when I try to log in a get:
Error: Can't write /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm: Permission denied!
I ran SetPermissions.sh again and heres is the output:
support@otrs:/opt/otrs/bin$ sudo /opt/otrs/bin/SetPermissions.sh /opt/otrs otrs otrs SetPermissions.sh <$Revision: 1.35 $> - set OTRS file permissions Copyright (C) 2001-2009 OTRS AG, http://otrs.org/
bin/SetPermissions.pl <1.3> - set OTRS file permissions Copyright (C) 2001-2009 OTRS AG, http://otrs.org/ Setting permissions on /opt/otrs Setting permissions on /opt/otrs/var Setting permissions on /opt/otrs/bin Setting permissions on Kernel/Config.pm support@otrs:/opt/otrs/bin$
I also ran SetPermissions.pl but still get lot of accessdenied
Is there a way of setting permissions manually?
Regards,
maxim
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/
--------------------------------------------------------------------- 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/
participants (4)
-
CARNINO Daniele (FIAT ITEM)
-
Frans Stekelenburg
-
maximx86
-
Michiel Beijen