Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

SQL Server Agent will not start and there are no error logs. Expand / Collapse
Author
Message
Posted Friday, March 12, 2010 6:34 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, October 6, 2014 11:34 AM
Points: 327, Visits: 1,014
I am having trouble setting the service account for SQL Server Agent. I have setup SQL Server 2005 on Windows 2008. After the initial install, I changed service accounts to use domain users. Now the Agent service will not start and there are no logs that indicate what happened.

Here is what I did:

1. Created two domain accounts in the domain Users groups. SQL_Srv1 for SQL Server, and “SQL_Srv1_Agent” for SQL Server Agent.

2. Added the two accounts to the “Log on as a service” policy.

3. Stopped SQL Server and SQL Server Agent.

4. In SQL Server Configuration Manager, set the SQL Server service to use “domain\SQL_Srv1” as the log on account. Clicked OK. No problem here. The service started right up.

5. In SQL Server Configuration Manager, set the SQL Server service to use “domain\SQL_Srv1_Agent” as the log on account. Clicked OK. I was presented with a WMI Provider Error: “The process terminated unexpectedly. [0x8007042b].”

6. Checked the error log to see what happened. There was nothing in there other than the “Configuration option 'Agent XPs' changed from 1 to 0” error which I think is normal when the Agent fails to start.

7. Checked the Windows Application logs in Event Viewer. The only logs where “SQLServerAgent service successfully stopped”

8. Checked the Windows Security logs in Event Viewer. There is an Audit Success log for domain\SQL_Srv1_Agent.

Any ideas?

Thank you in advanced.

Jon



Post #882222
Posted Friday, March 12, 2010 7:53 PM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Thursday, October 2, 2014 12:09 PM
Points: 4,358, Visits: 9,538
I would verify that your new user account for the agent was added to the right local windows groups. There is a specific group for the Agent and that instance that your account needs to be a part of to have the right access.

You should also check the SQL Server logs to see if there are any messages there.

Also check the file system permissions on the folders where the system databases were installed to verify that the local windows group has the correct permissions.

And finally, you don't need to do step 2 - that is no longer required.

See this article for further information: http://support.microsoft.com/kb/283811


Jeffrey Williams
Problems are opportunites brilliantly disguised as insurmountable obstacles.

How to post questions to get better answers faster
Managing Transaction Logs
Post #882240
Posted Friday, March 12, 2010 9:54 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, October 15, 2014 3:22 PM
Points: 381, Visits: 359


5. In SQL Server Configuration Manager, set the SQL Server service to use “domain\SQL_Srv1_Agent” as the log on account. Clicked OK. I was presented with a WMI Provider Error: “The process terminated unexpectedly. [0x8007042b].”



I think it is just security issue, try this use "domain\SQL_Srv1" for SQL server agent services also, see if agent starts successfully.




EnjoY!
Post #882270
Posted Monday, March 15, 2010 12:41 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, October 6, 2014 11:34 AM
Points: 327, Visits: 1,014
I think it is just security issue, try this use "domain\SQL_Srv1" for SQL server agent services also, see if agent starts successfully.


GTR - Thank you, but I already tried that.



Post #883261
Posted Monday, March 15, 2010 12:44 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, October 6, 2014 11:34 AM
Points: 327, Visits: 1,014
Also check the file system permissions on the folders where the system databases were installed to verify that the local windows group has the correct permissions.


Jeffrey - That did it. Thank you.

I gave full control to the local Windows group SQLServer2005SQLAgentUser$ServerName$MSSQLSERVER on the E:\MSSQL\LOG folder. These are the same permissions as the default folder: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG. Weird, I thought I tried this.

The strange thing is, I did not have to do this on the E:\MSSQL\LOG folder or the F:\MSSQL\DATA folder for the SQL Server Service which uses the SQL_Srv1 domain account. I verified that SQL_Srv1 is NOT a local administrator.

Hopefully some can explain why.



Post #883264
Posted Monday, March 15, 2010 12:54 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, October 6, 2014 11:34 AM
Points: 327, Visits: 1,014
GTR - Even though I already tried your suggestion, it turns out you where correct about it being a permissions problem. Thank you.


Post #883277
Posted Monday, March 15, 2010 1:11 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, October 15, 2014 3:22 PM
Points: 381, Visits: 359
Jon Russell (3/15/2010)
GTR - Even though I already tried your suggestion, it turns out you where correct about it being a permissions problem. Thank you.


Is it working now?


EnjoY!
Post #883291
Posted Monday, March 15, 2010 1:30 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, October 6, 2014 11:34 AM
Points: 327, Visits: 1,014
GTR - Yes, it is working now. Thanks.


Post #883301
Posted Monday, March 15, 2010 1:33 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, October 15, 2014 3:22 PM
Points: 381, Visits: 359
Jon Russell (3/15/2010)
GTR - Yes, it is working now. Thanks.


Just curious, what did you change?


EnjoY!
Post #883303
Posted Monday, March 15, 2010 1:34 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, October 6, 2014 11:34 AM
Points: 327, Visits: 1,014
GTR (3/15/2010)
Jon Russell (3/15/2010)
GTR - Yes, it is working now. Thanks.


Just curious, what did you change?


Take a look at my reply to Jeffery.



Post #883306
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse