Hi Jesús,
I edited the index.php to enable debug as stated on the wiki and got
the following backtrace:
# at ()
in SF_ROOT_DIR/plugins/sfLucenePlugin/lib/vendor/Zend/Search/
Lucene.php line 297 ...
294. }
295. }
296. } else {
297. throw new Zend_Search_Lucene_Exception($e-
>getMessage(), $e->getCode(), $e);
298. }
299. }
300.
# at
Zend_Search_Lucene::getActualGeneration(object('xfLuceneEnhancedFilesystem'))
in SF_ROOT_DIR/plugins/sfLucenePlugin/lib/vendor/Zend/Search/
Lucene.php line 529 ...
526. // Mark index as "under processing" to prevent
other processes from premature index cleaning
527.
Zend_Search_Lucene_LockManager::obtainReadLock($this->_directory);
528.
529. $this->_generation =
self::getActualGeneration($this->_directory);
530.
531. if ($create) {
532. require_once 'Zend/Search/Lucene/
Exception.php';
# at Zend_Search_Lucene-
>__construct(object('xfLuceneEnhancedFilesystem'), )
in SF_ROOT_DIR/plugins/sfLucenePlugin/lib/engine/
xfLuceneEngine.class.php line 133 ...
130.
131. if (file_exists($this->location . '/segments.gen'))
132. {
133. $this->index = new Zend_Search_Lucene($fs, false);
134. }
135. else
136. {
# at xfLuceneEngine->open()
in SF_ROOT_DIR/lib/search/QubitSearch.class.php line 28 ...
25. protected function initialize()
26. {
27. $this->setEngine(new
xfLuceneEngine(sfConfig::get('sf_data_dir').'/index'));
28. $this->getEngine()->open();
29. }
30.
31. /**
# at QubitSearch->initialize()
in SF_ROOT_DIR/plugins/sfSearchPlugin/lib/index/
xfIndexCommon.class.php line 57 ...
54.
55. $this->setLogger(new xfLoggerBlackhole);
56.
57. $this->initialize();
58. }
59.
60. /**
I also tried to optimize the index using the command line you stated
but i get a huge red box with:
Index is under processing now
If i go to the data/index directory i find several files, the
following files called out to me:
optimization.lock.file
read.lock.file
read-lock-processing.lock.file
segments_49y
segments_49z
segments.gen
write.lock.file
I have googled around and can see some posts from early 2009 with
people with similar problems on other applications and such but
curiously enough none of the articles i found had any explanation or
solution to this problem. Do any of you guys have any ideas? How could
i check that 'too many open files' problem?
Sorry for the huge post and thanks for trying to help me with this
issue,
Alexandre Paes