You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Boysenberry Payne <bo...@humaniteque.com> on 2005/10/18 00:15:53 UTC

Error while using Apache2::Reload

I'm getting the following error while trying to use Apache2::Reload
on Apache/2.0.55 (Unix) PHP/5.0.5 DAV/2 mod_apreq2-20050712/2.5.2-dev 
mod_perl/2.0.2-dev Perl/v5.8.7

Can't locate mod_perl.pm in @INC (@INC contains: 
/Users/boysie/mod_perl_inc /opt/local/lib/perl5/5.8.7/darwin-2level 
/opt/local/lib/perl5/5.8.7 
/opt/local/lib/perl5/site_perl/5.8.7/darwin-2level 
/opt/local/lib/perl5/site_perl/5.8.7 /opt/local/lib/perl5/site_perl 
/opt/local/lib/perl5/vendor_perl/5.8.7/darwin-2level 
/opt/local/lib/perl5/vendor_perl/5.8.7 /opt/local/lib/perl5/vendor_perl 
/usr/local/apache2) at 
/opt/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/Reload.pm 
line 160.\n

How do I fix this?

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com


Re: Error while using Apache2::Reload

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Perrin Harkins wrote:
> It seems
> likely that you are either running a different version of Reload than
> you think you are, or else have some old junk left in your @INC from a
> previous installation of mod_perl.
Thats what I thought.  Though there was a change relating to this in 
2.0.2-dev now 2.0.2.  I've just not had a chance to test it yet.


http://svn.apache.org/viewcvs.cgi?rev=280262&view=rev


-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com


Re: Error while using Apache2::Reload

Posted by Perrin Harkins <pe...@elem.com>.
On Mon, 2005-10-31 at 13:51 -0800, Tyler MacDonald wrote:
> 	"make uninstall" / ExtUtils::Install::uninstall(/path/to/.packlist)
> aren't official? I suppose you'd have to have the old pacakage's source tree
> still laying around...

Sure, if you have the .packlist for the old module, give that a try.  It
may require reinstalling the new mod_perl afterward though, in case
there is any overlap in file names.

- Perrin


Re: Error while using Apache2::Reload

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
>> hmm, what was the rationale from changing it from __FILE__ to /dev/null?
>> just Apache2::Status?  why not undef instead of some fake entry?  it's
>> just
>>  a hash afterall :)
> 
> I originally had a patch for Apache2::Status for mod_perl.pm
> specifically so that you didn't get two lines displayed for for
> mod_perl2.pm and 1 for mod_perl.pm.... Very confusing if you had both in
> the same perl tree.
> 
> Stas suggested that rather then trying to patch each and every thing
> that relies on it, we patch the source lib/mod_perl.pm with the SVN
> commit above.  I agreed.

ok.

well, let's see if the patch for Apache2::Request helps a bit (I wasn't able
to quickly reproduce the error in the mp2 test suite).  if it does I guess
we'll be ok.  well, we might want to propagate a similar change to
Apache::Reload on CPAN and Apache::StatINC in mp1...

--Geoff

Re: Error while using Apache2::Reload

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Geoffrey Young wrote:
>>>I think this is the same problem that just came up in a different
>>>circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.
>>
>>Geoff, Stas and I had a converstation about this before which led to a
>>change
>>
>>http://svn.apache.org/viewcvs.cgi?rev=280262&view=rev
>>
>>I agree, that this needs to change, but it should make use of that?
> 
> 
> hmm, what was the rationale from changing it from __FILE__ to /dev/null?
> just Apache2::Status?  why not undef instead of some fake entry?  it's just
>  a hash afterall :)
I originally had a patch for Apache2::Status for mod_perl.pm 
specifically so that you didn't get two lines displayed for for 
mod_perl2.pm and 1 for mod_perl.pm.... Very confusing if you had both in 
the same perl tree.

Stas suggested that rather then trying to patch each and every thing 
that relies on it, we patch the source lib/mod_perl.pm with the SVN 
commit above.  I agreed.



-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com


