Jump to content

Windows service won't start automatically


Recommended Posts

Guest Adam Sandler
Posted

Hello,

 

I have a service that isn't starting automatically at startup. After

booting up and logging on, if one goes into services, the service is

set to automatic but it isn't running. If I then start the service,

it starts with no other problems.

 

In the event log, I'm getting one 7000 event id which states the

service couldn't start because an invalid user account or password was

supplied. This error isn't helpful because if a bad account was

associated with the service, the service should never start - the

service will start if someone manually starts it, it just won't start

at boot, despite an automatic startup type specified.

 

Here's some background.

 

The service a simply a listener which watches a folder for e-mail

messages. When a message arrives, the service sends the message off

to a message factory and the message factory decides if the mail

message conforms to a template. If it does, the factory initiates

parsing and placing of key data into a database. If it does not, the

whole e-mail goes into an archive.

 

The service is associated with a user account. I can sign in at ctrl-

alt-delete and get a desktop with that account. I'm assuming that

tells me there isn't a problem with the account.

 

The service has some dependencies. I wanted to make it the last thing

to start. I figured it would be easiest if I just made it dependent

upon workstation and RPC.

 

This did work for about 4 years... until recently. It used to run on

W2K Server; no it is on W2K3 Server R2. Within the past 3 weeks is

when we've seen this behavior. Again, I cannot think of a common

denominator with the details I've given, which would shed some light

on this problem. Could the problem be some change in a group policy

or an update that I don't know about? Suggestions on how to get this

service running again at startup are greatly appreciated.

 

Thanks!

  • Replies 3
  • Created
  • Last Reply
Guest Pegasus \(MVP\)
Posted

Re: Windows service won't start automatically

 

 

"Adam Sandler" <corn29@excite.com> wrote in message

news:1192228953.973961.191430@q5g2000prf.googlegroups.com...

> Hello,

>

> I have a service that isn't starting automatically at startup. After

> booting up and logging on, if one goes into services, the service is

> set to automatic but it isn't running. If I then start the service,

> it starts with no other problems.

>

> In the event log, I'm getting one 7000 event id which states the

> service couldn't start because an invalid user account or password was

> supplied. This error isn't helpful because if a bad account was

> associated with the service, the service should never start - the

> service will start if someone manually starts it, it just won't start

> at boot, despite an automatic startup type specified.

>

> Here's some background.

>

> The service a simply a listener which watches a folder for e-mail

> messages. When a message arrives, the service sends the message off

> to a message factory and the message factory decides if the mail

> message conforms to a template. If it does, the factory initiates

> parsing and placing of key data into a database. If it does not, the

> whole e-mail goes into an archive.

>

> The service is associated with a user account. I can sign in at ctrl-

> alt-delete and get a desktop with that account. I'm assuming that

> tells me there isn't a problem with the account.

>

> The service has some dependencies. I wanted to make it the last thing

> to start. I figured it would be easiest if I just made it dependent

> upon workstation and RPC.

>

> This did work for about 4 years... until recently. It used to run on

> W2K Server; no it is on W2K3 Server R2. Within the past 3 weeks is

> when we've seen this behavior. Again, I cannot think of a common

> denominator with the details I've given, which would shed some light

> on this problem. Could the problem be some change in a group policy

> or an update that I don't know about? Suggestions on how to get this

> service running again at startup are greatly appreciated.

>

> Thanks!

>

 

I have an application with a similar problem. Instead of solving

the problem, I walk around it: I have scheduled a task that runs

at startup time. It invokes the following batch file:

 

@echo off

ping localhost -n 300 > nul

net start "ServiceName"

 

This works extremely reliably.

Guest Adam Sandler
Posted

Re: Windows service won't start automatically

 

On Oct 12, 4:18 pm, "Pegasus \(MVP\)" <I....@fly.com> wrote:

>

> I have an application with a similar problem. Instead of solving

> the problem, I walk around it: I have scheduled a task that runs

> at startup time. It invokes the following batch file:

 

Appreciate the reply... although I'd prefer to solve the problem.

This was working as of very recently; that's why I was wondering if

something like an update or an obscure GPO change messed things up. I

did a clean install -- although I did install service pack 2. and any

other updates the updater flagged.

Guest Adam Sandler
Posted

Re: Windows service won't start automatically

 

Posting for the benefit of others in case they ever run into an issue

with service(s) starting (or not).

 

Like I mentioned earlier, the service is associated with a user

account. Somehow, in the service's properties, the user (names

changed to protect the innocent) associated with the service looked

like this:

 

user@mydomain.local

 

And even though that is a valid user with valid credentials, the

service wouldn't start automatically -- only manually. But if one

went to the service's property and manually typed the account in the

form (versus using the browse button) to look like this:

 

MYDOMAIN\user

 

then it works! The service does start automatically when the account

is listed in DOMAIN\account format and it will not start automatically

when the account is listed in account@domain format.

 

Weird... but working!


×
×
  • Create New...