SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Server Agent will not start and there are no error logs.


SQL Server Agent will not start and there are no error logs.

Author
Message
Jon Russell
Jon Russell
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1455 Visits: 1177
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
Jeffrey Williams 3188
Jeffrey Williams 3188
SSC-Dedicated
SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)SSC-Dedicated (34K reputation)

Group: General Forum Members
Points: 34616 Visits: 10097
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 opportunities brilliantly disguised as insurmountable obstacles.

How to post questions to get better answers faster
Managing Transaction Logs

GTR
GTR
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3245 Visits: 368


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!
Jon Russell
Jon Russell
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1455 Visits: 1177
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.
Jon Russell
Jon Russell
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1455 Visits: 1177
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.
Jon Russell
Jon Russell
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1455 Visits: 1177
GTR - Even though I already tried your suggestion, it turns out you where correct about it being a permissions problem. Thank you.
GTR
GTR
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3245 Visits: 368
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!
Jon Russell
Jon Russell
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1455 Visits: 1177
GTR - Yes, it is working now. Thanks.
GTR
GTR
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3245 Visits: 368
Jon Russell (3/15/2010)
GTR - Yes, it is working now. Thanks.


Just curious, what did you change?

EnjoY!
Jon Russell
Jon Russell
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1455 Visits: 1177
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search