Citrix
--
Questions
--
Followers
Top Experts
Citrix Smart Auditor - unable to connect ot SmartAuditor Server
Hello
I am unable to connect to Smart Auditor Server using Policy Console from the same server
This is the error

Environment:
XenApp5 on Windows 2008
Auditor server Windows 2003 R2 64bit
Database SQL 2005 SP2 on Windows 2003 R2 64bit
I verified that:
The user I am using to connect has been granted Policy Administrator rights
Citrix Auditor Storage Manager service is running
SSL certificate is installed on IIS and root CA are imported to the server (under computer account), no issues here
All as per Citrix recommendations for remote SQL install
http://support.citrix.com/proddocs/index.jsp?topic=/xenapp5fp-w2k3/ps-sa-start-install-all.html
DOMAIN\CTXAUD01$ has db_owner rights on CitrixSmartAuditor created automaticaly during installation of Smart Auditor Database components on SQL 2005 Std
MSMQ installed on Auditor server without Active Directory integration (was installed before but now removed) and with MSMQ HTTP support
Ports 80 and 443 are open and netstat shows that server is accepting connection from agent installed on one of test XenApp servers
Now, when I check logs on Auditor server I can see loads of the following entries:
Errors on CTXAUD01
Event Type: Warning
Event Source: Citrix SmartAuditor Storage Manager
Event Category: None
Event ID: 0
Date: 11/06/2011
Time: 02:15:06
User: N/A
Computer: CTXAUD01
Description:
Exception caught while establishing database connection.
--- Exception Details ---
Type: System.Data.SqlClient.SqlE xception
Message: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Stack trace:
at SmAudDatabaseProxy.Databas eProxy.get _DatabaseC onnection( )
at SmAudDatabaseProxy.Databas eProxy.Che ckSupporte dSchemaVer sion()
at SmAudStorageManager.DataQu eueConsume r.WaitConn ectDatabas e()
So I double checked that SQL 2005 Std is configured to accept remote connections (setting: Using TCP/IP only)
Can this be the database instance not specified properly?
Under [HKEY_LOCAL_MACHINE\SOFTWA RE\Citrix\ SmartAudit or\Server] I have the SmAudDatabaseInstance key set to "SQLSERVER\CitrixSmartAudi tor"
I have also tried "SQLSERVER" only and "SQLSERVER\MSSQLSERVER" as this is the default instance...
Any suggestions would be greatly appreciated!
Kris
I am unable to connect to Smart Auditor Server using Policy Console from the same server
This is the error

