[Zope] zopectl debug, 2.8.0 local zeo, Data.fs.lock file locking error

Jeff Kowalczyk jtk at yahoo.com
Mon Jul 4 11:29:08 EDT 2005


I am trying to use 'zopectl debug' for the first time with zope-2.8.0,
local ZEO setup. It worked fine with zope-2.7.x and earlier. I am now
getting a file locking error on Data.fs.lock, which stops the debug
initialization at that point. The problem occurs whether I run zopectl as
root or as the effective user ('zope')

Can anyone familiar with local ZEO debugging on linux spot what might be
the cause of the file locking error? Thanks.

Zope Version : (Zope 2.8.0-final, python 2.4.1, linux2)
Python Version : 2.4.1 (#1, Jun 17 2005, 09:31:29)
[GCC 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)]
System Platform : linux2
SOFTWARE_HOME : /usr/lib/zope-2.8.0/lib/python
ZOPE_HOME : /usr/lib/zope-2.8.0
INSTANCE_HOME : /var/lib/zope/zope-2.8.0
CLIENT_HOME : /var/lib/zope/zope-2.8.0/var
Network Services : ZServer.HTTPServer.zhttp_server (Port: 8080)

in /var/lib/zope/zope-2.8.0/etc/zope.conf:
# Directive: effective-user
effective-user zope


# /var/lib/zope/zope-2.8.0/var $ ls -al
drwxr-xr-x  3 zope zope     336 Jul  4 14:59 .
drwxr-xr-x  9 root root     280 Jun 25 03:08 ..
-rw-r--r--  1 zope zope 4849715 Jul  4 14:59 Data.fs
-rw-r--r--  1 zope zope   55987 Jul  3 18:05 Data.fs.index
-rw-r--r--  1 zope zope       6 Jul  4 14:59 Data.fs.lock
-rw-r--r--  1 zope zope 4874585 Jul  3 18:04 Data.fs.old
-rw-r--r--  1 zope zope  154247 Jul  4 14:59 Data.fs.tmp
-rw-rw-r--  1 zope zope     299 Jun 25 03:08 README.txt
-rw-r--r--  1 zope zope       5 Jul  4 14:59 Z2.lock
-rw-r--r--  1 zope zope       5 Jul  4 14:59 Z2.pid
drwxr-xr-x  2 zope zope   14648 Jul  4 14:08 pts
srwx------  1 root root       0 Jul  4 14:59 zopectlsock


  # /var/lib/zope/zope-2.8.0/bin/zopectl debug

  /usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom
  module is deprecated; please use the random module

    DeprecationWarning)

  Starting debugger (the name "app" is bound to the top-level Zope object)

  /usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom
  module is deprecated; please use the random module

    DeprecationWarning)

  /usr/lib/zope-2.8.0/lib/python/Products/CMFCore/CMFCorePermissions.py:24:
  DeprecationWarning: The module, 'Products.CMFCore.CMFCorePermissions' is
  a deprecated compatiblity alias for 'Products.CMFCore.permissions'; 
  please use the new module instead.  "the new module instead.",
  DeprecationWarning)

  2005-07-04 14:59:58 WARNING PortalTransforms Unable to find binary
  "rtf-converter" in /usr/(snip)

  2005-07-04 14:59:58 WARNING PortalTransforms Unable to find binary
  "rtf2xml" in /usr/(snip)

  2005-07-04 14:59:58 WARNING PortalTransforms Unable to find binary
  "lynx" in /usr/(snip)

  /usr/lib/zope-2.8.0/lib/python/Products/CMFCore/utils.py:622:
  DeprecationWarning: format_stx() will be removed in CMF 1.6. Please use
  StructuredText.StructuredText.HTML instead.

    DeprecationWarning)

  2005-07-04 15:00:03 ERROR ZODB.lock_file Error locking file
  /var/lib/zope/zope-2.8.0/var/Data.fs.lock

  Traceback (most recent call last):

    File "/usr/lib/zope-2.8.0/lib/python/ZODB/lock_file.py", line 63, in
    __init__

      lock_file(self._fp)

    File "/usr/lib/zope-2.8.0/lib/python/ZODB/lock_file.py", line 42, in
    lock_file

      fcntl.flock(file.fileno(), _flags)

  IOError: [Errno 11] Resource temporarily unavailable

  Traceback (most recent call last):

    File "<string>", line 1, in ?

    File "/usr/lib/zope-2.8.0/lib/python/Zope2/__init__.py", line 51, in
    app

      startup()

    File "/usr/lib/zope-2.8.0/lib/python/Zope2/__init__.py", line 47, in
    startup

      _startup()

    File "/usr/lib/zope-2.8.0/lib/python/Zope2/App/startup.py", line 56,
    in startup

      DB = configuration.dbtab.getDatabase('/', is_root=1)

    File "/usr/lib/zope-2.8.0/lib/python/DBTab/DBTab.py", line 96, in
    getDatabase

      db = self._createDatabase(name, is_root)

    File "/usr/lib/zope-2.8.0/lib/python/DBTab/DBTab.py", line 113, in
    _createDatabase

      db = factory.open()

    File "/usr/lib/zope-2.8.0/lib/python/Zope2/Startup/datatypes.py", line
    163, in open

      DB = self.createDB()

    File "/usr/lib/zope-2.8.0/lib/python/Zope2/Startup/datatypes.py", line
    160, in createDB

      return ZODBDatabase.open(self)

    File "/usr/lib/zope-2.8.0/lib/python/ZODB/config.py", line 97, in open

      storage = section.storage.open()

    File "/usr/lib/zope-2.8.0/lib/python/ZODB/config.py", line 133, in
    open

      quota=self.config.quota)

    File "/usr/lib/zope-2.8.0/lib/python/ZODB/FileStorage/FileStorage.py",
    line 114, in __init__

      self._lock_file = LockFile(file_name + '.lock')

    File "/usr/lib/zope-2.8.0/lib/python/ZODB/lock_file.py", line 63, in
    __init__

      lock_file(self._fp)

    File "/usr/lib/zope-2.8.0/lib/python/ZODB/lock_file.py", line 42, in
    lock_file

      fcntl.flock(file.fileno(), _flags)

  IOError: [Errno 11] Resource temporarily unavailable


  >>> 

Other than this problem with debug, this zope is functioning normally. The
only modification I have made is to symlink in BTreeFolder2 from the Plone
2.1 svn bundle, which reportedly includes fixes identified after 2.8.0
release.



More information about the Zope mailing list