pcgi-wrapper (102) failure during connect to Zope 2
I get this error at the client (and in the log) when starting up a new installation of Zope 2 under Apache. (102) failure during connect <!-- Interrupted system call pcgi-wrapper-version 2.0a5 --> The error comes from pcgi-wrapper when it fails to open a socket. The C code is written so that higher-level procedures overwrite the more detailed error messages from lower-level procedures; so it's hard to discover just why it couldn't open the socket. I'm converting from Zope 1.10.3 to Zope 2.0.0 on a Sun/Solaris 2.6 with Apache. I've converted the database with bbb.py. I'm using the same rewrite rule in Apache as for Zope 1. I've set all the permissions in the Zope 2 directories to match the way they were for Zope 1. I can run Zope on port 8080 without Apache. Can anyone suggest what might be wrong or where to look for more info. -- Thanks -- Loren
Hi Loren,
I get this error at the client (and in the log) when starting up a new installation of Zope 2 under Apache.
(102) failure during connect <!-- Interrupted system call pcgi-wrapper-version 2.0a5 -->
I had the same error message - make sure your Zope.cgi file doesn't contain a PCGI_PORT statement. For example I use (replace '**' with the appropriate path on your machine): #!/**/pcgi/pcgi-wrapper PCGI_NAME=Zope PCGI_PID_FILE=/**/pcgi/var/pid PCGI_SOCKET_FILE=/**/pcgi/var/socket PCGI_ERROR_LOG=/**/pcgi/var/log PCGI_PUBLISHER=/**/pcgi/dummy.py PCGI_DISPLAY_ERRORS=1 INSTANCE_HOME=/**/Zope (dummy.py is a zero length file - it doesn't get executed but the wrapper checks it can access it) I have a different UID and GID running the Zope server so Apache can't access its files (you don't necessarily have to do this though). Here's a table of access rights: Directory/File Apache Zope /pcgi/ r-x r-x /pcgi/pcgi-wrapper --x --x (copied from out of the Zope tree) /pcgi/dummy.py r-- r-- /pcgi/var/ rwxt rwxt /Zope/ --- rwx After you have started the Zope server with the PCGI option, check that it created the socket file OK, eg.: srwxrwxrwx 1 zopesrv zope 0 Sep 10 18:54 pcgi/var/socket= Hope this helps, ChrisA
participants (2)
-
Chris Allen -
Loren Stafford