ERROR : Dotmim.Sync.SyncException: SQLite Error 14: 'unable to open database file'.

ERROR : Dotmim.Sync.SyncException: SQLite Error 14: 'unable to open database file'.

book

Article ID: CTX289613

calendar_today

Updated On:

Description

On Broker machine event viewer : 

Dotmim.Sync.SyncException: SQLite Error 14: 'unable to open database file'. ---> Microsoft.Data.Sqlite.SqliteException: SQLite Error 14: 'unable to open database file'. à Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) à Microsoft.Data.Sqlite.SqliteConnection.Open() à Citrix.Wem.DBSync.Common.SqlcipherExtension.SetDatabaseKey(DbConnection connection, String key) à Citrix.Wem.DBSync.Client.Broker.SqlcipherBrokerLocalProvider.CreateConnection() à Dotmim.Sync.CoreProvider.d__69.MoveNext() --- Fin de la trace de la pile d'exception interne --- à Dotmim.Sync.CoreProvider.d__69.MoveNext() --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée --- à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) à Dotmim.Sync.SyncAgent.d__35.MoveNext() --- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée --- à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() à Dotmim.Sync.SyncAgent.d__35.MoveNext() Or : Error happened while synchronizing broker cache. Retry once. Or : Citrix.Wem.DBSync.Common.DBSyncRetryException: Retry sync once. à Citrix.Wem.DBSync.Client.Broker.SyncTask.DoSync(SyncMode syncMode) à Citrix.Wem.DBSync.Client.Broker.SyncTask.Run() à Citrix.Wem.DBSync.Client.Broker.SyncExecutor.Sync() à Citrix.Wem.DBSync.Client.Broker.Program.Main(String[] args) Is it possible to know how we could fix it ?

Resolution

  1. Locate the broker cache folder: C:\Program Files (x86)\Norskale\Norskale Infrastructure Services\Local Broker Cache
  2. Grant Full Control NTFS permission to the service account used fo start and run the Norskale Infrastructure Service. (This can be determined from the windows services.msc console)
  3. Restart the Norskale Infrastructure Service
  4. Confirm that a local database cache file is created inside C:\Program Files (x86)\Norskale\Norskale Infrastructure Services\Local Broker Cache

Problem Cause

Norskale Infrastructure Service account requires full control NTFS permission on the Local Broker Cache folder