Re: Error while using Apache2::Reload

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
>> I think this is the same problem that just came up in a different
>> circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.
> 
> Geoff, Stas and I had a converstation about this before which led to a
> change
> 
> http://svn.apache.org/viewcvs.cgi?rev=280262&view=rev
> 
> I agree, that this needs to change, but it should make use of that?

hmm, what was the rationale from changing it from __FILE__ to /dev/null?
just Apache2::Status?  why not undef instead of some fake entry?  it's just
 a hash afterall :)

--Geoff



Re: Error while using Apache2::Reload

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Geoffrey Young wrote:
> 
> Boysenberry Payne wrote:
> 
>>Well I've tried to reinstall perl, apache2 and mod_perl.
>>I have the @lib trimmed down too.  Still get the same error.
>>Anything else I can do?
>>
>>Here is the error again:
>>
>>Can't locate mod_perl.pm in @INC (@INC contains:
>>/Users/boysie/mod_perl_inc /usr/local/lib/perl5/5.8.7/darwin-2level
>>/usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5
>>/usr/local/lib/perl5/site_perl/5.8.7/darwin-2level
>>/usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .)
>>at /usr/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/Reload.pm
>>line 160.
> 
> 
> I think this is the same problem that just came up in a different
> circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.
Geoff, Stas and I had a converstation about this before which led to a 
change

http://svn.apache.org/viewcvs.cgi?rev=280262&view=rev

I agree, that this needs to change, but it should make use of that?

-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com


Re: Error while using Apache2::Reload

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Boysenberry Payne wrote:
> How do I apply the patch?  I'm still a little wet behind the ears, 
> please excuse me...
For one this simply, you could just go edit the INSTALLED version of Reload.pm...

On the other hand in general, you would
cd mod_perl-2.0.2-src
patch < /path/to/patch
make all install

> 
> Thanks,
> Boysenberry
> 
> boysenberrys.com | habitatlife.com | selfgnosis.com
> 
> On Nov 1, 2005, at 10:20 AM, Geoffrey Young wrote:
> 
>>
>> I think this is the same problem that just came up in a different
>> circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.
>>
>> try this patch
>>
>> --Geoff
>> Index: lib/Apache2/Reload.pm
>> ===================================================================
>> --- lib/Apache2/Reload.pm    (revision 328346)
>> +++ lib/Apache2/Reload.pm    (working copy)
>> @@ -135,6 +135,7 @@
>>          my $file = $Apache2::Reload::INCS{$key};
>>
>>          next unless defined $file;
>> +        next unless -f $file;       # don't try to reload /dev/null
>>          next if @watch_dirs && !grep { $file =~ /^$_/ } @watch_dirs;
>>          warn "Apache2::Reload: Checking mtime of $key\n" if $DEBUG;
>>


-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com

Re: Error while using Apache2::Reload

Posted by Boysenberry Payne <bo...@humaniteque.com>.
How do I apply the patch?  I'm still a little wet behind the ears, 
please excuse me...

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 1, 2005, at 10:20 AM, Geoffrey Young wrote:
>
> I think this is the same problem that just came up in a different
> circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.
>
> try this patch
>
> --Geoff
> Index: lib/Apache2/Reload.pm
> ===================================================================
> --- lib/Apache2/Reload.pm	(revision 328346)
> +++ lib/Apache2/Reload.pm	(working copy)
> @@ -135,6 +135,7 @@
>          my $file = $Apache2::Reload::INCS{$key};
>
>          next unless defined $file;
> +        next unless -f $file;       # don't try to reload /dev/null
>          next if @watch_dirs && !grep { $file =~ /^$_/ } @watch_dirs;
>          warn "Apache2::Reload: Checking mtime of $key\n" if $DEBUG;
>


Re: Error while using Apache2::Reload

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Boysenberry Payne wrote:
> Well I've tried to reinstall perl, apache2 and mod_perl.
> I have the @lib trimmed down too.  Still get the same error.
> Anything else I can do?
> 
> Here is the error again:
> 
> Can't locate mod_perl.pm in @INC (@INC contains:
> /Users/boysie/mod_perl_inc /usr/local/lib/perl5/5.8.7/darwin-2level
> /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5
> /usr/local/lib/perl5/site_perl/5.8.7/darwin-2level
> /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .)
> at /usr/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/Reload.pm
> line 160.

