Milestone: Errore durante l’avvio del servizio XProtect Recording Server

Dopo aver eseguito gli aggiornamenti del sistema operativo Windows Server su alcuni server di registrazione Milestone mi è capitato di osservare il mancato avvio del servizio Milestone XProtect Recording Server e la registrazione nel log Applicazione di due eventi con id 0:

Nome registro: Application
Origine: Milestone XProtect Recording Server
ID evento: 0
Categoria attività:Nessuna
Livello: Errore
Parole chiave: Classico
Descrizione:
Error initializing rule processor: La chiave specificata non era presente nel dizionario.

Nome registro: Application
Origine: Milestone XProtect Recording Server
ID evento: 0
Categoria attività:Nessuna
Livello: Errore
Parole chiave: Classico
Descrizione:
Recording server terminated due to errors: La chiave specificata non era presente nel dizionario.

L’issue viene descritto nel seguente The XProtect Corporate Recording Server service fails to start with the message “error initializing rule processor” (milestonesys.com) in cui viene riportato che la causa è il danneggiamento o la corruzione di Rules o Time Profiles:

Symptoms
If the Milestone XProtect® Recording Server service fails to start, you’ll see the following errors listed in the XProtect® Recording Server’s status message window:

  • Error initializing rule processor
  • An error has occurred during initialization of service: invalid definitionxml, and
  • Recording server terminated due to errors: invalid definitionxml

The Windows Event Viewer’s Application log may display an error similar to this:

Log Name: Application
Source: Milestone XProtect Corporate Recording Server
Date: 20-08-2012 11:21:22
Event ID: 0
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: NM-SVR06.security.local
Description:
Error initializing rule processor: Invalid definitionXml

Cause
This error may occur if any time profiles or rules in the configuration are damaged or corrupt.

Per risolvere il problema che impediva al servizio Milestone XProtect Recording Server di avviarsi nel mio caso è stato sufficiente rinominare la cartella C:\ProgramData\Milestone\XProtect Recording Server\Offline e provando ad avviare il servizio la cartella e i file all’interno sono stati ricreati e il servizio si è avviato correttamente.

A riguardo si veda anche la procedura di troubleshooting proposta in The XProtect Corporate Recording Server service fails to start with the message “error initializing rule processor” (milestonesys.com):

Troubleshooting steps
Resolution
Find and eliminate all corrupt rules and time profiles:

  1. In the Management Client, in Rules and Events, select Rules.
  2. Click through all of the rules one-by-one. If an “invalid” error message appears when you select a rule, delete the rule.
  3. In Rules and Events, select Time Profiles.
  4. Click through all of the time profiles one-by-one. If an “invalid” error message appears when you select a Time Profile, delete the Time Profile.
  5. On the Recording Server PC, open Windows Explorer and navigate to C:\ProgramData\Milestone\XProtect Corporate Recording Server\.
  6. Delete the folder named Offline.

The Recording Server service now starts.