[opencms-dev] Re: Lucene: Index temporarily not crerated

Ernesto De Santis ernesto.desantis at colaborativa.net
Tue Jun 8 15:22:01 CEST 2004


Hi Ralf

here:
http://cvs.apache.org/viewcvs.cgi/jakarta-lucene/src/java/org/apache/lucene/store/FSDirectory.java
you can read all changes in FSDirectory. I read that this bug are fixed
severals times...
Maybe, others several fixes are coming...

I don´t check if this work for me.

In this link you can view the changes, and donwload the head version of
FSDirectory.java (source)
Soon, you can compile it. (the unique lucene .class that this need is
"import org.apache.lucene.util.Constants", with include lucene-1.4-rc3.jar
are sufficient).
Or wait for the next release.

Bye, Ernesto.

----- Original Message ----- 
From: "Ralf Emanuel" <emanuel at inexweb.de>
To: <opencms-dev at opencms.org>
Sent: Tuesday, June 08, 2004 4:43 AM
Subject: [opencms-dev] Re: Lucene: Index temporarily not crerated


Dear Ernesto,

thanks for your quick answer. I´ve already created the directories
"temp" and "tmp" at the same level like the Lucene index directory. But
in the link you sent me, I´ve read that since a few days a patch
concerning "FSDirectoy" is available .

Thanks for your help

Ralf

Hi Ralf

I have the same problem in Win2000.
The problem is a Lucene bug, in windows + tomcat

read "Lockfile Problem Solved" in the lucene list archive:
http://www.mail-archive.com/lucene-user@jakarta.apache.org/msg07789.html

Bye,
 Ernesto.


----- Original Message ----- 
From: "Ralf Emanuel" <emanuel at inexweb.de>
To: <opencms-dev at opencms.org>
Sent: Monday, June 07, 2004 7:53 AM
Subject: [opencms-dev] Lucene: Index temporarily not crerated


Dear Group,

in one of our opencms projects, lucene does´nt create the index files
correct. The index cron job runs hourly and temporarily the file
"segments" could not created. The reason for that seems to be that the
.f1 file could´nt deleted.

See the exception below:

[02.06.2004 17:41:09] <opencms_cronscheduler> Error running job for
com.opencms.core.CmsCronEntry{41 * * * * admin Administrators
net.grcomputing.opencms.search.lucene.CronIndexManager createIndex=true}
Error: java.io.IOException: couldn't delete _5m.f1
    at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:166)
    at
org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:135)
    at
org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:113)
    at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:151)
    at
net.grcomputing.opencms.search.lucene.IndexManager.doIndex(Unknown Source)
    at
net.grcomputing.opencms.search.lucene.CronIndexManager.launch(Unknown
Source)
    at com.opencms.core.CmsCronScheduleJob.run(CmsCronScheduleJob.java:68)

We use a Win2003 Server (1GB Mem.) with Tomcat 4.1.29, OpenCms 5.0 and
the OpenCms Lucene Modul Ver. 1.5.

We´ve tested the same application on a Linux environment. And there, it
works fine!

Any idea?

Thanks in advance

Ralf


_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004




More information about the opencms-dev mailing list