logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Httpd.exe Application Errors - Windows Server 2003
Author
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Tue 08 Jan '08 17:32    Post subject: Httpd.exe Application Errors - Windows Server 2003 Reply with quote

Hi everyone.

I have managed to set-up a reverse proxy with Apache using mod_proxy_html. However, i am now getting very frequent application errors in my windows event viewer, along with multiple "information" entries to say there are queued errors. They are:

Code:
"Error": Faulting application httpd.exe, version 2.2.6.0, faulting module mod_proxy_html.so, version 0.0.0.0, fault address 0x00002970.

"Information": Reporting queued error: faulting application httpd.exe, version 2.2.6.0, faulting module mod_proxy_html.so, version 0.0.0.0, fault address 0x00002970.


The apache error logs do not particularly show anything of note. I have my log level set to debug. Here are the logs for the latest error:

Code:
[Tue Jan 08 15:27:09 2008] [debug] proxy_util.c(2266): proxy: HTTP: connection complete to 127.0.0.1:8082 (localhost)
[Tue Jan 08 15:27:09 2008] [debug] mod_proxy_http.c(1478): proxy: start body send
[Tue Jan 08 15:27:12 2008] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Tue Jan 08 15:27:13 2008] [notice] Apache/2.2.6 (Win32) proxy_html/3.0.0 configured -- resuming normal operations
[Tue Jan 08 15:27:13 2008] [notice] Server built: Sep 25 2007 20:19:40
[Tue Jan 08 15:27:13 2008] [notice] Parent: Created child process 2348


It appears that something is telling apache that the request is complete and then forcing a restart but i dont get what?

I have found various threads on this site which ive applied but it doesnt seem to have made any difference:

http://www.apachelounge.com/viewtopic.php?t=2052
http://www.apachelounge.com/viewtopic.php?p=8201
http://www.apachelounge.com/viewtopic.php?p=452

The installs of mod_proxy and Apache are both the compiled versions from this site.

Any help greatly appreciated because i dont know where to go from here.

Thanks!

Marc
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 08 Jan '08 17:50    Post subject: Reply with quote

I had some trouble with version 3 on my 2003 server. There only worked version 2.5.2 Sad
Did your apache run without mod_proxy_html or did you set it up new? Because status 3221225477 seem to be like an PHP error.
Back to top
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Tue 08 Jan '08 17:54    Post subject: Reply with quote

Sorry i dont know what you mean re: setting up new. I just installed apache2 and then added mod_proxy_html to it.

Yes i noticed the thread http://www.apachelounge.com/viewtopic.php?t=2052 and checked for all mentions of PHP in my httpd.conf and i dont have PHP installed at all. Did you end up having to roll back to version 2.5.2?

Thanks.
Back to top
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Tue 08 Jan '08 19:22    Post subject: Reply with quote

I have installed mod_proxy_html 2.5.2 instead and it has made no difference.
Sad
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 08 Jan '08 20:59    Post subject: Reply with quote

a) If you disable mod_proxy_html, does Apache run than?

b)try to start apache in debuging mode

Code:

httpd -e debug
Back to top
niq



Joined: 11 Aug 2007
Posts: 6

PostPosted: Wed 09 Jan '08 10:00    Post subject: Reply with quote

mod_proxy_html 3.0 requires the additional configuration in proxy_html.conf. Without it, you will get segfaults when it dereferences an uninitialised list of link elments/attributes that may need rewriting.

This bug in 3.0.0 is fixed in the svn version.
Back to top
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Wed 09 Jan '08 11:17    Post subject: proxy_html.conf Reply with quote

Thanks for the response, but since i am getting the same errors with v2.5 and v3.0 would it not be a reasonable assumption that it is somewhere else?

ta

marc

I include html.conf as this:

#html links
ProxyHTMLLinks a href
ProxyHTMLLinks area href
ProxyHTMLLinks link href
ProxyHTMLLinks img src longdesc usemap
ProxyHTMLLinks object classid codebase data usemap
ProxyHTMLLinks q cite
ProxyHTMLLinks blockquote cite
ProxyHTMLLinks ins cite
ProxyHTMLLinks del cite
ProxyHTMLLinks form action
ProxyHTMLLinks input src usemap
ProxyHTMLLinks head profile
ProxyHTMLLinks base href
ProxyHTMLLinks script src for
ProxyHTMLLinks link href

