Insights installation error

I faced with problem with installing UiPath Insights
Installation fails with error and rollback.
Here are some snippets from the logs:

|ERROR|UpdateOrchestratorConfigCommand|HTTP request did not succeed, status is false with code NotFound|

|ERROR|UpdateOrchestratorConfigCommand|System.ApplicationException: Failed to update Analytics settings in Orchestrator

Error 0x80070002: Failed to find payload: 2 in working path: C:\Users\MBAIBA~1\AppData\Local\Temp{8DECEBD6-AA91-419C-A2B2-1322F072E779}\2 and unverified path: C:\ProgramData\Package Cache.unverified\2
Error 0x80070002: Failed to cache payload: 2
Error 0xffffffff: Process returned error: 0xffffffff
The remote server returned an error: (502) Bad Gateway.

What’s the error? How do I fix it? Help me please!

Looks like the connection with Orchestrator couldn’t be established. Did you make sure to follow all of our HW/SW prerequisites? I’d also check your TLS settings - Troubleshooting