Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RegistryCooker.pm Bad File Descriptor [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
adamtheo
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2002
Posts: 123
Location: Tallahassee, Florida USA

PostPosted: Tue Feb 24, 2004 2:21 am    Post subject: RegistryCooker.pm Bad File Descriptor [SOLVED] Reply with quote

The following problem has been solved. It was solved by installed mod_perl 1.99_12. Note that only 1.99_11 is in portage as ~x86 right now. I modified the *_11 ebuild into a *_12 ebuild, and installed that. It installed fine, annd is now running fine.

I have installed apache 2.0.48 with mod_perl 1.99_11 on a Gentoo Linux system. The testenv script at http://www.theoretic.com/bin/testenv says that mod_perl is installed in Apache
and that the script is using it (you can visit the testenv script for a full printout of the server setup), so all good on that front. And visiting
http://www.theoretic.com/bin/view is nice and speedy, so that seems to be working, too.

However, when I visit a web or topic under the base view script ( such as http://www.theoretic.com/bin/view/Ransom/Home ), I get an Error 500, and the following in the Apache error log:

Quote:

Feb 21 22:50:18 mathaw apache2[18620]: [error] [client 209.16.240.20] Error reading
'/var/www/theoretic/bin/view': 9:Bad file descriptor at
/usr/lib/perl5/vendor_perl/5.8.2/i686-linux/Apache2/ModPerl/RegistryCooker.pm line 528. ,
referer: http://www.theoretic.com/bin/view


If I reload, then the Error 500 is replaced by the correct mod_perl generated page (so I assume), but the Error 500 occurs everytime I visit a new URL under the view script until I yet again reload.

Here is the excerpt of the VirtualHost section of my httpd.conf:

Quote:

<VirtualHost 66.45.74.31:80>
ServerAdmin root@theoretic.com
DocumentRoot /var/www/theoretic
ServerName www.theoretic.com
ServerAlias theoretic.com *.theoretic.com

<IfModule mod_perl.c>
PerlOptions +ParseHeaders +SetupEnv
PerlRequire "/etc/apache2/conf/modules.d/apache2-mod_perl-startup.pl"
PerlModule Apache2::ModPerl::Registry
PerlWarn On
</IfModule>
<IfModule mod_auth_ldap.c>
ErrorDocument 401 /bin/oops/System/Registration?template=oopsauth
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex Home.html index.html index.php
</IfModule>
#<IfModule mod_log_config.c>
# LogFormat
#</IfModule>
<IfModule mod_alias.c>
ScriptAlias /bin/ "/var/www/theoretic/bin/"
Alias / "/var/www/theoretic/"
Alias /icons/ /var/www/localhost/icons/
Alias /doc /usr/share/doc
</IfModule>

<Directory /var/www/theoretic>
Options FollowSymLinks +Includes
AllowOverride None
Allow from all
</Directory>
<Directory /var/www/theoretic/bin>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options -Indexes ExecCGI
PerlSendHeader On
Allow from all

AuthName 'Enter your Theoretic username and password'
AuthType Basic

AuthLDAPEnabled on
AuthLDAPUrl ldap://theoretic.com:389/ou=persons,dc=theoretic?uid?one

<FilesMatch "^(viewauth|edit|preview|save|attach|upload|rename|rdiffauth|manage|installpasswd)$">
require valid-user
</FilesMatch>

<Files "*">
allow from all
</Files>

</Directory>
<Directory "/var/twiki/theoretic">
Deny from all
</Directory>
<Directory "/usr/share/twiki/templates">
Deny from all
</Directory>
</VirtualHost>


Visiting one of those perl scripts protected by authentication (such as http://www.theoretic.com/bin/edit/Main/Home), and providing the correct authentication credentials also doesn't help. I again get an error 500, although it always stays even after reloading. The apache2 error logs shows the same error as above, nothing more. I also do see that apache reports successful authentication through LDAP, so I don't think that is the problem.

Now, I've seen at http://www.gossamer-threads.com/archive/mod_perl_C1/modperl_F7/%5Bmp2%5D_requesting_URLs_with_path_info_fails_sometimes_P92299/ that mod_perl 1.99_12 fixes the problem, and since that version is not yet in portage, I installed in from the tarball. However, this did not seem to fix the problem, still getting those problems.

Any help would be very appreciated.
_________________
* Theoretic Solutions "The Internet's Open Think-Tank" - http://www.theoretic.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum