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.
Root database not found when launching HLK Studio
Yefei Gao
0
Reputation points
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