You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Barbara Post <ba...@achatpublic.com> on 2003/12/01 12:38:56 UTC
RE : RE : RE : bug : make test fails
Hi,
The patch works :-) but I have troubles with "address already in use"...
make test (as normal user) shows :
waiting 60 seconds for server to start: .[Mon Dec 01 13:22:43 2003]
[info] 23 Apache:: modules loaded
[Mon Dec 01 13:22:43 2003] [info] 5 APR:: modules loaded
[Mon Dec 01 13:22:43 2003] [info] base server + 11 vhosts ready to run
tests
(48)Address already in use: make_sock: could not bind to address
[::]:8544
no listening sockets available, shutting down
Unable to open logs
END in modperl_extra.pl, pid=90577
............................................................
waiting 60 seconds for server to start: giving up after 61 secs
!!! server failed to start! (t/logs/error_log wasn't created, start the
server in the debug mode)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
*** Error code 1
I have the following processing running :
barbara 15405 0.0 1.2 13792 12800 ?? Ss Fri06PM 0:03.42
/usr/local/apache2/bin/httpd -d /usr/data/src/apache2/mod_perl-1.99_11/t
-f /usr/data/src/apache2/mod_perl-1.99_11/t/conf/httpd.conf -DAPACHE2
barbara 15406 0.0 1.2 13800 12804 ?? I Fri06PM 0:00.00
/usr/local/apache2/bin/httpd -d /usr/data/src/apache2/mod_perl-1.99_11/t
-f /usr/data/src/apache2/mod_perl-1.99_11/t/conf/httpd.conf -DAPACHE2
barbara 15408 0.0 1.2 13800 12804 ?? I Fri06PM 0:00.00
/usr/local/apache2/bin/httpd -d /usr/data/src/apache2/mod_perl-1.99_11/t
-f /usr/data/src/apache2/mod_perl-1.99_11/t/conf/httpd.conf -DAPACHE2
And netstat -a shows :
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address
(state)
tcp4 0 0 CVS_DATA01.ssh 192.168.1.38.1551
ESTABLISHED
tcp4 0 0 CVS_DATA01.ssh 192.168.1.38.1503
ESTABLISHED
tcp6 0 0 *.8544 *.*
LISTEN
(the same on ports 8530 to 8543)
tcp6 0 0 *.8529 *.*
LISTEN
tcp4 0 0 *.netbios-ssn *.*
LISTEN
tcp4 0 0 *.microsoft-ds *.*
LISTEN
tcp4 0 0 localhost.smtp *.*
LISTEN
tcp4 0 0 *.ssh *.*
LISTEN
tcp6 0 0 *.ssh *.*
LISTEN
udp4 0 0 CVS_DATA01.netbios-dgm *.*
udp4 0 0 CVS_DATA01.netbios-ns *.*
udp4 0 0 *.netbios-dgm *.*
udp4 0 0 *.netbios-ns *.*
udp4 0 0 *.syslog *.*
udp6 0 0 *.syslog *.*
I remember you I use FreeBSD 5.1.
Thanks a lot for your patience.
Barbara Post
-----Message d'origine-----
De : Stas Bekman [mailto:stas@stason.org]
Envoyé : dimanche 30 novembre 2003 22:06
À : barbara post
Cc : dev@perl.apache.org
Objet : Re: RE : RE : bug : make test fails
Barbara Post wrote:
> OK, sorry for the offense, you're right.
It wasn't an offense at all, sorry if I sounded like it was...
> The answer of the perl command line is an empty string.
>
> $ perl -Mlib=Apache-Test/lib -MApache::TestRequest -le 'print
> Apache::TestRequest::has_lwp'
Thanks Barbara. I just wanted to double check that it didn't think that
it had
LWP installed when it didn't. For some reason I can't reproduce the
problem.
> I will install LWP on Monday then.
Before you do that, can you please try applying this patch and see if
it's
still broken. I think it should work now fine without LWP:
Index: Apache-Test/lib/Apache/TestServer.pm
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestServer.pm
,v
retrieving revision 1.73
diff -u -r1.73 TestServer.pm
--- Apache-Test/lib/Apache/TestServer.pm 24 Nov 2003 08:28:34
-0000 1.73
+++ Apache-Test/lib/Apache/TestServer.pm 30 Nov 2003 20:57:57
-0000
@@ -584,10 +584,9 @@
my $server_up = sub {
local $SIG{__WARN__} = sub {}; #avoid "cannot connect ..."
warnings
- if (my $r = Apache::TestRequest::GET('/index.html')) {
- return $r->code;
- }
- 0;
+ # avoid fatal errors
+ my $r = eval { Apache::TestRequest::GET('/index.html') };
+ return !$@ && defined $r ? $r->code : 0;
};
if ($server_up->()) {
__________________________________________________________________
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: RE : RE : RE : bug : make test fails
Posted by Stas Bekman <st...@stason.org>.
Barbara Post wrote:
> Hi,
>
> The patch works :-) but I have troubles with "address already in use"...
>
> make test (as normal user) shows :
>
> waiting 60 seconds for server to start: .[Mon Dec 01 13:22:43 2003]
> [info] 23 Apache:: modules loaded
> [Mon Dec 01 13:22:43 2003] [info] 5 APR:: modules loaded
> [Mon Dec 01 13:22:43 2003] [info] base server + 11 vhosts ready to run
> tests
> (48)Address already in use: make_sock: could not bind to address
> [::]:8544
You must have had an older instance of httpd running. Please try:
% killall httpd
% ps auxc | grep httpd
% make test
__________________________________________________________________
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org