SharePoint 2010 Enterprise Search的Content Source的爬网停不下来的一次排错

笔者最近使用的一套环境, 爬网始终卡在stopping的状态, 一卡就是一两天.

下面列出的参考资料里所有的步骤, 笔者都试过, 还是不成功.

由于不那么重要, 于是笔者准备放弃这个Service Application了, 想重建Search Service Application, 发现重建也是卡住的. 于是笔者决定去看看ULS log.

找到了如下的条目:

02/18/2013 06:00:01.53    OWSTIMER.EXE (0x07E4)    0x03AC    SharePoint Foundation    Health    2137    Critical    The SharePoint Health Analyzer detected an error.  One or more services have started or stopped unexpectedly.  The following services are managed by SharePoint, but their running state does not match what SharePoint expects: SPAdminV4.  This can happen if a service crashes or if an administrator starts or stops a service using a non-SharePoint interface.  If SharePoint-managed services do not match their expected running state, SharePoint will be unable to correctly distribute work to the service.  SharePoint was unable to automatically repair this error.    To stop or start a service managed by SharePoint, use the SharePoint service management interface in the SharePoint Central Administration Site.  If a service has crashed, restart the service manually on the affected servers by running "net start [service name]" from a command prompt. For more information about this rule, see "http://go.microsoft.com/fwlink/?LinkID=142683".    fc53c17a-dd32-4dc9-b210-d4bf15019660

SPAdminV4这个service是一定要启动的, 否则, 这台机器会遇到很多问题. 这个服务是做什么的, 请参考下文:

The SharePoint 2010 Administration Service is a Windows service installed by SharePoint. The service's name is SPAdminV4 and its primary executable is WSSADMIN.EXE in the 14\BIN directory. The task of the SharePoint Administration service is remarkably simple: it handles a specific subset of operations (exposed as methods of the SPAdministrationOperation object) which require local administrator rights on a server. The Timer Service uses an IPC (Inter-Process Communication) channel to call upon the Administration Service to execute these operations.

Operations carried out by the Administration Service include service-related tasks such as restarting Windows services and IIS application pools; creating folders and files and configuring their permissions; adding and removing accounts from local security groups; and creating and modifying values in the Registry.

The Administration Service cannot do anything other than its preconfigured subset of operations. In addition there is no supported way for a third-party timer job to directly call these methods - only internal SharePoint jobs may utilize them. As a result, this discussion of the Administration Service and SPAdministrationServiceJobDefinition is meant only to help you troubleshoot and understand existing SharePoint Administration Service jobs; there is no purpose in writing your own jobs of this type.

很明显, 如果要新建service application, 注册表要修改, 文件夹要创建, 权限要设置, 如果没有这项服务, 那么全做不成, 能不hang么. 从症状推断, 停掉Crawl也要这服务做一些相关动作.

于是开始着手在所有机器上启动这个服务.

于是解决问题之后就有了下面的文章.

Windows中的服务启动不起来, 报超时怎么办?

http://www.cnblogs.com/awpatp/archive/2013/02/19/2916929.html

最后, 这项服务都起来了, 爬网也停掉了.

问题解决.

参考资料

=====================

SharePoint 2010 Enterprise Search – Content Source Stuck on “Stopping”

http://gunakuppusamy.wordpress.com/2012/06/18/sharepoint-2010-enterprise-search-content-source-stuck-on-stopping/

Search Crawl stuck in Stopping State

http://prdlxvm0001.codify.net/pipermail/ozmoss/2011-August/003248.html

SharePoint Search stuck on stopping state - missing indices?

http://social.technet.microsoft.com/forums/en/sharepointadminprevious/thread/bd014fb8-6cf5-4c12-8754-4f281efc3b4c

The SharePoint Administration Service and SPAdministrationServiceJobDefinition

http://blogs.msdn.com/b/besidethepoint/archive/2012/01/08/the-sharepoint-administration-service-and-spadministrationservicejobdefinition.aspx

原文地址:https://www.cnblogs.com/awpatp/p/2917172.html