#scripting

ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
onmouseover onmousemove onmouseout onkeypress \
onkeydown onkeyup onfocus onblur onload \
onunload onsubmit onreset onselect onchange

#transitional
ProxyHTMLLinks frame src longdesc
ProxyHTMLLinks iframe src longdesc
ProxyHTMLLinks body background
ProxyHTMLLinks applet codebase
Back to top
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Wed 09 Jan '08 11:57    Post subject: Reply with quote

The proxy_html.conf at http://apache.webthing.com/svn/apache/filters/proxy_html/proxy_html.conf

Has extra configuration details in as stated by niq.

I have added the following lines and moved back to mod_proxy_html 3. Will report back if it works.

# For Windows (I don't know if there's a standard path for the libraries)
LoadFile C:\Apache2\bin\zlib1.dll
LoadFile C:\Apache2\bin\addedDll\iconv.dll
LoadFile modules/mod_proxy_html/libxml2.dll
LoadModule proxy_html_module modules/mod_proxy_html/mod_proxy_html.so


Thanks

Marc
Back to top
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Wed 09 Jan '08 12:48    Post subject: Reply with quote

That doesnt seem to have made any difference. Im still getting the same errors. How do i go about getting the latest version from SVN?

Apache runs fine without mod_proxy_html apart from the reverse proxying bit!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 09 Jan '08 14:24    Post subject: Reply with quote

Do you use Apache from apachelounge.com or apache.org?
Did you install MSVC80 runtime SP1 files ?
Back to top
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Wed 09 Jan '08 15:09    Post subject: Reply with quote

Hi.

I installed httpd-2.2.6-win32-x86-ssl.zip from Apache Lounge and the Visual C++ 2005 Runtime libraries using vcredist_x86.exe dated 22/11/07.

Do i need anything else?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 09 Jan '08 15:36    Post subject: Reply with quote

Not easy to say what can be missing. You may use depency walker to find out which file is missing. File which are located in apache\bin are ok.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Wed 09 Jan '08 16:31    Post subject: Reply with quote

You might try setting:
    ProxyHTMLLogVerbose On
to get a more detailed log of mod_proxy_html's actions just before the crash.

Note that LogLevel should be set to "info" or "debug" for this, but it appears yours is already set to "debug".

-tom-
Back to top
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Thu 10 Jan '08 12:32    Post subject: Reply with quote

Even with LogVerbose On it still doesnt actually throw and error. It just magically restarts.

[Thu Jan 10 09:01:21 2008] [notice] Child 4744: Starting thread to listen on port 80.
[Thu Jan 10 09:01:24 2008] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Thu Jan 10 09:01:24 2008] [notice] Apache/2.2.6 (Win32) proxy_html/3.0.0 configured -- resuming normal operations

Dependancy Walker indicated that dwmapi.dll was missing so I found a copy and moved it to system32. And now Dependancy Walker is relatively happy.

"Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module." That either refers to SHLWAPI.dll or USER.dll as they are both red. Are they not windows dll's rather than Apache ones?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 10 Jan '08 12:57    Post subject: Reply with quote

SHLWAPI.dll is located in Windows\System32
user.dll I haven't found on my W2k3 SP2 (standart edition) nor on WinXP SP2
I know only user32.dll which is on Windows\System32 as well. Dependancy Walker "tells" me that user32.dll is "missing", but that's ok cause it is in the system32 folder.

Which proxy modules do you load in httpd.conf?

You need
mod_proxy.so
mod_proxy_http.so
mod_proxy_html.so

# for ssl connection
mod_proxy_connect.so

also need
mod_headers.so
Back to top
birkettm



Joined: 27 Apr 2006
Posts: 20

PostPosted: Thu 10 Jan '08 13:56    Post subject: Reply with quote

Yes i have loaded all of those things.

It is user32.dll not user.dll - apologies for that.
Back to top


Reply to topic   Topic: Httpd.exe Application Errors - Windows Server 2003 View previous topic :: View next topic
Post new topic   Forum Index -> Apache