Author |
|
hypersonic
Joined: 17 Jul 2018 Posts: 9 Location: Germany
|
Posted: Tue 17 Jul '18 20:37 Post subject: Apache cannot shutdown / restart after Windows Update |
|
|
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
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: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 17 Jul '18 21:46 Post subject: |
|
|
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
|
Posted: Wed 18 Jul '18 3:25 Post subject: Re: Apache cannot shutdown / restart after Windows Update |
|
|
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: 226 Location: Denver, CO USA
|
Posted: Wed 18 Jul '18 5:57 Post subject: |
|
|
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: 9 Location: Germany
|
Posted: Wed 18 Jul '18 8:01 Post subject: |
|
|
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: 121 Location: U.S
|
Posted: Wed 18 Jul '18 16:45 Post subject: |
|
|
same issue on windows 7 64bit |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Wed 18 Jul '18 17:19 Post subject: |
|
|
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: 3092 Location: Hilversum, NL, EU
|
|
Back to top |
|
hypersonic
Joined: 17 Jul 2018 Posts: 9 Location: Germany
|
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Wed 18 Jul '18 21:14 Post subject: |
|
|
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: 3092 Location: Hilversum, NL, EU
|
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Thu 19 Jul '18 1:20 Post subject: |
|
|
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: 1266 Location: Amsterdam, NL, EU
|
Posted: Thu 19 Jul '18 3:58 Post subject: |
|
|
Quick Fix from a elevated prompt:
Code: | wusa /uninstall /KB:4338818 |
|
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Thu 19 Jul '18 17:36 Post subject: |
|
|
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: 1266 Location: Amsterdam, NL, EU
|
|
Back to top |
|
puertoblack2003
Joined: 31 Jul 2009 Posts: 121 Location: U.S
|
Posted: Fri 20 Jul '18 18:24 Post subject: |
|
|
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 |
|