Quantcast
Channel: SQL Service Broker forum
Viewing all articles
Browse latest Browse all 461

Service Broker External Activator Issue

$
0
0

Hi All,

I am trying to configure service broker external activator service on SERVER2 ,in my database server (SERVER1) i have two installations of sql server one is 2012 and another one is 2017, i have enabled and created all the objects related to service broker in 2012 instance (SERVER1\SQL2012). But after starting the service broker external activator  service i am getting the below error in the EATrace.log file. 

1/16/2019 3:42:44 PM======================================================================================
1/16/2019 3:42:44 PM======================================================================================
1/16/2019 3:42:44 PMINFOThe External Activator service is starting.
1/16/2019 3:42:44 PMINFOInitializing configuration manager ...
1/16/2019 3:42:44 PMINFOReloading configuration file C:\Program Files\Service Broker\External Activator\config\EAService.config ...
1/16/2019 3:42:44 PMINFOReloading configuration file completed.
1/16/2019 3:42:44 PMVERBOSERunning recovery using recovery log file C:\Program Files\Service Broker\External Activator\log\EARecovery.rlog ...
1/16/2019 3:42:44 PMVERBOSECheckpointing recovery log C:\Program Files\Service Broker\External Activator\log\EARecovery.rlog ...
1/16/2019 3:42:44 PMVERBOSECheckpointing recovery log completed.
1/16/2019 3:42:44 PMVERBOSERunning recovery completed.
1/16/2019 3:42:44 PMINFOInitializing configuration manager completed.
1/16/2019 3:42:44 PMVERBOSEStarting worker threads...
1/16/2019 3:42:44 PMVERBOSEWorker threads are successfully started.
1/16/2019 3:42:44 PMINFOThe External Activator service is running.
1/16/2019 3:42:44 PMVERBOSEHeartbeat-Thread is starting...
1/16/2019 3:42:44 PMVERBOSECM-NS-Thread is starting...
1/16/2019 3:42:58 PMEXCEPTIONERROR = 30, The connection to the notification server failed.
1/16/2019 3:42:58 PMEXCEPTIONDETAILSInner Exception:
1/16/2019 3:42:58 PMEXCEPTIONDETAILSSystem.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean withFailover)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject, Boolean withFailover)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at System.Data.SqlClient.SqlConnection.Open()
1/16/2019 3:42:58 PMEXCEPTIONDETAILS   at ExternalActivator.NotificationService.get_Connection()

my EAService.config looks like below

<?xml version="1.0" encoding="utf-8"?><Activator xmlns="http://schemas.microsoft.com/sqlserver/2008/10/servicebroker/externalactivator"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://schemas.microsoft.com/sqlserver/2008/10/servicebroker/externalactivator EAServiceConfig.xsd"><NotificationServiceList><NotificationService name="AUDIT_NOTIFICATION_SERVICE" id="100" enabled="true"><Description>Tracking Notification Service</Description><ConnectionString><!-- All connection string parameters except User Id and Password should be specificed here --><Unencrypted>server=SERVER1\SQL2012;database=SBEA_DB;Application Name=AuditTrailMessageReceiver;Integrated Security=true;</Unencrypted></ConnectionString></NotificationService></NotificationServiceList><ApplicationServiceList><ApplicationService name="AuditTrailMessageReceiver" enabled="true"><OnNotification><ServerName>SERVER1\SQL2012</ServerName><DatabaseName>SBEA_DB</DatabaseName><SchemaName>dbo</SchemaName><QueueName>AUDIT_REQUEST_QUEUE</QueueName></OnNotification><LaunchInfo><ImagePath>C:\HostedApplications\AuditTrailMessageReceiver\AuditTrailMessageReceiver.exe</ImagePath><CmdLineArgs></CmdLineArgs><WorkDir>C:\HostedApplications\AuditTrailMessageReceiver</WorkDir></LaunchInfo><Concurrency min="1" max="1" /></ApplicationService></ApplicationServiceList><LogSettings><LogFilter><TraceFlag>All Levels</TraceFlag><TraceFlag>All Modules</TraceFlag><TraceFlag>All Entities</TraceFlag><TraceFlag>Verbose</TraceFlag></LogFilter></LogSettings></Activator>

To check the database connectivity from SERVER2 i have created a small console application and it was able to connect to database server without any issues. The following is my app.config file connection string settings

<connectionStrings><add name="SBEACS"
    connectionString="Data Source=SERVER1\SQL2012;Initial Catalog=SBEA_DB;Integrated Security=True"/></connectionStrings>

Please any one help me to correct this issue.

Thanks in advance 

Arun


Viewing all articles
Browse latest Browse all 461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>