[Gluster-users] Permission problems with Apache

André Bauer abauer at magix.net
Fri Jan 17 15:40:32 UTC 2014


Hello List,

it seem i got my problem solved.

The problem is caused by this OTRS file:

https://github.com/OTRS/otrs/blob/rel-2_4/Kernel/System/Ticket/ArticleStorageFS.pm

It works if i uncoment:

# check fs write permissions!
my $Path = 
"$Self->{ArticleDataDir}/$Self->{ArticleContentPath}/check_permissions.$$";
if ( -d $Path ) {
File::Path::rmtree( [$Path] ) || die "Can't remove $Path: $!\n";
}
if ( mkdir( "$Self->{ArticleDataDir}/check_permissions_$$", 022 ) ) {
if ( !rmdir("$Self->{ArticleDataDir}/check_permissions_$$") ) {
die "Can't remove $Self->{ArticleDataDir}/check_permissions_$$: $!\n";
}
if ( File::Path::mkpath( [$Path], 0, 0775 ) ) {
File::Path::rmtree( [$Path] ) || die "Can't remove $Path: $!\n";
}
}
else {
my $Error = $!;
$Self->{LogObject}->Log(
Priority => 'notice',
Message => "Can't create $Self->{ArticleDataDir}/check_permissions_$$: 
$Error, "
. "Try: \$OTRS_HOME/bin/SetPermissions.pl !",
);
die "Error: Can't create $Self->{ArticleDataDir}/check_permissions_$$: 
$Error \n\n "
. "Try: \$OTRS_HOME/bin/SetPermissions.pl !!!\n";
}
return 1;



After that evrything file related works fine so far. No errors in any 
logs...

Can somebody explain whats causing the error?

Mit freundlichen Grüßen

André Bauer

MAGIX Software GmbH
André Bauer
Administrator
Postfach 200914
01194 Dresden

Tel. Support Deutschland: 0900/1771115 (1,24 Euro/Min.)
Tel. Support Österreich:  0900/454571 (1,56 Euro/Min.)
Tel. Support Schweiz:     0900/454571 (1,50 CHF/Min.)

Email: mailto:abauer at magix.net
Web:   http://www.magix.com

Geschäftsführer | Managing Directors: Dr. Arnd Schröder, Erhard Rein, Michael Keith, Tilman Herberger
Amtsgericht | Commercial Register: Berlin Charlottenburg, HRB 127205

The information in this email is intended only for the addressee named
above. Access to this email by anyone else is unauthorized. If you are
not the intended recipient of this message any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and
may be unlawful.

MAGIX does not warrant that any attachments are free from viruses or
other defects and accepts no liability for any losses resulting from
infected email transmissions. Please note that any views expressed in
this email may be those of the originator and do not necessarily
represent the agenda of the company.

Am 16.01.2014 19:03, schrieb André Bauer:
> Hello Gluster community,
>
> i'm trying to move my OTRS filesystem from DRBD to Glusterfs on Ubuntu 
> 12.04 Server using Gluster 3.4.2 via the deb files of the semiosis ppa.
> I allredy run my samba and kvm on glusterfs which are running fine.
>
> I created a new gfs volume and rsynced all OTRS files to it without 
> problems.
> All files are user/group otrs with uid 1001 which exists on server and 
> client.
>
> Webserver (which is running as otrs user too) is restarting without 
> problems but when i try to access the otrs site i get a 500 because of 
> permission problems.
> Accessing the files as root or otrs user from a shell works.
>
> Here is the Gluster client log: http://pastie.org/8639756
> Here is the Gluster server log: http://pastie.org/8639760
>
>
> Any hints?
>




More information about the Gluster-users mailing list