Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@locus.apache.org Received: (qmail 98435 invoked from network); 4 Apr 2008 07:44:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2008 07:44:01 -0000 Received: (qmail 27266 invoked by uid 500); 4 Apr 2008 07:44:01 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 27256 invoked by uid 500); 4 Apr 2008 07:44:00 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 27247 invoked by uid 99); 4 Apr 2008 07:44:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2008 00:44:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Janne.Jalkanen@ecyrd.com designates 193.64.5.122 as permitted sender) Received: from [193.64.5.122] (HELO mail.ecyrd.com) (193.64.5.122) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2008 07:43:15 +0000 Received: from [192.168.10.162] (cs181005170.pp.htv.fi [82.181.5.170]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.ecyrd.com (Postfix) with ESMTP id F22B648178 for ; Fri, 4 Apr 2008 10:43:10 +0300 (EEST) Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <47F3DFAA.30406@altheim.com> References: <5DE399B3-C470-4014-A3F3-E2DC045CC368@ecyrd.com> <47F3DFAA.30406@altheim.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5270AD8C-03DA-4496-AFA4-EDA44D2ADFC5@ecyrd.com> Content-Transfer-Encoding: 7bit From: Janne Jalkanen Subject: Re: Search on jspwiki.org Date: Fri, 4 Apr 2008 10:43:07 +0300 To: jspwiki-user@incubator.apache.org X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org This sounds like a good theory. But I can't figure out when two Lucene threads would be hitting the same index. /Janne On 2 Apr 2008, at 22:34, Murray Altheim wrote: > I don't have much time in the next week for any investigation, but a > write.lock on Lucene sounds like either a permissions problem or > someone > may be running multiple wikis on the same server. My guess is that > since > the IndexWriter's init() method isn't very complicated, it probably > wouldn't run at all if there weren't adequate permissions on the /temp > directory, so this is perhaps a multiple wiki issue? Dunno. > > I'm not sure which Lucene version is being used (line 254 doesn't > match > the version of the code I have handy) but this is probably where the > problem arises, in IndexWriter's init(): > > if (create) { > // Clear the write lock in case it's leftover: > directory.clearLock(IndexWriter.WRITE_LOCK_NAME); > } > > Lock writeLock = directory.makeLock(IndexWriter.WRITE_LOCK_NAME); > > if (!writeLock.obtain(writeLockTimeout)) // obtain write lock > throw new LockObtainFailedException("Index locked for write: > " + writeLock); > this.writeLock = writeLock; // save it > > which would indicate either multiple LuceneSearchProviders trying > to hit > the same directory or inadequate permissions. > > Hope that's of some help, > > Murray > > Janne Jalkanen wrote: >> I seem to be getting these as well. I don't know what is going on >> - any Lucene experts here? >> /Janne >> On 2 Apr 2008, at 18:29, Ryan L Brissette wrote: >>> I tried running the reindex through the browser and ended up with >>> a log full of: >>> >>> 2008-04-02 09:20:57,812 [JSPWiki Lucene Indexer] ERROR >>> com.ecyrd.jspwiki.search.LuceneSearchProvider - Unable to update >>> page '' from Lucene index >>> java.io.IOException: Lock obtain timed out: Lock@/home/rlbrisse/ >>> jspwiki_beta/apache-tomcat-6.0.13/temp/ >>> lucene-858b3db6fe9c079960083fc94c69a1a4-write.lock >>> at org.apache.lucene.store.Lock.obtain(Lock.java:56) >>> at org.apache.lucene.index.IndexWriter.(IndexWriter.java:254) >>> at org.apache.lucene.index.IndexWriter.(IndexWriter.java:204) >>> at com.ecyrd.jspwiki.search.LuceneSearchProvider.updateLuceneIndex >>> (LuceneSearchProvider.java:361) >>> at com.ecyrd.jspwiki.search.LuceneSearchProvider >>> $LuceneUpdater.backgroundTask(LuceneSearchProvider.java:720) >>> at com.ecyrd.jspwiki.util.WikiBackgroundThread.run >>> (WikiBackgroundThread.java:135) >>> >>> anyone have any idea what might be causing this? It appears that >>> I can index the page titles, but not the content > > > > > -- > > ...................................................................... > ..... > Murray Altheim > === = = > http://www.altheim.com/murray/ > = = === > SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk > = = = = > > Boundless wind and moon - the eye within eyes, > Inexhaustible heaven and earth - the light beyond light, > The willow dark, the flower bright - ten thousand houses, > Knock at any door - there's one who will respond. > -- The Blue Cliff Record