You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/07/11 07:47:33 UTC

DO NOT REPLY [Bug 40010] New: - Server stops responding, and Connection refused: connect to listener on 0.0.0.0:80 in log.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40010>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40010

           Summary: Server stops responding, and Connection refused: connect
                    to listener on 0.0.0.0:80 in log.
           Product: Apache httpd-2
           Version: 2.2.2
          Platform: Other
               URL: http://www.attiksystem.ch
        OS/Version: FreeBSD
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: philippe.lang@attiksystem.ch


Hi,

Every now and then, Apache 2.2.2 is suddenly unresponsive, and starts filling my
httpd-error.log with thousands of lines like:

[Sat Jul 08 20:57:32 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 08 20:57:33 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 08 20:57:34 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 08 20:57:35 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 08 20:57:36 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 08 20:57:37 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 08 20:57:38 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 08 20:57:39 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 08 20:57:40 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80

I'm running Apache in FreeBSD 6.0 RELEASE-p2 jails.

Restarting Apache cures the problem for some time, until the problem appears
again. It is not that frequent, but the servers are not much loaded either.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40010] - Server stops responding, and Connection refused: connect to listener on 0.0.0.0:80 in log.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40010>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40010


jorton@redhat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From jorton@redhat.com  2006-07-11 14:34 -------
The warnings are just another symptom of whatever is causing the server to
refuse connections.  Are you using any firewalling rules on port 80?  

Otherwise I would guess this would be some issue to do with the use of jails. 
Does adding "AcceptFilter http none" make any difference?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40010] - Server stops responding, and Connection refused: connect to listener on 0.0.0.0:80 in log.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40010>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40010


wrowe@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows XP                  |FreeBSD
           Platform|PC                          |Other
            Version|2.2.3                       |2.2.2




------- Additional Comments From wrowe@apache.org  2006-12-28 10:29 -------
andras, don't hijaak bugs.  This one happens to be BSD specific.  Clue is - NEVER
change from someone else's OS to your OS.  And your error log doesn't correspond
to the reporter's, so the flaw appears to be different.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40010] - Server stops responding, and Connection refused: connect to listener on 0.0.0.0:80 in log.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40010>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40010





------- Additional Comments From trawick@apache.org  2006-12-13 06:27 -------
>One or two times a day Apache get messed up and does not
>connect to my MySQL server.

Since your Apache is running on Windows, your issue isn't related to this PR. 
If you think that an Apache bug is preventing something from connecting to your
MySQL server, open a separate PR.  The only Apache feature which can connect to
MySQL is   mod_dbd/mod_auth[nz]_dbd.  If it is a feature of a third-party module
which has the problem, we can't be of any assistance here.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40010] - Server stops responding, and Connection refused: connect to listener on 0.0.0.0:80 in log.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40010>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40010





------- Additional Comments From andrew.tulloch@maximalls.com  2006-09-14 14:52 -------
It seems to be related it the Listen Directive and how jails handle the address
0.0.0.0 (or not).

Default httpd.conf will have "Listen 80", which apache then for dummy
connections  (I think) tries connect to 0.0.0.0:80, this address is not remapped
by FreeBSD's jail to the jail's IP and it just tries to connect to the base
FreeBSD system and since you're not running apache there you get connection refused.

I noticed these logs entries on a jail on a new server and could reproduce them
hitting it with ab -n 1000 -c 100 http://servers/static-page.html

If you change the "Listen 80" directive to be "Listen your.jail.ip:80" The
problem seems to go away.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40010] - Server stops responding, and Connection refused: connect to listener on 0.0.0.0:80 in log.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40010>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40010





------- Additional Comments From hades@svenskapolare.se  2006-12-12 13:36 -------
(In reply to comment #4)
> It seems to be related it the Listen Directive and how jails handle the address
> 0.0.0.0 (or not).
> 
> Default httpd.conf will have "Listen 80", which apache then for dummy
> connections  (I think) tries connect to 0.0.0.0:80, this address is not remapped
> by FreeBSD's jail to the jail's IP and it just tries to connect to the base
> FreeBSD system and since you're not running apache there you get connection
refused.
> 
> I noticed these logs entries on a jail on a new server and could reproduce them
> hitting it with ab -n 1000 -c 100 http://servers/static-page.html
> 
> If you change the "Listen 80" directive to be "Listen your.jail.ip:80" The
> problem seems to go away.

I have the exact same problem but I'm using Win2003 behind a router with a
built-in firewall. One or two times a day Apache get messed up and does not
connect to my MySQL server. I have to restart Apache, only Apache, in order to
make it work. This is getting pretty frustrating.. 


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40010] - Server stops responding, and Connection refused: connect to listener on 0.0.0.0:80 in log.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40010>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40010


philippe.lang@attiksystem.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From philippe.lang@attiksystem.ch  2006-12-28 08:32 -------
(In reply to comment #4)
> It seems to be related it the Listen Directive and how jails handle the address
> 0.0.0.0 (or not).
> 
> Default httpd.conf will have "Listen 80", which apache then for dummy
> connections  (I think) tries connect to 0.0.0.0:80, this address is not remapped
> by FreeBSD's jail to the jail's IP and it just tries to connect to the base
> FreeBSD system and since you're not running apache there you get connection
refused.
> 
> I noticed these logs entries on a jail on a new server and could reproduce them
> hitting it with ab -n 1000 -c 100 http://servers/static-page.html
> 
> If you change the "Listen 80" directive to be "Listen your.jail.ip:80" The
> problem seems to go away.

The problem goes away, right. In FreeBSD jails, although only one single IP is
visible when issuing an ifconfig, you have to bind every server process to this
specific IP, not * or 0.0.0.0.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40010] - Server stops responding, and Connection refused: connect to listener on 0.0.0.0:80 in log.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40010>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40010





