Posts

Showing posts with the label search

Internal server error exception when users perform a search in SharePoint

Symptoms When users perform a search in a Microsoft SharePoint environment, they receive the following error message: Internal server error exception: Troubleshoot issues with Microsoft SharePoint Foundation Additionally, the following critical exception may be written to the ULS log of the SharePoint Web front-end server:  Process : OWSTIMER.EXE (0x1CE0) Product : SharePoint Foundation Category : Topology EvendID : 8031 Message : An exception occurred while updating addresses for connected app {eaf6c00c-cc3f-460e-8bf2-ad9b991ea6ea_aa16845d-045a-46bc-bbc6-d701ff13950d}. The uri endpoint information may be stale. System.InvalidOperationException: The requested application could not be found at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.ProcessCommonExceptions(Uri endpointAddress, String operationName, Exception ex, SPServiceLoadBalancerContext context) at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.ExecuteOnChannel(String operationName, CodeBlock

Search stops working and Central admin Search screens error

Image
Problem: In my redundant Search farm, search falls over.  It was working, nothing appears to of changed but it suddenly stops working.  This problem has caused itself to surface in several places: 1. In  Central Admin going to "Search Administration" displays the following error message:  Search Application Topology - Unable to retrieve topology component health states. This may be because the admin component is not up and running. 2. Query and crawl stopped working. 3. Using PowerShell I can't get the status of the Search Service Application PS> $srchSSA = Get-SPEnterpriseSearchServiceApplication PS> Get-SPEnterpriseSearchStatus -SearchApplication $srchSSA Error: Get-SPEnterpriseSearchStatus : Failed to connect to system manager. SystemManagerLocations: net.tcp://sp2013-srch2/CD8E71/AdminComponent2/Management 4. In the "Search Administration" page within Central Admin, if I click " Content Sources " I get the error mes

SharePoint Search Index/Partition Degraded

Image
Today I reconfigured my Search Service Application following this post. After restarting the SharePoint Search Host Controller in services.msc, I observed that the search is not working in SharePoint. Lots of logs, not much sense: Get-SPEnterpriseSearchStatus tells me that the Index Component and the Partition is degraded: PS C:\Windows\system32> $ssa = Get-SPEnterpriseSearchServiceApplication PS C:\Windows\system32> Get-SPEnterpriseSearchStatus -Text  -SearchApplication $ssa Name      : IndexComponent1 State     : Degraded State     : List of degraded cells: Cell:IndexComponent1-SPeb9d40f9a806I.0.0; Partition : 0 Host      : SPSRV Name      : Cell:IndexComponent1-SPeb9d40f9a806I.0.0 State     : Degraded State     : (Secondary index cell) Primary   : False Partition : 0 Name  : Partition:0 State : Degraded State : Degraded cells: Cell:IndexComponent1-SPeb9d40f9a806I.0.0; Name  : AdminComponent1 State : Active Host  : SPSRV Name  : QueryProcessing

SharePoint Search Fails with Correlation ID Provided

Image
After performing a SharePoint 2013 upgrade we were having trouble with our search functions and got a rather generic error message. After doing a migration upgrade of SharePoint 2010 to SharePoint 2013, search failed with: Sorry, something went wrong. A correlation id is provided. We checked our Content Sources from Central Administration->Manage Services on Server->SharePointServer Search->Search Service Application->Content Sources   and found that Full Crawls had completed successfully. You will find a TON of log enties for that correlation id, so finding the root cause is daunting.  Buried in the results you will find a 500 Service Unavailable error connecting to the Metadata Management Service. In the Search Service Application, we saw that in Queries and Results->Search Dictionaries , we had an error: Managed Meta Data Error The Managed Metadata Service or Connection is currently not available.  The Application Pool or Managed Metadata Web Service

Configuring iFilter for PDF Search in SharePoint 2010 - Step by Step

Image
What is iFilter ? * IFilters are components that allow SharePoint to index content of specific file types, letting users to search for content in those files. * Using the SharePoint Search we can find documents based on their filename, metadata or content within a document. * By default the content of Office documents is indexed by the SharePoint crawler, but PDF files are not crawled. * To add support for PDF files you have to add an I-Filter which the SharePoint crawler uses to read through PDF files and add the information to the search index. There are two steps in configuring PDF Search IFilters for SharePoint 1.       Install the PDF iFilter 2.       Configure the iFilter Installing IFilter The Installation of the iFilter 9.0 has to be done on the Index Server(s) How to install ifilter in SharePoint 2010? Download  and install the iFilter installation file for 64-bit machine from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025 Cho

The search request was unable to connect to the Search Service

ERROR MESSAGE:  1. Error on Server status for query server in Search Administration. 2. While search getting error " The search request was unable to connect to the Search Service. " RESOLUTION: Accessed the URL from the Index server https://queryservername:56738/SharedServices1(whatever_ssp_name_is)/Search/Searchadmin.asmx and got 404 page cannot be found error. The Port Number 56737, 56738 was not opened between the Index & Query servers. Got the port opened between the INdex & Query servers and the error message on Search Administration  got disappeared. But still we were not able to propagate the content. Found that the TCP/UDP 445 port number was not opened between the servers. Got the ports opened between servers and the Indexed items got propagated successfully. We were able to search on the website without any error.

Crawled Properties

Crawled properties are metadata that is extracted from content sources to make the data available for searching. Crawled properties are typically reported by the Content SSA or other FAST Search Server 2010 for SharePoint connectors, but can also be created during item processing by an IFilter or a property extractor . A crawled property is uniquely defined by the parameters of Name , Propset , and VariantType . Two specific managed properties are populated with the crawled property names and values discovered for the given item, as follows: crawledpropertynames   Holds discovered crawled properties that have a value for a specified item. crawledpropertiescontent   Holds the value of every crawled property in crawledpropertynames . Some discovered crawled properties are not mapped into these managed properties. The disadvantage of automatically indexing the content of discovered crawled properties is that not all content is relevant for searching. There may be several reas

SharePoint 2013 – Create a Search Service Application and Search Topology with Powershell

Image
What needs to be done? 14 steps for a simple Search Topology – 1 powershell can do them all. 1.Create a Service Application Pool for the Search Service Application (15-22) 2.Create a Search Service Application (22-28) 3.Create a Search Service Application Proxy (30-36) 4.Get the current Search Instance (38) 5.Save the current Search Topology for later use (39) 6.Create a new Search Topology (40) 7.Create all the Search Components (Analytics- , Content Processing, Query Processing, Crawler-, Admin Component) (42-46) 8.Remove the Index-Folder and recreate it (50-51) 9.Create a new Index Component (53) 10.Activate the new Topology (56) 11.Call the method synchronize on the old topology – this errors but forces an update on the old topology object (59) 12.The “forced updated” Topology object becomes inactive and can be deleted. (62) 13.Everything  done – start a full crawl order set it to the new shiny continuous crawling. Enjoy! Here is my powershell script for creati

SharePoint 2010 - Search service is not able to connect to Administration component server

Image
In this blog post, I would write about most generic issue in SharePoint 2010 search service application and I am sure many of you have already come across this: In SharePoint 2010 - When you try to browse to a Search Service Application (SSA), it shows he below error: "System Status: Crawl: The search service is not able to connect to the machine that hosts the administration component. Verify that the administration component c8519b74 status -<GUID> in search application Search Service Application is in a good state and try again." Additionally, you should see below errors in the Event logs: "Description: The Execute method of job definition Microsoft.Office.Server.Search.Administration.CrawlReportJobDefinition (ID 6dd22d5b-45cb-4860-aa01-d7f7d227a2f6) threw an exception. More information is included below. The search service is not able to connect to the machine that hosts the administration component. Verify that the administration component '9e

Unable to create a Search Service Application - "Errors were encountered during the configuration of the Search Application"

ISSUE Error when creating the search service application- Errors were encountered during the configuration of the Search Application" CAUSE * We see the following in the ULS logs When the search service application creation fails * The call to SearchServiceInstance.Provision (server 'GmallyaSP') failed. Setting back to previous status 'Disabled'. System.InvalidOperationException: Service is offline at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Provision() at Microsoft.Office.Server.Search.Administration.SearchAdminUtils.DeployLocalServiceInstance[T](T localSearchServiceInstance) RESOLUTION * Use the PowerShell commandlets to bring the search service online. Following are the PowerShell commandlets I used to resolve to verify the status of the service and then bring the service instance online: $ssa= Get-SPEnterpriseSearchServiceInstance -local $ssa RESULTS: TypeName : SharePoint Server Search Description : Index content and
Image
During various search troubleshooting i came across the following crawling error in the Craw log of a SharePoint 2013 environment. Processing this item failed because of an unknown error when trying to parse its contents. (Error parsing document 'http://sharepoint.contoso.com/Project/abcd/Q_M/ABX/SitePages/Homepage.aspx'. Sandbox worker pool is closed.; ; SearchID = 820E86ZD-5252-4G5F-AK9U-2096ZV3L56PP ) In order to fix this you can try to perform the following action plan: Open "Local Policies” Click on “User rights assignment” Make sure that the search service account has the following rights: "Replace a process level token” "Adjust memory quotas for a process" "Impersonate a client after authentication" Please make sure that the policies don't get changed afterwards. After implementing the above changes please run a clear configuration cache After clearing the cache, start a full crawl and the erro