Link to home
Create AccountLog in
Windows OS

Windows OS

--

Questions

--

Followers

Top Experts

Avatar of msidnam
msidnamπŸ‡ΊπŸ‡Έ

RDS 2012 R2 random disconnects
We are testing out Windows Server 2012 R2 RDS. We have several users on the server but they are getting kicked out randomly. We've checked the network and don't see anything out of the ordinary. We have several 2008 R2 servers that are not having this issue.

when we look in the logs we see this:

Session 10 has been disconnected, reason code 12

Session 13 has been disconnected, reason code 0

The codes are different but the Event Id is the same, Microsoft-Windows-TerminalServices-LocalSessionManager Event ID 40.

Looking online i don't see a solid answer. I'm hoping someone has seen this before. One thing we did do, was put in a license for the server itself. We saw one post where someone was using the 180 day free trial (that's what we are using) and once they licensed it, it worked. We tried that but we are getting disconnects still.

Thank you.

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Robin CMRobin CMπŸ‡¬πŸ‡§

To save my fingers, here's another question where I've posted a LOAD of stuff to check for.
Try those things in order and see if that helps, and report back on what works/does not work.
https://www.experts-exchange.com/questions/28699630/Random-RDP-disconnects-on-Server-2012.html

Avatar of bbaobbaoπŸ‡¦πŸ‡Ί

Event ID 40 is for RD licensing therefore the disconnection should be caused by a kind of licensing issue.

>Β where someone was using the 180 day free trial (that's what we are using)
>Β We tried that but we are getting disconnects still.

could you please clarify, do you mean you have tried using genuine license instead of the 180-day trial one?

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

bboa,
Yes, that is correct. We put in a valid windows 2012 R2 Standard key to see if it would help but it didn't.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

I've put in a ticket with Microsoft. So far they've sent me options that I've already found and didn't work. Currently they are having us run netmon on both client and servers to see what happens when the disconnect happens.

Avatar of Robin CMRobin CMπŸ‡¬πŸ‡§

Will be interesting to know what they find - this seems to be a not-uncommon issue. Please keep us up to date with any new info/progress :-) You might even get some points for closing that other question I've been doing battle with for so long!!

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

I will definitely keep you all updated.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

Microsoft escalated this to the network team. We ran packet captures between the clients and workstations. I gave the captures Β to Microsoft and they said they see an ack reset coming from the server but they don't know why. No packet loss Or packets dropped and the communication looks clean they said.

Avatar of Robin CMRobin CMπŸ‡¬πŸ‡§

Interesting... well at least it is coming from a device running their own code!
I'll be interested to know what the root cause of this is - hope they find it soon for you :-)

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

I missed their call this morning but we have a scheduled call at 2pm EST. Hopefully they have something for me.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of AaronSSHAaronSSHπŸ‡ΊπŸ‡Έ

Are you using Wyse thin clients?

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

No Wyse clients. Windows 7 desktops.

They called me back and we enabled debug and analytic logging for:

-RemoteDesktopServices-RDPCoreTS
-TerminalServices-LocalSessionManager
-TerminaServices-RemoteConnectionManager

If they don't see anything in those logs they said they will need to do an RDP Trace.

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

Just a quick update. M$ is still looking at our logs.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Robin CMRobin CMπŸ‡¬πŸ‡§

Thanks for the update! They seem to be foxed... You get bonus points if they release a hotfix for this issue ;-)

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

LOL. I think I've stumped them for sure. They've been looking at the logs for a week.

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

a quick update. They now have us running traces using Netmon and something called RDSTrace.exe on both client and servers.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Robin CMRobin CMπŸ‡¬πŸ‡§

Wow, interesting that this is still not fixed. Thanks for the update!

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

Still waiting on a reply from Microsoft support.

Avatar of Robin CMRobin CMπŸ‡¬πŸ‡§

This had better be worth the wait...! ;-)

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

Still waiting for M$. they have not contacted me in over a week.

Avatar of Robin CMRobin CMπŸ‡¬πŸ‡§

Any progress?

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

Nothing yet. They had us change more registry settings but we are still getting disconnects. I will say, it's less than when we started but we still get them. I also had our MPLS provider check our routers and they did say they made some changes, in particular QOS settings, but nothing seems to be solid.

Very, very frustrating. Especially since we have a 2008 RDS Farm with no disconnect issues.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

Hello Everyone. A quick update. Microsoft I think has given up. they havent called me in several weeks. I've been doing my own research and came across this TECHNET post.

I've installed kb2984006 on my windows 2012 R2 servers and I uninstalled kb2923545 on my windows 7 clients. I just did this last night and I am having my users test today to see if we get any disconnects.

Hopefully i can give you all a solid answer tonight or tomorrow.

Avatar of Robin CMRobin CMπŸ‡¬πŸ‡§

We may have covered this already ages ago, but is the data going through any kind of firewall between the server and the client? I wonder if the firewall is chopping the connection if it thinks it has been idle for too long: http://kb.juniper.net/InfoCenter/index?page=content&id=KB7046&actp=search
I had this recently with a web application, and increased the session timeout on the internal Juniper SRX firewall to stop SQL sessions being disconnected, which resolved the problem.

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

No firewalls between the MPLS connections. We do have a device called Talari that takes in our MPLS and backup Comcast line in case one goes down and also a device called secnap that is an IDS/IPS. I've contacted both vendors and they don't see anything that would be causing the disconnects. I've even called our MPLS provider since they manage the routers and they don't see anything.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of bbaobbaoπŸ‡¦πŸ‡Ί

> Microsoft escalated this to the network team.
>Β We ran packet captures between the clients and workstations.

as the error codes suggested, it should be a license related issue at Application Layer, not something down to Network Layer. are you still using the trial licenses?

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

No. We've been using the real licenses for a while now.

Avatar of bbaobbaoπŸ‡¦πŸ‡Ί

if so, i would suggest you to set up another server for test with the exact same software configurations and settings. of course, this time you apply authenticated license directly, NOT any trail license.

if the test server works well without the same issue, that means something wrong in the software build.

sometimes, MS products are funny, you have to or better install them from the scratch. no upgrade, no trail.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Robin CMRobin CMπŸ‡¬πŸ‡§

Ah well, worth a shot. Bit rubbish if MS have gone silent on you though. Presumably you had to pay them?

ASKER CERTIFIED SOLUTION
Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Robin CMRobin CMπŸ‡¬πŸ‡§

Glad it's sorted for you finally :-)

Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

Also, this patch is needed on the windows 8.1 client as well: https://support.microsoft.com/en-us/kb/2984006

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of msidnammsidnamπŸ‡ΊπŸ‡Έ

ASKER

This was the only solution that worked.
Windows OS

Windows OS

--

Questions

--

Followers

Top Experts

This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.