[Zope] AttributeError: _v_blocks

Jens Vagelpohl jens@zope.com
Mon, 6 Aug 2001 08:22:29 -0400


mike,

this error usually comes up if the filesystem dtml-pages cannot be read, 
either because they're not found or because the security is set so that 
the user account the zope process runs under is not allowed to read them.

since you're launching as root the user account gets switched to "nobody" 
after binding to port 80, make sure the "nobody" account can at least read 
everything in your zope directory structure (and write to certain files in 
the "var" directory)

jens


On Monday, August 6, 2001, at 02:14 , 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 )