Skip Menu |

This queue is for tickets about the Alzabo-GUI-Mason CPAN distribution.

Report information
The Basics
Id: 16079
Status: new
Priority: 0/
Queue: Alzabo-GUI-Mason

People
Owner: Nobody in particular
Requestors: lloy0076 [...] adam.com.au
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: apache2 + mod_perl2 error (possibly a mason/apache2/mod_perl2 misconfiguration)
OS: gondor:/usr/lib/cgi-bin# uname -a Linux gondor 2.6.11 #1 Sun Jun 5 11:04:21 CST 2005 i686 GNU/Linux (Debian Sid) Apache2: gondor:/usr/lib/cgi-bin# /usr/sbin/apache2 -V Server version: Apache/2.0.55 Server built: Oct 24 2005 03:50:13 Server's Module Magic Number: 20020903:11 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="" -D SUEXEC_BIN="/usr/lib/apache2/suexec2" -D DEFAULT_PIDLOG="/var/run/apache2.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types" -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf" Output of dpkg: gondor:/usr/lib/cgi-bin# dpkg -l | grep apache2 ii apache2 2.0.55-3 next generation, scalable, extendable web se ii apache2-common 2.0.55-3 next generation, scalable, extendable web se ii apache2-mpm-prefork 2.0.55-3 traditional model for Apache2 ii apache2-prefork-dev 2.0.55-3 development headers for apache2 ii apache2-utils 2.0.55-3 utility programs for webservers ii libapache2-mod-perl2 2.0.1-4 Integration of perl with the Apache2 web ser Configuration of the Mason component: PerlModule HTML::Mason::ApacheHandler <Directory /var/www/html/alzabo/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all <FilesMatch "\.html$"> SetHandler perl-script PerlHandler HTML::Mason::ApacheHandler </FilesMatch> </Directory> It's a fairly standard setup. This gets you to the front page - i.e. it's not TOTALLY broken - but when you try to add a new schema you get: Error during compilation of /var/www/html/alzabo/schema/redirect: Bareword "REDIRECT" not allowed while "strict subs" in use at /var/www/html/alzabo/schema/redirect line 16. Trace begun at /usr/share/perl5/HTML/Mason/Interp.pm line 826 HTML::Mason::Interp::_compilation_error('HTML::Mason::Interp=HASH(0x8717fb8)', '/var/www/html/alzabo/schema/redirect', 'Error during compilation of :^JBareword "REDIRECT" not allowed while "strict subs" in use at /var/www/html/alzabo/schema/redirect line 16.^J^J^JStack:^J [/usr/share/perl5/HTML/Mason/Interp.pm:422]^J [/usr/share/perl5/HTML/Mason/Request.pm:1092]^J [/usr/share/perl5/HTML/Mason/Request.pm:1030]^J [/usr/share/perl5/HTML/Mason/Request.pm:1202]^J [/var/www/html/alzabo/schema/reverse_engineer.html:30]^J [/var/www/html/alzabo/schema/autohandler:148]^J [/var/www/html/alzabo/schema/syshandler:1]^J') called at /usr/share/perl5/HTML/Mason/Interp.pm line 426 HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0x8717fb8)', '/alzabo/schema/redirect') called at /usr/share/perl5/HTML/Mason/Request.pm line 1092 HTML::Mason::Request::_fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0x8713a30)', 'redirect', 'HTML::Mason::Component::FileBased=HASH(0x8bb947c)', 'SCALAR(0x8bb9500)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1030 HTML::Mason::Request::fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0x8713a30)', 'redirect', undef, 'SCALAR(0x8bb9500)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1202 HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x8713a30)', 'redirect', 'url', 'view_schema.html?schema=mysql') called at /var/www/html/alzabo/schema/reverse_engineer.html line 30 HTML::Mason::Commands::__ANON__('password', 'passw0rd', 'name', 'mysql', 'rdbms', 'MySQL', 'port', '', 'host', '', 'username', 'root') called at /usr/share/perl5/HTML/Mason/Component.pm line 135 HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8bb947c)', 'password', 'passw0rd', 'name', 'mysql', 'rdbms', 'MySQL', 'port', '', 'host', '', 'username', 'root') called at /usr/share/perl5/HTML/Mason/Request.pm line 1255 eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1249 HTML::Mason::Request::comp(undef, undef, 'password', 'passw0rd', 'name', 'mysql', 'rdbms', 'MySQL', 'port', '', 'host', '', 'username', 'root') called at /var/www/html/alzabo/schema/autohandler line 148 HTML::Mason::Commands::__ANON__('password', 'passw0rd', 'name', 'mysql', 'port', '', 'rdbms', 'MySQL', 'username', 'root', 'host', '') called at /usr/share/perl5/HTML/Mason/Component.pm line 135 HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x87e303c)', 'password', 'passw0rd', 'name', 'mysql', 'port', '', 'rdbms', 'MySQL', 'username', 'root', 'host', '') called at /usr/share/perl5/HTML/Mason/Request.pm line 1255 eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1249 HTML::Mason::Request::comp(undef, undef, 'password', 'passw0rd', 'name', 'mysql', 'port', '', 'rdbms', 'MySQL', 'username', 'root', 'host', '') called at /var/www/html/alzabo/schema/syshandler line 1 HTML::Mason::Commands::__ANON__('password', 'passw0rd', 'name', 'mysql', 'rdbms', 'MySQL', 'port', '', 'host', '', 'username', 'root') called at /usr/share/perl5/HTML/Mason/Component.pm line 135 HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x8b4fcd0)', 'password', 'passw0rd', 'name', 'mysql', 'rdbms', 'MySQL', 'port', '', 'host', '', 'username', 'root') called at /usr/share/perl5/HTML/Mason/Request.pm line 1250 eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1249 HTML::Mason::Request::comp(undef, undef, undef, 'password', 'passw0rd', 'name', 'mysql', 'rdbms', 'MySQL', 'port', '', 'host', '', 'username', 'root') called at /usr/share/perl5/HTML/Mason/Request.pm line 461 eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 461 eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 413 HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8713a30)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 164 HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x8713a30)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 823 HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x866ddb4)', 'Apache2::RequestRec=SCALAR(0x846cec8)') called at (eval 31) line 8 HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x846cec8)') called at -e line 0 eval {...} at -e line 0 NOTES: 1) It is possible I may need to rebuild mod_perl 2) It's possible Debian Sid's version of mason won't work sensibly under mod_perl2 3) It does run when I run it via CGI as described in (http://www.masonhq.com/docs/manual/Admin.html#running_outside_of_mod_perl) I suspect this is NOT an Alzabo::GUI::Mason bug and that it's got to do with my mod_perl2/mason/apache2 installation... Is this a reasonable suspicion? DSL
Date: Thu, 24 Nov 2005 08:21:12 -0600 (CST)
From: Dave Rolsky <autarch [...] urth.org>
To: Guest via RT <bug-Alzabo-GUI-Mason [...] rt.cpan.org>
Subject: Re: [cpan #16079] apache2 + mod_perl2 error (possibly a mason/apache2/mod_perl2 misconfiguration)
RT-Send-Cc:
On Wed, 23 Nov 2005, Guest via RT wrote: Show quoted text
> This gets you to the front page - i.e. it's not TOTALLY broken - but when you try to add a new schema you get:
I've never tried it under Apache2. Patches welcome. It's probably not _too_ hard to change, and mostly it could use Mason APIs (like $m->redirect) that didn't exist back when I first made this tool. Show quoted text
> 1) It is possible I may need to rebuild mod_perl
Nope. Show quoted text
> 2) It's possible Debian Sid's version of mason won't work sensibly under mod_perl2
It has 1.3101, which is the latest. Show quoted text
> 3) It does run when I run it via CGI as described in (http://www.masonhq.com/docs/manual/Admin.html#running_outside_of_mod_perl) > > I suspect this is NOT an Alzabo::GUI::Mason bug and that it's got to do with my mod_perl2/mason/apache2 installation...
No, it's definitely Alzabo::GUI::Mason. -dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/
I've also discovered that it relies on: Apache::Constants ...which is defined in mod_perl version one but doesn't appear to exist in mod_perl2. My guess it that it's changed to: Apache::Language::Constants ...I have managed to not see this on my Debian systems because I've had mod_perl1 and 2 installed side by side. Only recently did I have a system where there was only a mod_perl1. I'm thinking of having a dig through the code and performing some 'hacks', errm, fixes to get it working natively under mod_perl2. Also, I really should document how I've managed to get it working under mod_perl2 even though it's a rather clunky work around [interestingly it seems to run faster via CGI than mod_perl for me; go figure :P].