CPM - Scanner service is not getting started post upgrade from version 13.0 to 14.2
Symptom
CPM Scanner service is not getting started post upgrade from version 13.0 to 14.2.
Even after we resync the apikey successfully.
Error in scanner log:
System.Exception: [CPMSCNR009E] Failed to connect to PVWA web socket. ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Environment
Privileged Access Manager (PAM, self-hosted) Discovery and Accounts Feed Discovery and Accounts Feed Discovery Scanner
Cause
CACAPMScanner.exe.config has wrong older version reference
Resolution
1. Check the version of “Newtonsoft.Json.dll” in the \Program Files (x86)\CyberArk\Password Manager\Scanner
2. If the version is v 13.0.x, you can try to adjust the CACPMScanner.exe.config:
Change:
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
To:
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
After that, restart scanner service.