Insight Installation failed

I have an activated Orchestrator 2019.10.17, and now is installing the Insight, but failed many times with the error as below:

[1418:0EC8][2020-03-03T22:07:52]i304: Verified existing payload: pay59FF06B98C8692E67E8A19C00CEC7434 at path: C:\ProgramData\Package Cache\A5DF2961564D25A3ABF5B9A67EC347C593DF71D5\Include\Plugins\HidePulseAlertOption\directives\addPulseSharesOption.6.js.
[1D20:1CF8][2020-03-03T22:07:52]i000: Pre-InstallProgress: Initialization progress: 100
[1D20:1D28][2020-03-03T22:07:52]i000: ExecuteBegin: Installing 20 packages
[1D20:1D28][2020-03-03T22:07:52]i000: UpdateProgress: InstallProgress (1) = (currentPackageCount (1) * 100) / expectedPackageCount (71)
[1D20:1D28][2020-03-03T22:07:52]i000: ExecutePackageBegin: CheckMandatoryParameters - should execute: True
[1418:1BA4][2020-03-03T22:07:52]i301: Applying execute package: CheckMandatoryParameters, action: Install, path: C:\ProgramData\Package Cache\A5DF2961564D25A3ABF5B9A67EC347C593DF71D5\UiPath.Analytics.CustomizeSisense.exe, arguments: ‘“C:\ProgramData\Package Cache\A5DF2961564D25A3ABF5B9A67EC347C593DF71D5\UiPath.Analytics.CustomizeSisense.exe” checkMandatoryParameters -p “*****” -e “alondite04@gmail.com” -c “1” -o “443” -l C:\Users\ADMINI~1\AppData\Local\Temp\UiPathInsightsInstaller_20200303111550.log’
[1D20:1D28][2020-03-03T22:07:54]i000: InstallProgress: Install progress: 52
[1D20:1D28][2020-03-03T22:07:54]i000: ExecutePackageComplete: CheckMandatoryParameters complete.
[1D20:1D28][2020-03-03T22:07:54]i000: ExecutePackageComplete: Install of CheckMandatoryParameters complete.
[1D20:1D28][2020-03-03T22:07:54]i000: UpdateProgress: InstallProgress (2) = (currentPackageCount (2) * 100) / expectedPackageCount (71)
[1D20:1D28][2020-03-03T22:07:54]i319: Applied execute package: CheckMandatoryParameters, result: 0x0, restart: None
[1D20:1D28][2020-03-03T22:07:54]i000: ExecutePackageBegin: DeleteFolder - should execute: True
[1418:1BA4][2020-03-03T22:07:54]i301: Applying execute package: DeleteFolder, action: Install, path: C:\ProgramData\Package Cache\DeleteFolder\UiPath.Analytics.CustomizeSisense.exe, arguments: ‘“C:\ProgramData\Package Cache\DeleteFolder\UiPath.Analytics.CustomizeSisense.exe” deleteSisenseFolders -l C:\Users\ADMINI~1\AppData\Local\Temp\UiPathInsightsInstaller_20200303111550.log’
[1418:1BA4][2020-03-03T22:07:57]e000: Error 0xffffffff: Process returned error: 0xffffffff
[1418:1BA4][2020-03-03T22:07:57]e000: Error 0xffffffff: Failed to execute EXE package.
[1D20:1D28][2020-03-03T22:07:57]e000: Error 0xffffffff: Failed to configure per-machine EXE package.
[1D20:1D28][2020-03-03T22:07:57]i000: ExecutePackageComplete: DeleteFolder complete.
[1D20:1D28][2020-03-03T22:07:57]i000: ExecutePackageComplete: Install of DeleteFolder complete.
[1D20:1D28][2020-03-03T22:07:57]i000: UpdateProgress: InstallProgress (4) = (currentPackageCount (3) * 100) / expectedPackageCount (71)
[1D20:1D28][2020-03-03T22:07:57]i319: Applied execute package: DeleteFolder, result: 0xffffffff, restart: None
[1D20:1D28][2020-03-03T22:07:57]e000: Error 0xffffffff: Failed to execute EXE package.
[1418:1BA4][2020-03-03T22:07:57]i351: Removing cached package: DeleteFolder, from path: C:\ProgramData\Package Cache\DeleteFolder
[1418:1BA4][2020-03-03T22:07:57]i351: Removing cached package: CheckMandatoryParameters, from path: C:\ProgramData\Package Cache\A5DF2961564D25A3ABF5B9A67EC347C593DF71D5
[1D20:1D28][2020-03-03T22:07:57]i000: ExecuteComplete: Status: -1
[1418:1BA4][2020-03-03T22:07:57]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{a6e2a08c-badc-4437-8f87-2e934c6ae615}, resume: None, restart: None, disable resume: No
[1418:1BA4][2020-03-03T22:07:57]i330: Removed bundle dependency provider: {a6e2a08c-badc-4437-8f87-2e934c6ae615}
[1418:1BA4][2020-03-03T22:07:57]i352: Removing cached bundle: {a6e2a08c-badc-4437-8f87-2e934c6ae615}, from path: C:\ProgramData\Package Cache{a6e2a08c-badc-4437-8f87-2e934c6ae615}
[1418:1BA4][2020-03-03T22:07:57]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{a6e2a08c-badc-4437-8f87-2e934c6ae615}, resume: None, restart initiated: No, disable resume: No
[1D20:1D28][2020-03-03T22:07:57]i000: ApplyComplete: Status - -1
[1D20:1D28][2020-03-03T22:07:57]i000: ApplyComplete - Status: -1; Result: None
[1D20:1D28][2020-03-03T22:07:57]i399: Apply complete, result: 0xffffffff, restart: None, ba requested restart: No
[1D20:1D44][2020-03-04T03:01:11]i400: Received system request to shut down the process: critical: Yes, elevated: No, allowed: Yes

