You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Paul Simon <pa...@simonway.com> on 2003/05/09 20:37:44 UTC
[mp2] install on FreeBSD 4.8
mod_perl2 installed successfully, using Perl/v5.8.0
Apache/2.0.45 & mod_perl/1.99_09 on FreeBSD 4.8.
At the end of make test this was the message:
Failed Test Stat Wstat Total Fail Failed
List of Failed
-------------------------------------------------------------------------------
filter/in_bbs_msg.t 255 65280 ?? ?? % ??
6 tests skipped.
*** server localhost:8529 shutdown
!!! error running tests (please examine
t/logs/error_log)
*** Error code 1
Here is t/logs/error_log:
[Fri May 09 23:52:57 2003] [info] Init: Initializing
OpenSSL library
[Fri May 09 23:52:58 2003] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Fri May 09 23:52:58 2003] [info] Init: Generating
temporary RSA private keys (512/1024 bits)
[Fri May 09 23:53:00 2003] [info] Init: Generating
temporary DH parameters (512/1024 bits)
[Fri May 09 23:53:00 2003] [warn] Init: Session Cache
is not configured [hint: SSLSessionCache]
[Fri May 09 23:53:00 2003] [info] Init: Initializing
(virtual) servers for SSL
[Fri May 09 23:53:00 2003] [info] Server:
Apache/2.0.45, Interface: mod_ssl/2.0.45, Library:
OpenSSL/0.9.7a
END in modperl_extra.pl, pid=93309
[Fri May 09 23:53:10 2003] [info] Init: Initializing
OpenSSL library
[Fri May 09 23:53:10 2003] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Fri May 09 23:53:10 2003] [info] Init: Generating
temporary RSA private keys (512/1024 bits)
[Fri May 09 23:53:16 2003] [info] Init: Generating
temporary DH parameters (512/1024 bits)
[Fri May 09 23:53:16 2003] [info] Init: Initializing
(virtual) servers for SSL
[Fri May 09 23:53:16 2003] [info] Server:
Apache/2.0.45, Interface: mod_ssl/2.0.45, Library:
OpenSSL/0.9.7a
[Fri May 09 23:53:16 2003] [notice] Apache/2.0.45
(Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.45
OpenSSL/0.9.7a configured -- resuming normal
operations
[Fri May 09 23:53:16 2003] [info] Server built: May 9
2003 08:06:45
[Fri May 09 23:53:16 2003] [debug] prefork.c(1039):
AcceptMutex: flock (default: flock)
[Fri May 09 23:53:16 2003] [warn] (14)Bad address:
Cannot reinit SSLMutex
[Fri May 09 23:53:17 2003] [error] server reached
MaxClients setting, consider raising the MaxClients
setting
[Fri May 09 23:55:00 2003] [info] [client 127.0.0.1]
TestAPI::aplog test in progress
[Fri May 09 23:55:00 2003] [debug]
/usr/local/src/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(43):
log_serror test ok
[Fri May 09 23:55:00 2003] [debug]
/usr/local/src/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(46):
(20007)No time was provided and one was required.:
log_serror test 2 ok
[Fri May 09 23:55:00 2003] [debug]
/usr/local/src/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(49):
[client 127.0.0.1] (20007)No time was provided and one
was required.: log_rerror test ok
[Fri May 09 23:55:00 2003] [error] $r->log_error test
ok
[Fri May 09 23:55:00 2003] [error] $s->log_error test
ok
[Fri May 09 23:55:00 2003] [debug]
/usr/local/src/mod_perl-1.99_09/t/response/TestAPI/aplog.pm(63):
TestAPI::aplog test done
[Fri May 09 23:55:00 2003] [warn] ApacheApache->warn
test ok
[Fri May 09 23:55:00 2003] [warn] $s->warn test ok
[Fri May 09 23:58:10 2003] [error] Apache::log_error
test ok
*** The following error entry is expected and it is
harmless ***
[Sat May 10 00:01:14 2003] [error] [client 127.0.0.1]
Undefined subroutine &TestError::runtime::no_such_func
called at
/usr/local/src/mod_perl-1.99_09/t/response/TestError/runtime.pm
line 19.
*** The following error entry is expected and it is
harmless ***
[Sat May 10 00:01:22 2003] [error] failed to resolve
handler `TestError::syntax'
[Sat May 10 00:01:22 2003] [error] [client 127.0.0.1]
syntax error at
/usr/local/src/mod_perl-1.99_09/t/response/TestError/syntax.pm
line 22, near "\;"
Compilation failed in require at (eval 115) line 3.
[echo_filter] get_brigade: Unknown error: 0
[Sat May 10 00:01:54 2003] [error] [client 127.0.0.1]
File does not exist:
/usr/local/src/mod_perl-1.99_09/t/htdocs/input_filter.html
*** The following error entry is expected and it is
harmless ***
[Sat May 10 00:05:16 2003] [error] [client 127.0.0.1]
File does not exist:
/usr/local/src/mod_perl-1.99_09/t/htdocs/nope
*** The following error entry is expected and it is
harmless ***
[Sat May 10 00:07:30 2003] [error] [client 127.0.0.1]
need AuthName: /TestModperl__setauth
[Sat May 10 00:08:41 2003] [info] Child process
pid=93311 is exiting
[Sat May 10 00:08:41 2003] [info] removed PID file
/usr/local/src/mod_perl-1.99_09/t/logs/httpd.pid
(pid=93310)
[Sat May 10 00:08:41 2003] [notice] caught SIGTERM,
shutting down
END in modperl_extra.pl, pid=93310
Re: [mp2] install on FreeBSD 4.8
Posted by Stas Bekman <st...@stason.org>.
Paul Simon wrote:
> Actually, I never installed the LWP module.
Yes, that's what I thought after I've sent this. We have a semi-feature
complete LWP-emulation module for these cases.
If you want to run all the tests you should install LWP. Some are skipped
without it.
> All tests successful.
Great.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp2] install on FreeBSD 4.8
Posted by Paul Simon <pa...@simonway.com>.
> This explains the problem:
>
> > FILTER CALLED
> > FILTER READ: GET
> > http://localhost:8535/input_filter.html HTTP/1.0
>
> You must have a faulty version of LWP, it should
> have issued a request:
> GET /input_filter.html HTTP/1.0 (remove the scheme,
> server, port from it).
Actually, I never installed the LWP module.
> This patch should solve the problem for you:
>
> Index: t/filter/in_bbs_msg.t
>
===================================================================
> RCS file:
> /home/cvs/modperl-2.0/t/filter/in_bbs_msg.t,v
> retrieving revision 1.3
> diff -u -r1.3 in_bbs_msg.t
> --- t/filter/in_bbs_msg.t 18 Apr 2003 06:18:56
> -0000 1.3
> +++ t/filter/in_bbs_msg.t 11 May 2003 22:52:41
> -0000
> @@ -12,7 +12,7 @@
> my $hostport =
> Apache::TestRequest::hostport($config);
> t_debug("connecting to $hostport");
>
> -my $res = GET "http://$hostport/input_filter.html";
> +my $res = GET "/input_filter.html";
> if ($res->is_success) {
> print $res->content;
> }
>
venus# t/TEST -v filter/in_bbs_msg.t
...
All tests successful.
Files=1, Tests=1, 8 wallclock secs ( 6.98 cusr +
0.70 csys = 7.69 CPU)
Thanks!
Re: [mp2] install on FreeBSD 4.8
Posted by Stas Bekman <st...@stason.org>.
Paul Simon wrote:
This explains the problem:
> FILTER CALLED
> FILTER READ: GET
> http://localhost:8535/input_filter.html HTTP/1.0
You must have a faulty version of LWP, it should have issued a request:
GET /input_filter.html HTTP/1.0 (remove the scheme, server, port from it).
This patch should solve the problem for you:
Index: t/filter/in_bbs_msg.t
===================================================================
RCS file: /home/cvs/modperl-2.0/t/filter/in_bbs_msg.t,v
retrieving revision 1.3
diff -u -r1.3 in_bbs_msg.t
--- t/filter/in_bbs_msg.t 18 Apr 2003 06:18:56 -0000 1.3
+++ t/filter/in_bbs_msg.t 11 May 2003 22:52:41 -0000
@@ -12,7 +12,7 @@
my $hostport = Apache::TestRequest::hostport($config);
t_debug("connecting to $hostport");
-my $res = GET "http://$hostport/input_filter.html";
+my $res = GET "/input_filter.html";
if ($res->is_success) {
print $res->content;
}
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp2] install on FreeBSD 4.8
Posted by Paul Simon <pa...@simonway.com>.
--- Stas Bekman <st...@stason.org> wrote:
> Paul Simon wrote:
> >>Please run:
> >>
> >>rm t/logs/error_log
> >>t/TEST -v filter/in_bbs_msg.t
>
> > filter/in_bbs_msg....# connecting to
> localhost:8535
> > server side has failed (response code: 404),
> > see t/logs/error_log for more details
> > dubious
> [...]
> > [Sat May 10 08:11:22 2003] [error] [client
> 127.0.0.1]
> > File does not exist:
> >
>
/usr/local/src/mod_perl-1.99_09/t/htdocs/input_filter.html
>
> That means that the filter
> TestFilter::in_bbs_msg::handler either wasn't
> called, or didn't work. Can you uncomment the debug
> warnings in
> t/filter/TestFilter/in_bbs_msg.pm's handler sub and
> see whether it's called,
> and if it is, what's going wrong.
venus # ./t/TEST -v filter/in_bbs_msg.t
*** root mode: changing the fs ownership to 'nobody'
(65534:65534)
/usr/local/apache2/bin/httpd -d
/usr/local/src/mod_perl-1.99_09/t -f
/usr/local/src/mod_perl-1.99_09/t/conf/httpd.conf
-DAPACHE2
using Apache/2.0.45 (prefork MPM)
waiting for server to start: ..........[Sun May 11
20:56:22 2003] [info] 20 Apache:: modules loaded
[Sun May 11 20:56:22 2003] [info] 3 APR:: modules
loaded
[Sun May 11 20:56:22 2003] [info] base server + 8
vhosts ready to run tests
...........................
waiting for server to start: ok (waited 36 secs)
server localhost:8529 started
server localhost:8530 listening
(TestProtocol::echo_filter)
server localhost:8531 listening (TestProtocol::echo)
server localhost:8532 listening
(TestPreConnection::note)
server localhost:8533 listening
(TestFilter::in_str_msg)
server localhost:8534 listening
(TestFilter__both_str_con_add)
server localhost:8535 listening
(TestFilter::in_bbs_msg)
server localhost:8536 listening
(TestDirective::perlmodule)
server localhost:8537 listening
(TestDirective::perlrequire)
server localhost:8538 listening
(TestDirective::perlloadmodule4)
server localhost:8539 listening
(TestDirective::perlloadmodule5)
server localhost:8540 listening
(TestDirective::perlloadmodule3)
server localhost:8541 listening
(TestDirective::perlloadmodule6)
filter/in_bbs_msg....# connecting to localhost:8535
server side has failed (response code: 404),
see t/logs/error_log for more details
dubious
Test returned status 255 (wstat 65280, 0xff00)
*** server localhost:8529 shutdown
!!! error running tests (please examine
t/logs/error_log)
t/logs/error_log:
[Sun May 11 20:56:25 2003] [info] Init: Initializing
OpenSSL library
[Sun May 11 20:56:25 2003] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Sun May 11 20:56:25 2003] [info] Init: Generating
temporary RSA private keys (512/1024 bits)
[Sun May 11 20:56:32 2003] [info] Init: Generating
temporary DH parameters (512/1024 bits)
[Sun May 11 20:56:32 2003] [warn] Init: Session Cache
is not configured [hint: SSLSessionCache]
[Sun May 11 20:56:32 2003] [info] Init: Initializing
(virtual) servers for SSL
[Sun May 11 20:56:32 2003] [info] Server:
Apache/2.0.45, Interface: mod_ssl/2.0.45, Library:
OpenSSL/0.9.7a
END in modperl_extra.pl, pid=98301
[Sun May 11 20:56:43 2003] [info] Init: Initializing
OpenSSL library
[Sun May 11 20:56:43 2003] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Sun May 11 20:56:43 2003] [info] Init: Generating
temporary RSA private keys (512/1024 bits)
[Sun May 11 20:56:50 2003] [info] Init: Generating
temporary DH parameters (512/1024 bits)
[Sun May 11 20:56:50 2003] [info] Init: Initializing
(virtual) servers for SSL
[Sun May 11 20:56:50 2003] [info] Server:
Apache/2.0.45, Interface: mod_ssl/2.0.45, Library:
OpenSSL/0.9.7a
[Sun May 11 20:56:50 2003] [notice] Apache/2.0.45
(Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.45
OpenSSL/0.9.7a configured -- resuming normal
operations
[Sun May 11 20:56:50 2003] [info] Server built: May 9
2003 08:06:45
[Sun May 11 20:56:50 2003] [debug] prefork.c(1039):
AcceptMutex: flock (default: flock)
[Sun May 11 20:56:50 2003] [warn] (14)Bad address:
Cannot reinit SSLMutex
[Sun May 11 20:56:51 2003] [error] server reached
MaxClients setting, consider raising the MaxClients
setting
FILTER CALLED
FILTER READ: GET
http://localhost:8535/input_filter.html HTTP/1.0
FILTER CALLED
FILTER READ: User-Agent: libwww-perl/0.00
FILTER CALLED
FILTER READ: Host: localhost.8ohms.com
FILTER CALLED
FILTER READ:
FILTER CALLED
EOS!!!! at
/usr/local/src/mod_perl-1.99_09/t/filter/TestFilter/in_bbs_msg.pm
line 39.
[Sun May 11 20:56:59 2003] [error] [client 127.0.0.1]
File does not exist:
/usr/local/src/mod_perl-1.99_09/t/htdocs/input_filter.html
FILTER CALLED
EOS!!!! at
/usr/local/src/mod_perl-1.99_09/t/filter/TestFilter/in_bbs_msg.pm
line 39.
[Sun May 11 20:56:59 2003] [info] Child process
pid=98303 is exiting
[Sun May 11 20:56:59 2003] [info] removed PID file
/usr/local/src/mod_perl-1.99_09/t/logs/httpd.pid
(pid=98302)
[Sun May 11 20:56:59 2003] [notice] caught SIGTERM,
shutting down
END in modperl_extra.pl, pid=98302
> Notice that there is an indentical test:
> t/filter/TestFilter/in_str_msg.pm
> t/filter/in_str_msg.t
> whose input filter handler is implemented as a
> streaming filter.
>
>
Re: [mp2] install on FreeBSD 4.8
Posted by Stas Bekman <st...@stason.org>.
Paul Simon wrote:
>>Please run:
>>
>>rm t/logs/error_log
>>t/TEST -v filter/in_bbs_msg.t
> filter/in_bbs_msg....# connecting to localhost:8535
> server side has failed (response code: 404),
> see t/logs/error_log for more details
> dubious
[...]
> [Sat May 10 08:11:22 2003] [error] [client 127.0.0.1]
> File does not exist:
> /usr/local/src/mod_perl-1.99_09/t/htdocs/input_filter.html
That means that the filter TestFilter::in_bbs_msg::handler either wasn't
called, or didn't work. Can you uncomment the debug warnings in
t/filter/TestFilter/in_bbs_msg.pm's handler sub and see whether it's called,
and if it is, what's going wrong.
Notice that there is an indentical test:
t/filter/TestFilter/in_str_msg.pm
t/filter/in_str_msg.t
whose input filter handler is implemented as a streaming filter.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp2] install on FreeBSD 4.8
Posted by Paul Simon <pa...@simonway.com>.
>
> Please run:
>
> rm t/logs/error_log
> t/TEST -v filter/in_bbs_msg.t
>
*** root mode: changing the fs ownership to 'nobody'
(65534:65534)
/usr/local/apache2/bin/httpd -d
/usr/local/src/mod_perl-1.99_09/t -f
/usr/local/src/mod_perl-1.99_09/t/conf/httpd.conf
-DAPACHE2
using Apache/2.0.45 (prefork MPM)
waiting for server to start: .........[Sat May 10
08:10:45 2003] [info] 20 Apache:: modules loaded
[Sat May 10 08:10:45 2003] [info] 3 APR:: modules
loaded
[Sat May 10 08:10:45 2003] [info] base server + 8
vhosts ready to run tests
............................
waiting for server to start: ok (waited 37 secs)
server localhost:8529 started
server localhost:8530 listening
(TestProtocol::echo_filter)
server localhost:8531 listening (TestProtocol::echo)
server localhost:8532 listening
(TestPreConnection::note)
server localhost:8533 listening
(TestFilter::in_str_msg)
server localhost:8534 listening
(TestFilter__both_str_con_add)
server localhost:8535 listening
(TestFilter::in_bbs_msg)
server localhost:8536 listening
(TestDirective::perlmodule)
server localhost:8537 listening
(TestDirective::perlrequire)
server localhost:8538 listening
(TestDirective::perlloadmodule4)
server localhost:8539 listening
(TestDirective::perlloadmodule5)
server localhost:8540 listening
(TestDirective::perlloadmodule3)
server localhost:8541 listening
(TestDirective::perlloadmodule6)
filter/in_bbs_msg....# connecting to localhost:8535
server side has failed (response code: 404),
see t/logs/error_log for more details
dubious
Test returned status 255 (wstat 65280, 0xff00)
*** server localhost:8529 shutdown
!!! error running tests (please examine
t/logs/error_log)
> and post the output of the above command and the
> contents of t/logs/error_log
>
[Sat May 10 08:10:48 2003] [info] Init: Initializing
OpenSSL library
[Sat May 10 08:10:48 2003] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Sat May 10 08:10:48 2003] [info] Init: Generating
temporary RSA private keys (512/1024 bits)
[Sat May 10 08:10:57 2003] [info] Init: Generating
temporary DH parameters (512/1024 bits)
[Sat May 10 08:10:57 2003] [warn] Init: Session Cache
is not configured [hint: SSLSessionCache]
[Sat May 10 08:10:57 2003] [info] Init: Initializing
(virtual) servers for SSL
[Sat May 10 08:10:57 2003] [info] Server:
Apache/2.0.45, Interface: mod_ssl/2.0.45, Library:
OpenSSL/0.9.7a
END in modperl_extra.pl, pid=95852
[Sat May 10 08:11:07 2003] [info] Init: Initializing
OpenSSL library
[Sat May 10 08:11:07 2003] [info] Init: Seeding PRNG
with 0 bytes of entropy
[Sat May 10 08:11:07 2003] [info] Init: Generating
temporary RSA private keys (512/1024 bits)
[Sat May 10 08:11:13 2003] [info] Init: Generating
temporary DH parameters (512/1024 bits)
[Sat May 10 08:11:13 2003] [info] Init: Initializing
(virtual) servers for SSL
[Sat May 10 08:11:13 2003] [info] Server:
Apache/2.0.45, Interface: mod_ssl/2.0.45, Library:
OpenSSL/0.9.7a
[Sat May 10 08:11:13 2003] [warn] (14)Bad address:
Cannot reinit SSLMutex
[Sat May 10 08:11:13 2003] [notice] Apache/2.0.45
(Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.45
OpenSSL/0.9.7a configured -- resuming normal
operations
[Sat May 10 08:11:13 2003] [info] Server built: May 9
2003 08:06:45
[Sat May 10 08:11:13 2003] [debug] prefork.c(1039):
AcceptMutex: flock (default: flock)
[Sat May 10 08:11:14 2003] [error] server reached
MaxClients setting, consider raising the MaxClients
setting
[Sat May 10 08:11:22 2003] [error] [client 127.0.0.1]
File does not exist:
/usr/local/src/mod_perl-1.99_09/t/htdocs/input_filter.html
[Sat May 10 08:11:23 2003] [info] Child process
pid=95854 is exiting
[Sat May 10 08:11:23 2003] [info] removed PID file
/usr/local/src/mod_perl-1.99_09/t/logs/httpd.pid
(pid=95853)
[Sat May 10 08:11:23 2003] [notice] caught SIGTERM,
shutting down
END in modperl_extra.pl, pid=95853
Paul
=====
'Ideals are like stars. We may never reach them, but we use them to chart our course.' -- Unknown
Re: [mp2] install on FreeBSD 4.8
Posted by Stas Bekman <st...@stason.org>.
Paul Simon wrote:
> mod_perl2 installed successfully, using Perl/v5.8.0
> Apache/2.0.45 & mod_perl/1.99_09 on FreeBSD 4.8.
Great!
> At the end of make test this was the message:
>
> Failed Test Stat Wstat Total Fail Failed
> List of Failed
> -------------------------------------------------------------------------------
> filter/in_bbs_msg.t 255 65280 ?? ?? % ??
> 6 tests skipped.
> *** server localhost:8529 shutdown
> !!! error running tests (please examine
> t/logs/error_log)
> *** Error code 1
>
> Here is t/logs/error_log:
It's hard to tell which one is the error if at all.
> [echo_filter] get_brigade: Unknown error: 0
Please run:
rm t/logs/error_log
t/TEST -v filter/in_bbs_msg.t
and post the output of the above command and the contents of t/logs/error_log
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com