Re: beagles eating my /var filesystem

On Fri, 2007-10-26 at 11:59 -0400, D Bera wrote:
> Spooky things are happening :(
> Run it once again, but before running: check if there is any file in
> /var/cache/beagle/indexes/documentation/Locks/

$ ls -l /var/cache/beagle/indexes/documentation/Locks/
total 0
-r-------- 1 beagleindex nogroup 0 2007-10-26 11:43 lucene-7e54082388d680dc458c9f1729ae87b3-commit.lock

> If there are files, check their contents. Those are PIDs (if there is
> no content, ignore and delete the files).

$ sudo rm /var/cache/beagle/indexes/documentation/Locks/lucene-7e54082388d680dc458c9f1729ae87b3-commit.lock 
[sudo] password for brian:
$ sudo su -s /bin/bash - beagleindex -c "MONO_SHARED_DIR=/tmp/beagle_home/ /usr/sbin/beagle-manage-index /var/cache/beagle/indexes/documentation/ info"

Unhandled Exception: System.IO.IOException: Lock obain timed out: /var/cache/beagle/indexes/documentation/Locks/lucene-7e54082388d680dc458c9f1729ae87b3-commit.lock -- pid  -- process exists
  at Lucene.Net.Store.Lock.Obtain (Int64 lockWaitTimeout) [0x00000] 
  at Lucene.Net.Store.Lock+With.Run () [0x00000] 
  at Lucene.Net.Index.IndexReader.Open (Lucene.Net.Store.Directory directory, Boolean closeDirectory) [0x00000] 
  at Lucene.Net.Index.IndexReader.Open (Lucene.Net.Store.Directory directory) [0x00000] 
  at Beagle.Daemon.LuceneCommon.GetReader (Lucene.Net.Store.Directory directory) [0x00000] 
  at Beagle.Daemon.LuceneCommon.GetItemCount () [0x00000] 
  at Beagle.Daemon.ManageIndex.ExecuteInfo () [0x00000] 
  at Beagle.Daemon.ManageIndex.Main (System.String[] args) [0x00000] 
$ ls -l /var/cache/beagle/indexes/documentation/Locks/
total 0
-r-------- 1 beagleindex nogroup 0 2007-10-26 12:11 lucene-7e54082388d680dc458c9f1729ae87b3-commit.lock

Happy investigating.  :-)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]