[Zope] RE: No Access file found.
Chris Larson
clarson@changeling.com
Tue, 6 Apr 1999 13:31:57 -0500
Anyone? Anyone? Bueller?
OK. Allow me to clarify. Is there any way to redirect the path for the
'access' path when it should be somewhere other than INSTANCE_HOME? Say,
for example, I have multiple instances of Zope databases, with one Zope
install, and I want to use a single superuser, or access file. Not what
Im' doing, but closer to a mebbe-real-world use. As far as I can tell,
Zope wants 'access' located at '../INSTANCE_HOME'. Any ideas? Or am I
just wrong (And/Or, that is).
Or any ideas for getting around NFS problems without putting '/var' in
/tmp?
Thanks,
Chris
>OK. After finally getting my ISP to migrate me to a server with a current
>Python, I once again leap into the fray. I've placed my 'var/' into
>'/tmp/', to get around NFS, and updated my instance home to /tmp. Now I
>have a shiny new problem to play with. Zope can't see 'access'. Is the
>path to access assumed from INSTANCE HOME, or is there some place I can
>specify it? (I'd kinda rather avoid putting it in /tmp, ya know?). And
>before ya ask, yes there _is_ an access file in
>/---my-path---/cgi-bin/Zope-1.10.2-src/, and it does contain a
>"superuser:" style entry. I've included the traceback, and my Zope.cgi below.
>
>Any help would be much appreciated.
>
>Chris
>
>PS Any comments on using '/tmp' to contain 'var/' as an NFS bypass? '/tmp'
>is not mounted via NFS.
>
> The traceback
>-----------
>Sorry, a SERIOUS APPLICATION ERROR occurred.<p>
><!--
>Traceback (innermost last):
> File
>/---my-path---/cgi-bin/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py,
>line 877, in publish_module
> File
>/---my-path---/cgi-bin/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py,
>line 325, in publish
> File
>/---my-path---/cgi-bin/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py,
>line 616, in get_module_info
> File /---my-path---/cgi-bin/Zope-1.10.2-src/lib/python/Main.py, line 93,
>in ?
> File
>/---my-path---/cgi-bin/Zope-1.10.2-src/lib/python/OFS/Application.py, line
>96, in ?
> File
>/---my-path---/cgi-bin/Zope-1.10.2-src/lib/python/AccessControl/User.py,
>line 273, in ?
>ImportError: ('InstallError', 'No access file found - see INSTALL.txt')
>
>-->
>
>
>My 'Zope.cgi'
>-----------
>#!/---my-path---/cgi-bin/Zope-1.10.2-src/pcgi/pcgi-wrapper
>PCGI_NAME=Main
>PCGI_MODULE_PATH=/---my-path---/cgi-bin/Zope-1.10.2-src/lib/python/Main.py
>PCGI_PUBLISHER=/---my-path---/cgi-bin/Zope-1.10.2-src/pcgi/pcgi_publisher.py
>PCGI_EXE=/usr/bin/python
>PCGI_SOCKET_FILE=/tmp/var/pcgi.soc
>PCGI_PID_FILE=/tmp/var/pcgi.pid
>PCGI_ERROR_LOG=/tmp/var/pcgi.log
>PCGI_DISPLAY_ERRORS=1
>BOBO_REALM=Zope
>BOBO_DEBUG_MODE=1
>INSTANCE_HOME=/tmp