Try setting all of your Zope files' and directories' permissions to 770 or similar, and make sure you're running under a user who has write access to the Zope tree. This is likely a permissions problem. When you run it as root it switches to the "nobody" user, and its likely the nobody user cannot read or write to something it needs. Mike Murphy wrote:
Hi! I am having a problem with Zope after upgrading to v2.4.0, and I am not exactly sure when it started to crop up... but I am getting AttributeError exceptions whenever I attempt to Add or View any of the following objects:
Accelerated HTTP Cache Manager External Method Mail Host RAM Cache Manager Script (Python) Site Access Rule SiteRoot Virtual Host Monster Vocabulary Z SQL Method Z Catalog Zope Tutorial
Other objects add/view/manage just fine. For each of these AttributeError exceptions, I get a similar stack trace where it choked in line 241 in python/App/special_dtml.py (see below).
Does this error look obvious to anybody? For what it is worth, I may not have upgraded correctly. I know I have fiddled with permission settings after running ./install (docs recommend not to launch as root, but I run it on port 80); and I also just copied the Data.fs* files from my prior Zope-2.3 tree into my Zope-2.4 tree... without running any type of converter utility on it. Finally, I installed the ZPT products (Page Templates, ZTUtils, TAL) latest version I think.
Any ideas?
Mike Error Type: AttributeError Error Value: _v_blocks
Traceback (innermost last): File /opt/Zope-2.4.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /opt/Zope-2.4.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /opt/Zope-2.4.0-linux2-x86/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook File /opt/Zope-2.4.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /opt/Zope-2.4.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: pyScriptAdd) File /opt/Zope-2.4.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: pyScriptAdd) File /opt/Zope-2.4.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: pyScriptAdd) File /opt/Zope-2.4.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: pyScriptAdd) File /opt/Zope-2.4.0-linux2-x86/lib/python/App/special_dtml.py, line 241, in _exec (Object: pyScriptAdd) AttributeError: (see above)
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com """ Killing hundreds of birds with thousands of stones """