July 28, 2003 at 5:04 am
Hello everybody,
I just discovered a strange behaviour on one of our SQL servers. When I try to start the SQL Agent I get the message
quote:
[000] Unable to connect to server '(local)'; SQLServerAgent cannot startor in the Services console:
Could not start SQLSERVERAGENT service on local computer. The service did not return an error. This could be an internal Windows error or an internal service error."
I checked the login and password and that's ok. The SQL Service uses the same domain user account and starts succesful. Restarting the machine didn't help. Fortunately the machine is a testserver so in the worst case I can reinstall. But I'd rather like to know what causes the problem and how to resolve it other than reinstalling.
Thanks in advance
Markus
[font="Verdana"]Markus Bohse[/font]
July 28, 2003 at 6:53 am
Don't know if it's exactly the same error message, but I've found you have to be logged in locally to start the Agent service; ie, you can't start up EM on your machine, connect to a remote machine through EM, and start the Agent up. You have to log in to the remote machine and start it up from there.
July 28, 2003 at 7:24 am
Jpipes, thanks for your reaction, but I don't think that's the issue here. I tried it remotely and logged on locally. At least after restarting the machine I would expect the SQL Agent to start.
[font="Verdana"]Markus Bohse[/font]
July 28, 2003 at 7:32 am
You have to be a sysadmin to start it up, according to this page:
http://dbforums.com/arch/71/2003/6/832887
also, this KB article says something about the Certificate Authority name...
any help?
July 28, 2003 at 7:47 am
I am sysadmin (as well in NT as in SQL)and A certificate authority isn't involved either, after all it's just a test server.
As I wrote before I'm able to start and stop SQL Server Service, which uses the same domain account, but not the Agent. I'm starting to think there's some file corrupted.
[font="Verdana"]Markus Bohse[/font]
July 28, 2003 at 8:38 am
Did you find anything in the SQL Server logs, or in the Event Viewer -> Applications log? Specifically, looking for something like 'Bypassing recovery for database 'msdb'...marked as Suspect'?
July 29, 2003 at 12:36 am
is agent running on "local system" and did you remove "builtin\administrators" ?
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
July 29, 2003 at 3:06 am
As stated before, the agent and the sqlservice use a domain user account. Built-in Administrators have been removed, but the account in question is added with sysadmin rights (otherwise the sqlservice won't start either).
I also tried starting the agent using the local system account, but receive the same message
quote:
Could not start SQLSERVERAGENT service on local computer. The service did not return an error. This could be an internal Windows error or an internal service error
So I'm
pretty sure that it's not a login problem.
Then trying to start the agent in EM for a moment it seems like it will start but when it stops. In the SQL agent log there's an error
quote:
[000] Unable to connect to server '(local)'; SQLServerAgent cannot start
and an info message
quote:
(098)SQL Agent has terminated (normal)
[font="Verdana"]Markus Bohse[/font]
July 29, 2003 at 3:51 am
Seen this kind of problem (or a similar one) before. Check the Registry for SQL Server Agent entries and make sure that the path for the log file exist. The SQL Agent will not start if the directory where the log file is has been deleted or renamed.
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\MSSQLSERVER\SQLServerAgent errorlogfile
Cheers, George
GD
GD
July 29, 2003 at 12:43 pm
Is the domain account used for the agent also a member in the Administrators NT Group on the server?
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply