[opencms-dev] Lucene: Index temporarily not crerated

Ralf Emanuel emanuel at inexweb.de
Mon Jun 7 12:54:01 CEST 2004


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




More information about the opencms-dev mailing list