the Orchestrator is installed on an VM with Win Server 2012 R2, and the Insight is installed on another VM with Win Server 2016

P.S. I have already checked the SLL certificate as : 'The provided credentials are not valid.' - Install Insights error - #6 by SihYingChen, and the machine with insights could open the orchestrator website with host.

Hey @alondite041, once you have a failed installation, you’ll need to go back and stop a few services and delete some files prior to trying again as noted in the install docs. Did you do that between each attempt?

Hi @alondite041,

There is a _commandexecutor log file in your temp directory that might provide some additional logging that might help with your error. Please follow the steps Michelle mentioned (Installation) and also make sure the account that is running the Insights Installer is an admin.

Thanks,
Chris

Do you mean this ?

From Windows Services Manager, stop the Sisense.AdvancedFormula service.
Open an elevated command prompt and run: sc delete “Sisense.AdvancedFormula”.
Disable any active tenants using the UiPath.InsightsAdminTool.
Proceed with uninstalling Insights.
image

Besides,I didn’t find any descriptions about what files need to be removed in that page.

Did you check the _CommandExecutor.log file in your temp directory (%USERPROFILE%\AppData\Local\Temp)? This log will give you a better error message of what happened. The site does not specify the folders because the installer will delete them if you have the correct permissions.

Folders that should be deleted :

C:\Program Files\Sisense
C:\ProgramData\Sisense

Hi Chris,
I have rollback the environment and try to install again but still failed:

[0D10:14BC][2020-03-10T07:30:19]i000: InstallProgress: Install progress: 83

[0D10:14BC][2020-03-10T07:30:19]i000: ExecutePackageComplete: InstallSisenseLongIndex complete.
[0D10:14BC][2020-03-10T07:30:19]i000: ExecutePackageComplete: Rollback of InstallSisenseLongIndex complete.
[0D10:14BC][2020-03-10T07:30:19]i000: UpdateProgress: InstallProgress (37) = (currentPackageCount (27) * 100) / expectedPackageCount (72)
[0D10:14BC][2020-03-10T07:30:19]i319: Applied rollback package: InstallSisenseLongIndex, result: 0x0, restart: None
[0DC4:156C][2020-03-10T07:30:19]i351: Removing cached package: UpdateLicenseFiles, from path: C:\ProgramData\Package Cache\A5DF2961564D25A3ABF5B9A67EC347C593DF71D5
[0DC4:156C][2020-03-10T07:30:19]w353: Unable to remove cached package: UpdateLicenseFiles, from path: C:\ProgramData\Package Cache\A5DF2961564D25A3ABF5B9A67EC347C593DF71D5, reason: 0x80070003. Continuing…
[0DC4:156C][2020-03-10T07:30:19]i351: Removing cached package: CheckMandatoryParameters, from path: C:\ProgramData\Package Cache\A5DF2961564D25A3ABF5B9A67EC347C593DF71D5
[0DC4:156C][2020-03-10T07:30:19]w353: Unable to remove cached package: CheckMandatoryParameters, from path: C:\ProgramData\Package Cache\A5DF2961564D25A3ABF5B9A67EC347C593DF71D5, reason: 0x80070003. Continuing…
[0D10:14BC][2020-03-10T07:30:19]i000: ExecuteComplete: Status: -1
[0DC4:156C][2020-03-10T07:30:19]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{a6e2a08c-badc-4437-8f87-2e934c6ae615}, resume: None, restart: None, disable resume: No
[0DC4:156C][2020-03-10T07:30:19]i330: Removed bundle dependency provider: {a6e2a08c-badc-4437-8f87-2e934c6ae615}
[0DC4:156C][2020-03-10T07:30:19]i352: Removing cached bundle: {a6e2a08c-badc-4437-8f87-2e934c6ae615}, from path: C:\ProgramData\Package Cache{a6e2a08c-badc-4437-8f87-2e934c6ae615}
[0DC4:156C][2020-03-10T07:30:19]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{a6e2a08c-badc-4437-8f87-2e934c6ae615}, resume: None, restart initiated: No, disable resume: No
[0D10:14BC][2020-03-10T07:30:19]i000: ApplyComplete: Status - -1
[0D10:14BC][2020-03-10T07:30:19]i000: ApplyComplete - Status: -1; Result: None
[0D10:14BC][2020-03-10T07:30:19]i399: Apply complete, result: 0xffffffff, restart: None, ba requested restart: No

