HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlModerate

After Upgrade to 2016, SQL Server Agent can't connect to Instance

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
aftercanconnectsqlagentinstanceserverupgrade2016

Problem

On a clustered Windows 2012 R2 server with SQL Server 2014 Enterprise.

Just upgraded an instance from 2014 SP1 CU4 to 2016 RTM and now getting this error when attempting to start the SQL Server Agent.
SQL SERVER AGENT LOG
2016-06-06 11:53:58 - ? [100] Microsoft SQLServerAgent version 13.0.1601.5 (X64 unicode retail build) : Process ID 10884
2016-06-06 11:53:58 - ? [495] The SQL Server Agent startup service account is DOMAIN\USERNAME.
2016-06-06 11:54:28 - ! [150] SQL Server does not accept the connection (error: 65535). Waiting for Sql Server to allow connections. Operation attempted was: Verify Connection On Start.
2016-06-06 11:54:28 - ! [000] Unable to connect to server 'SERVERNAME\INSTANCENAME'; SQLServerAgent cannot start
2016-06-06 11:54:33 - ! [298] SQLServer Error: 65535, SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. [SQLSTATE 08001]
2016-06-06 11:54:33 - ! [165] ODBC Error: 0, Login timeout expired [SQLSTATE HYT00]
2016-06-06 11:54:33 - ! [298] SQLServer Error: 65535, A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [SQLSTATE 08001]
2016-06-06 11:54:33 - ! [382] Logon to server 'SERVERNAME\INSTANCENAME' failed (DisableAgentXPs)
2016-06-06 11:54:33 - ? [098] SQLServerAgent terminated (normally)


Windows Application Log

SQLServerAgent could not be started (reason: Unable to connect to server 'A08SQL-EDI\EDI'; SQLServerAgent cannot start).


The agent starts and runs for about 30 seconds then dies with the above error. Anyone run into this issue? And do you know how to resolve it?

Solution

Problem resolved by adding an alias to the instance in the SQL Server Agent Configuration.

The alias was defined using the fully qualified domain name of the server. Example:servername.domain.biz\instance_name otherwise the agent will still error out and shutdown.

Also, the Agent was disabled in sp_configure

sp_configure 'Agent XPs', 1
go

reconfigure with override
go


So reenabled it.

Code Snippets

sp_configure 'Agent XPs', 1
go

reconfigure with override
go

Context

StackExchange Database Administrators Q#140493, answer score: 12

Revisions (0)

No revisions yet.