[Zope] PCGI, Apache and Zope

Gregor McEwan mcewan@dstc.edu.au
Tue, 26 Oct 1999 16:51:52 +1000


After searching through the mailing list archives for everything with PCGI
in the subject I've noticed that there have been a lot of mailings on this
subject.  A lot of them have come close to my problem and I have
enthusiastically tried all the fixes that seemed relevant.  Unfortunately
nothing seems to have worked yet.  Maybe I missed a vital step somewhere.

The Problem

Last week I had Zope 2.0.1 running fine using our existing Apache 1.3.3
server on Solaris 2.6.  I was able to access everything ok and had got so
far as running through the online tutorials.  This week however it seems to
have stopped working.
Whenever I try to access Zope I get the error:
Temporarily Unavailable

             The resource you requested is temporarily unavailable - please
try again later.

(102) failure during connect

The rewrite rule in Apache is working.  The var directory has full
permissions.  Other cgi scripts on the server, in the same cgi-bin
directory, work correctly.
I tried the pcgifile.py on my Zope.pcgi file to test it and get the
following error:
Python 1.5.2 (#2, Sep  2 1999, 19:01:59) [C]
Apache/1.3.3 (Unix)

PCGI info file: /home/phelps/WWW/htdocs/cgi-bin/Zope.cgi
PCGI wrapper:   /home/mcewan/Zope/Zope/pcgi/pcgi-wrapper
module not found: /home/mcewan/Zope/Zope/lib/python/Zope
status: FAILURE

/home/phelps/WWW/htdocs/cgi-bin/Zope.cgi
  #!/home/mcewan/Zope/Zope/pcgi/pcgi-wrapper
  PCGI_NAME=Zope
  PCGI_MODULE_PATH=/home/mcewan/Zope/Zope/lib/python/Zope
  PCGI_PUBLISHER=/home/mcewan/Zope/Zope/pcgi/pcgi_publisher.py
  PCGI_EXE=/home/mcewan/Zope/Zope/bin/python
  PCGI_SOCKET_FILE=/home/mcewan/Zope/Zope/var/pcgi.soc
  PCGI_PID_FILE=/home/mcewan/Zope/Zope/var/pcgi.pid
  PCGI_ERROR_LOG=/home/mcewan/Zope/Zope/var/pcgi.log
  PCGI_DISPLAY_ERRORS=1
  BOBO_REALM=/home/mcewan/Zope/Zope/Zope.cgi
  BOBO_DEBUG_MODE=1
  INSTANCE_HOME=/home/mcewan/Zope/Zope

There is a directory /home/mcewan/Zope/Zope/lib/python/Zope.  I looked at
the source for pcgifile and found that the error comes after pcgifile checks
to see if the module path is a file.  I notice from the mailing list
archives that older versions of Zope produce a module path that points to a
file.  Is there a problem with my setup or a problem with pcgifile in this
case?

In case it's of interest, if I change the pcgifile code to check for a
directory (so it passes this test) I get the following complaint:
PCGI info file: /home/phelps/WWW/htdocs/cgi-bin/Zope.cgi
PCGI wrapper:   /home/mcewan/Zope/Zope/pcgi/pcgi-wrapper
error attempting: 'from cgi_module_publisher import publish_module'
status: FAILURE

I checked to see if it works using ZServer and everything seems to work
fine.
I have a feeling that I've missed something really simple and obvious but
I've been playing with this all day now and don't seem to be getting any
closer to solving it.

Can anyone help with this?

Thanks,
-------------------------------------------------------------
Gregor McEwan
Research Scientist
DSTC Pty Ltd
Level 7, GP South
University of Queensland 4072, Australia
Phone: +61 7 3365 4310
Fax: +61 7 3365 4311
Email: mcewan@dstc.edu.au
"To know the road ahead
               Ask those coming back."  Chinese Proverb