<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi Keith,<br>
<br>
I am not sure I understand 100% what permissions to the "perl mode"
means.<br>
<br>
But the line calling File::Path in /usr/sbin/webmux.pl refers to "<tt>$RT::MasonDataDir",
which </tt>points to /var/cache/rt/mason_data/.<br>
<br>
The content and permissions of that folder is the following:<br>
<br>
<tt>drwxrwx--- 5 apache apache 38 2011-01-18 01:06 ./<br>
drwxr-xr-x 4 root root 42 2011-01-18 01:06 ../<br>
drwxrwx--- 2 apache apache 6 2011-01-18 01:06 cache/<br>
drwxrwx--- 2 apache apache 6 2011-01-18 01:06 etc/<br>
drwxrwx--- 3 apache apache 50 2011-01-18 01:06 obj/<br>
<br>
The "obj" dir has session related files in it (That are recreated
by apache if I empty the folders) all created by apache, and
apache also has the permissions to delete the files <br>
</tt><br>
<br>
It looks like webmux.pl is trying to clean out the
/var/cache/rt/mason_data/obj folder and failing for some reason,
with "Insecure dependency in mkdir while running with -T switch at
/usr/lib/perl5/5.10.1/File/Path.pm line 108, line 2.
"<br>
<br>
<tt>if ( $ENV{'MOD_PERL'} &&
!RT->Config->Get('DevelMode')) {<br>
# Under static_source, we need to purge the component cache<br>
# each time we restart, so newer components may be reloaded.<br>
#<br>
# We can't do this in FastCGI or we'll blow away the component<br>
# root _every_ time a new server starts which happens every
few<br>
# hits.<br>
<br>
require File::Path;<br>
require File::Glob;<br>
my @files = File::Glob::bsd_glob("$RT::MasonDataDir/obj/*");<br>
File::Path::rmtree([ @files ], 0, 1) if @files;<br>
}<br>
<br>
1;<br>
</tt><br>
<br>
Kim P<br>
<br>
<br>
<br>
<br>
On 2011-01-18 02:32, Schincke, Keith D. (JSC-IT)[DB Consulting
Group, Inc.] wrote:
<blockquote cite="mid:4137829F-F6FB-4374-8EAD-0C766AE7BD83@nasa.gov"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<style>
<!--
.EmailQuote
{margin-left:1pt;
padding-left:4pt;
border-left:#800000 2px solid}
-->
</style>What are the directory permissions to the perl mode?<br>
One of the directories or the Path.pm file may not allow the web
process to access the file.<br>
<br>
Keith<br>
<br>
<br>
Sent from my Verizon Wireless Phone<br>
<br>
<div id="htc_header" style="">----- Reply message -----<br>
From: "Kim Pedersen" <a class="moz-txt-link-rfc2396E" href="mailto:lists@kimp.org"><lists@kimp.org></a><br>
Date: Mon, Jan 17, 2011 11:28 pm<br>
Subject: [rt-users] webmux.pl - Insecure dependency in chdir
while running with -T switch<br>
To: <a class="moz-txt-link-rfc2396E" href="mailto:rt-users@lists.bestpractical.com">"rt-users@lists.bestpractical.com"</a>
<a class="moz-txt-link-rfc2396E" href="mailto:rt-users@lists.bestpractical.com"><rt-users@lists.bestpractical.com></a><br>
<br>
</div>
<font size="2">
<div class="PlainText"><br>
Hi everyone,.<br>
<br>
I am installing a cloned copy of our live 3.8.8 RT
installation (To test <br>
a restoration/reinstallation and later to play with the 3.9.4
release).<br>
<br>
The new server is running Apache 2.2.15 with mod_perl 2.0.4 on
Mandriva <br>
2010.1 x64, with Postgresql 9.0 - which is the same as the
live server.<br>
<br>
And the RT version is installed from RPM (built from a
modified Mandriva <br>
.spec file, updated to work with 3.8.8)<br>
<br>
After installing RT I can't start Apache any longer and I am
stuck with <br>
the following problem in my apache log:<br>
<br>
[error] Insecure dependency in chdir while running with -T
switch at <br>
/usr/lib/perl5/5.10.1/File/Path.pm line 250.\nCompilation
failed in <br>
require at (eval 2) line 1.\n<br>
[error] Can't load Perl file: /usr/sbin/webmux.pl for server <br>
<a moz-do-not-send="true" href="http://www.testserver.com:0">www.testserver.com:0</a>,
exiting...<br>
<br>
<br>
If I run webmux.pl manually as root, there are no Perl errors.
A "make <br>
testdeps" from the RT sources show all dependencies being okay
as well.<br>
The RT config files are the same as on the live server -
File::Path is <br>
called at the end of webmux.pl, but I am just lost for what to
look for <br>
/ how to troubleshoot this.<br>
<br>
<br>
Any hints / pointers?<br>
<br>
<br>
Regards<br>
<br>
Kim P<br>
<br>
<br>
</div>
</font>
</blockquote>
<br>
</body>
</html>