
Running the latest GA release on SuSE 9.0. Today we went to create a new ticket by using the "Compose Email" button from within OTRS, and we got an error "Can't write /opt/otrs/var/log/TicketCounter.log: Permission denied". We ran the SetPermissions script but this did not resolve the error. Looking at the TicketCounter.log file, we saw the owner was set to otrs and the group to nobody. We changed this to wwwrun and www, respectively, and the problem went away. I also noticed that postmaster.pl seemed to have stopped running, so we did an rcotrs --restart-force and now all seems well (for the past five minutes, at least!) Two questions: 1. What should the permissions on this log file be? 2. Any recommended "best practices" for monitoring OTRS via Nagios? Thanks! Mark -- ______________________________________________________________ L. Mark Stone President Reliable Networks of Maine, LLC 477 Congress Street, 5th Floor Portland, ME 04107 Tel: (207) 772-5678 Cell: (917) 597-2057 Email: LMStone@RNoME.com Web: http://www.RNoME.com

On Friday, February 27, 2004 7:53 PM
L. Mark Stone
Today we went to create a new ticket by using the "Compose Email" button from within OTRS, and we got an error "Can't write /opt/otrs/var/log/TicketCounter.log: Permission denied".
Two questions: 1. What should the permissions on this log file be?
chmod 664 $OTRSDEST/var/log/TicketCounter.log To prevent you from this in future, use SetPermissions.sh as follows bin/SetPermissions.sh otrs wwwrun www wwwrun www
2. Any recommended "best practices" for monitoring OTRS via Nagios?
Sorry, not at current, but if you'd like to provide something later on, it'd be fine. Regards, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

On Mon, 2004-03-08 at 12:52, Robert Kehl wrote:
On Friday, February 27, 2004 7:53 PM L. Mark Stone
wrote: Today we went to create a new ticket by using the "Compose Email" button from within OTRS, and we got an error "Can't write /opt/otrs/var/log/TicketCounter.log: Permission denied".
Two questions: 1. What should the permissions on this log file be?
chmod 664 $OTRSDEST/var/log/TicketCounter.log
To prevent you from this in future, use SetPermissions.sh as follows
bin/SetPermissions.sh otrs wwwrun www wwwrun www
Robert, The line above generates errors for me. If I run ./SetPermissions.sh with no arguments, I get the syntax as: OTRS_HOME OTRS_USER WEBSERVER_USER OTRS_GROUP WEBSERVER_GROUP. The example leaves off the groups, btw. So, from /opt/otrs/bin, I ran: ./SetPermissions.sh /opt/otrs otrs wwwrun www wwwrun, and that completed with no errors. Now, hopefully the file will stay writeable! Thanks, Mark -- ______________________________________________________________ L. Mark Stone President Reliable Networks of Maine, LLC 477 Congress Street, 5th Floor Portland, ME 04107 Tel: (207) 772-5678 Cell: (917) 597-2057 Email: LMStone@RNoME.com Web: http://www.RNoME.com

On Monday, March 08, 2004 11:13 PM
L. Mark Stone
On Mon, 2004-03-08 at 12:52, Robert Kehl wrote:
bin/SetPermissions.sh otrs wwwrun www wwwrun www
Ouch - sorry for that! Got messed up due to wwwrun/www confusionators. (blush)
So, from /opt/otrs/bin, I ran: ./SetPermissions.sh /opt/otrs otrs wwwrun www wwwrun, and that completed with no errors.
Glad to hear that.
Now, hopefully the file will stay writeable!
It will! Regards, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
participants (2)
-
L. Mark Stone
-
Robert Kehl