Root database not found when launching HLK Studio

Yefei Gao 0 Reputation points
2024-10-07T17:11:24.6133333+00:00

Installed Windows HLK on Windows Server 2022 datacenter. Installation completed with no error. But when trying to launch HLK studio, following error occurred. How do I debug this?

Exception Details:

Microsoft.Windows.Kits.Hardware.ObjectModel.MachineException: Could not find a machine pool with the name: $
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.WttMachinePool.GetMachinePoolByName(DatabaseProjectManager manager, String name)
   at Microsoft.Windows.Kits.Hardware.UI.ViewModels.ViewModelDataSource.SetupConnectionInformation(ProjectManager projectManager, PackagingType packageType)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Event Log Entries:

[9/5/2024 10:16 PM]<HLK (Studio UI)> Exception Message: 
Microsoft.Windows.Kits.Hardware.ObjectModel.MachineException: Could not find a machine pool with the name: $
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.WttMachinePool.GetMachinePoolByName(DatabaseProjectManager manager, String name)
   at Microsoft.Windows.Kits.Hardware.UI.ViewModels.ViewModelDataSource.SetupConnectionInformation(ProjectManager projectManager, PackagingType packageType)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[9/5/2024 10:16 PM]<HLK (Machine)> Machine : Microsoft.Windows.Kits.Hardware.ObjectModel.MachineException: Could not find a machine pool with the name: $
