Permission Error in various Folders

Moderator: crythias

Locked
AlexG
Znuny newbie
Posts: 48
Joined: 11 Mar 2011, 08:34
Znuny Version: 3.2.10

Permission Error in various Folders

Post by AlexG »

Hello,

since this Morning I get the following Error every time I send an Email into OTRS.
The mail doesn't appear in OTRS.
I haven't changed anything since Friday (Friday everything worked fine.).
The mail got into the Server via an exchange, then this problem appears:
(Sorry for my bad english)

And of course I have used OTRS_HOME/bin/otrs.SetPermissions.pl.
Thu Nov 17 13:30:30 2011 notice OTRS-otrs.PostMaster.pl-10 Can't create /opt/otrs/var/article/check_permissions_4512: Permission denied, Try: $OTRS_HOME/bin/otrs.SetPermissions.pl !
Thu Nov 17 13:30:00 2011 error OTRS-otrs.PostMaster.pl-10 Error: Can't create /opt/otrs/var/article/check_permissions_4479: Permission denied
Thu Nov 17 13:30:00 2011 notice OTRS-otrs.PostMaster.pl-10 Can't create /opt/otrs/var/article/check_permissions_4479: Permission denied, Try: $OTRS_HOME/bin/otrs.SetPermissions.pl !
Thu Nov 17 13:25:30 2011 error OTRS-otrs.PostMaster.pl-10 Error: Can't create /opt/otrs/var/article/check_permissions_4406: Permission denied
Thu Nov 17 13:25:30 2011 notice OTRS-otrs.PostMaster.pl-10 Can't create /opt/otrs/var/article/check_permissions_4406: Permission denied, Try: $OTRS_HOME/bin/otrs.SetPermissions.pl !
Thu Nov 17 13:25:30 2011 error OTRS-otrs.PostMaster.pl-10 Error: Can't create /opt/otrs/var/article/check_permissions_4401: Permission denied
Thu Nov 17 13:25:30 2011 notice OTRS-otrs.PostMaster.pl-10 Can't create /opt/otrs/var/article/check_permissions_4401: Permission denied, Try: $OTRS_HOME/bin/otrs.SetPermissions.pl !
Thu Nov 17 13:25:30 2011 error OTRS-otrs.PostMaster.pl-10 Error: Can't create /opt/otrs/var/article/check_permissions_4399: Permission denied
Thu Nov 17 13:25:30 2011 notice OTRS-otrs.PostMaster.pl-10 Can't create /opt/otrs/var/article/check_permissions_4399: Permission denied, Try: $OTRS_HOME/bin/otrs.SetPermissions.pl !
Thu Nov 17 13:23:53 2011 error OTRS-otrs.PostMaster.pl-10 Error: Can't create /opt/otrs/var/article/check_permissions_4388: Permission denied
Thu Nov 17 13:23:53 2011 notice OTRS-otrs.PostMaster.pl-10 Can't create /opt/otrs/var/article/check_permissions_4388: Permission denied, Try: $OTRS_HOME/bin/otrs.SetPermissions.pl !
Thu Nov 17 13:18:56 2011 error OTRS-otrs.PostMaster.pl-10 Error: Can't create /opt/otrs/var/article/check_permissions_4324: Permission denied
Thu Nov 17 13:18:56 2011 notice OTRS-otrs.PostMaster.pl-10 Can't create /opt/otrs/var/article/check_permissions_4324: Permission denied, Try: $OTRS_HOME/bin/otrs.SetPermissions.pl !
Last edited by AlexG on 21 Nov 2011, 09:46, edited 3 times in total.
OTRS 3.2.10
ITSM 3.2.9
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Permission Error PostMaster-check_permissions

Post by Wolfgangf »

disc full?
can you show us the permissions of the directory / files of the errormessage?
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
AlexG
Znuny newbie
Posts: 48
Joined: 11 Mar 2011, 08:34
Znuny Version: 3.2.10

Re: Permission Error PostMaster-check_permissions

Post by AlexG »

