LetoDMS Community Forum
LetoDMS-3.3.2 can't Create fulltext index - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Installation Problems (https://community.letodms.com/forumdisplay.php?fid=9)
+--- Thread: LetoDMS-3.3.2 can't Create fulltext index (/showthread.php?tid=473)



LetoDMS-3.3.2 can't Create fulltext index - jean-louis_crouzet - 03-23-2012

Hello All,

Idea Still some life/light here ! Sounds good.

Well on an old Debian stable Lenny, I installed by partially using and manual editing of the settings.xml. I've got everything running fine beside the Zend framework thing...

what is running and installed:
LetoDMS-3.3.2.tar.gz
LetoDMS_Core-3.3.2.tgz
LetoDMS_Lucene-1.0.1.tgz

I also copied the entire /usr/share/php/Zend within <root> installed directory /var/www/letoDMS-3.3.2 but nothing changed.

When I click as admin the http://MyServer.here/letoDMS-3.3.2/out/out.Indexer.php?create=1

I got this warning & error:

Warning: require_once(LetoDMS/Lucene.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/letoDMS-3.3.2/out/out.Indexer.php on line 74

Fatal error: require_once() [function.require]: Failed opening required 'LetoDMS/Lucene.php' (include_path=':.:/usr/share/php:/usr/share/pear') in /var/www/letoDMS-3.3.2/out/out.Indexer.php on line 74

Any ideas?

Thanks,
JL
Confused I should have tell that as well:
PEAR Version: 1.7.1
PHP Version: 5.2.6-1+lenny16
Zend Engine Version: 2.2.0
Running on: Linux GX200 2.6.26-2-686 #1 SMP Sun Mar 4 22:19:19 UTC 2012 i686
Server version: Apache/2.2.9 (Debian)
Server built: Feb 5 2012 21:06:22




RE: LetoDMS-3.3.2 can't Create fulltext index - steinm - 03-23-2012

(03-23-2012, 09:56 PM)jean-louis_crouzet Wrote: I got this warning & error:

Warning: require_once(LetoDMS/Lucene.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/letoDMS-3.3.2/out/out.Indexer.php on line 74

Fatal error: require_once() [function.require]: Failed opening required 'LetoDMS/Lucene.php' (include_path=':.:/usr/share/php:/usr/share/pear') in /var/www/letoDMS-3.3.2/out/out.Indexer.php on line 74

You can set luceneClassDir in settings.xml just like coreDir.

Uwe



RE: LetoDMS-3.3.2 can't Create fulltext index - jean-louis_crouzet - 03-23-2012

Thanks Uwe for your proposal.

OK I did it like this:

<server coreDir="/var/www/letoDMS-3.3.2/" luceneClassDir="/var/www/letoDMS-3.3.2/" contentOffsetDir="1048576" maxDirID="0" updateNotifyTime="86400" maxExecutionTime="30">

but this time I've got this error message under same condition (I also restarted apache2):


Warning: require_once(Lucene/Indexer.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/letoDMS-3.3.2/Lucene.php on line 32

Fatal error: require_once() [function.require]: Failed opening required 'Lucene/Indexer.php' (include_path=':.:/usr/share/php:/usr/share/pear') in /var/www/letoDMS-3.3.2/Lucene.php on line 32

[/quote]




RE: LetoDMS-3.3.2 can't Create fulltext index - EricM - 03-23-2012

Can you confirm that you have the file /var/www/letoDMS-3.3.2/Lucene/Indexer.php?

(03-23-2012, 10:45 PM)jean-louis_crouzet Wrote: Thanks Uwe for your proposal.

OK I did it like this:

<server coreDir="/var/www/letoDMS-3.3.2/" luceneClassDir="/var/www/letoDMS-3.3.2/" contentOffsetDir="1048576" maxDirID="0" updateNotifyTime="86400" maxExecutionTime="30">

but this time I've got this error message under same condition (I also restarted apache2):


Warning: require_once(Lucene/Indexer.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/letoDMS-3.3.2/Lucene.php on line 32

Fatal error: require_once() [function.require]: Failed opening required 'Lucene/Indexer.php' (include_path=':.:/usr/share/php:/usr/share/pear') in /var/www/letoDMS-3.3.2/Lucene.php on line 32




RE: LetoDMS-3.3.2 can't Create fulltext index - jean-louis_crouzet - 03-23-2012

No the entire Lucene dir is in /var/www/letoDMS-3.3.2/data which gives /var/www/letoDMS-3.3.2/data/Lucene/Indexer.php instead !

Lucene.php is in /var/www/letoDMS-3.3.2/

I'll give a try now.

Extracted from conf/settings.xml:

<server rootDir="/var/www/letoDMS-3.3.2/" httpRoot="/letoDMS-3.3.2/" contentDir="/var/www/letoDMS-3.3.2/data/" stagingDir="/var/www/letoDMS-3.3.2/data/staging/" luceneDir="/var/www/letoDMS-3.3.2/" logFileEnable="true" logFileRotation="d" enableLargeFileUpload="true" partitionSize="2000000">
</server>

I just copied the entire Lucene dir to my /var/www/letoDMS-3.3.2/ and this time when confirming to create the index I've got this error !

Which is to me far complex ;-)

Recreating index

Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'fopen(/var/www/letoDMS-3.3.2//read.lock.file) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied' in /usr/share/php/Zend/Search/Lucene/Storage/File/Filesystem.php:67 Stack trace: #0 /usr/share/php/Zend/Search/Lucene/Storage/Directory/Filesystem.php(184): Zend_Search_Lucene_Storage_File_Filesystem->__construct('/var/www/letoDM...', 'w+b') #1 /usr/share/php/Zend/Search/Lucene/LockManager.php(134): Zend_Search_Lucene_Storage_Directory_Filesystem->createFile('read.lock.file') #2 /usr/share/php/Zend/Search/Lucene.php(527): Zend_Search_Lucene_LockManager::obtainReadLock(Object(Zend_Search_Lucene_Storage_Directory_Filesystem)) #3 /usr/share/php/Zend/Search/Lucene.php(211): Zend_Search_Lucene->__construct('/var/www/letoDM...', true) #4 /var/www/letoDMS-3.3.2/out/out.Indexer.php(79): Zend_Search_Lucene::create('/var/www/letoDM...') #5 {main} thrown in /usr/share/php/Zend/Search/Lucene/Storage/File/Filesystem.php on line 67
Got it to work by changing my Directory for full text index: setting accordingly!

Thanks very much.

Have a nice weekend,
JL