[9/5/2024 10:16 PM]<HLK (Project)> Project : Microsoft.Windows.Kits.Hardware.ObjectModel.DataIntegrityException: WTT exception occurred ---> Microsoft.DistributedAutomation.Diagnostics.OMException:  'inst-builder-modify-create-image-disk-1s194'  data store is not found in the  'INST-BUILDER-MO'  enterprise.
   at Microsoft.DistributedAutomation.Enterprise.GetServiceStateInDataStore(Enterprise enterprise, String dataStoreName, Guid dataStoreGuid, String serviceName, DSLink& dsLink, Service& service)
   at Microsoft.DistributedAutomation.Enterprise.Connect(String dataStoreName, Guid dataStoreGuid, String serviceName)
   at Microsoft.DistributedAutomation.Enterprise.Connect(String dataStoreName, String serviceName, IdentityConnectInfo identityConnectInfo)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.SessionFactory`1.<>c__DisplayClass14_0.<ObjectPoolFactory>b__0(DbSessionManager`1 manager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.ObjectPool`1.Get(DbSessionManager`1 sessionManager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.SessionFactory`1.Create(Int32 sessionId, DbSessionManager`1 sessionManager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.DbSessionManager`1.GetSession()
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.DatabaseProjectManager.Query(Query inputQuery)
   --- End of inner exception stack trace ---
[9/5/2024 10:16 PM]<HLK (Project)> Project : Microsoft.Windows.Kits.Hardware.ObjectModel.DataIntegrityException: WTT exception occurred ---> Microsoft.DistributedAutomation.Diagnostics.OMException:  'inst-builder-modify-create-image-disk-1s194'  data store is not found in the  'INST-BUILDER-MO'  enterprise.
   at Microsoft.DistributedAutomation.Enterprise.GetServiceStateInDataStore(Enterprise enterprise, String dataStoreName, Guid dataStoreGuid, String serviceName, DSLink& dsLink, Service& service)
   at Microsoft.DistributedAutomation.Enterprise.Connect(String dataStoreName, Guid dataStoreGuid, String serviceName)
   at Microsoft.DistributedAutomation.Enterprise.Connect(String dataStoreName, String serviceName, IdentityConnectInfo identityConnectInfo)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.SessionFactory`1.<>c__DisplayClass14_0.<ObjectPoolFactory>b__0(DbSessionManager`1 manager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.ObjectPool`1.Get(DbSessionManager`1 sessionManager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.SessionFactory`1.Create(Int32 sessionId, DbSessionManager`1 sessionManager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.DbSessionManager`1.GetSession()
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.DatabaseProjectManager.Query(Query inputQuery)
   --- End of inner exception stack trace ---
[9/5/2024 9:37 PM]<HLK (Studio UI)> Exception Message: 
Microsoft.Windows.Kits.Hardware.ObjectModel.MachineException: Could not find a machine pool with the name: $
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.WttMachinePool.GetMachinePoolByName(DatabaseProjectManager manager, String name)
   at Microsoft.Windows.Kits.Hardware.UI.ViewModels.ViewModelDataSource.SetupConnectionInformation(ProjectManager projectManager, PackagingType packageType)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[9/5/2024 9:37 PM]<HLK (Machine)> Machine : Microsoft.Windows.Kits.Hardware.ObjectModel.MachineException: Could not find a machine pool with the name: $
[9/5/2024 9:37 PM]<HLK (Project)> Project : Microsoft.Windows.Kits.Hardware.ObjectModel.DataIntegrityException: WTT exception occurred ---> Microsoft.DistributedAutomation.Diagnostics.OMException:  'inst-builder-modify-create-image-disk-1s194'  data store is not found in the  'INST-BUILDER-MO'  enterprise.
   at Microsoft.DistributedAutomation.Enterprise.GetServiceStateInDataStore(Enterprise enterprise, String dataStoreName, Guid dataStoreGuid, String serviceName, DSLink& dsLink, Service& service)
   at Microsoft.DistributedAutomation.Enterprise.Connect(String dataStoreName, Guid dataStoreGuid, String serviceName)
   at Microsoft.DistributedAutomation.Enterprise.Connect(String dataStoreName, String serviceName, IdentityConnectInfo identityConnectInfo)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.SessionFactory`1.<>c__DisplayClass14_0.<ObjectPoolFactory>b__0(DbSessionManager`1 manager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.ObjectPool`1.Get(DbSessionManager`1 sessionManager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.SessionFactory`1.Create(Int32 sessionId, DbSessionManager`1 sessionManager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.DbSessionManager`1.GetSession()
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.DatabaseProjectManager.Query(Query inputQuery)
   --- End of inner exception stack trace ---
[9/5/2024 9:37 PM]<HLK (Project)> Project : Microsoft.Windows.Kits.Hardware.ObjectModel.DataIntegrityException: WTT exception occurred ---> Microsoft.DistributedAutomation.Diagnostics.OMException:  'inst-builder-modify-create-image-disk-1s194'  data store is not found in the  'INST-BUILDER-MO'  enterprise.
   at Microsoft.DistributedAutomation.Enterprise.GetServiceStateInDataStore(Enterprise enterprise, String dataStoreName, Guid dataStoreGuid, String serviceName, DSLink& dsLink, Service& service)
   at Microsoft.DistributedAutomation.Enterprise.Connect(String dataStoreName, Guid dataStoreGuid, String serviceName)
   at Microsoft.DistributedAutomation.Enterprise.Connect(String dataStoreName, String serviceName, IdentityConnectInfo identityConnectInfo)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.SessionFactory`1.<>c__DisplayClass14_0.<ObjectPoolFactory>b__0(DbSessionManager`1 manager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.ObjectPool`1.Get(DbSessionManager`1 sessionManager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.SessionFactory`1.Create(Int32 sessionId, DbSessionManager`1 sessionManager)
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.DbSessionManager`1.GetSession()
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.DatabaseProjectManager.Query(Query inputQuery)
   --- End of inner exception stack trace ---
[9/5/2024 9:37 PM]<HLK (Studio UI)> Exception Message: 
Microsoft.Windows.Kits.Hardware.ObjectModel.MachineException: Could not find a machine pool with the name: $
   at Microsoft.Windows.Kits.Hardware.ObjectModel.DBConnection.WttMachinePool.GetMachinePoolByName(DatabaseProjectManager manager, String name)
   at Microsoft.Windows.Kits.Hardware.UI.ViewModels.ViewModelDataSource.SetupConnectionInformation(ProjectManager projectManager, PackagingType packageType)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[9/5/2024 9:37 PM]<HLK (Machine)> Machine : Microsoft.Windows.Kits.Hardware.ObjectModel.MachineException: Could not find a machine pool with the name: $
System Information:

Available Virtual Memory: 1,518.00 MB
Available Physical Memory: 726.00 MB
Available Space on drive C:\: 11,153.00 MB



Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,848 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,276 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
137 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yefei Gao 0 Reputation points
    2024-11-19T13:41:09.3966667+00:00

    I forgot to update this post. I was able to figure this one out - the root cause was that I had a very long computer name(see my error message, 'inst-builder-modify-create-image-disk-1s194'). The HLK installer tries to use the computer name as the datastore name, but it truncates it, so the datastore name ends up shorter than the full computer name('inst-builder-mo'). However, when HLK Studio launches, it still tries to use the full computer name(again, see the error message I posted), hence the error.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.