Home
TeamSite
Search index start/stop issue
SAKINA
I start/stop index and search using the following commands
/etc/init.d/iw.tsindex start
/etc/init.d/iw.tssearch start
/etc/init.d/iw.tsindex stop
/etc/init.d/iw.tssearch stop
After which i type
/interwoven/search/bin/iwndxmgrstatus
to check the status of the index server however i get the following error.
ERROR - Failed to connect to server: Target not listening; connection refused
Please make sure the search server and index server are running.
i understand this as something to do with the event sub-system not functioning properly..so i go to etc/search.properties file and change the following
# Event-based updates are enabled
iw.index.events.enable=false
i.e i disable event sub-system..
i earlier noticed that this helps me out and i am able to start/stop services and am able to get the index status as ACTIVE...
However it behaves very randomly.once i stop the services again and then re-start...i have to keep typing the commands to start/stop and suddenly anytime it gets ACTIVE..or else keeps giving an error..
Isnt there any explanation as to why this happens and how can it be avoided??coz i have to think twice before i ever start/stop indexing just in case it doesnt show ACTIVE...
Find more posts tagged with
Comments
Migrateduser
Note that the search services complete the active tasks (like middle of the indexing job for the 4000 files batch) before it fully shuts down. Look at the logs for the searh to know where it is exactly.
You should not ideally be starting/stopping the search services frequently. Also if after the stop issuence the indexer is still finishing off the start u issue will log errors and service will NOT start as the ports will be busy with the previous instance.
SAKINA
Okay so that means when i issue a stop it still hasnt completely stopped..and hence there are certain ports in use..
I checked the logs and found out certain ports are being used by other processes...that maybe accounts for its random behaviour...but i remember stopping after a long time i.e i had issued no indexing commands..hen why do i get an error immidiately after i re-start...it takes smetimes upto 10 hrs for the ports to get free and status to bcome active..
I have another issue...once my services are up..i changed the
# Event-based updates are enabled
iw.index.events.enable=true
i had earlier disabled it..
after this i re-start and check the logs
this is what i get
[03 Dec 2007 06:18:29,934] INFO com.interwoven.hunter.index.IndexServer (main) - Server starting....
[03 Dec 2007 06:18:29,939] INFO com.interwoven.hunter.index.IndexServer (main) - Trying to bind to port 6715
[03 Dec 2007 06:18:29,961] INFO com.interwoven.hunter.index.IndexServer (main) - Bound to port 6715
[03 Dec 2007 06:18:31,300] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Found 0 indexed global EAs.
[03 Dec 2007 06:18:31,304] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Found 0 templating entries.
[03 Dec 2007 06:18:31,362] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Found 14 Standard File Attributes.
[03 Dec 2007 06:18:31,366] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Creator added to global field list
[03 Dec 2007 06:18:31,366] INFO com.interwoven.hunter.config.field.FieldMapping (main) - CreateDate added to global field list
[03 Dec 2007 06:18:31,367] INFO com.interwoven.hunter.config.field.FieldMapping (main) - AreaRelativePath added to global field list
[03 Dec 2007 06:18:31,367] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Version added to global field list
[03 Dec 2007 06:18:31,368] INFO com.interwoven.hunter.config.field.FieldMapping (main) - BranchId added to global field list
[03 Dec 2007 06:18:31,368] INFO com.interwoven.hunter.config.field.FieldMapping (main) - OwningAreaId added to global field list
[03 Dec 2007 06:18:31,368] INFO com.interwoven.hunter.config.field.FieldMapping (main) - LastModifier added to global field list
[03 Dec 2007 06:18:31,368] INFO com.interwoven.hunter.config.field.FieldMapping (main) - LastModifiedDate added to global field list
[03 Dec 2007 06:18:31,369] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Indexed added to global field list
[03 Dec 2007 06:18:31,369] INFO com.interwoven.hunter.config.field.FieldMapping (main) - IndexedDate added to global field list
[03 Dec 2007 06:18:31,369] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Size added to global field list
[03 Dec 2007 06:18:31,370] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Title added to global field list
[03 Dec 2007 06:18:31,370] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Author added to global field list
[03 Dec 2007 06:18:31,371] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Keywords added to global field list
[03 Dec 2007 06:18:31,379] INFO com.interwoven.hunter.config.field.FieldMapping (main) - Found 3 Standard Extended Attributes.
[03 Dec 2007 06:18:31,380] INFO com.interwoven.hunter.config.field.FieldMapping (main) - TeamSite/Templating/PrimaryDCR added to global field list
[03 Dec 2007 06:18:31,380] INFO com.interwoven.hunter.config.field.FieldMapping (main) - TeamSite/Templating/PrimaryDocumentType added to global field list
[03 Dec 2007 06:18:31,380] INFO com.interwoven.hunter.config.field.FieldMapping (main) - TeamSite/Templating/DCR/Type added to global field list
[03 Dec 2007 06:18:31,398] INFO com.interwoven.hunter.common.agent.AgentService (main) - Agent main port is 6716
[03 Dec 2007 06:18:31,399] INFO com.interwoven.hunter.common.agent.AgentService (main) - Agent callback port is 6717
[03 Dec 2007 06:18:31,409] INFO com.interwoven.hunter.common.agent.AgentService (agent-cbl) - Agent callback listener ready
[03 Dec 2007 06:18:31,416] INFO com.interwoven.hunter.common.agent.AgentService (agent-ml) - Agent connection listener ready
[03 Dec 2007 06:18:31,417] INFO com.interwoven.hunter.common.agent.AgentProxy (main) - Starting indexagent_0 with params: /interwoven/search/bin/iwsrchagent indexagent_0 index_agent /interwoven/search/verity/vdk/common /interwoven/index 6716 6717 INFO 1 false , and env: LD_LIBRARY_PATH=/interwoven/search/verity/vdk/_ssol26/bin
[03 Dec 2007 06:18:31,526] INFO com.interwoven.hunter.common.agent.AgentProxy (main) - Agent Agent indexagent_0 started
[03 Dec 2007 06:18:31,527] INFO com.interwoven.hunter.common.agent.AgentProxy (main) - Starting indexagent_1 with params: /interwoven/search/bin/iwsrchagent indexagent_1 index_agent /interwoven/search/verity/vdk/common /interwoven/index 6716 6717 INFO 1 false , and env: LD_LIBRARY_PATH=/interwoven/search/verity/vdk/_ssol26/bin
[03 Dec 2007 06:18:31,585] INFO com.interwoven.hunter.common.agent.AgentProxy (main) - Agent Agent indexagent_1 started
[03 Dec 2007 06:18:31,586] INFO com.interwoven.hunter.common.agent.AgentProxy (main) - Starting indexagent_2 with params: /interwoven/search/bin/iwsrchagent indexagent_2 index_agent /interwoven/search/verity/vdk/common /interwoven/index 6716 6717 INFO 1 false , and env: LD_LIBRARY_PATH=/interwoven/search/verity/vdk/_ssol26/bin
[03 Dec 2007 06:18:31,648] INFO com.interwoven.hunter.common.agent.AgentProxy (main) - Agent Agent indexagent_2 started
[03 Dec 2007 06:18:31,648] INFO com.interwoven.hunter.common.agent.AgentService (main) - Agent service is initialized
[03 Dec 2007 06:18:31,649] INFO com.interwoven.hunter.index.IndexServer (main) - Starting Event Listeners
[03 Dec 2007 06:18:31,649] INFO com.interwoven.hunter.index.IndexServer (main) - Number of JMS topics to listen to: 1
[03 Dec 2007 06:18:31,693] INFO com.interwoven.hunter.index.Listener (main) - Looking for event system ...
[03 Dec 2007 06:18:43,891] INFO com.interwoven.hunter.index.Listener (main) - Looking for event system ...
[03 Dec 2007 06:18:55,941] INFO com.interwoven.hunter.index.Listener (main) - Looking for event system ...
[03 Dec 2007 06:19:07,991] INFO com.interwoven.hunter.index.Listener (main) - Looking for event system ...
[03 Dec 2007 06:19:20,041] INFO com.interwoven.hunter.index.Listener (main) - Looking for event system ...
[03 Dec 2007 06:19:32,091] INFO com.interwoven.hunter.index.Listener (main) - Looking for event system ...
[03 Dec 2007 06:19:44,141] INFO com.interwoven.hunter.index.Listener (main) - Looking for event system ...
[03 Dec 2007 06:19:56,191] INFO com.interwoven.hunter.index.Listener (main) - Looking for event system ...
[03 Dec 2007 06:20:08,241] INFO com.interwoven.hunter.index.Listener (main) - Looking for event system ...
[03 Dec 2007 06:20:20,291] INFO com.interwoven.hunter.index.Listener (main) - Looking for event system ...
[03 Dec 2007 06:20:20,342] FATAL com.interwoven.hunter.index.IndexServer (main) - Error in initialization of the Index Manager
java.lang.RuntimeException: Error initializing Listener for Interwoven
at com.interwoven.hunter.index.Listener.(Listener.java:90)
at com.interwoven.hunter.index.IndexServer.startListeners(IndexServer.java:265)
at com.interwoven.hunter.index.IndexServer.work(IndexServer.java:206)
at com.interwoven.hunter.index.IndexServer.main(IndexServer.java:172)
Caused by: javax.naming.NamingException: Failed to connect to JNDI provider [Root exception is java.net.ConnectException: Connection refused]
at org.exolab.jms.jndi.mipc.IpcJndiInitialContextFactory.openConnection(Unknown Source)
at org.exolab.jms.jndi.mipc.IpcJndiInitialContextFactory.getInitialContext(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.(InitialContext.java:195)
at com.interwoven.hunter.index.Listener.init(Listener.java:103)
at com.interwoven.hunter.index.Listener.(Listener.java:71)
... 3 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.(Socket.java:309)
at java.net.Socket.(Socket.java:124)
at org.exolab.core.ipc.TcpService.(TcpService.java:122)
at org.exolab.core.ipc.Client.(Client.java:91)
... 11 more
Is there something i havent enabld..or configured..or is simply my Teamsite event sub-system not up n running?
Report Structure Query.xls
Migrateduser
>>Is there something i havent enabld..or configured..or is simply my Teamsite event sub-system not up n running?
Yes the eventSubsystem is not up. U need a rdbms to use it in production.
For the part 1 can you please elaborate. The indexer does not wait for the ports to get free.. it simply stops. So netstat before you start.
SAKINA
-->Note that the search services complete the active tasks (like middle of the indexing job for the 4000 files batch) before it fully shuts down.
Also if after the stop issuence the indexer is still finishing off the start u issue will log errors and service will NOT start as the ports will be busy with the previous instance.
I replied to your above post saying that...the previous instance was at a stable state..i.e I had no indexing job started.and i had just stopped it after making a change in the search.properties file...so when you say it was busy with the previous instance..how can that happen..
I just checked the logs and found out that actually you were right..since there were certain processes which were using up the required agent ports..
But my doubt is that..if i hadnt started any indexing or issued any command before..how were the ports being used up by a previous instance?
Migrateduser
There are some routine index refresh and house keeping jobs running. pstat before u try to start again.