Link to home
Start Free TrialLog in
Avatar of nicolajsb
nicolajsb

asked on

Can't start the SQL Server Agent

Hi all

I have just installed SQL Server 2008 on a new server. After installation I have created new local users for each service of the SQL Server (sql server, sql server agent, Integration Service, OLAP and so on) and each user is member of the corresponding group created by the installation.
The user for the sql server agent for example is member of the group SQLServerSQLAgentUser$MSSQL2008-A$MSSQLSERVER 
This works fine for all services except for the agent which fails when I try to start the service. The event log shows the following messages:

Login failed for user 'MSSQL2008-A\SQLServerAgent'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT: <local machine>]

and

SQLServerAgent could not be started (reason: Unable to connect to server '(local)'; SQLServerAgent cannot start).


Additional info: the server is not on an AD network&.. all the users I created for the services are local users

Please.... does someone have an idea.....

/Nicolaj
Avatar of Marten Rune
Marten Rune
Flag of Sweden image

Maybe you need to grant 'log on as a service' in local security policy?

/Marten
can you do a runas in cmd prompt? i e:

c:\runas /u:SQLServiceAccount cmd
ENTER
CMD will prompt for password. If it works it will open another CMD prompt. Just to see that the account works.

Try put it in local admin group, if the service starts, then you know its related to permissions somehow.

Come back with results.

Regards Marten
Avatar of nicolajsb
nicolajsb

ASKER

just checked.... "log on as service" is grandet by default to the group that is created when the SQL Server is installed and the "runas" thing works fine too.

I have tried to add the user to the Administrators group byt that didn't help either.

If I change the service account for the agent to "Local System" everything works.... but i guess it is best practice to create diticated user accounts for every service and use the groups created during the installation....

You could try to use the browse button when assigning the account.

If this doesn't work, try creating a new account and see if it will work with this account!

/Marten
hmmm tried everything now.... recreating the account, reinstalling the SQL Server.... nothing helps. going back to "Network Service" as the service account for the Agent
ASKER CERTIFIED SOLUTION
Avatar of Marten Rune
Marten Rune
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial