[rt-users] Recurring Permissions Errors w/ RT 3.4.0

Brian W. Spolarich bwspolarich at uscar.org
Mon Apr 18 09:42:09 EDT 2005


  Something has changed in my RT enironment that is causing umask or
permissions problems w/ Mason.

  E.g.

  Trying to request /rt/Ticket/Display.html?id=1083:

  Results in:

error:   	Couldn't create object file
/opt/rt3/var/mason_data/obj/standard/Ticket/Display.html: Permission
denied
context:  	
...  	
313:  	{
314:  	if ($tries++ == 3) {
315:  	$self->_compilation_error( $source->friendly_name, "Could not
load or recreate object file after 3 tries" );
316:  	}
317:  	if ($objfilemod < $srcmod) {
318:  	$self->compiler->compile_to_file( file => $objfile, source =>
$source);
319:  	}
320:  	$comp = eval { $self->eval_object_code( object_file => $objfile
) };
321:  	
...  	
code stack:  	/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Interp.pm:317
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm:198
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm:166
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm:68
/usr/lib/perl5/site_perl/5.8.0/Class/Container.pm:275
/usr/lib/perl5/site_perl/5.8.0/Class/Container.pm:353
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Interp.pm:222
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm:899
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm:824
/opt/rt3/bin/webmux.pl:132
-e:0
-e:0

  Here are the permissions that get set on the autocreated directories:

root at ws1:standard# pwd ; ls -l
/opt/rt3/var/mason_data/obj/standard
total 36
-rw-r--r--    1 apache   apache       8973 Apr 18 09:03 autohandler
drwxr-xr-x    2 apache   apache       4096 Apr 18 09:03 Elements
-rw-r--r--    1 apache   apache       6728 Apr 18 09:03 index.html
-rw-r--r--    1 apache   apache       2402 Apr 18 09:03 l
drwxr-xr-x    2 apache   apache       4096 Apr 18 09:03 NoAuth
d---------    2 apache   apache       4096 Apr 18 09:38 Ticket

  If I fix the perms (755) then things proceed, but as soon as Mason has
to compile and create a new file the problem recurs.

  Suggestions?  This was working fine not that long ago, but something
has obviously changed.  The problem seems to be recurrent, as I'll fix
it for a while, then I come back and have to fix it again.  

  -bws

--
Brian W. Spolarich ~ IT Consultant ~ USCAR ~ +1-248-223-9044




More information about the rt-users mailing list