Modify

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#1868 closed defect (fixed)

Function not implemented error when searching or reindexing

Reported by: lasudry@… Owned by: athomas
Priority: normal Component: RepoSearchPlugin
Severity: blocker Keywords:
Cc: lasudry@… Trac Release: 0.10

Description (last modified by athomas)

Installation went fine, but when searching, got the following error:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/Search.py", line 181, in process_request
    results += list(source.get_search_results(req, terms, filters))
  File "build/bdist.linux-i686/egg/tracreposearch/search.py", line 79, in get_search_results
  File "build/bdist.linux-i686/egg/tracreposearch/indexer.py", line 134, in __init__
  File "build/bdist.linux-i686/egg/tracreposearch/indexer.py", line 97, in wrap
  File "build/bdist.linux-i686/egg/tracreposearch/indexer.py", line 240, in reindex
  File "build/bdist.linux-i686/egg/tracreposearch/indexer.py", line 97, in wrap
  File "build/bdist.linux-i686/egg/tracreposearch/indexer.py", line 138, in _open_storage
  File "anydbm.py", line 83, in open
    return mod.open(file, flag, mode)
  File "dbhash.py", line 16, in open
    return bsddb.hashopen(file, flag, mode)
  File "bsddb/__init__.py", line 291, in hashopen
  File "bsddb/__init__.py", line 347, in _openDBEnv
DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: Function not implemented')

When launching update-index, got the following one:

Traceback (most recent call last):
  File "./update-index", line 10, in ?
    indexer = Indexer(e)
  File "/var/trac/netitbe/plugins/reposearchplugin/0.10/tracreposearch/indexer.py", line 134, in __init__
    self.reindex()
  File "/var/trac/netitbe/plugins/reposearchplugin/0.10/tracreposearch/indexer.py", line 97, in wrap
    return f(*args, **kw)
  File "/var/trac/netitbe/plugins/reposearchplugin/0.10/tracreposearch/indexer.py", line 240, in reindex
    self._open_storage('c')
  File "/var/trac/netitbe/plugins/reposearchplugin/0.10/tracreposearch/indexer.py", line 97, in wrap
    return f(*args, **kw)
  File "/var/trac/netitbe/plugins/reposearchplugin/0.10/tracreposearch/indexer.py", line 138, in _open_storage
    self.meta = anydbm.open(os.path.join(self.index_dir, 'meta.db'), mode)
  File "/usr/lib/python2.4/anydbm.py", line 83, in open
    return mod.open(file, flag, mode)
  File "/usr/lib/python2.4/dbhash.py", line 16, in open
    return bsddb.hashopen(file, flag, mode)
  File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 291, in hashopen
  File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 347, in _openDBEnv
bsddb.db.DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: Function not implemented')

Maybe I missed something ...

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by athomas

  • Description modified (diff)

Fixing formatting.

comment:2 Changed 7 years ago by athomas

Try nuking the index and recreating it, it looks like BDB is hosed.

comment:3 Changed 7 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

After PDBing a lot ... found that this error is due to dbhash module ... I changed modules preference order in witchdb to put dbm first, and it worked !

Now, I have the #371 error ... going forward ...

comment:4 Changed 7 years ago by lasudry@…

Forgot to sign in, anonymous is me :-) As I said, going to search for #371 solution debugging pyndexter and patched reposearch (got an error at first try ...) Thanks for help ... Regards.

Add Comment

Modify Ticket

Action
as closed The owner will remain athomas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.