So, after rereading my previous post, I found one slight difference (funny how
it works that way sometimes). When I used telnet to connect to the server, it
used '::1' as an address for localhost as opposed to 127.0.0.1 . So I changed all the
refs to localhost in httpd.conf to ::1 and sure enough, all the tests passed. I'm going to look
into this a bit more to see why this is the case as I have always thought that both of these
cases should work the same way. Anyway, for whatever it's worth, mod_perl 1.99_13
with perl 5.8.3 and apache 2.0.48 seems to build and test ok on FREEBSD current
(as of Feb 3, 2004).
thanks Andrew
On Wednesday, Feb 4, 2004, at 15:25 US/Eastern, Andrew Wyllie wrote:
Hi all,
I managed to get the tests to run after applying the ipv6.patch that Stas posted the other day,
but none (or not many tests are passing). I think the problem is not in the server though, I think
it has something to do with Apache::Test (or possibly perl's IO::Socket module).
I can start the server using t/TEST -start-httpd then I can telnet to the server and make a simple request:
610 [EMAIL PROTECTED]:/usr/local/src/build/mod_perl/cvs/modperl-2.0$ telnet localhost 8529
Trying ::1...
Connected to localhost.
Escape character is '^]'.
GET /apache/add_config
1..1
# Running under perl version 5.008003 for freebsd
# Current time local: Wed Feb 4 15:12:16 2004
# Current time GMT: Wed Feb 4 20:12:16 2004
# Using Test.pm version 1.24
ok 1
Connection closed by foreign host.
OK, so that works. But if I try to run the test as t/TEST t/apache/add_config.t, I get
t/apache/add_config....request has failed (the response code was: 500) see t/logs/error_log for more details t/apache/add_config....dubious Test returned status 22 (wstat 5632, 0x1600) server localhost:8529 shutdown error running tests (please examine t/logs/error_log)
I also tried writing a very simple script with IO:Socket to try to connect to
the server, and I get a 'connection refused' leading me to believe that it
might be a problem with IO::Socket? (although all the tests passed when
building perl, and I can connect to other ports like 80, 25, etc).
Any thoughts/lines of attack would be appreciated!
I'm running FreeBSD 5.2, perl 5.8.3 and mod_perl 1.99_13 .
thanks Andrew (full output from t/TEST t/apache/add_config.t below and error_log)
605 [EMAIL PROTECTED]:/usr/local/src/build/mod_perl/cvs/modperl-2.0$ t/TEST -clean
606 [EMAIL PROTECTED]:/usr/local/src/build/mod_perl/cvs/modperl-2.0$ t/TEST t/apache/add_config.t
/usr/local/apache-2.0.48/bin/httpd -d /d/lion/src/build/mod_perl/cvs/modperl-2.0/t -f /d/lion/s
rc/build/mod_perl/cvs/modperl-2.0/t/conf/httpd.conf -DAPACHE2
using Apache/2.0.48 (prefork MPM)
waiting 120 seconds for server to start: 00:01[Wed Feb 04 15:05:24 2004] [info] 27 Apache:: mod
ules loaded
[Wed Feb 04 15:05:25 2004] [info] 5 APR:: modules loaded
[Wed Feb 04 15:05:25 2004] [info] base server + 15 vhosts ready to run tests
waiting 120 seconds for server to start: ok (waited 3 secs)
server localhost:8529 started
server localhost:8530 listening (TestModperl::perl_options)
server localhost:8531 listening (TestVhost::config)
server localhost:8532 listening (TestProtocol::echo)
server localhost:8533 listening (TestProtocol::echo_filter)
server localhost:8534 listening (TestProtocol::eliza)
server localhost:8535 listening (TestPreConnection::note)
server localhost:8536 listening (TestHooks::stacked_handlers2)
server localhost:8537 listening (TestHooks::startup)
server localhost:8538 listening (TestFilter::both_str_con_add)
server localhost:8539 listening (TestFilter::in_bbs_inject_header)
server localhost:8540 listening (TestFilter::in_bbs_msg)
server localhost:8541 listening (TestFilter::in_str_msg)
server localhost:8542 listening (TestDirective::perlmodule)
server localhost:8543 listening (TestDirective::perlrequire)
server localhost:8544 listening (TestPerl::ithreads)
server localhost:8545 listening (TestDirective::perlloadmodule3)
server localhost:8546 listening (TestDirective::perlloadmodule4)
server localhost:8547 listening (TestDirective::perlloadmodule5)
server localhost:8548 listening (TestDirective::perlloadmodule6)
t/apache/add_config....request has failed (the response code was: 500)
see t/logs/error_log for more details
t/apache/add_config....dubious
Test returned status 22 (wstat 5632, 0x1600)
server localhost:8529 shutdown
error running tests (please examine t/logs/error_log)
...........
Contents of t/logs/error_log
614 [EMAIL PROTECTED]:/usr/local/src/build/mod_perl/cvs/modperl-2.0$ more t/logs/error_log
END in modperl_extra.pl, pid=96005
[Wed Feb 04 15:21:34 2004] [notice] Apache/2.0.48 (Unix) mod_perl/1.99_13-dev Perl/v5.8.3 config
ured -- resuming normal operations
[Wed Feb 04 15:21:34 2004] [info] Server built: Feb 3 2004 21:40:51
[Wed Feb 04 15:21:34 2004] [debug] prefork.c(1037): AcceptMutex: flock (default: flock)
[Wed Feb 04 15:21:35 2004] [error] server reached MaxClients setting, consider raising the MaxCl
ients setting
[Wed Feb 04 15:21:35 2004] [info] Child process pid=96009 is exiting
[Wed Feb 04 15:21:35 2004] [info] Child process pid=96012 is exiting
[Wed Feb 04 15:21:35 2004] [info] removed PID file /d/lion/src/build/mod_perl/cvs/modperl-2.0/t/
logs/httpd.pid (pid=96007)
[Wed Feb 04 15:21:35 2004] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=96007
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html