Link to home
Start Free TrialLog in
Avatar of Rupert Eghardt
Rupert EghardtFlag for South Africa

asked on

Automatic Windows Service stops by itself

Hi Guys,

I have an automatic Windows Service that stops sporadically (sometimes only after a couple of days).
It is a service from a 3rd party application, running on a Windows 2008 R2 server.

When trying to restart the service I get a message "invalid" credentials for the logon account.  
I created a "local logon account" for the service on the server.  Still the same problem.

Any ideas will be appreciated?
SOLUTION
Avatar of Brian McDonald
Brian McDonald
Flag of United States of America 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
SOLUTION
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
Avatar of Rupert Eghardt

ASKER

I checked the event logs, and the following two events occur every time the service stops

7038 - login failure unknown user name or password {Although the user name and password is still valid}
7041 - Login failure:  The user has not been granted the requested logon type at this computer {Although it has been working all along}
  * The service does not have the required user right "log on as a service"

I checked the local security policy and the domain user is part of the "log on as a service" rights assignment

I tried both a domain user and local user account.
ASKER CERTIFIED SOLUTION
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
Yes, this user is part of Local Administrators group

Is doesn't make sense that the service would run fine for days, sometimes even a week or two,
Then sporadically we get the service stopping by itself.

Trying to restart the service will tell me that the credentials are wrong.
Entering the same credentials for the service as before works (once re-entered and re-starting the service)

I've now enabled the "Restart service" under the Recovery tab.  I will monitor the event log.
SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia 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