[zope2-tracker] [Bug 1386795] [NEW] zopectl (Zope2.Startup) start breaks with zdaemon 3 and newer (4)

Robert Buchholz 1386795 at bugs.launchpad.net
Tue Oct 28 18:09:22 CET 2014


Public bug reported:

When calling "./instance/bin/zopectl start", I am getting the following backtrace:
Traceback (most recent call last):
  File "bin/zopectl", line 9, in <module>
    load_entry_point('Zope2==2.13.22', 'console_scripts', 'zopectl')()
  File "Zope2/Startup/zopectl.py", line 484, in run
    exitstatus = main()
  File "Zope2/Startup/zopectl.py", line 443, in main
    c.onecmd(" ".join(options.args))
  File "/usr/lib64/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
  File "Zope2/Startup/zopectl.py", line 237, in do_start
    ZDCmd.do_start(self, arg)
  File "zdaemon/zdctl.py", line 324, in do_start
    self._start_cond, "daemon process started, pid=%(zd_pid)d")
  File "zdaemon/zdctl.py", line 263, in awhile
    while not cond(n):
  File "zdaemon/zdctl.py", line 284, in _start_cond
    if (n > self.options.start_timeout):
AttributeError: ZopeCtlOptions instance has no attribute 'start_timeout'

I have Zope2-2.13.22 and zdaemon-4.0.0 installed on Python 2.7.

At the core, this problem seems to stem from the fact that Zope2.Startup in its ZopeCmd.do_start calls the super-class as ZDCmd.do_start(self, arg). However, the "ZopeCtlOptions" (from Startup) do not actually inherit from zdaemon's ZDCtlOptions. Thus, the super class is missing required options with a default value.
Apparently[1], this problem is already 2 years old. Is anyone using this tool?


[1] http://zope3.pov.lt/irclogs-zope/%23zope.2012-06-09.log.html

** Affects: zope2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1386795

Title:
  zopectl (Zope2.Startup) start breaks with zdaemon 3 and newer (4)

To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/1386795/+subscriptions


More information about the zope2-tracker mailing list