"Cannot access a closed pipe" error in Studio
Issue Description
In many instances, the Dynatrace agents (an instrumentation software) are reported to monitor UiPath Processes. This leads to an unintended closed pipe issue, negatively impacting the system's performance.
The closed pipe issue often arises when the system is failing to correctly process instructions or when certain UiPath processes such as Studio.exe, Project.exe are not properly excluded in Dynatrace.
Resolution
The fix has been released in the following patches:
- 2024.10.1
- 2023.10.4
- 2023.4. 7
- 2022.10.14
- 2022.4.10
Upgrade to these patches in the respective version.
If the issue persists, follow the steps below:
How to Whitelist the UiPath Processes from Dynatrace?
- Log into Dynatrace Dashboard.
- Navigate to 'Settings' > 'Process and Containers' > 'Custom process monitoring rules'.
- Add a custom rule with a condition.
- Select 'Do not monitor' => Exe Name =Begins with =>UiPath.
- Save the custom rule.
- Terminate the existing UiPath processes on the machine or restart the machine.
- The above steps will ensure the newly launched UiPath processes will not encounter the “Closed Pipe” issue.
Should the issue continue despite the aforementioned changes, collecting diagnostic tool logs and raising a ticket is advised.
Root Cause
The root cause of the issue stems from the interaction between Dynatrace monitoring agents and the UiPath processes. The issue manifests as Studio crashing after running for some time. This phenomenon is particularly prevalent in the 22.4 version of Studio and has also been observed in the 22.10 version, typically after the Studio is upgraded from previous versions. The commonality in these situations is the usage of Dynatrace on the VM where the Studio is running.
This problem can be attributed to the Dynatrace agents' monitoring of UiPath Processes causing a conflict. The conflict can lead to system crashes and the emergence of the closed pipe issue. The resolution involves deactivating the Dynatrace software on the VM or excluding specific UiPath processes within the Dynatrace software to prevent this conflict.
