SOLVED: [Zope] AttributeError: _v_blocks
Mike Murphy
Mike Murphy" <mike@flipper.eskimo.net
Mon, 6 Aug 2001 10:28:46 -0700
Yup, this was the problem! (duh) The dtml-related sub-directories in
lib/python/Products corresponding to each item of the list of objects below
needed their permissions reset correctly. Executing a 'find . -type d -perm
644' located all of directories needing fixing. (I remember that I must
have did a 'chmod -R 644' before, that created the problem to begin with.)
Thanks for the help!
Mike
----- Original Message -----
From: "Jens Vagelpohl" <jens@zope.com>
To: "Mike Murphy" <mike@flipper.eskimo.net>
Cc: <zope@zope.org>
Sent: Monday, August 06, 2001 5:22 AM
Subject: Re: [Zope] AttributeError: _v_blocks
> 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 )
>