Nov 17 14:10:29 vmotrs postfix/qmgr[3831]: 0D07518E3B8: from=<me@to-otrs.xx>, size=3005, nrcpt=1 (queue active)
Nov 17 14:10:29 vmotrs postfix/local[4782]: 0D07518E3B8: to=<otrs@otrs.local>, relay=local, delay=1008, delays=1008/0.01/0/0.31, dsn=4.3.0, status=deferred (temporary failure. Command output: >> Can't write /opt/otrs/var/log/otrs.log: Permission denied << >> Can't write /opt/otrs/var/log/otrs.log: Permission denied << ERROR: OTRS-otrs.PostMaster.pl-10 Perl: 5.10.0 OS: linux Time: Thu Nov 17 14:10:29 2011 Message: Error: Can't create /opt/otrs/var/article/check_permissions_4783: Permission denied Try: $OTRS_HOME/bin/otrs.SetPermissions.pl !!! Traceback (4783): Module: /opt/otrs/bin/PostMaster.pl (v1.5) Line: 136 )
-rw-rw-r-- 1 otrs www 1767179 17. Nov 14:14 otrs.log

drwxrwsr-x 3 otrs www 4096 17. Nov 14:13 article -> No Files "check_permissions_xxx" because cant be created

-rwxr-xr-x 1 root www 4170 24. Mär 2011 PostMaster.pl

OTRS-User = otrs
Web-Group = www
Last edited by AlexG on 17 Nov 2011, 15:19, edited 1 time in total.
OTRS 3.2.10
ITSM 3.2.9
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Permission Error PostMaster-check_permissions

Post by jojo »

Postfix has no permissions to write these files
"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
AlexG
Znuny newbie
Posts: 48
Joined: 11 Mar 2011, 08:34
Znuny Version: 3.2.10

Re: Permission Error PostMaster-check_permissions

Post by AlexG »

But why the sudden change?

Which files? only otrs.log or the article folder?
OTRS 3.2.10
ITSM 3.2.9
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Permission Error PostMaster-check_permissions

Post by jojo »

perhaps you did run the otrs set permissions script.

the whole article tree and log file needs to be written by Postfix, otrs and ww-data
"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
AlexG
Znuny newbie
Posts: 48
Joined: 11 Mar 2011, 08:34
Znuny Version: 3.2.10

Re: Permission Error PostMaster-check_permissions

Post by AlexG »

Can i just add Postfix-User to the Group www?



Okay... new permission is set:
-rwxrwxrwx 1 otrs www 1768025 17. Nov 14:30 otrs.log


drwxrwsrwx 3 otrs www 4096 17. Nov 14:30 article
Nov 17 14:36:18 vmotrs postfix/local[5017]: 808F518E3B9: to=<otrsticket@otrs.local>, relay=local, delay=0.37, delays=0.01/0/0/0.36, dsn=4.3.0, status=deferred (temporary failure. Command output: ERROR: OTRS-otrs.PostMaster.pl-10 Perl: 5.10.0 OS: linux Time: Thu Nov 17 14:36:18 2011 Message: mkdir /opt/otrs/var/article/2011/11/17/check_permissions.5041: Permission denied at /data/otrs-3.0.10/Kernel/System/Ticket/ArticleStorageFS.pm line 46 Traceback (5041): Module: /opt/otrs/bin/PostMaster.pl (v1.5) Line: 136 )
Something went really wrong...but I havent changed anything. Yes I used setPermission after the Errors appeared.


Okay it works again i had to use chmod -R 777 on the folder article.

Thanks everyone for the help!
OTRS 3.2.10
ITSM 3.2.9
AlexG
Znuny newbie
Posts: 48
Joined: 11 Mar 2011, 08:34
Znuny Version: 3.2.10

Re: Permission Error PostMaster-check_permissions

Post by AlexG »

Okay same problem again:
Nov 18 11:40:29 vmotrs postfix/local[11612]: 74DCA18E31D: to=<otrsticket@otrs.local>, relay=local, delay=588, delays=588/0.01/0/0.3, dsn=4.3.0, status=deferred (temporary failure. Command output: ERROR: OTRS-otrs.PostMaster.pl-10 Perl: 5.10.0 OS: linux Time: Fri Nov 18 11:40:29 2011 Message: mkdir /opt/otrs/var/article/2011/11/18/check_permissions.11613: Permission denied at /data/otrs-3.0.10/Kernel/System/Ticket/ArticleStorageFS.pm line 46 Traceback (11613): Module: /opt/otrs/bin/PostMaster.pl (v1.5) Line: 136 )
The whole folders unter article have full rwx rights. But new created folders just have 775 so it doesn't work.
OTRS 3.2.10
ITSM 3.2.9
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Permission Error PostMaster-check_permissions

Post by jojo »

change the umask then
"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
AlexG
Znuny newbie
Posts: 48
Joined: 11 Mar 2011, 08:34
Znuny Version: 3.2.10

Re: Permission Error PostMaster-check_permissions

Post by AlexG »

I have changed the ArticleStorageFS.pm, it now creates everything with 777 not just 775.
I will see next Day/Month/Year whether it works or not.

But why did this error appear. Last week everything went fine.

But something new appeared:
Can't write '/opt/otrs/var/tmp/CacheFileStorable//CacheInternalGroup/970e62826fc183bd0d7c4b5445826ce3': Permission denied

How can I change the umask for only .../otrs/...
OTRS 3.2.10
ITSM 3.2.9
AlexG
Znuny newbie
Posts: 48
Joined: 11 Mar 2011, 08:34
Znuny Version: 3.2.10

Re: Permission Error PostMaster-check_permissions

Post by AlexG »

I now had Problems with CacheInternalQueue, CacheInternalTicket, etc..

I have changed Kernel/System/Cache/FileStorable.pm, Kernel/System/CacheInternal.pm.

But this is just a workaround and im searching for the reason.
OTRS 3.2.10
ITSM 3.2.9
Locked