Insights Upgrade fails from 20.4.X version to anything newer

Insights Upgrade fails from 20.4.X version to anything newer

Issue Description

Insights Upgrade fails from 20.4.X version to anything newer

Root Cause

It should be possible to update Insights without stopping any services, but in the 20.4.X version it has been found that one service holds onto files and prevents an upgrade. This has been reported as a bug.

Diagnosing/Resolving

  1. After an install fails, check the following log: %localappdata%\Temp\UiPathInsightsInstaller_<Date Stamp>_CommandExecutor.log
  2. Check for an error like:
    • System.ApplicationException: Failed to Copy folder with source folder: C:\ProgramData\Package Cache\SisenseDataConnectorFiles\Include/SisenseConnector/Connectors, target folder: C:\Program Files\Sisense/DataConnectors/JVMContainer/Connectors and excluded files: None
      at UiPath.Analytics.CustomizeSisense.Helpers.FilesHelper.CopyFolder(String sourceFolder, String targetFolder, HashSet`1 excludedFilesList)
  3. If this error is found, stop the Sisense.JVMConnectorsContainer service.
    • Open Services.msc from the Windows search bar.
    • Find the service Sisense.JVMConnectorsContainer
    • Right click and select stop.
  4. Continue with the upgrade after the service is stopped.