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

Joshua Molskow 21 Reputation points
2021-03-16T21:31:37.727+00:00

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?

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments
{count} votes

Accepted answer
  1. Chelsea Wu 6,341 Reputation points Moderator
    2021-03-17T02:18:13+00:00

    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. **

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.