Discussion:
Apache stops listening
Al
2014-08-14 21:12:13 UTC
Permalink
Hi,

I really hope that someone can help me. I have been having a problem
for at least 2 weeks and am unable to solve it. I keep getting errors
when I go to datazap.net Connection reset by peer and this is what I
found in the log:

[Thu Aug 14 14:15:55.284359 2014] [:error] [pid 9020] [client
108.9.211.95:2045] PHP Notice: A session had already been started -
ignoring session_start() in /var/www/imagehostplus.com/v2/
i.user.status.php on line 2, referer: http://www.imagehostplus.com/v2/
image.manager.php
[Thu Aug 14 14:15:55.286818 2014] [:error] [pid 9020] [client
108.9.211.95:2045] PHP Notice: Undefined variable: topnav in /var/www/
imagehostplus.com/v2/i.header.php on line 14, referer: http://
www.imagehostplus.com/v2/image.manager.php
[Thu Aug 14 14:15:55.323329 2014] [:error] [pid 9020] [client
108.9.211.95:2045] PHP Notice: Undefined variable: size_in_bytes in /
var/www/imagehostplus.com/v2/pf.code.php on line 57, referer: http://
www.imagehostplus.com/v2/image.manager.php
[Thu Aug 14 14:15:57.164502 2014] [:error] [pid 9020] [client
108.9.211.95:2045] PHP Notice: A session had already been started -
ignoring session_start() in /var/www/imagehostplus.com/v2/
i.user.status.php on line 2, referer: http://www.imagehostplus.com/v2/
image.list.php?fid=76684&jbl=d41d8cd98f00b204e9800998ecf8427e
[Thu Aug 14 14:15:57.166512 2014] [:error] [pid 9020] [client
108.9.211.95:2045] PHP Notice: Undefined variable: topnav in /var/www/
imagehostplus.com/v2/i.header.php on line 14, referer: http://
www.imagehostplus.com/v2/image.list.php?
fid=76684&jbl=d41d8cd98f00b204e9800998ecf8427e
[Thu Aug 14 14:16:19.297614 2014] [autoindex:error] [pid 20217]
[client 162.233.255.185:55367] AH01276: Cannot serve directory /var/
www/datazap.net/sites/2582/auction-images/: No matching
DirectoryIndex (index.html,index.htm,index.php) found, and server-
generated directory index forbidden by Options directive, referer:
http://vi.vipr.ebaydesc.com/ws/eBayISAPI.dll?
ViewItemDescV4&item=261551214995&t=1390852511000&tid=10&category=164315&
seller=oldvintageshopaholic&excSoj=1&excTrk=1&lsite=0&ittenable=false&do
main=ebay.com&descgauge=1
[Thu Aug 14 14:16:27.690236 2014] [:error] [pid 2515] [client
108.198.192.202:55340] PHP Notice: Undefined variable: _SESSION in /
var/www/cgi.datazap.net/core/include/user-status.php on line 2,
referer: http://cgi.datazap.net/list/
[Thu Aug 14 14:17:53.270261 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:17:54.280086 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:17:55.289943 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:17:56.300010 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:17:57.319987 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:17:58.330016 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:17:59.340058 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:18:00.350006 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:18:01.359966 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:18:02.369974 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:18:03.379988 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:18:04.390015 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:18:05.399988 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
[Thu Aug 14 14:18:06.410001 2014] [core:warn] [pid 27503] (54)
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80

I updated Apache, openssl, and apr today, which did not help. The
problem seemed to start sometime after I updated apache last time, to
fix the openssl issue and when I put in a new ssl certificate for
imagehostplus.com (I also added and removed some domains at that same
time). It sometimes runs for a few hours and other times only 20-30
minutes before needing to restart apache again. What is strange is
that everything that I tried seemed to help at first, but then it
would go back to needing more frequent restarts. I really need to get
this fixed ASAP.

Thanks,
Al
Eric Haszlakiewicz
2014-08-15 13:00:29 UTC
Permalink
Post by Al
I really hope that someone can help me. I have been having a problem
for at least 2 weeks and am unable to solve it. I keep getting errors
when I go to datazap.net Connection reset by peer and this is what I
Post by Al
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
I have no idea about the php errors, or if they're even relevant, but
I've seen mention that this error is caused by not having appropriate
"Listen" line(s) in your httpd.conf. You might want to check that and
see if setting it fixes whatever your problem is.
Otherwise, I think you're going to need to track down and explain a bit
more about exactly what problem you're seeing, what requests are
failing, does it fail repeatedly or only sporadically, etc...

Eric
Al
2014-08-15 15:17:37 UTC
Permalink
Post by Al
I really hope that someone can help me. I have been having a
problem for at least 2 weeks and am unable to solve it. I keep
getting errors when I go to datazap.net Connection reset by peer
Post by Al
Connection reset by peer: AH00056: connect to listener on 0.0.0.0:80
I have no idea about the php errors, or if they're even relevant,
but I've seen mention that this error is caused by not having
appropriate "Listen" line(s) in your httpd.conf. You might want to
check that and see if setting it fixes whatever your problem is.
Otherwise, I think you're going to need to track down and explain a
bit more about exactly what problem you're seeing, what requests
are failing, does it fail repeatedly or only sporadically, etc...
It fails about every 20-30 minutes. With Apache listening on
0.0.0.0:80 apache would stop working all together. Everything all
requests in the log would be Connection reset by peer. Restarting
apache would fix the problem for about 20-30 minutes and then it
would need to be restarted again. I changed it so that I put in the 4
IPs now I think I am only getting the failure every 20-30 minutes on
one IP (the main IP for that webserver). Once again restarting apache
seems to fix the problem for 20-30 minutes. I should also note that I
am running NetBSD 5.2. I hope that someone has some ideas.

Thanks,
Al
Eric Haszlakiewicz
2014-08-15 16:22:01 UTC
Permalink
Post by Al
It fails about every 20-30 minutes. With Apache listening on
0.0.0.0:80 apache would stop working all together. Everything all
requests in the log would be Connection reset by peer. Restarting
apache would fix the problem for about 20-30 minutes and then it
would need to be restarted again. I changed it so that I put in the 4
IPs now I think I am only getting the failure every 20-30 minutes on
one IP (the main IP for that webserver). Once again restarting apache
seems to fix the problem for 20-30 minutes. I should also note that I
am running NetBSD 5.2. I hope that someone has some ideas.
Thanks,
Al
When it fails, is it *all* connections, even ones from localhost? (I.e. through lynx, curl, wget or even just telnet)

Eric

Continue reading on narkive:
Loading...