I think this is the same problem that just came up in a different
circumstance - $INC{'mod_perl.pm'} being a virtual file in mp2.

try this patch

--Geoff

Re: Error while using Apache2::Reload

Posted by Boysenberry Payne <bo...@humaniteque.com>.
Well I've tried to reinstall perl, apache2 and mod_perl.
I have the @lib trimmed down too.  Still get the same error.
Anything else I can do?

Here is the error again:

Can't locate mod_perl.pm in @INC (@INC contains: 
/Users/boysie/mod_perl_inc /usr/local/lib/perl5/5.8.7/darwin-2level 
/usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5 
/usr/local/lib/perl5/site_perl/5.8.7/darwin-2level 
/usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .) 
at /usr/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/Reload.pm 
line 160.

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 31, 2005, at 4:45 PM, Tyler MacDonald wrote:

> Boysenberry Payne <bo...@humaniteque.com> wrote:
>> I would like to do the "make uninstall" approach below first before
>> going
>> through reinstalling perl and MP2.
>> Before I do this I want to make sure I have the right syntax first.
>> would I just type 'make uninstall' in the source directory for MP2 
>> RC5?
>> Or do I need to put together a script that will run
>> 'ExtUtils::Install::uninstall(/path/to/.packlist)'
>> Where /path/to.packlist is what?
>
> 	From what I gather, if you've never done a "make clean" in your
> original source directory, "make uninstall" should do it. If not, on my
> system, the .packlist files get stuck in 
> /usr/local/lib/perl/5.8.7/auto/...
> and it looks like you can just do something like;
>
> 	cat /usr/local/lib/perl/5.8.7/auto/Devel/Cover/.packlist | xargs rm 
> -vf
>
> 	But I'd try "make uninstall" first.
>
> 		- Tyler
>
>
>


Re: Error while using Apache2::Reload

Posted by Tyler MacDonald <ty...@yi.org>.
Boysenberry Payne <bo...@humaniteque.com> wrote:
> I would like to do the "make uninstall" approach below first before 
> going
> through reinstalling perl and MP2.
> Before I do this I want to make sure I have the right syntax first.
> would I just type 'make uninstall' in the source directory for MP2 RC5?
> Or do I need to put together a script that will run 
> 'ExtUtils::Install::uninstall(/path/to/.packlist)'
> Where /path/to.packlist is what?

	From what I gather, if you've never done a "make clean" in your
original source directory, "make uninstall" should do it. If not, on my
system, the .packlist files get stuck in /usr/local/lib/perl/5.8.7/auto/...
and it looks like you can just do something like;

	cat /usr/local/lib/perl/5.8.7/auto/Devel/Cover/.packlist | xargs rm -vf

	But I'd try "make uninstall" first.

		- Tyler


Re: Error while using Apache2::Reload

Posted by Boysenberry Payne <bo...@humaniteque.com>.
I still have the original source.
But I think the reason this is happening is because I used
Darwin Port (a Darwin package installer) to install my original MP 2.
Then,  when I installed MP2 RC5 from source I started getting the error.
I used the port uninstall the package first, but maybe it didn't work.

I would like to do the "make uninstall" approach below first before 
going
through reinstalling perl and MP2.
Before I do this I want to make sure I have the right syntax first.
would I just type 'make uninstall' in the source directory for MP2 RC5?
Or do I need to put together a script that will run 
'ExtUtils::Install::uninstall(/path/to/.packlist)'
Where /path/to.packlist is what?

Thanks for all the help,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 31, 2005, at 3:51 PM, Tyler MacDonald wrote:

> Perrin Harkins <pe...@elem.com> wrote:
>>> If it is "some old junk" left in the @INC how would I go about
>>> correcting it?
>>
>> My approach would be to start with a new Perl install and a new
>> mod_perl.  There is no official way to uninstall a Perl module, so 
>> it's
>> hard to be sure that you got everything related to the previous 
>> Apache2
>> build.
>
> 	"make uninstall" / ExtUtils::Install::uninstall(/path/to/.packlist)
> aren't official? I suppose you'd have to have the old pacakage's 
> source tree
> still laying around...
>
> 	- Tyler
>
>
>


