logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 


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

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.




Apache cannot shutdown / restart after Windows Update

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
hypersonic



Joined: 17 Jul 2018
Posts: 3
Location: Germany

PostPosted: Tue 17 Jul '18 20:37    Post subject: Apache cannot shutdown / restart after Windows Update Reply with quote

We have three Win 2012 R2 Servers, currently running Apache 2.4.33 VC15 32-bit (today also tested 2.4.34). No problems in the last years until the recent Windows update on July 11.
After the update, on all three servers (different machines, different processors, different providers but mostly identical software config) the Apache service cannot be shutdown and thus cannot be restarted anymore. Event log shows:

Code:
The Apache service named  reported the following error:
>>> (OS 10048)Normalerweise darf jede Socketadresse (Protokoll, Netzwerkadresse oder Anschluss) nur jeweils einmal verwendet werden.  : AH00072: make_sock: could not bind to address 0.0.0.0:80     .


Code:
The Apache service named  reported the following error:
>>> AH00451: no listening sockets available, shutting down     .


But neither port 80 nor 443 are in use, as far as I can see from
Code:
netstat -anb


Only solution is to completely restart Windows. After that Apache service runs w/o problems.
Following Windows updates have been installed on July 11:
- KB4338815
- KB890830
- KB4340558

Possibly a problem with NIC driver, following events:
Code:
Source: AFD, Event ID: 16002

Translation of the error message is:
Code:
Closing of a TCP socket with local port number 80 in process 1120 lasted longer than expected.
Make sure newest NIC drivers are installed.


Device manager does not indicate any problems.

Any ideas anybody?

Thanks a lot
Michael
Back to top
James Blond
Moderator


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

PostPosted: Tue 17 Jul '18 21:46    Post subject: Reply with quote

Hi Miachael,
your apache does not even start.

Something is blocking the port.

run cmd.exe as Administrator and run
Code:

netstat -ano | findstr /R 0.0:80 && netstat -ano | findstr /R 0.0:443


You may look at https://www.apachelounge.com/viewtopic.php?t=1265

if you still have a question please ask again.
Back to top
sjbartley



Joined: 17 Aug 2014
Posts: 2
Location: Australia

PostPosted: Wed 18 Jul '18 3:25    Post subject: Re: Apache cannot shutdown / restart after Windows Update Reply with quote

This inability to shutdown the Apache service is affecting us too (only since last week).

What I can add:
1) We run the Apache service with a custom Windows/network account.
2) The issue is the failure to stop the service. When attempting this manually (net stop, or via right-click, etc...), the status hangs at 'stopping'. Killing the process appears to succeed, but the service retains the status 'stopping', and attempting to start the service again results in an error like the following:

