Address already in use: make_sock: could not bind to port [...]

2001-05-16 Thread Niels van Tongeren

Hello,

I have the same problem some other modperl-visitors have, namely the error
(48)Address already in use: make_sock: could not bind to port 8093, when
having started a long running external program and stopping and starting the
webserver. I have read the Performance Tuning-article on
http://perl.apache.org/guide/performance.html. I copied the Complete Fork
Example and I thought to have found the solution in the line
$r-cleanup_for_exec(); # untie the socket. However, when trying to run
the program I got the error:

[..] null: Can't locate object method cleanup_for_exec via package
Apache at [...]/test.pl line 19.

I have installed Apache-SubProcess-0.02 and checked the file
SubProcess.pm. In there I cannot find the method cleanup_for_exec. I
cannot find a newer version of Apache-SubProcess either. I do not know what
I am doing wrong. Does anyone have a clue?

Thanks in advance, 

Niels van Tongeren



Re: Address already in use: make_sock: could not bind to port [...]

2001-05-16 Thread Stas Bekman

On Wed, 16 May 2001, Niels van Tongeren wrote:

 Hello,

 I have the same problem some other modperl-visitors have, namely the error
 (48)Address already in use: make_sock: could not bind to port 8093, when
 having started a long running external program and stopping and starting the
 webserver. I have read the Performance Tuning-article on
 http://perl.apache.org/guide/performance.html. I copied the Complete Fork
 Example and I thought to have found the solution in the line
 $r-cleanup_for_exec(); # untie the socket. However, when trying to run
 the program I got the error:

 [..] null: Can't locate object method cleanup_for_exec via package
 Apache at [...]/test.pl line 19.

 I have installed Apache-SubProcess-0.02 and checked the file
 SubProcess.pm. In there I cannot find the method cleanup_for_exec. I
 cannot find a newer version of Apache-SubProcess either. I do not know what
 I am doing wrong. Does anyone have a clue?

Doug still didn't release a new version of this module. May be you should
nudge him :)

The patch is available from here:
[EMAIL PROTECTED]">http://forum.swarthmore.edu/epigone/modperl/fendfrerherd/[EMAIL PROTECTED]


_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: [crit] (98)Address already in use: make_sock: could not bind to port 8529

2000-12-20 Thread G.W. Haywood

Hi there,

On Wed, 20 Dec 2000 [EMAIL PROTECTED] wrote:

 I have the same problem,
 
There are so many things to look at and so many things you haven't
told me I hardly know where to start!  What are you doing that gives
this error?  Starting 'make test'?  Are you the superuser?  What port
are you telling Apache to bind to in your httpd.conf?  Can you start
Apache without using a script?  Have you tried 'apachectl configtest'?
Is there anything useful in your error_log?

Have a look in SUPPORT and the Guide.  SUPPORT tells you about the
sort of information you can give to help people help you.  The Guide
gives you loads of useful configuration information.  I'm just about
to leave for a Christmas break so I won't be able to get at my email
for a couple of days.  I'll have a look for your messages when I can
but in the meantime post as much information as concicely as you can
to the List and I'm sure you'll get a helpful response.

73,
Ged.




RE: [crit] (98)Address already in use: make_sock: could not bind to port 8529

2000-12-20 Thread Phil_Stubbington

Hi Ged,

I'm running "make test" for mod_perl, logged in as root.

error_log reads:-

"[crit] (98) Address already in use: make_sock: could not bind to port 8529"

Port in httpd.conf is 8529

Haven't tried "apachectl configtest" - will when I get to the machine
tonight.

Apologies for contacting you directly - I've been searching all over the
place and yours was the only article that was close to suggesting a
solution.

Thanks.

regards,
phil

-Original Message-
From: G.W. Haywood [mailto:[EMAIL PROTECTED]]
Sent: 20 December 2000 11:12
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [crit] (98)Address already in use: make_sock: could not
bind to port 8529


Hi there,

On Wed, 20 Dec 2000 [EMAIL PROTECTED] wrote:

 I have the same problem,
 
There are so many things to look at and so many things you haven't
told me I hardly know where to start!  What are you doing that gives
this error?  Starting 'make test'?  Are you the superuser?  What port
are you telling Apache to bind to in your httpd.conf?  Can you start
Apache without using a script?  Have you tried 'apachectl configtest'?
Is there anything useful in your error_log?

Have a look in SUPPORT and the Guide.  SUPPORT tells you about the
sort of information you can give to help people help you.  The Guide
gives you loads of useful configuration information.  I'm just about
to leave for a Christmas break so I won't be able to get at my email
for a couple of days.  I'll have a look for your messages when I can
but in the meantime post as much information as concicely as you can
to the List and I'm sure you'll get a helpful response.

73,
Ged.




RE: [crit] (98)Address already in use: make_sock: could not bind to port 8529

2000-12-20 Thread Stas Bekman

On Wed, 20 Dec 2000 [EMAIL PROTECTED] wrote:

 Hi Ged,
 
 I'm running "make test" for mod_perl, logged in as root.
 
 error_log reads:-
 
 "[crit] (98) Address already in use: make_sock: could not bind to port 8529"
 
 Port in httpd.conf is 8529
 
 Haven't tried "apachectl configtest" - will when I get to the machine
 tonight.
 
 Apologies for contacting you directly - I've been searching all over the
 place and yours was the only article that was close to suggesting a
 solution.

% make kill_httpd

See
http://perl.apache.org/guide/install.html#Built_Server_Testing_make_test_


_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/  





Re: [crit] (98)Address already in use: make_sock: could not bind to port 8529

2000-11-03 Thread G.W. Haywood

Hi there,

On Thu, 2 Nov 2000, Jose Albert wrote:

 I'm trying to set mod_perl with apache, all the compilation process look
 fine but the test  ends with this error in the
 
 t/logs/error_log :
 [Thu Nov  2 19:36:30 2000] [crit] (98)Address already in use: make_sock:
 could not bind to port 8529

How many copies of httpd are there running on your machine?

73,
Ged.