Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Citrix Smart Auditor Session Playback Errors

Posted on 2010-08-25
Medium Priority
Last Modified: 2012-05-10
Hello All,

We have Citrix Smart Auditor installed on 34 of our XenApp 5.0 (Windows Server 2003) servers.  It seems to be working for the most part, except that occasionally when trying to play back a recording (live or completed), we will get an error similar to the following:

A serious error occurred while playing the recorded session file.  This may be caused by the file being corrupt or missing data.

If we get this error, we can play back *part* of the recording, and the timeline bar across the bottom of the playback shows dark gray from the point where the recording "stops" until the end, and we can not play that part.

Environment Information:
The SQL server (2005 Express) is installed to the same box that Smart Auditor Server is installed, which is a Windows Server 2003 R2 box.  The player is also installed locally.  All boxes involved are VM's on Citrix XenServer, spread across 8 physical boxes.  We are only recording two applications (no session sharing) for a handful of users.  Each one of those users could access the application from any one of the XenApp servers.  The XenApp servers are all absolutely identical - they are using a shared image from Citrix Provisioning Server, with a separate virtual disk each for the hard drive cache.

Any help would be greatly appreciated, as we are troubleshooting the application being recorded, and need to get several occurrences of the application crashing on video to move forward with support.

Thank you,

Question by:triegler
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4

Author Comment

ID: 33541356
Here is another error we receive on playback:

Error Playing File
The file being played has missing data and cannot be played to completion. This was probably due to problems encountered during the recording process.

Both errors result in the same thing - we are unable to play the entire recording, which is a big deal.




Expert Comment

ID: 33549107

Have you checked that MSMQ is working correctly on all your servers ?

I would try and isolate one server and trying recording a session on that server, then increase one by one.

Author Comment

ID: 33550440

Thanks for your comment.  However, as I stated above - all the servers are identical.  They are all provisioned off the same standard image through Provisioning Server and XenServer - i.e. all the servers use the exact same boot disk.  

I am fairly certain that the MSMQ is set up correctly, though, as it is now recording.  One of the first issues I had in setting this up was I had forgotten to uncheck the Active Directory box under the MSMQ installation.  Once I fixed that, I was able to record, only now we are having this intermittent problem.

Anything else I could try?

Thank you,


Author Comment

ID: 33599883
OK, well we now have a support case open with Citrix.  I'll update as soon as we get a resolution.


Accepted Solution

triegler earned 0 total points
ID: 33663383
OK, we have a solution from Citrix Support.  It seems as though the MSMQ (Microsoft Message Queuing) Service DOES NOT SUPPORT Provisioning Services.  In order for MSMQ to work with provisioning services, you must delete the QMId registry key.  It is a binary value that uniquely identifies the server.  With Provisioning Services, and deploying VMs from a standard vDisk, the issue is that this key does not get modified for each server, so all servers share the same QMId.  This may result in servers overwriting each other at the destination queue (in this case, the Smart Auditor server).  Here is the workaround, which worked for us:

•      Tested deletion / recreation of QMId key (HKLM\SOFTWARE\Microsoft\MSMQ\Parameters\MachineCache\QMId)
o      Stop MSMQ (and SmartAuditor Agent) service
o      Delete key above
o      Create HKLM\SOFTWARE\Microsoft\MSMQ\Parameters\SysPrep DWORD set to 1
o      Restart MSMQ service
o      Verify QMId key gets recreated (it does)
•      Create script to automate this
o      Script stops both services
o      Deletes the QMId
o      Sets the SysPrep DWORD to 1
o      Tested script to verify it works (it does)
o      Call script from delxenprep.bat file (We run this file prior to shutting down the VM)
o      Shut down the VM, modify the vDisk to Standard, and deploy
o      Verify that all new VMs deployed from this vDisk have unique QMIds (they do)

Here is the code for the script and the registry file I used:


Make sure that *BOTH* files are in the same path when executed.  As usual, all code is not guaranteed in any way, so use at your own risk.

Mods, would you please PAQ my points?

Thank you to everyone!


::This script was created by Tim Riegler, 08 September 2010.  Please feel free to use / modify the script in any way, as long as credit is given to the original author for any derivative works.

@echo off
echo Stopping SmartAuditor and MSMQ services
net stop "citrix smartauditor agent"
net stop "msmq"

echo Deleting MSMQ QMId
regedit /s \\cshspro\users\administrator\del_msmq.reg

::This script was created by Tim Riegler, 08 September 2010.  Please feel free to use / modify the script in any way, as long as credit is given to the original author for any derivative works.

Windows Registry Editor Version 5.00



Open in new window


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #POC #XenDesktop #vCenter #VMware #ESX
#Citrix #Citrix Policies #XenDesktop #VDI #POC #Citrix Univeral Printer Driver #Citrix UPD
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question