(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: make_sock: could not bind to address 0.0.0.0:80 .
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 177
Location: Denver, CO USA

PostPosted: Wed 18 Jul '18 5:57    Post subject: Reply with quote

I too am having the same issue on a Windows 2008
R2 server.

If I try to stop httpd service, it just hangs and hangs and hangs. Only way to resolve is to reboot the server.

Nevermind - Got it fixed. Turned out to be a minute typo error.
Back to top
hypersonic



Joined: 17 Jul 2018
Posts: 3
Location: Germany

PostPosted: Wed 18 Jul '18 8:01    Post subject: Reply with quote

James Blond wrote:

your apache does not even start.

well, in fact it does start once after the server boot.

The problem is that it doesn't stop correctly if it has to be restarted for some reason.

James Blond wrote:

Something is blocking the port.

run cmd.exe as Administrator and run
Code:

netstat -ano | findstr /R 0.0:80 && netstat -ano | findstr /R 0.0:443



That's what I already did, but netstat doesn't list any applications using these ports.

Today I found that Microsoft launched a hotfix for Windows 10 and Server 2016 addressing the bug "Tcp port is already in use when restarting SQL Server".
https://support.microsoft.com/de-de/help/4345421/windows-10-update-kb4345421
Let's hope this will also fix our problem with Apache and MS will soon release the bug fix also for Server 2012.
Back to top
puertoblack2003



Joined: 31 Jul 2009
Posts: 76

PostPosted: Wed 18 Jul '18 16:45    Post subject: Reply with quote

same issue on windows 7 64bit
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 177
Location: Denver, CO USA

PostPosted: Wed 18 Jul '18 17:19    Post subject: Reply with quote

Apparently, the issue is back. Apache (2.4.34) service hangs on stopping on Windows 2008R2 server - which is running all the latest patches from Microsoft.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2662
Location: Hilversum, NL, EU

PostPosted: Wed 18 Jul '18 18:59    Post subject: Reply with quote

What happens when you uninstall KB4338818 ?

For IIS the issue went away, see http://www.technology-arena.com/index.php/2018/07/17/microsoft-releases-27-windows-patches-for-patch-tuesday-bugs/
Back to top
hypersonic



Joined: 17 Jul 2018
Posts: 3
Location: Germany

PostPosted: Wed 18 Jul '18 20:37    Post subject: Reply with quote

Steffen wrote:
What happens when you uninstall KB4338818 ?

For IIS the issue went away, see http://www.technology-arena.com/index.php/2018/07/17/microsoft-releases-27-windows-patches-for-patch-tuesday-bugs/


Thanks for the link.

MS has released further versions of their hotfix, now also for Win 8.1 and 2012 R2:
https://support.microsoft.com/en-us/help/4345424/improvements-and-fixes-windows-8-1-and-server-2012-r2

Download here:
http://www.catalog.update.microsoft.com/Search.aspx?q=KB4345424

I tested it on one of the affected servers and Apache now shuts down and restarts w/o problems and seems to behave normally again.
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 869
Location: Amsterdam, NL, EU

PostPosted: Wed 18 Jul '18 21:14    Post subject: Reply with quote

Same here with Apache 2.4.34 VC9 x86 and VC14 x64 on Windows 2008 R2. Even pskil httpd did nor remove the fist httpd.exe. Nly rebooting helps.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2662
Location: Hilversum, NL, EU

PostPosted: Wed 18 Jul '18 22:55    Post subject: Reply with quote

More info:

https://social.technet.microsoft.com/Forums/en-US/64fc8bf1-f26f-4498-8fef-6ebe7982fb11/july-updates-huge-problems-with-closing-ports-and-services?forum=winserver8gen
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 177
Location: Denver, CO USA

PostPosted: Thu 19 Jul '18 1:20    Post subject: Reply with quote

Interesting that when I reboot my Microsoft Windows 2008R2 server and start Apache 2.4.34, I can wait a minute or two and successfully stop and restart Apache.

Now, if I try it after about an hour or two, Apache hangs on stopping.

I have gone ahead and removed KB4338818. I will wait for a bit after the reboot and see if the issue is resolved or not.
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 869
Location: Amsterdam, NL, EU

PostPosted: Thu 19 Jul '18 3:58    Post subject: Reply with quote

Quick Fix from a elevated prompt:
Code:
wusa /uninstall /KB:4338818
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2662
Location: Hilversum, NL, EU

PostPosted: Thu 19 Jul '18 11:09    Post subject: Reply with quote

Found a nice OS table at :

https://www.windowspro.de/news/juli-update-kb4338814-fuer-server-2016-verursacht-probleme-exchange/04022.html
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 177
Location: Denver, CO USA

PostPosted: Thu 19 Jul '18 17:36    Post subject: Reply with quote

I am happy to report that after removing Microsoft KB:4338818, all is well. Apache 2.4.34 does not hang when stopping / restarting the HTTPD service.
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 869
Location: Amsterdam, NL, EU

PostPosted: Thu 19 Jul '18 21:52    Post subject: Reply with quote

July 18, 2018—KB4338821 (Preview of Monthly Rollup)

https://support.microsoft.com/en-ph/help/4338821/july242018kb4338821osbuildpreviewofmonthlyrollup

Applies to: Windows 7 Service Pack 1Windows Server 2008 R2 Service Pack 1
Back to top
puertoblack2003



Joined: 31 Jul 2009
Posts: 76

PostPosted: Fri 20 Jul '18 18:24    Post subject: Reply with quote

yep. latest ms update rollup worked for me..thanks for sharing guys

(2018-07 Preview of Monthly Quality Rollup for Windows 7 for x64-based Systems (KB4338821)

Installation date: ‎7/‎20/‎2018 12:01 PM

Installation status: Successful

Update type: Optional

Install this update to resolve issues in Windows. For a complete listing of the issues that are included in this update, see the associated Microsoft Knowledge Base article for more information. After you install this item, you may have to restart your computer.

More information:
http://support.microsoft.com/help/4338821

Help and Support:
http://support.microsoft.com/help/4338821
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1