[spambayes-dev] HEAD leaving ZODB locks around?

David Abrahams dave at boost-consulting.com
Wed Nov 1 14:21:37 CET 2006


when running sb_imapfilter.py, I seem to be able to change my settings
once, but thereafter, never again:

  500 Server error

  Traceback (most recent call last):

    File "/usr/local/lib/python2.4/site-packages/spambayes/Dibbler.py", line 476, in found_terminator
      getattr(plugin, name)(**params)

    File "/usr/local/lib/python2.4/site-packages/spambayes/ImapUI.py", line 334, in onChangeopts
      UserInterface.UserInterface.onChangeopts(self, **parms)

    File "/usr/local/lib/python2.4/site-packages/spambayes/UserInterface.py", line 884, in onChangeopts
      self.reReadOptions()

    File "/usr/local/lib/python2.4/site-packages/spambayes/ImapUI.py", line 184, in reReadOptions
      self.change_db()

    File "/usr/local/bin/sb_imapfilter.py", line 1198, in change_db
      classifier = storage.open_storage(*storage.database_type(opts))

    File "/usr/local/lib/python2.4/site-packages/spambayes/storage.py", line 952, in open_storage
      return klass(data_source_name)

    File "/usr/local/lib/python2.4/site-packages/spambayes/storage.py", line 695, in __init__
      self.load()

    File "/usr/local/lib/python2.4/site-packages/spambayes/storage.py", line 730, in load
      self.create_storage()

    File "/usr/local/lib/python2.4/site-packages/spambayes/storage.py", line 715, in create_storage
      read_only=self.mode=='r')

    File "/usr/local/lib/python2.4/site-packages/ZODB/FileStorage.py", line 232, in __init__
      self._lock_file = LockFile(file_name + '.lock')

    File "/usr/local/lib/python2.4/site-packages/ZODB/lock_file.py", line 62, in __init__
      lock_file(self._fp)

    File "/usr/local/lib/python2.4/site-packages/ZODB/lock_file.py", line 42, in lock_file
      fcntl.flock(file.fileno(), _flags)

  IOError: [Errno 35] Resource temporarily unavailable

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com



More information about the spambayes-dev mailing list