Description

We are using MoinMoin on a Solaris Server with an old version of xapian (1.2.7). I want to improve the index Performance, so I changed to version 1.2.18.

Steps to reproduce

  1. build new index for our wikis (>40)

  2. use the new index
  3. switch the webserver on
  4. check SystemInfo (was ok)

  5. edit a page

Example

DatabaseOpeningError: Couldn't open <PATH>-wiki/data/cache/xapian/index/synonym.DB read/write: Resource temporarily unavailable
ERROR 2014-08-06 13:24:41,948 MoinMoin.wsgiapp:293 An exception has occurred [...].
Traceback (most recent call last):
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", line 282, in __call__
    response = run(context)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", line 88, in run
    response = dispatch(request, context, action_name)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", line 136, in dispatch
    response = handle_action(context, pagename, action_name)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/wsgiapp.py", line 195, in handle_action
    handler(context.page.page_name, context)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/action/edit.py", line 166, in execute
    savemsg = pg.saveText(savetext, rev, trivial=trivial, comment=comment)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/PageEditor.py", line 1148, in saveText
    results = events.send_event(e)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/events/__init__.py", line 257, in send_event
    retval = handle(event)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/events/xapian_index.py", line 77, in handle
    handle_changed(event)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/events/xapian_index.py", line 51, in handle_changed
    index.update_item(event.page.page_name)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/search/builtin.py", line 180, in update_item
    self.do_queued_updates()
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/search/Xapian/indexing.py", line 196, in do_queued_updates
    connection = self.get_indexer_connection()
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/search/Xapian/indexing.py", line 150, in get_indexer_connection
    return MoinIndexerConnection(self.db)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/search/Xapian/indexing.py", line 75, in __init__
    super(MoinIndexerConnection, self).__init__(*args, **kwargs)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/support/xappy/indexerconnection.py", line 49, in __init__
    self._index = log(xapian.WritableDatabase, indexpath, xapian.DB_CREATE_OR_OPEN)
  File "/soft-www/moin/lib/python2.6/site-packages/MoinMoin/support/xappy/replaylog.py", line 413, in log
    return call(*args)
  File "/soft-www/xapian/python/xapian/__init__.py", line 4304, in __init__
    _xapian.WritableDatabase_swiginit(self,_xapian.new_WritableDatabase(*args))
DatabaseOpeningError: Couldn't open <PATH>-wiki/data/cache/xapian/index/synonym.DB read/write: Resource temporarily unavailable

Component selection

Details

MoinMoin Version

1.9.6

OS and Version

Solaris 11 Update 2

Python Version

2.6.8

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

DE

Workaround

Discussion

I don't remember having seen that already, so I am just guessing:

is it maybe a permissions problem (e.g. because you have built the index as root, but your wiki runs as non-root and thus can not read or write the index)?

-- ThomasWaldmann 2014-08-11 00:37:42

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/1.9.6-XapianErrorSynonymDB (last edited 2014-08-11 00:37:43 by ThomasWaldmann)