question

JoshuaMolskow-5127 avatar image
0 Votes"
JoshuaMolskow-5127 asked JoshuaMolskow-5127 commented

Sharepoint 2013 Search Servince Error "search service is not able to connect to the machine "

I have been trying to rebuild Search Server on our Dev environment in SharePoint 2013.

I started be removing Search Service as described in this article: https://social.technet.microsoft.com/wiki/contents/articles/48051.sharepoint-2013-how-to-completely-remove-search-service-application.aspx

I then started building Search Service using PowerShell like mentioned here: https://www.sharepointdiary.com/2013/11/create-search-service-application-using-powershell.html

However when I got to step #6 I would get the following error:

78422-image-1.png

When I go to the Search Service I see this:

78415-image-2.png

Here is what I have tried:
-Checked that Search Service was running, it is outside of the above issue
-Checked that the application pools were running, they are
-I have tried running the configuration wizard, no change
-SharePoint Server Search 15 keeps getting disabled and I have to re-add the passwords and start it

What else should I check?

office-sharepoint-server-search-itpro
image-1.png (9.5 KiB)
image-2.png (21.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ChelseaWu-MSFT avatar image
1 Vote"
ChelseaWu-MSFT answered JoshuaMolskow-5127 commented

The service instance on your servers should be started before creating the service components. Check the search service instance status by executing:

 Get-SPEnterpriseSearchServiceInstance -Local

78533-screenshot-2021-03-17-100359.png

If it is not Online, start the instance by executing:

 $hostA = Get-SPEnterpriseSearchServiceInstance -Identity "server-name"
 Start-SPEnterpriseSearchServiceInstance -Identity $hostA

Or (single server)

 Get-SPEnterpriseSearchServiceInstance -Local | Start-SPEnterpriseSearchServiceInstance

Wait for around 5 minutes and then check the status again. Make sure it is Online.
Then you can continue the script from “Step 5” or “Step 6”, see the results.

References: Get-SPEnterpriseSearchServiceInstance. / Start-SPEnterpriseSearchServiceInstance.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I Have tried what you have suggested, but it only returns disabled. I have looked in to SharePoint Search Service 15 in the Services admin tool and it shows disabled.

I have tried manually starting it but it returns "error 1069: The service did not start because of a login error". So I tried adding the Search Service account credentials manually, it starts but only for a moment before it resets to how it was before.

0 Votes 0 ·

Try switching to another service account (farm account, for example) and see if it starts. Or register a new managed account first via Central Administration > Security > Configure managed accounts > Register Managed Account.

Another post with similar issue for your reference: How do I fix the error:1069 - The service did not start due to logon failure?

0 Votes 0 ·

Registering a new managed account seems to have resolved the issue, I have been able to successfully create Search Service and start SharePoint Search Service 15.

Thanks!
Josh

0 Votes 0 ·