Search Service: StartIndexing() failed

3122
4
Jump to solution
07-24-2012 02:05 AM
klem
by
New Contributor III
Hi,

I have a fresh installation of ArcGIS Server 10.1 (Current Version: 10.1.0, Current Build: 3035) and trying to run the Search Service.
I've registered sample folders with 12 different elements (tried different ways of sharing: server_name, localhost, IP ??? every of those were validated) and indexing status is still the same: Indexing, Items Indexed: 0.
First I tried to reinstall ArcGIS Server, also I checked different machine - the same result. I changed regional settings to US, but no change. I started to trace config files and finally switched the logging mode to debug.

There is an error StartIndexing() failed right after "Can not create CLSID_JItemIndex" and "Can not create CLSID_ItemIndex".

What is wrong with my configuration?

OS: Windows 7 64bit, ArcGIS Desktop 10.1 installed on the same machine. Default installation of ArcGIS Server (port 6080) without a Web adapter.


Part of Search.IndexGenerator log:

<Msg time='2012-07-24T11:38:30,737' type='DEBUG' code='5000' target='Utilities/Search.IndexGenerator' methodName='IndexGenerator.CreatorThreadFunc' machine='MyMachine' process='7024' thread='2388'  >Lock obtained. C:\arcgisserver\directories\arcgissystem\arcgisindex\Utilities\Search\cfg\generator.lck</Msg>
<Msg time='2012-07-24T11:38:30,752' type='DEBUG' code='5000' target='Utilities/Search.IndexGenerator' methodName='CIndexCreator.CreateIndex' machine='MyMachine' process='7024' thread='2388'  >Invoked.</Msg>
<Msg time='2012-07-24T11:38:30,782' type='DEBUG' code='5000' target='Utilities/Search.IndexGenerator' methodName='CIndexCreator.WriteIndex' machine='MyMachine' process='7024' thread='2388'  >12 xml files found in C:\arcgisserver\directories\arcgissystem\arcgisindex\Utilities\Search\Index\Staging</Msg>
<Msg time='2012-07-24T11:38:30,797' type='DEBUG' code='5000' target='Utilities/Search.IndexGenerator' methodName='CIndexCreator.StartIndexing' machine='MyMachine' process='7024' thread='2388'  >Invoked.</Msg>
<Msg time='2012-07-24T11:38:30,814' type='DEBUG' code='5000' target='Utilities/Search.IndexGenerator' methodName='CIndexCreator.StartIndexing' machine='MyMachine' process='7024' thread='2388'  >Can not create CLSID_JItemIndex.</Msg>
<Msg time='2012-07-24T11:38:30,831' type='DEBUG' code='5000' target='Utilities/Search.IndexGenerator' methodName='CIndexCreator.StartIndexing' machine='MyMachine' process='7024' thread='2388'  >Can not create CLSID_ItemIndex.</Msg>
<Msg time='2012-07-24T11:38:30,846' type='DEBUG' code='5000' target='Utilities/Search.IndexGenerator' methodName='CIndexCreator.WriteIndex' machine='MyMachine' process='7024' thread='2388'  >StartIndexing() failed.</Msg>
<Msg time='2012-07-24T11:38:30,862' type='DEBUG' code='5000' target='Utilities/Search.IndexGenerator' methodName='IndexGenerator.CreatorThreadFunc' machine='MyMachine' process='7024' thread='2388'  >Lock released. C:\arcgisserver\directories\arcgissystem\arcgisindex\Utilities\Search\cfg\generator.lck</Msg>

Regards, K.
klem
Tags (2)
Reply
0 Kudos
1 Solution

Accepted Solutions
klem
by
New Contributor III
OK, here is the solution for anyone facing the same problem: make sure, that you do have path to Python folder in the PATH System variable.
klem

View solution in original post

Reply
0 Kudos
4 Replies
klem
by
New Contributor III
OK, here is the solution for anyone facing the same problem: make sure, that you do have path to Python folder in the PATH System variable.
klem

View solution in original post

Reply
0 Kudos
PiotrIwaniuk
New Contributor III
Unfortunately it didn't help in my case. Any other ideas?
Reply
0 Kudos
AntonFors
New Contributor
I got the same problem. Running ArcGIS Server 10.2.2. The Path solution presented above didn´t help for me.

Tested on three different machines so far, two physical development machines (windows 7) and on one virtual machine (windows server 2012)

Search service fails to initialize the GP-service. Looking in AGS Manager in search service Parameters - Indexing status, it says "indexing" but no items are added.

Using UNC-path to folders with shapefiles. Shared to everyone.

Server log says:
StartIndexing() failed. Utilities/Search.IndexGenerator
Can not create CLSID_ItemIndex. Utilities/Search.IndexGenerator
Can not create CLSID_JItemIndex. Utilities/Search.IndexGenerator

Bug reported in 10.1 SP1 (nim090528), still open.

Any news on this?
Reply
0 Kudos
PiotrIwaniuk
New Contributor III

I managed to solve that problem long time ago. Procmon revealed that search service uses some files from folder 'program files/arcgis/server10.x/java'. It turned out that those files exist in folder named framework. It sounds like someone in esri forgot to change some parameters or names, cause simply copying 'framework' folder as 'java' solved the problem in my case.