Re: beagles eating my /var filesystem



On Fri, 2007-10-26 at 11:33 -0400, D Bera wrote:
> > brian pc:/usr/src/vpnc-0.5.1$ sudo su -s /bin/bash - beagleindex -c "/usr/sbin/beagle-manage-index /var/cache/beagle/indexes/documentation/ info"
> >
> > ** (/usr/lib/beagle/ManageIndex.exe:16502): CRITICAL **: _wapi_shm_file_open: shared file [/var/cache/beagle/.wapi/shared_data-pc-Linux-i686-312-11-0] open error: No such file or directory
> 
> Oh... forgot to mention, beagle (mono) requires a valid homedirectory
> to run. The crawl scripts get around that by setting the environment
> variable MONO_SHARED_DIR=/tmp/some/dir
> So, create some temporary dir (can be deleted later, thats the the
> beagle-crawl-system does), export the env variable and run again. If
> su does not carry the env variables, set the variable in the -c
> "MONO_SHARED_DIR=/tmp/... /usr/sbin/beagle-manage-index ..."

OK.  Now getting:

$ 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] 

Simply re-ran it and it did:

$ sudo su -s /bin/bash - beagleindex -c "MONO_SHARED_DIR=/tmp/beagle_home/ /usr/sbin/beagle-manage-index /var/cache/beagle/indexes/documentation/ info"
Debug: Checking for dangling locks...
Warn: Found an empty lock file, that shouldn't happen: /var/cache/beagle/indexes/documentation/Locks/lucene-7e54082388d680dc458c9f1729ae87b3-commit.lock
Warn: Found a dangling index lock on /var/cache/beagle/indexes/documentation/Locks/lucene-7e54082388d680dc458c9f1729ae87b3-commit.lock.
Debug: Verifying index /var/cache/beagle/indexes/documentation/PrimaryIndex
Debug: Verifying index /var/cache/beagle/indexes/documentation/SecondaryIndex
Warn: Indexes verified in 41.03s.  Deleting stale lock files.

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] 

I'm thinking that this is not good?

b.




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