Wednesday, October 15, 2008

Search service stuck at stopping or starting

>> Search service stuck at stopping or starting

Search as we know is one of the best features on MOSS, Office SharePoint has the best ability to index and search documents, file share’s, and other things as well, it stores the indexed documents in search databases and renders them whenever required.
Well that’s about how it works, but what will you do if your search service is central admin is shows the status as stopping or starting,If your search service is stuck even after you reboot the server this might be a problem,Look at the services console first and check if Windows SharePoint Search service is running and if the Office SharePoint servers search is running as wellThen check if they are running with the right service accounts.
This problem may arise the most when you have the two different accounts configured to run WSS and MOSSWhat should I do?Now you are at a stage where your search service is stuck it’s neither started not stopped. So when nothing works in SharePoint the command line works, let’s get our hero to work. First of all let’s get the search service stopped first.

We will stop the OSearch first and then the WSS search.

To stop the search server you will have to use the command line operation here is the command Stsadm –o osearch –action stop
Run iisreset / noforce

Similarly you will have to stop the wss search service
Stsadm –o spsearch –action stop

This will force stop the services, then we will un-provision the services before we actually start them, now if you are wondering what is provision service command used for it actually Starts or stops the SPService on the local computer or a custom service. To enumerate all the current running services with their service types in the farm, use the enumservices operationYou can know more from the link here

Before running the provision service you will have to run stsadm –o enum services command to get the service type and name.
So copy every thing between and Then run the commandstsadm -o provisionservice -action stop -servicetype Osearchsimilarly for sp search.
Then run the following command psconfig -cmd services -install, and install the services.
Then run psconfig -cmd secureresources
Then start spsearch and osearch from command lineStsadm –o spsearch –action start & stsadm –o osearch - action start

I bet the services will be started now :)


Anonymous said...


Great article. Most help I've found on the web so far.

I have a WSS v3 (clean) installation with the Sharepoint Search Helper Service in the stuck state. No matter what I do, I can't get it to start or stop. I can't stop it using:
stsadm -o spsearch -action stop

the command times out. I tried to unprovision it any way and not surprisingly it doesn't work either and also times out. The WSS Search service in the Services Managment Console is not running (Statup Type = Manual). I tried starting the WSS Search service manually in the management console just to see if stopping search helper service via stsadm won't time out,and got an access denied error even though I'm logged in a domain admin. Any ideas?

Thanks much for your help in advance.



Nidhi said...

did you try running psconfig -cmd secure resources ?

what account is the WSS search (service in services console start > admin tools > services ) running with?
is it disabled?
you might also try a repair ..

Anonymous said...

Thank you. I've been looking for the info in this post for quite a while. I was finally able to get WSS Search working.

Jason Lochan said...

Thanks for this STSADM voodoo. This was the final piece for getting the WFE running

Shola Salako said...

Nidhi! You are awesome!

Anonymous said...

Great Article Thanks for your assistance with this.

lee woo said...

Frisbeetarianism is the belief that when you die, your soul goes up on the roof and gets stuck. See the link below for more info.


Silvia Jacinto said...

Reading your article is such a privilege. It does inspire me, I hope that you can share more positive thoughts. Visit my site too. The link is posted below.