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: Apache 2.4.29 64bit crash/restart without errors 3221225477
Author
Radek



Joined: 21 Nov 2017
Posts: 4

PostPosted: Tue 21 Nov '17 14:22    Post subject: Apache 2.4.29 64bit crash/restart without errors 3221225477 Reply with quote

Hi,

I am using the lastest version of Apache 2.4.29 Win 64 bit on Windows Server 2012.
Accurate configuration is: Apache/2.4.29 (Win64) PHP/5.3.28 mod_jk/1.2.42 OpenSSL/1.1.0g configured

Even though PHP is configured on Apache for (backuping) PHP project, but it is not used (I am using the same PHP configuration on other Apache servers without any problem). So I think PHP is not source of problems.

Problem: Sometimes Apache is randomly (once time a day or sometimes 7 times a day too) restarting. Error.log is clear except own restarting info:

Code:
[mpm_winnt:notice] [pid 696:tid 572] AH00428: Parent: child process 1532 exited with status 3221225477 -- Restarting.


Windows event log for this:
Code:
Faulting application name: httpd.exe, version: 2.4.29.0, time stamp: 0x59fc3e8b
Faulting module name: ucrtbase.DLL, version: 10.0.10586.788, time stamp: 0x5879ab76
Exception code: 0xc0000005
Fault offset: 0x0000000000018803
Faulting process id: 0x1050
Faulting application start time: 0x01d361e564e19879
Faulting application path: C:\programs\Apache24\bin\httpd.exe
Faulting module path: C:\Windows\SYSTEM32\ucrtbase.DLL
Report Id: e1ef7e90-ce68-11e7-80dd-f7b336c70fde
Faulting package full name:
Faulting package-relative application ID:


I have found an idea, that I have to increase memory to 8MB over:
Code:
<IfModule mpm_winnt_module>
   ThreadStackSize 8388608
</IfModule>

I tried it without success, Apache is still ramdomly restarted.



I use SSLEngine (ManagedDomain over Let's Encrypt) and SSLProxyEngine too. Please, can you help me, how can I found detailed problem/info or where can be a problem?

Thanks,
Radek
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 677

PostPosted: Tue 21 Nov '17 14:47    Post subject: Reply with quote

Yes, mostly it is caused by a third-party module. I have it with mod_security once in a while.

What happens when you compete remove PHP from you config ?

No other third-party module using ?

Debugging can only be done by using the windows crash files with Visual Studio 2017 and the compile output.
Back to top
Radek



Joined: 21 Nov 2017
Posts: 4

PostPosted: Tue 21 Nov '17 16:09    Post subject: Reply with quote

admin wrote:
Yes, mostly it is caused by a third-party module. I have it with mod_security once in a while.

What happens when you compete remove PHP from you config ?


Nothing, the same restarting problem (I am using this lastest version Apache with the same PHP version mod on older WS 2008 and without any problem).

admin wrote:

No other third-party module using ?

I am using:

Code:
# Load mod_jk module
LoadModule jk_module modules/mod_jk.so


Code:
# Load PHP
LoadModule php5_module "C:/../php5apache2_4.dll"


Code:
#Load md module
LoadModule md_module modules/mod_md.so
therefore..
LoadModule ssl_module modules/mod_ssl.so
LoadModule watchdog_module modules/mod_watchdog.so

and
Code:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_http2_module modules/mod_proxy_http2.so


That it's all.

Due to using mod_jk and projects on Tomcat we have to turn on:
Code:
AcceptFilter http none
AcceptFilter https none
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 677

PostPosted: Tue 21 Nov '17 16:48    Post subject: Reply with quote

Instead of mod_jk, you can try mod_proxy_ajp

See : https://httpd.apache.org/docs/2.4/mod/mod_proxy_ajp.html
Back to top
James Blond
Moderator


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

PostPosted: Tue 21 Nov '17 17:05    Post subject: Reply with quote

3221225477 is Windows error C0000005 or ACCESS_VIOLATION

Some modules require a different user level. For example with mod_auth_sspi I have to run Apache has a valid domain user or as local administrator. Even though it might be a security issue I ran it as local admin, cause the domain wasn't always there at boot time and the service won't start.
Also some module that use shared memory need admin privileges
Back to top
Radek



Joined: 21 Nov 2017
Posts: 4

PostPosted: Thu 14 Dec '17 13:02    Post subject: Reply with quote

Thanks guys, you're right with security issue.

I have find out that this problem was caused by changing admin password on windows server!

After change password everything seemed to be all right, it means all services was running, Apache too.

But like James Blond wrote, some modules require high level permissions that didn't have after changing password. I think it was md module with reading-writting certificates in "md" directory after specified time - I mean, this was causing restart Apache server.

So restart whole server helped.
Back to top


Reply to topic   Topic: Apache 2.4.29 64bit crash/restart without errors 3221225477 View previous topic :: View next topic
Post new topic   Forum Index -> Apache