r/windowsserver2012 • u/Vegabond75 • May 02 '17
April 2017 Windows Patches on Windows Server 2012 results in Event ID 4231 roughly every 24 hours
This past week I patched a number of Windows Server 2012 R2 servers as is my monthly custom.
Many of the Windows Servers are fine - domain controllers, print servers, departmental application servers.
However, 4 servers are now generating Event ID 4231 about every 24 hours.
Server Descriptions 1 virtual server that is the passive node of a Windows Server file server cluster
1 physical server that is the passive node of a SQL Server 2012 cluster
2 virtual servers that are running SQL Server 2012
I have been searching to see if anyone else is experiencing this and what patch maybe the culprit.
3
u/neiltmcintyre May 24 '17
We encountered a related issue on two servers with 'Reconnecting' iscsi volumes. Thread count for system / NToskrnl increased steadily to about 17,500 threads, leading to system instability after approx 24 hours. we had one physical and one VM machine affected. there was no clue in the event logs, no port exhaustion. Just Kernel stopped working, and thankfully our monitoring solution was able to show the thread count issue.
psexplorer showed many threads with the following ID: ntoskrnl.exe+0x32100
other than that, we were still at sea!
Thanks to this thread, we checked for iscsi config issues, and removing the unused but 'reconnecting' iscsi target resolved the issue.
because the servers were a little behind on patching, we don't have a strong suspicion about which update screwed us, but the following KB were installed on the day that the issue started: KB4019213,KB4015547,KB4019215,KB4018271. Probably the 4019215, it was the may 2017 quality rollup.
2
u/[deleted] May 03 '17
I am having the exact same issue. Are you using Sophos Antivirus by any chance?
It's worth noting that netstat -a doesn't show many open connections on our server (I didn't count, but at a glance we are looking at about 100 connections). So that error isn't completely truthful.
2
u/basos9 Jun 22 '17
Hello, it happened to one of our servers windows 2012 R2, last update 9/2016. AS it appeared after troubleshooting the server was not able to create outbound connections.
Analysis:
The following event appeared TCPIP/4231 A request to allocate an ephemeral port number from the global TCP port space has failed due to all such ports being in use.
Reading the other replies here, i checked for the iSCSI initiators, but the service was not started.
Also using netstat -ano and tcpview only around 200 sockets were allocated. No TCP_WAIT storm or anything.
Using process explorer for the System process, showed only 120 kernel threads.
The only value that was high was handles count around 100K.
Also I tried to increase the ephemeral port count and the server managed to open outgoing connections.
netsh int ipv4 set dynamicportrange proto=tcp startport=45535 numberofports=20000
Since this was a temporary workaround, then I analyzed a kernel crash dump (I forced crashed the OS), quickly for kernel mode socket leaks (as noted in [1]) to no avail.
Finally The server was rebooted and will be monitored for future events.
Symptoms like the following occured like NETLOGON/5719 This computer was not able to set up a secure session with a domain controller in domain LOCAL due to the following: The RPC server is unavailable. and others.
[1] https://blogs.technet.microsoft.com/clinth/2013/08/09/detecting-ephemeral-port-exhaustion/
1
u/Sajem May 02 '17
It would help if you provided more information about the event.
What is the Source?
What is the Event Message?
How is anyone supposed to be able to help if you don't provide full information of the problem?
1
u/Vegabond75 May 02 '17
Since I am a new account, I have to wait 24 hours to post more responses in the SysAdmin
Log Name: System Source: Tcpip Event ID: 4231 Level: Warning User; N/A
General: A request to allocate an ephemeral port number from the global TCP port space has failed due to all such ports being in use.
These errors NEVER happened before applying Windows Patches last week.
The patches applied were: KB4012864 KB890830 KB4015193 KB4014987 KB4015550 KB4017094 KB4015547 KB4015553 KB4014983 KB4014661
1
u/Vegabond75 May 03 '17
I had posted this same problem in some Microsoft Tech Forums. Here is one response: Hello there, same problem here with one physical and one virtual 2012R2 Server. Problem appeared since last patches from April were installed. No cluster, no AV installed. What I found until now on both machines:
1
u/Vegabond75 May 03 '17
https://blogs.technet.microsoft.com/clinth/2013/08/09/detecting-ephemeral-port-exhaustion/
This is one way to detect. No information about underlying causes.
1
u/Vegabond75 May 03 '17
Turns out one of the iSCSI ports on a switch went bad. The server kept trying additional ports to reach the target until it ran out of ephemeral ports.
Thanks to MD for point out using the "netstat -aqo" and problems with the iSCSI service.
The case is closed.
1
u/Vegabond75 May 17 '17
There are a few other admins reporting a similar problem in the Microsoft Technet forum for WSUS:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/ef34d703-8005-41f2-af5a-482633ef018c/april-2017-windows-patches-on-windows-server-2012-results-in-event-id-4231-about-every-24-to-48?forum=winserverwsus#a608f898-0ed5-4ff3-a821-9251be3cf300
1
u/Solaris17 Jun 12 '17
Same problem, this just saved my life. iSCSI issue.