?
Solved

SQL Server 2012 SP1 on Windows 2012 cluster core cluster- SQL agent issue

Posted on 2013-05-15
7
Medium Priority
?
775 Views
Last Modified: 2013-05-24
I cannot create/edit/delete sql agent jobs. I am getting the following errors

Msg 14258, Level 16, State 1, Procedure sp_is_sqlagent_starting, Line 9
Cannot perform this operation while SQLServerAgent is starting. Try again later

a. Yes. I restarted the agent many times. failed to different node
b. Yes. Agent XP is enabled
c. Yes. SQL server is not on fibre mode
d. Yes. I tried sp_delete_job sp_create_job

No error messages on event log

Please help
0
Comment
Question by:MAK999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 22

Expert Comment

by:Haresh Nikumbh
ID: 39167481
0
 
LVL 10

Expert Comment

by:Matt Bowler
ID: 39167521
Can you confirm the status of the agent?

EXEC xp_servicecontrol N'querystate',N'SQLServerAGENT'

Can you also review the SQL Agent error logs?
0
 

Author Comment

by:MAK999
ID: 39167653
1. Query State is : Running.
2. http://support.microsoft.com/kb/303287/en-us is not applicable
3. MSDTC is running on the active node and tried moving around.
4. SQLAgent is running under service account. Yes. it is local admin to all the nodes.
5. Nothing odd in sql server agent log. Some errors due to the fact that those features are not installed.

2013-05-15 05:06:55 - ! [125] Subsystem 'ANALYSISQUERY' could not be loaded (reason: A dynamic link library (DLL) initialization routine failed)
2013-05-15 05:06:55 - ! [125] Subsystem 'ANALYSISCOMMAND' could not be loaded (reason: A dynamic link library (DLL) initialization routine failed)
2013-05-15 05:06:55 - ! [125] Subsystem 'SSIS' could not be loaded (reason: A dynamic link library (DLL) initialization routine failed)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:MAK999
ID: 39168742
Some more information
declare @i int 
exec xp_sqlagent_is_starting @i output 
print @i 

Open in new window

--Returns 1
exec xp_sqlagent_enum_jobs 1,''

Open in new window

--Returns "SQLServerAgent is not currently running."

Actual SQLServer Agent on the cluster is up and running. I can query msdb tables.
0
 

Accepted Solution

by:
MAK999 earned 0 total points
ID: 39169689
After long troubleshooting I have found that my nodes were missing .net 3.5.

Installed .net 3.5 using the below command on all the nodes and sqlagent started working normally

dism /online /enable-feature /featurename:NetFX3 /all /Source:e:\sources\sxs /LimitAccess
0
 
LVL 10

Expert Comment

by:Matt Bowler
ID: 39169708
That's good news. I was about to suggest that something was not right with the installation. The ability to query msdb tables is independent of the agent running, and those errors are not normal.
0
 

Author Closing Comment

by:MAK999
ID: 39193731
resolved.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Suggested Courses

752 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