Forum Discussion
RD Session Host stuck at Status: "Upgrading"
I am in the same boat. Everything works fine with the template but I would like to be able to automate the creation of my own Session Hosts and can get everything moving to the point of where the RD Session Host is stuck with the Status: Upgrading. Status remained the same overnight.
Anyway we can check what could be failing. RDSDiagnosticActivities does not seem to have anything regarding the failing of that registration process.
Checking Event Viewer, I see that the Remote Desktop Services SxS Network Stack is stuck in some sort of loop where the Session Host keeps re-running the MSI installer and re-configures the installed RDS SxS Network Stack product every 5 minutes:
Log Name: Application
Source: Microsoft-Windows-RestartManager
Date: 3/28/2019 2:32:50 PM
Event ID: 10001
Task Category: None
Level: Information
Keywords:
User: SYSTEM
Computer: wvdhost.test.com
Description:
Ending session 0 started 2019-03-28T14:32:48.506934400Z.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-RestartManager" Guid="{}" />
<EventID>10001</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:50.599897100Z" />
<EventRecordID>552</EventRecordID>
<Correlation />
<Execution ProcessID="5600" ThreadID="2720" />
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<UserData>
<RmSessionEvent xmlns="http://www.microsoft.com/2005/08/Windows/Reliability/RestartManager/">
<RmSessionId>0</RmSessionId>
<UTCStartTime>2019-03-28T14:32:48.506934400Z</UTCStartTime>
</RmSessionEvent>
</UserData>
</Event>
Log Name: Application
Source: MsiInstaller
Date: 3/28/2019 2:32:50 PM
Event ID: 1042
Task Category: None
Level: Information
Keywords: Classic
User: SYSTEM
Computer: wvdhost.test.com
Description:
Ending a Windows Installer transaction: C:\Program Files\Microsoft RDInfra\SxSStack-1.0.1902.17001.msi. Client Process Id: 4400.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MsiInstaller" />
<EventID Qualifiers="0">1042</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:50.622450000Z" />
<EventRecordID>551</EventRecordID>
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<EventData>
<Data>C:\Program Files\Microsoft RDInfra\SxSStack-1.0.1902.17001.msi</Data>
<Data>4400</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>
</Data>
</EventData>
</Event>
Log Name: Application
Source: MsiInstaller
Date: 3/28/2019 2:32:50 PM
Event ID: 1035
Task Category: None
Level: Information
Keywords: Classic
User: SYSTEM
Computer: wvdhost.test.com
Description:
Windows Installer reconfigured the product. Product Name: Remote Desktop Services SxS Network Stack. Product Version: 1.0.1902.17001. Product Language: 1033. Manufacturer: Microsoft Corporation. Reconfiguration success or error status: 0.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MsiInstaller" />
<EventID Qualifiers="0">1035</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:50.591183400Z" />
<EventRecordID>550</EventRecordID>
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<EventData>
<Data>Remote Desktop Services SxS Network Stack</Data>
<Data>1.0.1902.17001</Data>
<Data>1033</Data>
<Data>0</Data>
<Data>Microsoft Corporation</Data>
<Data>(NULL)</Data>
<Data>
</Data>
<Binary></Binary>
</EventData>
</Event>
Log Name: Application
Source: MsiInstaller
Date: 3/28/2019 2:32:50 PM
Event ID: 11728
Task Category: None
Level: Information
Keywords: Classic
User: SYSTEM
Computer: wvdhost.test.com
Description:
Product: Remote Desktop Services SxS Network Stack -- Configuration completed successfully.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MsiInstaller" />
<EventID Qualifiers="0">11728</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:50.575597200Z" />
<EventRecordID>549</EventRecordID>
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<EventData>
<Data>Product: Remote Desktop Services SxS Network Stack -- Configuration completed successfully.</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>
</Data>
<Binary></Binary>
</EventData>
</Event>
Log Name: Application
Source: Microsoft-Windows-RestartManager
Date: 3/28/2019 2:32:48 PM
Event ID: 10000
Task Category: None
Level: Information
Keywords:
User: SYSTEM
Computer: wvdhost.test.com
Description:
Starting session 0 - 2019-03-28T14:32:48.506934400Z.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-RestartManager" Guid="{}" />
<EventID>10000</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:48.518299200Z" />
<EventRecordID>548</EventRecordID>
<Correlation />
<Execution ProcessID="5600" ThreadID="6308" />
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<UserData>
<RmSessionEvent xmlns="http://www.microsoft.com/2005/08/Windows/Reliability/RestartManager/">
<RmSessionId>0</RmSessionId>
<UTCStartTime>2019-03-28T14:32:48.506934400Z</UTCStartTime>
</RmSessionEvent>
</UserData>
</Event>
Log Name: Application
Source: MsiInstaller
Date: 3/28/2019 2:32:48 PM
Event ID: 1040
Task Category: None
Level: Information
Keywords: Classic
User: SYSTEM
Computer: wvdhost.test.com
Description:
Beginning a Windows Installer transaction: C:\Program Files\Microsoft RDInfra\SxSStack-1.0.1902.17001.msi. Client Process Id: 4400.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MsiInstaller" />
<EventID Qualifiers="0">1040</EventID>
<Level>4</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-03-28T14:32:48.491308300Z" />
<EventRecordID>547</EventRecordID>
<Channel>Application</Channel>
<Computer>wvdhost.test.com</Computer>
<Security UserID="" />
</System>
<EventData>
<Data>C:\Program Files\Microsoft RDInfra\SxSStack-1.0.1902.17001.msi</Data>
<Data>4400</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>
</Data>
</EventData>
</Event>
Any thoughts?
- alhenriq_msApr 02, 2019
Microsoft
Hi,
Can you verify if the reverse connect listener is up and running? On the VM that is stuck upgrading open a cmd window and run 'Qwinsta' you should see <SESSIONNAME> rdp-sxs190217001 <id> 655.. <STATE>Listen
if you do - typically rebooting the VM can help work around this.
Thanks,
-al
- smithancApr 08, 2019Copper Contributor
Thanks for the response! I had a look at the "Qwinsta" (result below) and saw that the SXS was running, so I rebooted the server and waited 15 minutes with no change.
SESSIONNAME USERNAME ID STATE TYPE DEVICE
services 0 Disc
console 1 Conn
>rdp-tcp#1 2 Active
31c5ce94259d4... 65536 Listen
rdp-tcp 65537 Listen
rdp-sxs##### 65538 ListenStill have the same behavior of SXS seeming like its trying to reinstall every 5 minutes with regards to entries in the Event Viewer.
Cheers