Re: Error while using Apache2::Reload

Posted by Tyler MacDonald <ty...@ActiveState.com>.
Perrin Harkins <pe...@elem.com> wrote:
> > If it is "some old junk" left in the @INC how would I go about 
> > correcting it?
> 
> My approach would be to start with a new Perl install and a new
> mod_perl.  There is no official way to uninstall a Perl module, so it's
> hard to be sure that you got everything related to the previous Apache2
> build.

	"make uninstall" / ExtUtils::Install::uninstall(/path/to/.packlist)
aren't official? I suppose you'd have to have the old pacakage's source tree
still laying around...

	- Tyler


Re: Error while using Apache2::Reload

Posted by Perrin Harkins <pe...@elem.com>.
On Mon, 2005-10-31 at 15:01 -0600, Boysenberry Payne wrote:
> If it is "some old junk" left in the @INC how would I go about 
> correcting it?

My approach would be to start with a new Perl install and a new
mod_perl.  There is no official way to uninstall a Perl module, so it's
hard to be sure that you got everything related to the previous Apache2
build.

I'm sorry I can't offer something more specific, but it's very difficult
to debug a problem on someone else's system that can't be replicated.
Maybe you can talk to this other person who has the problem, and see
what you have in common (both on OS X, both upgraded from an older mp2
version, etc.)

- Perrin


Re: Error while using Apache2::Reload

Posted by Boysenberry Payne <bo...@humaniteque.com>.
Actually someone sent me an off list message saying they had the same 
problem after installing
the latest MP upgrade.
If it is "some old junk" left in the @INC how would I go about 
correcting it?
If I'm not mistaken Apache2::Reload is a part of the MP2 install, so I 
can't
just reinstall Apache2::Reload.

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 31, 2005, at 2:56 PM, Perrin Harkins wrote:

> On Mon, 2005-10-31 at 14:44 -0600, Boysenberry Payne wrote:
>> Should I just edit out the line in Apache2::Reload that checks for 
>> MP2?
>
> The fact that you're having this problem and no one else is reporting 
> it
> probably means that something is wrong with your system, not with
> Apache2::Reload.  If possible, try it on another system.  It seems
> likely that you are either running a different version of Reload than
> you think you are, or else have some old junk left in your @INC from a
> previous installation of mod_perl.
>
> In short, editing that line is unlikely to fix the real problem here.
>
> - Perrin
>
>
>


Re: Error while using Apache2::Reload

Posted by Perrin Harkins <pe...@elem.com>.
On Mon, 2005-10-31 at 14:44 -0600, Boysenberry Payne wrote:
> Should I just edit out the line in Apache2::Reload that checks for MP2?

The fact that you're having this problem and no one else is reporting it
probably means that something is wrong with your system, not with
Apache2::Reload.  If possible, try it on another system.  It seems
likely that you are either running a different version of Reload than
you think you are, or else have some old junk left in your @INC from a
previous installation of mod_perl.

In short, editing that line is unlikely to fix the real problem here.

- Perrin


Re: Error while using Apache2::Reload

Posted by Boysenberry Payne <bo...@humaniteque.com>.
Should I just edit out the line in Apache2::Reload that checks for MP2?

Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 29, 2005, at 5:01 AM, Boysenberry Payne wrote:

