Issue: copying OS via pvs imaging wizard in pvs base machine, would show a green status bar with the progress. It completes till the end, you wont see Done button. It will be in green progress bar forever. You might see an error in pvs event log:
Event id: 11
Detected one or more hung threads.
Please send Stream.log to support.
In other event id 11 entry, you would see, Terminating StreamProcess.
This is because of hung threads and streamprocess is terminated.
What are Hung Threads and why is the StreamProcess terminating?
These Hung Threads are usually detected by looking at the Windows Application Event logs.
The following Events will be recorded:
|Error||StreamProcess||11||Detected one or more hung threads.|
|Information||StreamProcess||10||Stream Process Stopped|
At this point all the Target Devices connected to the affected PVS Server will need to reconnect to other servers in the Site.
What are StreamProcess Threads?
These threads handle the communication with the Target Devices.
What exactly are Hung Threads?
There are two resources that, when not available, will hang the thread
Database access: Problems with the SQL Server or Network communication with the SQL Server will cause the Thread to hang while waiting for Database access.
If StreamProcess detects that a Thread has not notified of its status for a long time, that Thread is deemed as possibly hung.
When StreamProcess detects there are a high number of Threads hung, the StreamProcess will terminate itself to force the Target Devices to reconnect to other PVS Servers.
If StreamProcess is not terminated, and the Target Devices are not forced to reconnect to other PVS Servers, then the Target Devices will potentially hang causing an interruption in service.
- Inability to access the vDisk or the Storage
- Inability to access the PVS Database
Confirm all the Anti Virus Exclusions are configured as per the following Citrix Article: https://support.citrix.com/article/CTX124185
Check if there’s a pattern to the occurrence of the Events in the Event Logs
If the issue persists contact Citrix Support to capture diagnostic data and further narrow down the actual root cause of the issue.
Note: Hung threads can be caused by a number of issues, most of the time it is a database or storage issue. Restart your PVS server and check it again. If it still occurs again, restart citrix pvs and your database services. This worked for me.