Forum Discussion
RD Session Host stuck at Status: "Upgrading"
andersidahl: Can you please re-run the template and create a new host pool? Delete the existing one it got into a bad state. If this happens again please let us know as we would like to get into the root cause of those issues.
- andersidahlMar 26, 2019Brass Contributor
evasse Hi Eva, thanks for reaching out.
I am not deploying with a template, that one works fine. I am trying to deploy to a Windows Server 2016 previously deployed.
The steps done are from: https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell. Everything seems to go fine with all steps, except that we are unable to connect after doing such steps and also when running the Get-RdsSessionHost it shows the agent as still updating. On the server its also some events which shows some error, I could send that directly if you have a secure drop for that?
Best regards, Anders
- alhenriq_msApr 02, 2019
Microsoft
Hi Anders,
The above exception, to me, indicates that the bootloader cannot find the agent because the required location is missing a registry key (Unable to retrieve DefaultAgent path from registry).
After installing the WVD Agent - it should have declared itself the default agent by creating this key in the AgentBootLoader regkey location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RDAgentBootLoader -> DefaultAgent
Can you verify that this key exists? Also please make sure you stop the AgentBootLoader service before trying to install the WVD Agent MSI.
thanks,
-al
- andersidahlApr 02, 2019Brass Contributor
Hi, I can verify that this was already tested. I also tried pulling the newer versjon setup from another server-setup that worked and installing manually and changing the registerkey, but it kept reconfiguring back to 1.6/1.7 i believe the version was. Also a lot of reboots inbetween and waiting, though it kept going back to Upgrading.
- smithancMar 28, 2019Copper Contributor
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.
- smithancMar 28, 2019Copper Contributor
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?