MOSS 2007 and WSS 2007 - Server setup tip

Posted on 10/31/2006 @ 12:54 PM in #SharePoint by | Feedback | 5122 views

Okay, to date I have setup 4 Sharepoint 2007 servers. And every god darned time I do this, I run into the very same problem over and over again. Not only that, I forget to do the right thing - every god darned time I set up a server.

So I'm gonna put this on my blog to save you from ripping your hair out in frustration and anger.

When you setup a Sharepoint 2007 server, MOSS or WSS, you probably will need to setup shared services, before which you will need to setup indexing/crawling/searching.

Yep - so you go to SCAW (Central Admin), and then you go to "services on the server" and then you attempt to start the service.

And then sharepoint may tell you "Something bad happened". with the word "OSearch" written there.

OCrap.

So I turn on diagnostic logging (which was off by default), on the same page, and here is the rather uninformative error I found deep inside sharepoint logs.

The call to SearchServiceInstance.Provision (server 'YourServerName') failed. Setting back to previous status 'Disabled'. System.ComponentModel.Win32Exception: OSearch ('YourSearchAcct')     at Microsoft.SharePoint.Win32.SPAdvApi32.ChangeServiceConfiguration(String strServiceName, String strAccountName, SecureString sstrPassword, IdentityType identityType, Boolean bDontRestartService)     at Microsoft.SharePoint.Administration.SPProvisioningAssistant.ProvisionProcessIdentity(String strUserName, SecureString secStrPassword, IdentityType identityType, Boolean isAdminProcess, Boolean isWindowsService, String strServiceName, Boolean dontRestartService)     at Microsoft.SharePoint.Administration.SPProcessIdentity.ProvisionInternal(SecureString sstrPassword, Boolean isRunningInTimer)     at Microsoft.... 

I swear - what the hell is the above error message useful for? Not much if you'd ask me. And no I didn't truncate the above error message - Thats about all that got logged. :-/

So what is the solution?

Make sure that you enter the account name for crawling and searching as "Domain\accnt name" EVEN IF they are local accounts. Then you won't get the above error.

.. yet another small tip to save the day, courtesy Malik services. :-)

Now only if I could remember the above when I setup my next Sharepoint 2007 server. LOL.

Sound off but keep it civil:

Older comments..


On 1/9/2007 2:26:19 PM Ron Kincaid said ..
Bless you and thank you. Most annoying. Too bad one couldn't test a condition like:


<extremeSarcasm>


if (thisStupidSearchAccount.Equals(computerName + "\" + thisServiceUserName) == false)


{


MessageBox.Show("Your user name needs to be formatted as " + computerName + "\" +


thisServiceUserName);


}

Or of couse, the message could simply be, Hey, we need this format, press ok and we'll change it for you. Now that'd be something huh? Of course, the technology to do something like that on the fly is probably years away......


</extremeSarcasm>

Yeah, I know, I used C# syntax, but hey, if MS can't use something like, oh, I don't know, AJAX???!!?? to check format and fix, why should I show them the code?


On 1/9/2007 5:14:03 PM Sahil Malik said ..
LOL, yeah I tore my panties over that one myself.


On 5/15/2007 11:23:44 AM Chris said ..
I am greatful for this post.


On 7/11/2008 4:46:17 PM Jason said ..
I know this is old and nobody is looking but this saved me probably hours of researching on sharepoint to figure this dang thing out.

bless you!

Jason


On 10/15/2009 10:21:01 PM Gordon said ..
I repeat the blessing and +10

I am still sorting out test restores on this product and the more time I spend......