------- Additional Comments From philippe.lang@attiksystem.ch  2006-07-11 15:00 -------
(In reply to comment #1)
> The warnings are just another symptom of whatever is causing the server to
> refuse connections.  Are you using any firewalling rules on port 80?  
> 
> Otherwise I would guess this would be some issue to do with the use of jails. 
> Does adding "AcceptFilter http none" make any difference?

Hi,

The server does not use any kind of firewall at all.

I have tried the following, in the httpd.conf of 10 different jails:

------------
1. Commented out:
#LoadModule ssl_module libexec/apache22/mod_ssl.so

(I read someone else with the same kind of config and problem tried this
successfully.)

------------
2. Added:
AcceptFilter http none

Since I cannot reproduce the bug, I'll have to wait and see if these changes help.

------------


Cheers,

Philippe Lang

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40010] - Server stops responding, and Connection refused: connect to listener on 0.0.0.0:80 in log.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40010>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40010





------- Additional Comments From philippe.lang@attiksystem.ch  2006-07-16 11:09 -------
(In reply to comment #2)
> (In reply to comment #1)
> > The warnings are just another symptom of whatever is causing the server to
> > refuse connections.  Are you using any firewalling rules on port 80?  
> > 
> > Otherwise I would guess this would be some issue to do with the use of jails. 
> > Does adding "AcceptFilter http none" make any difference?
> 
> Hi,
> 
> The server does not use any kind of firewall at all.
> 
> I have tried the following, in the httpd.conf of 10 different jails:
> 
> ------------
> 1. Commented out:
> #LoadModule ssl_module libexec/apache22/mod_ssl.so
> 
> (I read someone else with the same kind of config and problem tried this
> successfully.)
> 
> ------------
> 2. Added:
> AcceptFilter http none
> 
> Since I cannot reproduce the bug, I'll have to wait and see if these changes help.
> 
> ------------
> 
> 
> Cheers,
> 
> Philippe Lang

Hi,

Unfortunately, the changes mentioned just before did not help. Apache 2.2.2 is
frozen again.

Here is the log that show the freeze:

--------------------------
[Sat Jul 15 14:25:36 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/adserver
[Sat Jul 15 14:25:37 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/phpAdsNew
[Sat Jul 15 14:25:37 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/phpadsnew
[Sat Jul 15 14:25:37 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/phpads
[Sat Jul 15 14:25:37 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/Ads
[Sat Jul 15 14:25:38 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/ads
[Sat Jul 15 14:25:38 2006] [error] [client 66.147.238.238] script
'/home/verticaldrape/www/data/xmlrpc.php' not found or unabl
e to stat
[Sat Jul 15 14:25:39 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/xmlrpc
[Sat Jul 15 14:25:39 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/xmlsrv
[Sat Jul 15 14:25:39 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/blog
[Sat Jul 15 14:25:39 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/drupal
[Sat Jul 15 14:25:40 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/community
[Sat Jul 15 14:25:40 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/blogs
[Sat Jul 15 14:25:40 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/blogs
[Sat Jul 15 14:25:40 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/blog
[Sat Jul 15 14:25:41 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/blogtest
[Sat Jul 15 14:25:41 2006] [error] [client 66.147.238.238] File does not exist:
/home/verticaldrape/www/data/b2
[Sat Jul 15 14:25:42 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 15 14:25:43 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 15 14:25:44 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 15 14:25:45 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 15 14:25:46 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 15 14:25:47 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 15 14:25:48 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 15 14:25:49 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 15 14:25:50 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sat Jul 15 14:25:51 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80

[snip]

[Sun Jul 16 04:50:10 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:11 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:12 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:13 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:14 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:15 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:16 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:17 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:18 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:19 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:20 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80
[Sun Jul 16 04:50:21 2006] [warn] (61)Connection refused: connect to listener on
0.0.0.0:80

--------------------------

While being scanned by a robot, apache suddenly crashes: it fills the log for a
few hours, and then dies. The web server is now completely unresponsive. A
deamon restart and everything runs fine again.

Any idea what happens here?



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 40010] - Server stops responding, and Connection refused: connect to listener on 0.0.0.0:80 in log.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40010>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40010


andrasd@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|FreeBSD                     |Windows XP
           Platform|Other                       |PC
            Version|2.2.2                       |2.2.3




------- Additional Comments From andrasd@gmail.com  2006-12-28 08:28 -------
I am having the same problem, every 2-3 days my httpd server just stops
responding. The error log has no info, the access log shows no suspicios
activity eighter.
I had Listen 80 in my conf file and changed it to Listen m.y.i.p:80.
I hope this will help resolve.

P.S. 3 days ago I installed 2.2.3 and hoped this was a problem with 2.2.2 but
2.2.3 did the same.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org