> I still haven't been able to get Apache2::Reload working after my MP  
> 2.0.0 RC5
> upgrade.  I even tried to reinstall to no avail.  Does anyone know how  
> to get this working?
> Did I miss something in Philip M. Gollucci's post?
>
> Thanks,
> Boysenberry
>
> boysenberrys.com | habitatlife.com | selfgnosis.com
>
> On Oct 18, 2005, at 12:37 PM, Boysenberry Payne wrote:
>
>>> Did you specificy mod_perl.pm as file to reload in the config by  
>>> accident?
>>
>> No, it started happening just after the MP 2.0.0 RC5 upgrade...
>>
>> This is what I got as a return from:
>> find /Users/boysie/mod_perl_inc /opt/local/lib/perl5 -name Reload.pm  
>> | xargs grep -n mod_perl
>>
>> 20:use mod_perl2;
>> 391:path. Now remember that mod_perl freezes the value of C<@INC> at  
>> the
>> 505:are used, not every interpreters at once.  Similar to mod_perl 1.0
>> 537:mod_perl 2.0 and its core modules are copyrighted under
>> 545:Stas Bekman (porting to mod_perl 2.0)
>> 548:and C<Apache::StatINC> (mod_perl 1.x) by Doug MacEachern and Ask
>>
>>
>>
>> Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com
>>
>> On Oct 18, 2005, at 12:49 AM, Philip M. Gollucci wrote:
>>
>>> Boysenberry Payne wrote:
>>>> I'm getting the following error while trying to use Apache2::Reload
>>>> on Apache/2.0.55 (Unix) PHP/5.0.5 DAV/2  
>>>> mod_apreq2-20050712/2.5.2-dev mod_perl/2.0.2-dev Perl/v5.8.7
>>>> Can't locate mod_perl.pm in @INC (@INC contains:  
>>>> /Users/boysie/mod_perl_inc /opt/local/lib/perl5/5.8.7/darwin-2level  
>>>> /opt/local/lib/perl5/5.8.7  
>>>> /opt/local/lib/perl5/site_perl/5.8.7/darwin-2level  
>>>> /opt/local/lib/perl5/site_perl/5.8.7 /opt/local/lib/perl5/site_perl  
>>>> /opt/local/lib/perl5/vendor_perl/5.8.7/darwin-2level  
>>>> /opt/local/lib/perl5/vendor_perl/5.8.7  
>>>> /opt/local/lib/perl5/vendor_perl /usr/local/apache2) at  
>>>> /opt/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/ 
>>>> Reload.pm line 160.\n
>>> The only thing I can think of is that you have an Apache2::Reload in  
>>> your inc path from a pre 2.0.0 RC5 release that is being found  
>>> before the one from Apache2::Reload from 2.0.2-dev. Did you  
>>> specificy mod_perl.pm as file to reload in the config by accident?
>>>
>>> find /Users/boysie/mod_perl_inc /opt/local/lib/perl5 -name Reload.pm  
>>> | xargs \ 	
>>> 	grep -n mod_perl
>>>
>>> Here's the loop from Reload.pm
>>>
>>> Anyone think the
>>> $INC{"mod_perl.pm"} = File::Spec::Functions::devnull();
>>> change in mod_perl2.pm could be causing this.... I don't have time  
>>> to test it at the moment.
>>>
>>> foreach my $key (sort { $a cmp $b } keys %Apache2::Reload::INCS) {
>>>         my $file = $Apache2::Reload::INCS{$key};
>>>
>>>         next unless defined $file;
>>>         next if @watch_dirs && !grep { $file =~ /^$_/ } @watch_dirs;
>>>         warn "Apache2::Reload: Checking mtime of $key\n" if $DEBUG;
>>>
>>>         my $mtime = (stat $file)[9];
>>>
>>>         unless (defined($mtime) && $mtime) {
>>>             for (@INC) {
>>>                 $mtime = (stat "$_/$file")[9];
>>>                 last if defined($mtime) && $mtime;
>>>             }
>>>         }
>>>
>>>         warn("Apache2::Reload: Can't locate $file\n"), next
>>>             unless defined $mtime and $mtime;
>>>
>>>         unless (defined $Stat{$file}) {
>>>             $Stat{$file} = $^T;
>>>         }
>>>
>>>         if ($mtime > $Stat{$file}) {
>>>             my $package = module_to_package($key);
>>>             ModPerl::Util::unload_package($package);
>>>             require $key;
>>>             warn("Apache2::Reload: process $$ reloading $package  
>>> from $key\n")
>>>                     if $DEBUG;
>>>         }
>>>         $Stat{$file} = $mtime;
>>> }
>>>
>>>
>>> -- 
>>> END
>>> ------------------------------------------------------------
>>>     What doesn't kill us can only make us stronger.
>>>                 Nothing is impossible.
>>> 				
>>> Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
>>> Consultant / http://p6m7g8.net/Resume/
>>> Senior Developer / Liquidity Services, Inc.
>>>   http://www.liquidityservicesinc.com
>>>        http://www.liquidation.com
>>>        http://www.uksurplus.com
>>>        http://www.govliquidation.com
>>>        http://www.gowholesale.com
>>>
>>>
>>
>>
>>
>
>
>


Re: Error while using Apache2::Reload

Posted by Boysenberry Payne <bo...@humaniteque.com>.
I still haven't been able to get Apache2::Reload working after my MP 
2.0.0 RC5
upgrade.  I even tried to reinstall to no avail.  Does anyone know how 
to get this working?
Did I miss something in Philip M. Gollucci's post?

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 18, 2005, at 12:37 PM, Boysenberry Payne wrote:

>> Did you specificy mod_perl.pm as file to reload in the config by 
>> accident?
>
> No, it started happening just after the MP 2.0.0 RC5 upgrade...
>
> This is what I got as a return from:
> find /Users/boysie/mod_perl_inc /opt/local/lib/perl5 -name Reload.pm | 
> xargs grep -n mod_perl
>
> 20:use mod_perl2;
> 391:path. Now remember that mod_perl freezes the value of C<@INC> at 
> the
> 505:are used, not every interpreters at once.  Similar to mod_perl 1.0
> 537:mod_perl 2.0 and its core modules are copyrighted under
> 545:Stas Bekman (porting to mod_perl 2.0)
> 548:and C<Apache::StatINC> (mod_perl 1.x) by Doug MacEachern and Ask
>
>
>
> Thanks,
> Boysenberry
>
> boysenberrys.com | habitatlife.com | selfgnosis.com
>
> On Oct 18, 2005, at 12:49 AM, Philip M. Gollucci wrote:
>
>> Boysenberry Payne wrote:
>>> I'm getting the following error while trying to use Apache2::Reload
>>> on Apache/2.0.55 (Unix) PHP/5.0.5 DAV/2 
>>> mod_apreq2-20050712/2.5.2-dev mod_perl/2.0.2-dev Perl/v5.8.7
>>> Can't locate mod_perl.pm in @INC (@INC contains: 
>>> /Users/boysie/mod_perl_inc /opt/local/lib/perl5/5.8.7/darwin-2level 
>>> /opt/local/lib/perl5/5.8.7 
>>> /opt/local/lib/perl5/site_perl/5.8.7/darwin-2level 
>>> /opt/local/lib/perl5/site_perl/5.8.7 /opt/local/lib/perl5/site_perl 
>>> /opt/local/lib/perl5/vendor_perl/5.8.7/darwin-2level 
>>> /opt/local/lib/perl5/vendor_perl/5.8.7 
>>> /opt/local/lib/perl5/vendor_perl /usr/local/apache2) at 
>>> /opt/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/Reload.pm 
>>> line 160.\n
>> The only thing I can think of is that you have an Apache2::Reload in 
>> your inc path from a pre 2.0.0 RC5 release that is being found before 
>> the one from Apache2::Reload from 2.0.2-dev. Did you specificy 
>> mod_perl.pm as file to reload in the config by accident?
>>
>> find /Users/boysie/mod_perl_inc /opt/local/lib/perl5 -name Reload.pm 
>> | xargs \ 	
>> 	grep -n mod_perl
>>
>> Here's the loop from Reload.pm
>>
>> Anyone think the
>> $INC{"mod_perl.pm"} = File::Spec::Functions::devnull();
>> change in mod_perl2.pm could be causing this.... I don't have time to 
>> test it at the moment.
>>
>> foreach my $key (sort { $a cmp $b } keys %Apache2::Reload::INCS) {
>>         my $file = $Apache2::Reload::INCS{$key};
>>
>>         next unless defined $file;
>>         next if @watch_dirs && !grep { $file =~ /^$_/ } @watch_dirs;
>>         warn "Apache2::Reload: Checking mtime of $key\n" if $DEBUG;
>>
>>         my $mtime = (stat $file)[9];
>>
>>         unless (defined($mtime) && $mtime) {
>>             for (@INC) {
>>                 $mtime = (stat "$_/$file")[9];
>>                 last if defined($mtime) && $mtime;
>>             }
>>         }
>>
>>         warn("Apache2::Reload: Can't locate $file\n"), next
>>             unless defined $mtime and $mtime;
>>
>>         unless (defined $Stat{$file}) {
>>             $Stat{$file} = $^T;
>>         }
>>
>>         if ($mtime > $Stat{$file}) {
>>             my $package = module_to_package($key);
>>             ModPerl::Util::unload_package($package);
>>             require $key;
>>             warn("Apache2::Reload: process $$ reloading $package from 
>> $key\n")
>>                     if $DEBUG;
>>         }
>>         $Stat{$file} = $mtime;
>> }
>>
>>
>> -- 
>> END
>> ------------------------------------------------------------
>>     What doesn't kill us can only make us stronger.
>>                 Nothing is impossible.
>> 				
>> Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
>> Consultant / http://p6m7g8.net/Resume/
>> Senior Developer / Liquidity Services, Inc.
>>   http://www.liquidityservicesinc.com
>>        http://www.liquidation.com
>>        http://www.uksurplus.com
>>        http://www.govliquidation.com
>>        http://www.gowholesale.com
>>
>>
>
>
>


Re: Error while using Apache2::Reload

Posted by Boysenberry Payne <bo...@humaniteque.com>.
> Did you specificy mod_perl.pm as file to reload in the config by 
> accident?

No, it started happening just after the MP 2.0.0 RC5 upgrade...

This is what I got as a return from:
find /Users/boysie/mod_perl_inc /opt/local/lib/perl5 -name Reload.pm | 
xargs grep -n mod_perl

20:use mod_perl2;
391:path. Now remember that mod_perl freezes the value of C<@INC> at the
505:are used, not every interpreters at once.  Similar to mod_perl 1.0
537:mod_perl 2.0 and its core modules are copyrighted under
545:Stas Bekman (porting to mod_perl 2.0)
548:and C<Apache::StatINC> (mod_perl 1.x) by Doug MacEachern and Ask



Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Oct 18, 2005, at 12:49 AM, Philip M. Gollucci wrote:

> Boysenberry Payne wrote:
>> I'm getting the following error while trying to use Apache2::Reload
>> on Apache/2.0.55 (Unix) PHP/5.0.5 DAV/2 mod_apreq2-20050712/2.5.2-dev 
>> mod_perl/2.0.2-dev Perl/v5.8.7
>> Can't locate mod_perl.pm in @INC (@INC contains: 
>> /Users/boysie/mod_perl_inc /opt/local/lib/perl5/5.8.7/darwin-2level 
>> /opt/local/lib/perl5/5.8.7 
>> /opt/local/lib/perl5/site_perl/5.8.7/darwin-2level 
>> /opt/local/lib/perl5/site_perl/5.8.7 /opt/local/lib/perl5/site_perl 
>> /opt/local/lib/perl5/vendor_perl/5.8.7/darwin-2level 
>> /opt/local/lib/perl5/vendor_perl/5.8.7 
>> /opt/local/lib/perl5/vendor_perl /usr/local/apache2) at 
>> /opt/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/Reload.pm 
>> line 160.\n
> The only thing I can think of is that you have an Apache2::Reload in 
> your inc path from a pre 2.0.0 RC5 release that is being found before 
> the one from Apache2::Reload from 2.0.2-dev. Did you specificy 
> mod_perl.pm as file to reload in the config by accident?
>
> find /Users/boysie/mod_perl_inc /opt/local/lib/perl5 -name Reload.pm | 
> xargs \ 	
> 	grep -n mod_perl
>
> Here's the loop from Reload.pm
>
> Anyone think the
> $INC{"mod_perl.pm"} = File::Spec::Functions::devnull();
> change in mod_perl2.pm could be causing this.... I don't have time to 
> test it at the moment.
>
> foreach my $key (sort { $a cmp $b } keys %Apache2::Reload::INCS) {
>         my $file = $Apache2::Reload::INCS{$key};
>
>         next unless defined $file;
>         next if @watch_dirs && !grep { $file =~ /^$_/ } @watch_dirs;
>         warn "Apache2::Reload: Checking mtime of $key\n" if $DEBUG;
>
>         my $mtime = (stat $file)[9];
>
>         unless (defined($mtime) && $mtime) {
>             for (@INC) {
>                 $mtime = (stat "$_/$file")[9];
>                 last if defined($mtime) && $mtime;
>             }
>         }
>
>         warn("Apache2::Reload: Can't locate $file\n"), next
>             unless defined $mtime and $mtime;
>
>         unless (defined $Stat{$file}) {
>             $Stat{$file} = $^T;
>         }
>
>         if ($mtime > $Stat{$file}) {
>             my $package = module_to_package($key);
>             ModPerl::Util::unload_package($package);
>             require $key;
>             warn("Apache2::Reload: process $$ reloading $package from 
> $key\n")
>                     if $DEBUG;
>         }
>         $Stat{$file} = $mtime;
> }
>
>
> -- 
> END
> ------------------------------------------------------------
>     What doesn't kill us can only make us stronger.
>                 Nothing is impossible.
> 				
> Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
> Consultant / http://p6m7g8.net/Resume/
> Senior Developer / Liquidity Services, Inc.
>   http://www.liquidityservicesinc.com
>        http://www.liquidation.com
>        http://www.uksurplus.com
>        http://www.govliquidation.com
>        http://www.gowholesale.com
>
>


Re: Error while using Apache2::Reload

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Boysenberry Payne wrote:
> I'm getting the following error while trying to use Apache2::Reload
> on Apache/2.0.55 (Unix) PHP/5.0.5 DAV/2 mod_apreq2-20050712/2.5.2-dev 
> mod_perl/2.0.2-dev Perl/v5.8.7
> 
> Can't locate mod_perl.pm in @INC (@INC contains: 
> /Users/boysie/mod_perl_inc /opt/local/lib/perl5/5.8.7/darwin-2level 
> /opt/local/lib/perl5/5.8.7 
> /opt/local/lib/perl5/site_perl/5.8.7/darwin-2level 
> /opt/local/lib/perl5/site_perl/5.8.7 /opt/local/lib/perl5/site_perl 
> /opt/local/lib/perl5/vendor_perl/5.8.7/darwin-2level 
> /opt/local/lib/perl5/vendor_perl/5.8.7 /opt/local/lib/perl5/vendor_perl 
> /usr/local/apache2) at 
> /opt/local/lib/perl5/site_perl/5.8.7/darwin-2level/Apache2/Reload.pm 
> line 160.\n
The only thing I can think of is that you have an Apache2::Reload in your inc 
path from a pre 2.0.0 RC5 release that is being found before the one from 
Apache2::Reload from 2.0.2-dev. Did you specificy mod_perl.pm as file to reload 
in the config by accident?

