xapian file locked

Tom Ekberg <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
We have about 20 active users on our 'it' tracker. As the local roundup admin, I recently got an email containing this stack trace:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/roundup/cgi/client.py", line 454, in inner_main
    html = self.handle_action()
  File "/usr/local/lib/python2.7/site-packages/roundup/cgi/client.py", line 1219, in handle_action
    return action_klass(self).execute()
  File "/usr/local/lib/python2.7/site-packages/roundup/cgi/actions.py", line 39, in execute
    return self.handle()
  File "/usr/local/lib/python2.7/site-packages/roundup/cgi/actions.py", line 620, in handle
    message = self._editnodes(props, links)
  File "/usr/local/lib/python2.7/site-packages/roundup/cgi/actions.py", line 463, in _editnodes
    newid = self._createnode(cn, props)
  File "/usr/local/lib/python2.7/site-packages/roundup/cgi/actions.py", line 518, in _createnode
    return cl.create(**props)
  File "/usr/local/lib/python2.7/site-packages/roundup/backends/rdbms_common.py", line 2970, in create
    content, mime_type)
  File "/usr/local/lib/python2.7/site-packages/roundup/backends/indexer_xapian.py", line 68, in add_text
    database = self._get_database()
  File "/usr/local/lib/python2.7/site-packages/roundup/backends/indexer_xapian.py", line 30, in _get_database
    return xapian.WritableDatabase(index, xapian.DB_CREATE_OR_OPEN)
  File "/usr/local/lib/python2.7/site-packages/xapian/__init__.py", line 4303, in __init__
    _xapian.WritableDatabase_swiginit(self,_xapian.new_WritableDatabase(*args))
DatabaseLockError: Unable to get write lock on /var/www/html/it/db/text-index: already locked

It looks like it is trying to get a lock for the /var/www/html/it/db/text-index directory.

$ ls -ld /var/www/html/it/db/text-index
drwxr-xr-x. 2 apache apache 4096 Feb 25 09:18 /var/www/html/it/db/text-index

According to this:

  https://bugs.launchpad.net/ubuntu/+source/apt-xapian-index/+bug/764701

it is a known bug, and appears there is no fix for it yet. Looked at the xapian bug system here:

  http://trac.xapian.org/report

but didn't find anything useful when searching for 'DatabaseLockError'.

We are using xapian version 1.2.15. Looked in the release notes:

    http://trac.xapian.org/wiki/ReleaseNotes

For versions 1.2.16 and the latest 1.2.17 and didn't find anything useful (xapian-core and xapian-bindings).

Is this a problem you have encountered with roundup/xapian?

Tom Ekberg
Senior Computer Specialist, Lab Medicine
University of Washington Medical Center
1959 NE Pacific St, MS 357110
Seattle WA 98195
work: (206) 598-8544
email: [email protected]



------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.