[Pkg-zope-developers] Bug#349281: plone-site: adduser command fails

Filippo Rusconi listes.rusconi at laposte.net
Sun Jan 22 00:15:03 UTC 2006


Package: plone-site
Version: 2.1.1-1
Severity: important

Hello, please bear with me, as I do not know if this is a bug in zope
or plone...


# apt-get install plone

downloaded all the zope-related packages... OK
setup those packages... OK

setup plone... OK

# apt-get install plone-site

downloaded plone-site OK and setup OK recommending that I run the following command:

/var/lib/zope2.8/instance/plone-site/bin/zopectl adduser username password

which I did like this:

/var/lib/zope2.8/instance/plone-site/bin/zopectl adduser rusconi rusconiplonesitepassword

which yielded this:


/var/lib/zope2.8/instance/plone-site/Products/PortalTransforms/TransformEngine.py:18: DeprecationWarning: The module, 'Products.CMFCore.CMFCorePermissions' is a deprecated compatiblity alias for 'Products.CMFCore.permissions';  please use the new module instead.
  from Products.CMFCore import CMFCorePermissions
2006-01-22 00:38:28 WARNING PortalTransforms Unable to find binary "rtf-converter" in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
2006-01-22 00:38:28 WARNING PortalTransforms Unable to find binary "rtf2xml" in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
/var/lib/zope2.8/instance/plone-site/Products/CMFCore/utils.py:770: DeprecationWarning: format_stx() will be removed in CMF 2.0. Please use StructuredText.StructuredText.HTML instead.  DeprecationWarning)
2006-01-22 00:38:35 WARNING OFS.Application Duplicate Product name
After loading Product 'BTreeFolder2' from '/var/lib/zope2.8/instance/plone-site/Products',
I skipped the one in '/usr/lib/zope2.8/lib/python/Products'.

/var/lib/zope2.8/instance/plone-site/Products/kupu/__init__.py:23: DeprecationWarning: The Zope package has been renamed to Zope2. Import of a package named 'Zope' is deprecated and will be disabled starting in Zope 2.11.
  import Zope
2006-01-22 00:38:36 ERROR ZODB.lock_file Error locking file /var/lib/zope2.8/instance/plone-site/var/Data.fs.lock
Traceback (most recent call last):
  File "/usr/lib/zope2.8/lib/python/ZODB/lock_file.py", line 63, in __init__
    lock_file(self._fp)
  File "/usr/lib/zope2.8/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/zope2.8/lib/python/Zope2/__init__.py", line 51, in app
    startup()
  File "/usr/lib/zope2.8/lib/python/Zope2/__init__.py", line 47, in startup
    _startup()
  File "/usr/lib/zope2.8/lib/python/Zope2/App/startup.py", line 56, in startup
    DB = configuration.dbtab.getDatabase('/', is_root=1)
  File "/usr/lib/zope2.8/lib/python/DBTab/DBTab.py", line 96, in getDatabase
    db = self._createDatabase(name, is_root)
  File "/usr/lib/zope2.8/lib/python/DBTab/DBTab.py", line 113, in _createDatabase
    db = factory.open()
  File "/usr/lib/zope2.8/lib/python/Zope2/Startup/datatypes.py", line 163, in open
    DB = self.createDB()
  File "/usr/lib/zope2.8/lib/python/Zope2/Startup/datatypes.py", line 160, in createDB
    return ZODBDatabase.open(self)
  File "/usr/lib/zope2.8/lib/python/ZODB/config.py", line 97, in open
    storage = section.storage.open()
  File "/usr/lib/zope2.8/lib/python/ZODB/config.py", line 133, in open
    quota=self.config.quota)
  File "/usr/lib/zope2.8/lib/python/ZODB/FileStorage/FileStorage.py", line 112, in __init__
    self._lock_file = LockFile(file_name + '.lock')
  File "/usr/lib/zope2.8/lib/python/ZODB/lock_file.py", line 63, in __init__
    lock_file(self._fp)
  File "/usr/lib/zope2.8/lib/python/ZODB/lock_file.py", line 42, in lock_file
    fcntl.flock(file.fileno(), _flags)
IOError: [Errno 11] Resource temporarily unavailable
root at casamiatheirhouse:/home/rusconi#


I'm absolutely no pythonist... but apparently there are two issues at least.

First :

1)
/var/lib/zope2.8/instance/plone-site/Products/PortalTransforms/TransformEngine.py:18:
DeprecationWarning: The module, 'Products.CMFCore.CMFCorePermissions'
is a deprecated compatiblity alias for 'Products.CMFCore.permissions';
please use the new module instead.

2) /var/lib/zope2.8/instance/plone-site/Products/CMFCore/utils.py:770:
DeprecationWarning: format_stx() will be removed in CMF 2.0. Please
use StructuredText.StructuredText.HTML instead.  DeprecationWarning)

3) /var/lib/zope2.8/instance/plone-site/Products/kupu/__init__.py:23:
DeprecationWarning: The Zope package has been renamed to Zope2. Import
of a package named 'Zope' is deprecated and will be disabled starting
in Zope 2.11.

I do not know if these are critical and fatal deprecation warnings.


Second :

2006-01-22 00:38:36 ERROR ZODB.lock_file Error locking file
/var/lib/zope2.8/instance/plone-site/var/Data.fs.lock

If I go and look the contents of that file:

# cat /var/lib/zope2.8/instance/plone-site/var/Data.fs.lock
6077

Suspecting that this is a process id : 

# ps aux | grep 6077
zope      6077  1.9  8.3 102584 64532 ?  Sl   00:36   0:21 /usr/bin/python2.3 /usr/lib/zope2.8/lib/python/Zope2/Startup/run.py -C /etc/zope2.8/plone-site/zope.conf

So it was indeed a PID...

I tried restarting zope:

# /etc/init.d/zope2.8 restart
Zope2.8: restarting plone-site instance.


and then to connect to 

http://localhost:8081/manage

and can enter my admin/password OK.

However, I feel something is wrong somewhere. I could not tell if
there are non-working things yet as I'm discovering the whole
Zope/Plone stuff :)

Thank you for your help !

Ciao

Filippo Rusconi



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-fr3
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages plone-site depends on:
ii  debconf [debconf-2.0]         1.4.66     Debian configuration management sy
ii  zope-cmfplone                 2.1.1-1    content management system based on
ii  zope-common                   0.5.16     common settings and scripts for zo
ii  zope2.8                       2.8.4-2    Open Source Web Application Server

plone-site recommends no packages.

-- debconf information:
  plone-site/internal:
* plone-site/instance-http-port: 8081
* plone-site/keep-data-on-purge: true
* plone-site/admin-user: admin





More information about the Pkg-zope-developers mailing list