updatesearchindexsolr.php hangs

Author Message

Doug Plant

Wednesday 17 November 2010 8:24:01 pm

I had a situation where updatesearchindexsolr.php was hanging at the same place all the time. I tried different users, manually deleting stuff, pointless repetitions, etc.

Watching the output from solr (bash solr.sh), it always looked like this:

[...]

INFO: {add=[2e9e13c1994c4ed227d91a76506e757b]} 0 2
Nov 17, 2010 9:54:27 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={} status=0 QTime=2
Nov 17, 2010 9:54:27 PM org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: {add=[e6082f9d6f6caebc706870925caeb684]} 0 3

and then nothing. I could do searches, but killing and restarting the updatesearchindex did nothing.

At first I thought the big identifiers (add=[ ... ]) were remote ids, but that doesn't seem to be the case since I get null with eZContentObject::fetchByRemoteID().

Then I tried searching in the solr admin interface (http://foo.ca:8983/solr/admin/) for the big identifier - That generated hits.

So then I edited and republished the suspect object (and a couple parents, for good measure) and now updatesearchindex is running find. Er, fine.

Carlos Revillo

Thursday 18 November 2010 11:49:09 am

hi there. can you put the exact command you're usign? i had some problems because not adding -s option...

Doug Plant

Thursday 18 November 2010 12:06:43 pm

Sure,

php extension/ezfind/bin/php/updatesearchindexsolr.php -s <admin siteaccess> --php-exec=/usr/bin/php

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 23:52:07
Script start
Timing: Jan 29 2025 23:52:07
Module start 'layout'
Timing: Jan 29 2025 23:52:07
Module start 'content'
Timing: Jan 29 2025 23:52:07
Module end 'content'
Timing: Jan 29 2025 23:52:07
Script end

Main resources:

Total runtime0.0114 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0042 588.2734151.2266
Module start 'layout' 0.00420.0017 739.500036.6875
Module start 'content' 0.00590.0044 776.187591.2344
Module end 'content' 0.01030.0011 867.421933.9766
Script end 0.0114  901.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.001816.1712140.0001
Check MTime0.00097.7856140.0001
Mysql Total
Database connection0.00075.962510.0007
Mysqli_queries0.002118.224230.0007
Looping result0.00000.071110.0000
Template Total0.00086.910.0008
Template load0.00065.542310.0006
Template processing0.00021.367310.0002
Override
Cache load0.00043.727610.0004
General
dbfile0.001311.515380.0002
String conversion0.00000.043940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs