Citrix Smart Auditor Session Playback Errors

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,

Who is Participating?
trieglerConnect With a Mentor Author Commented:
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

trieglerAuthor Commented:
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.




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.
trieglerAuthor Commented:

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,

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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.