Author |
|
rks4sm
Joined: 28 Nov 2013 Posts: 17 Location: New Delhi
|
Posted: Thu 28 Nov '13 22:31 Post subject: Upgrading Apache from 2.2 to 2.4 issues |
|
|
Hi,
I have upgraded apache server on Win2008 R2 server from 2.2.22 to 2.4.6.
After making all the required changes in the config file,
as suggested at http://httpd.apache.org/docs/current/upgrading.html).
I am able to start the Apache server.
Installed version is following:
Apache/2.4.6(win32) OpenSSL/0.9.8y
We are facing intermittent connectivity issues to all the sites . Access to the sites is slow .
There is no specific error we could find in the log.
However, there are large number of error logs being generated in the log directory.
types of file generated:
ssl_error-2013-11-28-20_18_31
<sid>_error-2013-11-28-20_18_31
Part of my httpd config file:
#Win32DisableAcceptEx
I have added the following 3 lines but not sure about if this can resolve the issue
#AcceptFilter http none
#EnableSendfile Off
#EnableMMAP off
Can you please help me figure out the fix?
Thanks in advance,
Rakesh |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3093 Location: Hilversum, NL, EU
|
Posted: Thu 28 Nov '13 22:37 Post subject: |
|
|
You say: there are large number of error logs being generated in the log directory
I do not understand.
ssl_error-2013-11-28-20_18_31
<sid>_error-2013-11-28-20_18_31
Are these errors in the Apache error.log ?
What is the exact line ?
Try (without # in front):
AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off |
|
Back to top |
|
rks4sm
Joined: 28 Nov 2013 Posts: 17 Location: New Delhi
|
Posted: Thu 28 Nov '13 22:48 Post subject: |
|
|
Thanks Steffen for your reply.
What I meant when I said large number of files in the log directory is :
In the following directory
G:\Program Files (x86)\Apache Software Foundation\Apache2.2\log
We are seeing large number of files being generated every minute, each file of the size 10MB.
ssl_error-2013-11-28-20_18_31
<sid>_error-2013-11-28-20_18_31
There are the example of file being generated.
I haven't tried yet with "AcceptFilter http none".
I was wary of that as there was no mention in the apache.org upgrade note.
You think this could be related?
Thanks,
Rakesh |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3093 Location: Hilversum, NL, EU
|
Posted: Thu 28 Nov '13 23:06 Post subject: |
|
|
I have no idea where that files are generated.
What is in that files ?
Just try it:
AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off |
|
Back to top |
|
rks4sm
Joined: 28 Nov 2013 Posts: 17 Location: New Delhi
|
Posted: Thu 28 Nov '13 23:20 Post subject: |
|
|
I have tried with the four line.
AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off
Apache is up now but problem with the large number of log files remain.
The sample content of the error file:
--------------------------------------------------
[Thu Nov 28 21:09:08.292823 2013]
[rewrite:trace3] [pid 5572:tid 4424] mod_rewrite.c(468): [client 127.0.0.1:32590]
-----------------------------------------------------
Not sure if this is normal log output or it indicates any error.
I would like to mention that we have setup loglevel as below:
LogLevel warn rewrite:trace3
Thanks,
Rakesh |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3093 Location: Hilversum, NL, EU
|
Posted: Thu 28 Nov '13 23:33 Post subject: |
|
|
Ah, you trace mod_rewrite. Just remove rewrite:trace3 from LogLevel. |
|
Back to top |
|
rks4sm
Joined: 28 Nov 2013 Posts: 17 Location: New Delhi
|
Posted: Thu 28 Nov '13 23:46 Post subject: |
|
|
whoa!
It did fix the relentless logging issues. Now there is calmness in the log directory
I hope the four things that I set makes the intermittent issues go away...
Thanks Steffen!
Rakesh |
|
Back to top |
|
rks4sm
Joined: 28 Nov 2013 Posts: 17 Location: New Delhi
|
Posted: Fri 29 Nov '13 20:30 Post subject: |
|
|
After the upgrade, everything has been working fine after including:
AcceptFilter http none,
enableMMAP off
EnableFile off
Until we see the following error:
--------------------------------------------------
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /ZT1Ra0ZUU1ZNeFgxOWZYMTlmTUY5Zk1UTX
diQzZZVXNQRDV6dmhBQUFBQ2xzQUNnPT0=)/bc/bsp/uvw/dsn_ui_frame/BSPWDApplication.do.
Reason: Error reading from remote server
________________________________________
Apache/2.4.6 (Win32) OpenSSL/0.9.8y Server at www.xyz.com Port 443
-----------------------------------------------------
Can you please suggest what went wrong?
Thanks,
Rakesh |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3093 Location: Hilversum, NL, EU
|
Posted: Fri 29 Nov '13 20:54 Post subject: |
|
|
You did not added AcceptFilter https none ?
The message says all : invalid response from an upstream server.
Look in the log from the upstream server. |
|
Back to top |
|
rks4sm
Joined: 28 Nov 2013 Posts: 17 Location: New Delhi
|
Posted: Thu 05 Dec '13 16:07 Post subject: |
|
|
Thanks Steffen,
you have been the savior! I think in 2.4.6 it is mandatory to use "AcceptFilter https/http none" but it is not documented in the apache.org
Thanks,
Rakesh |
|
Back to top |
|