Environment:
XenApp5 on Windows 2008
Auditor server Windows 2003 R2 64bit
Database SQL 2005 SP2 on Windows 2003 R2 64bit
I verified that:
The user I am using to connect has been granted Policy Administrator rights
Citrix Auditor Storage Manager service is running
SSL certificate is installed on IIS and root CA are imported to the server (under computer account), no issues here
All as per Citrix recommendations for remote SQL install
http://support.citrix.com/proddocs/index.jsp?topic=/xenapp5fp-w2k3/ps-sa-start-install-all.html
DOMAIN\CTXAUD01$ has db_owner rights on CitrixSmartAuditor created automaticaly during installation of Smart Auditor Database components on SQL 2005 Std
MSMQ installed on Auditor server without Active Directory integration (was installed before but now removed) and with MSMQ HTTP support
Ports 80 and 443 are open and netstat shows that server is accepting connection from agent installed on one of test XenApp servers
Now, when I check logs on Auditor server I can see loads of the following entries:
Errors on CTXAUD01
Event Type: Warning
Event Source: Citrix SmartAuditor Storage Manager
Event Category: None
Event ID: 0
Date: 11/06/2011
Time: 02:15:06
User: N/A
Computer: CTXAUD01
Description:
Exception caught while establishing database connection.
--- Exception Details ---
Type: System.Data.SqlClient.SqlE
Message: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Stack trace:
at SmAudDatabaseProxy.Databas
at SmAudDatabaseProxy.Databas
at SmAudStorageManager.DataQu
So I double checked that SQL 2005 Std is configured to accept remote connections (setting: Using TCP/IP only)
Can this be the database instance not specified properly?
Under [HKEY_LOCAL_MACHINE\SOFTWA
I have also tried "SQLSERVER" only and "SQLSERVER\MSSQLSERVER" as this is the default instance...
Any suggestions would be greatly appreciated!
Kris
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Additionaly after installing test agent on one of XenApp servers (as mentioned in original post) I noticed the following warnings on server with XenApp 5 installed
Log Name: Application
Source: Citrix SmartAuditor Agent
Date: 11/06/2011 13:04:50
Event ID: 0
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: XA5.mydomain.com
Description:
Exception caught while obtaining session metadata or running record policy query.
--- Exception Details ---
Type: System.Runtime.Serializati on.Seriali zationExce ption
Message: The input stream is not a valid binary format. The starting contents (in bytes) are: 3C-68-74-6D-6C-3E-0D-0A-20 -20-20-20- 3C-68-65-6 1-64 ...
Stack trace:
Server stack trace:
at System.Runtime.Serializati on.Formatt ers.Binary .Serializa tionHeader Record.Rea d(__Binary Parser input)
at System.Runtime.Serializati on.Formatt ers.Binary .__BinaryP arser.Read Serializat ionHeaderR ecord()
at System.Runtime.Serializati on.Formatt ers.Binary .__BinaryP arser.Run( )
at System.Runtime.Serializati on.Formatt ers.Binary .ObjectRea der.Deseri alize(Head erHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serializati on.Formatt ers.Binary .BinaryFor matter.Des erialize(S tream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Remoting.Ch annels.Cor eChannel.D eserialize BinaryResp onseMessag e(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)
at System.Runtime.Remoting.Ch annels.Bin aryClientF ormatterSi nk.Deseria lizeMessag e(IMethodC allMessage mcm, ITransportHeaders headers, Stream stream)
at System.Runtime.Remoting.Ch annels.Bin aryClientF ormatterSi nk.SyncPro cessMessag e(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Pr oxies.Real Proxy.Hand leReturnMe ssage(IMes sage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Pr oxies.Real Proxy.Priv ateInvoke( MessageDat a& msgData, Int32 type)
at SmAudBroker.RecordPolicy.R unRecordPo licyQuery( RecordPoli cyQuery query, RecordPolicyQueryResult& result)
at y.a(h A_0)
at y.a()
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Citrix SmartAuditor Agent" />
<EventID Qualifiers="0">0</EventID>
<Level>3</Level>
<Task>0</Task>
<Keywords>0x80000000000000 </Keywords >
<TimeCreated SystemTime="2011-06-11T12: 04:50.000Z " />
<EventRecordID>10826</Even tRecordID>
<Channel>Application</Chan nel>
<Computer>XA5.mydomain.com </Computer >
<Security />
</System>
<EventData>
<Data>Exception caught while obtaining session metadata or running record policy query.
--- Exception Details ---
Type: System.Runtime.Serializati on.Seriali zationExce ption
Message: The input stream is not a valid binary format. The starting contents (in bytes) are: 3C-68-74-6D-6C-3E-0D-0A-20 -20-20-20- 3C-68-65-6 1-64 ...
Stack trace:
Server stack trace:
at System.Runtime.Serializati on.Formatt ers.Binary .Serializa tionHeader Record.Rea d(__Binary Parser input)
at System.Runtime.Serializati on.Formatt ers.Binary .__BinaryP arser.Read Serializat ionHeaderR ecord()
at System.Runtime.Serializati on.Formatt ers.Binary .__BinaryP arser.Run( )
at System.Runtime.Serializati on.Formatt ers.Binary .ObjectRea der.Deseri alize(Head erHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serializati on.Formatt ers.Binary .BinaryFor matter.Des erialize(S tream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Remoting.Ch annels.Cor eChannel.D eserialize BinaryResp onseMessag e(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)
at System.Runtime.Remoting.Ch annels.Bin aryClientF ormatterSi nk.Deseria lizeMessag e(IMethodC allMessage mcm, ITransportHeaders headers, Stream stream)
at System.Runtime.Remoting.Ch annels.Bin aryClientF ormatterSi nk.SyncPro cessMessag e(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Pr oxies.Real Proxy.Hand leReturnMe ssage(IMes sage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Pr oxies.Real Proxy.Priv ateInvoke( MessageDat a& msgData, Int32 type)
at SmAudBroker.RecordPolicy.R unRecordPo licyQuery( RecordPoli cyQuery query, RecordPolicyQueryResult&am p; result)
at y.a(h A_0)
at y.a()
</Data>
</EventData>
</Event>
Netstat outcome (relevant connections only)
Proto Local Address Foreign Address State
TCP CTXAUD01:https XA5.mydomain.com:53978 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53979 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53980 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53983 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53984 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53986 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53987 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53988 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53989 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53991 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53993 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53994 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53996 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53997 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:54001 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:54002 ESTABLISHED
TCP CTXAUD01:msmq XA5.mydomain.com:53649 ESTABLISHED
TCP CTXAUD01:ms-wbt-server XA5.mydomain.com:53667 ESTABLISHED
I checked the settings again as per http://support.citrix.com/proddocs/topic/xenapp5fp-w2k8/ps-sa-trouble-connect-verify.html
and all seems fine. The SmAudDatabaseInstance key is the one that's puzzling me... what should the correct entry be?
Also I forgot to mention that using https://ctxaud01.mydomain.com/SmartAuditorBroker/PolicyAdministration.rem?wsdl to test connectivity to IIS from Auditor server returns XML website
(as per http://support.citrix.com/proddocs/index.jsp?topic=/xenapp5fp-w2k8/ps-sa-trouble-connect-iis-testing.html)
Note. For obvious reasons mydomain.com string replaced my real domain name.
Log Name: Application
Source: Citrix SmartAuditor Agent
Date: 11/06/2011 13:04:50
Event ID: 0
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: XA5.mydomain.com
Description:
Exception caught while obtaining session metadata or running record policy query.
--- Exception Details ---
Type: System.Runtime.Serializati
Message: The input stream is not a valid binary format. The starting contents (in bytes) are: 3C-68-74-6D-6C-3E-0D-0A-20
Stack trace:
Server stack trace:
at System.Runtime.Serializati
at System.Runtime.Serializati
at System.Runtime.Serializati
at System.Runtime.Serializati
at System.Runtime.Serializati
at System.Runtime.Remoting.Ch
at System.Runtime.Remoting.Ch
at System.Runtime.Remoting.Ch
Exception rethrown at [0]:
at System.Runtime.Remoting.Pr
at System.Runtime.Remoting.Pr
at SmAudBroker.RecordPolicy.R
at y.a(h A_0)
at y.a()
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Citrix SmartAuditor Agent" />
<EventID Qualifiers="0">0</EventID>
<Level>3</Level>
<Task>0</Task>
<Keywords>0x80000000000000
<TimeCreated SystemTime="2011-06-11T12:
<EventRecordID>10826</Even
<Channel>Application</Chan
<Computer>XA5.mydomain.com
<Security />
</System>
<EventData>
<Data>Exception caught while obtaining session metadata or running record policy query.
--- Exception Details ---
Type: System.Runtime.Serializati
Message: The input stream is not a valid binary format. The starting contents (in bytes) are: 3C-68-74-6D-6C-3E-0D-0A-20
Stack trace:
Server stack trace:
at System.Runtime.Serializati
at System.Runtime.Serializati
at System.Runtime.Serializati
at System.Runtime.Serializati
at System.Runtime.Serializati
at System.Runtime.Remoting.Ch
at System.Runtime.Remoting.Ch
at System.Runtime.Remoting.Ch
Exception rethrown at [0]:
at System.Runtime.Remoting.Pr
at System.Runtime.Remoting.Pr
at SmAudBroker.RecordPolicy.R
at y.a(h A_0)
at y.a()
</Data>
</EventData>
</Event>
Netstat outcome (relevant connections only)
Proto Local Address Foreign Address State
TCP CTXAUD01:https XA5.mydomain.com:53978 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53979 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53980 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53983 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53984 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53986 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53987 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53988 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53989 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53991 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53993 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53994 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53996 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:53997 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:54001 ESTABLISHED
TCP CTXAUD01:https XA5.mydomain.com:54002 ESTABLISHED
TCP CTXAUD01:msmq XA5.mydomain.com:53649 ESTABLISHED
TCP CTXAUD01:ms-wbt-server XA5.mydomain.com:53667 ESTABLISHED
I checked the settings again as per http://support.citrix.com/proddocs/topic/xenapp5fp-w2k8/ps-sa-trouble-connect-verify.html
and all seems fine. The SmAudDatabaseInstance key is the one that's puzzling me... what should the correct entry be?
Also I forgot to mention that using https://ctxaud01.mydomain.com/SmartAuditorBroker/PolicyAdministration.rem?wsdl to test connectivity to IIS from Auditor server returns XML website
(as per http://support.citrix.com/proddocs/index.jsp?topic=/xenapp5fp-w2k8/ps-sa-trouble-connect-iis-testing.html)
Note. For obvious reasons mydomain.com string replaced my real domain name.
Two ideas come to mind:
- Is the Citrix plug-in being used to administratively access the SmartAuditor records newer than that used for the recordings? They should all be the same version.
- HTTPS has to be configured in four places: http://support.citrix.com/proddocs/topic/xenapp5fp-w2k8/ps-sa-trouble-protocol-change.html
- Is the Citrix plug-in being used to administratively access the SmartAuditor records newer than that used for the recordings? They should all be the same version.
- HTTPS has to be configured in four places: http://support.citrix.com/proddocs/topic/xenapp5fp-w2k8/ps-sa-trouble-protocol-change.html
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
No solution provided by EE members






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Citrix
--
Questions
--
Followers
Top Experts
Citrix is the synonym for the virtualization and application infrastructure systems developed by the company of the same name. Main areas are application virtualization, Software-As-A-Service (SaaS), cloud-computing and networking. The two most well-known are Citrix XenApp or Citrix CloudPlatform.