Solved

Citrix Smart Auditor Session Playback Errors

Posted on 2010-08-25
5
1,938 Views
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,

Tim
0
Comment
Question by:triegler
  • 4
5 Comments
 

Author Comment

by:triegler
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.
---------------------------
OK  
---------------------------

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

Anyone?

Thanks,

Tim
0
 
LVL 6

Expert Comment

by:rimmena
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.
0
 

Author Comment

by:triegler
ID: 33550440
rimmena,

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,

Tim
0
 

Author Comment

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

Tim
0
 

Accepted Solution

by:
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:

MSMQ
•      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      DO NOT RESTART THE SERVICES
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:

fix_msmq.cmd
Del_msmq.reg

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!

Tim

::fix_msmq.cmd
::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


::SEPARATE FILE!!!!
::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

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters\MachineCache]
"QMId"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters]
"SysPrep"=dword:00000001

Open in new window

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Join & Write a Comment

#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.

706 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now