find /Users/boysie/mod_perl_inc /opt/local/lib/perl5 -name Reload.pm | xargs \ 	
	grep -n mod_perl

Here's the loop from Reload.pm

Anyone think the
$INC{"mod_perl.pm"} = File::Spec::Functions::devnull();
change in mod_perl2.pm could be causing this.... I don't have time to test it at 
the moment.

foreach my $key (sort { $a cmp $b } keys %Apache2::Reload::INCS) {
         my $file = $Apache2::Reload::INCS{$key};

         next unless defined $file;
         next if @watch_dirs && !grep { $file =~ /^$_/ } @watch_dirs;
         warn "Apache2::Reload: Checking mtime of $key\n" if $DEBUG;

         my $mtime = (stat $file)[9];

         unless (defined($mtime) && $mtime) {
             for (@INC) {
                 $mtime = (stat "$_/$file")[9];
                 last if defined($mtime) && $mtime;
             }
         }

         warn("Apache2::Reload: Can't locate $file\n"), next
             unless defined $mtime and $mtime;

         unless (defined $Stat{$file}) {
             $Stat{$file} = $^T;
         }

         if ($mtime > $Stat{$file}) {
             my $package = module_to_package($key);
             ModPerl::Util::unload_package($package);
             require $key;
             warn("Apache2::Reload: process $$ reloading $package from $key\n")
                     if $DEBUG;
         }
         $Stat{$file} = $mtime;
}


-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com