Application event logs on the Cloud Connector may show repeated errors for SQLWRITER with the EventID 8193.
SQL writer error: Unexpected error calling routine CoCreateInstance. hr = 0x80040154.
The SqlWriterLogger.txt file will show repeated errors similar to the following.
[02/12/2025 21:15:26, TID 20e0] Entering SQL Writer OnIdentify.
[02/12/2025 21:15:26, TID 20e0] SQLInstanceNames Registry was not found
[02/12/2025 21:15:26, TID 20e0] Enumerating Local DB User Instances
[02/12/2025 21:15:26, TID 20e0] SqlConnection::Connect: Unexpected error in routine CoCreateInstance. hr = 0x80040154
[02/12/2025 21:15:26, TID 20e0] SqlConnection::Connect: Throwing HRESULT code 0x8000ffff. Previous HRESULT code = 0x80040154
[02/12/2025 21:15:26, TID 20e0] SqlConnection::Connect: Unexpected error in routine CoCreateInstance. hr = 0x80040154
[02/12/2025 21:15:26, TID 20e0] SqlConnection::Connect: Throwing HRESULT code 0x8000ffff. Previous HRESULT code = 0x80040154
[02/12/2025 21:15:26, TID 20e0] SqlConnection::Connect: Unexpected error in routine CoCreateInstance. hr = 0x80040154
[02/12/2025 21:15:26, TID 20e0] SqlConnection::Connect: Throwing HRESULT code 0x8000ffff. Previous HRESULT code = 0x80040154
[02/12/2025 21:15:26, TID 20e0] SqlConnection::Connect: Unexpected error in routine CoCreateInstance. hr = 0x80040154
[02/12/2025 21:15:26, TID 20e0] SqlConnection::Connect: Throwing HRESULT code 0x8000ffff. Previous HRESULT code = 0x80040154
[02/12/2025 21:15:26, TID 20e0] HRESULT EXCEPTION CAUGHT: hr: 0x8000ffff
[02/12/2025 21:15:26, TID 20e0] PopulateDatabasesOnBasicAGSecondary: rethrowing
[02/12/2025 21:15:26, TID 20e0] PopulateDatabasesOnBasicAGSecondary: Throwing HRESULT code 0x8000ffff. Previous HRESULT code = 0x8000ffff
[02/12/2025 21:15:26, TID 20e0] CSqlWriter::OnIdentify: Enumerating databases failed. hr = 0x8000ffff
[02/12/2025 21:15:26, TID 20e0] CSqlWriter::OnIdentify: Throwing HRESULT code 0x8000ffff. Previous HRESULT code = 0x8000ffff
[02/12/2025 21:15:26, TID 20e0] HRESULT EXCEPTION CAUGHT: hr: 0x8000ffff
This error is non-impactful and can be dismissed. In order to locate what is initiating Volume Shadow Copy Service, look into any services or third-party products that may be performing incremental backups of the host VM. If you wish to disable the ability to perform snapshots via VSS, you can remove disk.EnableUUID=TRUE from the VM's parameters.
Citrix Cloud Connectors utilize Microsoft SQL Server 2022 LocalDB as a database solution for Local Host Cache. SQL Writer is part of the default installation for SQL Server and serves to provide backup and restore functionality through the Volume Shadow Copy Service, but it is not compatible with LocalDB. When vssadmin is initiated, it will attempt to enumerate the databases through SQL Writer and fail, resulting in these errors.
Citrix Cloud Connectors do not utilize, or initiate, this functionality. Since Local Host Cache data must be current at all times, backups are unnecessary. However, other backup services may be utilizing VMware's snapshot capability, which utilizes VSS, to perform incremental backups at scheduled intervals.