and here is the UiPathInsightsInstaller_20200310070900_CommandExecutor.log
ExecutionOptions:

2020-03-10 07:28:10.3542|INFO|SetupSslCommand|Getting HTTP Client Authenticated|
2020-03-10 07:28:10.3542|INFO|SetupSslCommand|Creating a self-signed certificate with subject name up-insight and adding them to store location - 'LocalMachine' and store names - 'Trusted Root Certification Authorities', 'Personal'|
2020-03-10 07:28:11.3562|INFO|SetupSslCommand|Updating SSL settings for Analytics|
2020-03-10 07:28:11.3843|ERROR|SetupSslCommand|System.ApplicationException: Certificate with subject up-insight is not valid to be used for host name win-ao26hei4hcs
   at UiPath.Analytics.CustomizeSisense.Helpers.CertificateHelper.GetPfxCertificate(String certificateSubjectName, String hostName)
   at UiPath.Analytics.CustomizeSisense.Command.SetupSslCommand.<EnableSslAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.Analytics.CustomizeSisense.Command.SetupSslCommand.<ExecuteInstallCommandAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.Analytics.CustomizeSisense.Command.CommandBase.<RunAsync>d__7.MoveNext()|System.ApplicationException: Certificate with subject up-insight is not valid to be used for host name win-ao26hei4hcs
   at UiPath.Analytics.CustomizeSisense.Helpers.CertificateHelper.GetPfxCertificate(String certificateSubjectName, String hostName)
   at UiPath.Analytics.CustomizeSisense.Command.SetupSslCommand.<EnableSslAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.Analytics.CustomizeSisense.Command.SetupSslCommand.<ExecuteInstallCommandAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.Analytics.CustomizeSisense.Command.CommandBase.<RunAsync>d__7.MoveNext()

This is your error. Please use the correct server name.

Got it, the Insight installation has completed, thanks a lot!
but while I trying to enable a tenant (using run as administrator),I met something wrong as:

what should I do next?

Please try this : UiPath.InsightsAdminTool.exe enable -t default -u admin -p 1qaz@WSX


Hi Chris,
I copied your command but failed as below:

Is that your Orchestrator host admin password?

yes it is,btw I can open the orchestrator website on the insight machine.

Can you please add -d as a parameter as this will give u some additional debug information. Please verify that the site listed in the debug output for Orchestrator is the exact same url you are using to verify you can reach Orchestrator from the Insights machine. Additionally, please check your Orchestrator server’s event logs for errors.

Hi Chris,
Here is the debug info:
the [WIN-91TP3DTT5S6] is my OC machine name and host name, and the [win-ao26hei4hcs:443] is my insight machine and host name.

C:\Program Files (x86)\UiPath\Orchestrator\Tools>UiPath.InsightsAdminTool.exe enable -t default -u admin -p 1qaz@WSX -d
Connecting to Orchestrator for user host:admin at https://WIN-91TP3DTT5S6
Connecting to Portal at https://win-ao26hei4hcs:443
Failed to retrieve tenant information
Microsoft.Rest.HttpOperationException: Operation returned an invalid status code ‘Unauthorized’
at UiPath.Orchestrator.Web.Client.Current.Account.d__5.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Orchestrator.Web.Client.Current.AccountExtensions.d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AnalyticsTenantSetup.AutoRefreshingCredentials.d__10.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AnalyticsTenantSetup.AutoRefreshingCredentials.d__9.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AnalyticsTenantSetup.AutoRefreshingCredentials.d__8.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at UiPath.Orchestrator.Web.Client.Current.Tenants.d__5.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Orchestrator.Web.Client.Current.TenantsExtensions.d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AnalyticsTenantSetup.OrchestratorManager.d__10.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AnalyticsTenantSetup.Commands.FeatureCommand.d__6.MoveNext() Operation returned an invalid status code ‘Unauthorized’
Finishing up

Looks like an access issue. Can you please check the event logs on your Orchestrator machine? You have also placed the Orchestrator cert on the Insights machine right?

Hi Chris, here is the event log:

Besides, the orchestator cert have be placed on insight machine as below:

Can you check the TLS settings between the 2 machines and make sure they are the same. Also, what are the orchestrator errors at the bottom of the list.

Can we change Insight pointing from one Orchestrator to other ? Does this need a fresh installation ?

You need to set 755 in the numeric value field > select recurse into subdirectories > apply to directories only and click ok.

You need to repeat the same actions for file permission and set 644 in the numeric value field > select recurse into subdirectories > apply to files only and click ok.

Here’s the complete guide about fixing this error: How to Fix Could Not Create Directory Error in WordPress