Hi there, I am trying to install Zope 2.4.3 from scratch with Apache/pcgi... Starting Zope.cgi gives following: <html> <head> <title>Temporarily Unavailable</title> </head> <body BGCOLOR="#FFFFFF"> <table BORDER="0" WIDTH="100%"> <tr> <td WIDTH="10%"> <center> <b><font SIZE="+6" COLOR="#77003B">!</font></b> </center> </td> <td WIDTH="90%"><br> <font SIZE="+2">Temporarily Unavailable</font> <p> The resource you requested is temporarily unavailable - please try again later. </td> </tr> </table> (102) failure during connect <!-- No such file or directory pcgi-wrapper-version 2.0a5 --> </body></html> and in pcgi.log, there is: Thu Dec 20 12:52:19 2001 unable to publish module Traceback (most recent call last): File "/mnt/raid/Zope/pcgi/pcgi_publisher.py", line 303, in handler self.publish_module(self.moduleName,stdin=stdin,stdout=stdout,stderr=stderr,environ=env) File "/mnt/raid/Zope/lib/python/ZPublisher/Publish.py", line 233, in publish_module request.response.exception() AttributeError: 'None' object has no attribute 'response' the Zope.cgi itself is: #!/mnt/raid/Zope/pcgi/pcgi-wrapper PCGI_NAME=Zope PCGI_MODULE_PATH=/mnt/raid/Zope/lib/python/Zope PCGI_PUBLISHER=/mnt/raid/Zope/pcgi/pcgi_publisher.py PCGI_EXE=/mnt/raid/Zope/bin/python PCGI_SOCKET_FILE=/mnt/raid/Zope/var/pcgi.soc PCGI_PID_FILE=/mnt/raid/Zope/var/pcgi.pid PCGI_ERROR_LOG=/mnt/raid/Zope/var/pcgi.log PCGI_DISPLAY_ERRORS=1 BOBO_REALM=/mnt/raid/Zope/Zope.cgi BOBO_DEBUG_MODE=1 INSTANCE_HOME=/mnt/raid/Zope and the paths are ok. why is this happening ? --- My life needs a rewind/erase button. -- Calvin --- Oliver Pabst .-------------------------. mailto:olpa@sybcom.de : : phone :+49 681 56600600 : project department : SYBCOM GmbH fax :+49 681 56600660 : : http://www.sybcom.de
Don't use pcgi. Use mod_rewrite & virtualhostmonster as described in http://www.zope.org/Members/mwr/VHosts_With_Zope_Default or use the 'enhanced VirtualHostMonster' at: http://www.zope.org/Members/sfm/SiteAccessEnhanced IMO, pcgi should be eliminated completely from the apache / unix rulebook. Unfortunately it still seems necessary on Windows, I believe? seb On Thu, 2001-12-20 at 10:59, olpa@sybcom.de wrote:
Hi there,
I am trying to install Zope 2.4.3 from scratch with Apache/pcgi...
Starting Zope.cgi gives following:
<html> <head> <title>Temporarily Unavailable</title> </head> <body BGCOLOR="#FFFFFF"> <table BORDER="0" WIDTH="100%"> <tr> <td WIDTH="10%"> <center> <b><font SIZE="+6" COLOR="#77003B">!</font></b> </center> </td> <td WIDTH="90%"><br> <font SIZE="+2">Temporarily Unavailable</font> <p> The resource you requested is temporarily unavailable - please try again later. </td> </tr> </table> (102) failure during connect <!-- No such file or directory pcgi-wrapper-version 2.0a5 --> </body></html>
and in pcgi.log, there is:
Thu Dec 20 12:52:19 2001 unable to publish module Traceback (most recent call last): File "/mnt/raid/Zope/pcgi/pcgi_publisher.py", line 303, in handler
self.publish_module(self.moduleName,stdin=stdin,stdout=stdout,stderr=stderr,environ=env) File "/mnt/raid/Zope/lib/python/ZPublisher/Publish.py", line 233, in publish_module request.response.exception() AttributeError: 'None' object has no attribute 'response'
the Zope.cgi itself is:
#!/mnt/raid/Zope/pcgi/pcgi-wrapper PCGI_NAME=Zope PCGI_MODULE_PATH=/mnt/raid/Zope/lib/python/Zope PCGI_PUBLISHER=/mnt/raid/Zope/pcgi/pcgi_publisher.py PCGI_EXE=/mnt/raid/Zope/bin/python PCGI_SOCKET_FILE=/mnt/raid/Zope/var/pcgi.soc PCGI_PID_FILE=/mnt/raid/Zope/var/pcgi.pid PCGI_ERROR_LOG=/mnt/raid/Zope/var/pcgi.log PCGI_DISPLAY_ERRORS=1 BOBO_REALM=/mnt/raid/Zope/Zope.cgi BOBO_DEBUG_MODE=1 INSTANCE_HOME=/mnt/raid/Zope
and the paths are ok.
why is this happening ?
--- My life needs a rewind/erase button. -- Calvin --- Oliver Pabst .-------------------------. mailto:olpa@sybcom.de : : phone :+49 681 56600600 : project department : SYBCOM GmbH fax :+49 681 56600660 : : http://www.sybcom.de
_______________________________________________ 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 )
On Thu, Dec 20, 2001 at 11:18:47AM +0000, seb bacon wrote:
Don't use pcgi. Use mod_rewrite & virtualhostmonster as described in
IMO, pcgi should be eliminated completely from the apache / unix rulebook.
Why? What is wrong with it? I use pretty happily. Also, what is the difference between PCGI and FastCGI? I use FastCGI, too, no problem so far. I prefer PCGI, because mod_pcgi2 does good job for me, and I do not see any reason to switch to mod_proxy hassle. Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Today, zope-admin@zope.org wrote:
Delivered-To: olpa-zope@sybcom.de Subject: Re: [Zope] Strange PCGI Problems Date: Thu, 20 Dec 2001 14:30:21 +0300 To: zope@zope.org From: Oleg Broytmann <phd@phd.pp.ru>
On Thu, Dec 20, 2001 at 11:18:47AM +0000, seb bacon wrote:
Don't use pcgi. Use mod_rewrite & virtualhostmonster as described in
IMO, pcgi should be eliminated completely from the apache / unix rulebook.
Why? What is wrong with it? I use pretty happily.
Also, what is the difference between PCGI and FastCGI? I use FastCGI, too, no problem so far. I prefer PCGI, because mod_pcgi2 does good job for me, and I do not see any reason to switch to mod_proxy hassle.
Oleg.
well, it seems to be philisophical... but this does not solve my problem with pcgi! --- My life needs a rewind/erase button. -- Calvin --- Oliver Pabst .-------------------------. mailto:olpa@sybcom.de : : phone :+49 681 56600600 : project department : SYBCOM GmbH fax :+49 681 56600660 : : http://www.sybcom.de
On Thu, Dec 20, 2001 at 12:40:22PM +0100, olpa@sybcom.de wrote:
well, it seems to be philisophical... but this does not solve my problem with pcgi!
Can you go in different direction? Start Zope via ZServer and then connect via PCGI? Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Today, Oleg Broytmann wrote:
Delivered-To: olpa@sybcom.de Subject: Re: [Zope] Strange PCGI Problems Date: Thu, 20 Dec 2001 14:43:47 +0300 Cc: zope@zope.org To: olpa@sybcom.de From: Oleg Broytmann <phd@phd.pp.ru>
On Thu, Dec 20, 2001 at 12:40:22PM +0100, olpa@sybcom.de wrote:
well, it seems to be philisophical... but this does not solve my problem with pcgi!
Can you go in different direction? Start Zope via ZServer and then connect via PCGI?
yes... this works... but I want the automatic restart feature with pcgi... --- My life needs a rewind/erase button. -- Calvin --- Oliver Pabst .-------------------------. mailto:olpa@sybcom.de : : phone :+49 681 56600600 : project department : SYBCOM GmbH fax :+49 681 56600660 : : http://www.sybcom.de
On Thu, Dec 20, 2001 at 12:43:53PM +0100, olpa@sybcom.de wrote:
yes... this works... but I want the automatic restart feature with pcgi...
This time I'd say "don't do this". PCGI restarts Zope in single-threaded mode, while ZServer is multithreded (i.e., much faster). Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Thu, 2001-12-20 at 11:46, Oleg Broytmann wrote:
On Thu, Dec 20, 2001 at 12:43:53PM +0100, olpa@sybcom.de wrote:
yes... this works... but I want the automatic restart feature with pcgi...
This time I'd say "don't do this". PCGI restarts Zope in single-threaded mode, while ZServer is multithreded (i.e., much faster).
I admit I don't have the most scientific reasons for not using pcgi. So I could be way off the mark. But here's my understanding: - it's less flexible if you want to do any virtual serving - if you go for the VHM / rewrite route, there's less configuration to do: a single rewrite rule in your server context in httpd.conf - you don't get things like the ftp port and the webdav source port with pcgi, i believe (?) - why give yourself the extra overhead of starting a new wrapper process every time you want to connect to Zope? - AFAIK, even the people who developed pcgi in the first place (i.e. ZC) don't use it any more. It would be good to know if (a) I am right, and (b) if so, why not. Finally, let me turn the question around: why *should* you use pcgi? I'm not saying using pcgi is wrong, but I am saying I think it's easier and possibly faster to do it the rewrite rule / SiteAccess way. I also think you'll get more community support, since I get the impression more people do it that way. hth seb seb
On Today, seb bacon wrote:
Delivered-To: olpa@sybcom.de Subject: Re: [Zope] Strange PCGI Problems Date: 20 Dec 2001 12:10:44 +0000 Cc: olpa@sybcom.de, zope@zope.org To: Oleg Broytmann <phd@phd.pp.ru> From: seb bacon <seb@jamkit.com>
On Thu, 2001-12-20 at 11:46, Oleg Broytmann wrote:
On Thu, Dec 20, 2001 at 12:43:53PM +0100, olpa@sybcom.de wrote:
yes... this works... but I want the automatic restart feature with pcgi...
This time I'd say "don't do this". PCGI restarts Zope in single-threaded mode, while ZServer is multithreded (i.e., much faster).
I admit I don't have the most scientific reasons for not using pcgi. So I could be way off the mark. But here's my understanding:
- it's less flexible if you want to do any virtual serving
is it script-able, from the shell view? I guess yes. At this time, we make scripts for Rewrite-rules in apache and pcgi... this works fine... til now!
- if you go for the VHM / rewrite route, there's less configuration to do: a single rewrite rule in your server context in httpd.conf
- you don't get things like the ftp port and the webdav source port with pcgi, i believe (?)
you are right
- why give yourself the extra overhead of starting a new wrapper process every time you want to connect to Zope?
the process is only restarted when the pcgi process kills itself, not for every request... we have very long living pcgi processes here
- AFAIK, even the people who developed pcgi in the first place (i.e. ZC) don't use it any more. It would be good to know if (a) I am right, and (b) if so, why not.
Finally, let me turn the question around: why *should* you use pcgi?
'cause it is what I use all the time. I admit, it is a partly bad answer. I will look forward your proposition. I created the rewrite rules... and the VirtualHostFolder... I am a little stuck with the error: Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: TopLevelContentFolder GET Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. [Powered by Zope] Traceback (innermost last): File /mnt/raid/Zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /mnt/raid/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /mnt/raid/Zope/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: Zope) File /mnt/raid/Zope/lib/python/ZPublisher/Publish.py, line 162, in publish File /mnt/raid/Zope/lib/python/ZPublisher/BaseRequest.py, line 340, in traverse File /mnt/raid/Zope/lib/python/OFS/Application.py, line 244, in __bobo_traverse__ (Object: Zope) File /mnt/raid/Zope/lib/python/ZPublisher/HTTPResponse.py, line 540, in notFoundError NotFound: (see above) i believe I forgot something... --- My life needs a rewind/erase button. -- Calvin --- Oliver Pabst .-------------------------. mailto:olpa@sybcom.de : : phone :+49 681 56600600 : project department : SYBCOM GmbH fax :+49 681 56600660 : : http://www.sybcom.de
On Thu, 2001-12-20 at 12:14, olpa@sybcom.de wrote:
- why give yourself the extra overhead of starting a new wrapper process every time you want to connect to Zope?
the process is only restarted when the pcgi process kills itself, not for every request... we have very long living pcgi processes here
ah yes, I forgot about mod_pcgi2
- AFAIK, even the people who developed pcgi in the first place (i.e. ZC) don't use it any more. It would be good to know if (a) I am right, and (b) if so, why not.
Finally, let me turn the question around: why *should* you use pcgi?
'cause it is what I use all the time. I admit, it is a partly bad answer. I will look forward your proposition.
it's not much better than my reasons for using VHM etc ;-) I'd be interested to have your perspective on the merits of both once you've managed to compare them.
I created the rewrite rules... and the VirtualHostFolder... I am a little stuck with the error:
Site Error
An error was encountered while publishing this resource.
Resource not found Sorry, the requested resource does not exist.
OK, what's the rewrite rule? and the location it's rewriting to? seb
On Thu, Dec 20, 2001 at 12:10:44PM +0000, seb bacon wrote:
I admit I don't have the most scientific reasons for not using pcgi. So I could be way off the mark. But here's my understanding:
- it's less flexible if you want to do any virtual serving
I do not see any reason for this. I have no problem running many virtual hosts.
- if you go for the VHM / rewrite route, there's less configuration to do: a single rewrite rule in your server context in httpd.conf
Hm. A single configuration line is enough for mod_pcgi2.
- you don't get things like the ftp port and the webdav source port with pcgi, i believe (?)
It dependes on how you have started Zope. Single-threaded PCGI server really does not have ftp/dav, but if you've started Zope via ZServer - no problem, configure ZServer to run ftp and/or dav.
- why give yourself the extra overhead of starting a new wrapper process every time you want to connect to Zope?
No extra wrapper, just another Apache module (mod_pcgi2 or mod_fastcgi).
Finally, let me turn the question around: why *should* you use pcgi?
Because I am the author of said mod_pcgi2! :) I love it!!! And I found there are more troubles (for me) configuring mod_proxy/mod_rewrite. Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Thu, 2001-12-20 at 12:30, Oleg Broytmann wrote:
On Thu, Dec 20, 2001 at 12:10:44PM +0000, seb bacon wrote:
Finally, let me turn the question around: why *should* you use pcgi?
Because I am the author of said mod_pcgi2! :) I love it!!! And I found there are more troubles (for me) configuring mod_proxy/mod_rewrite.
Fair enough :-) Thanks for your answers. I really think the whole OOTB configuration of Zope / apache / zserver needs addressing urgently. It's simply too complicated at the moment, however you do it. Also, although it's always nice to have more than one way of doing it, for newbies it's bad. Since you're well placed to be a pcgi advocate, could you explain the advantages a bit more? Is it simply that you feel it's easier to configure? How does it compare to using an enhanced site access? cheers, seb
On Thu, Dec 20, 2001 at 12:47:26PM +0000, seb bacon wrote:
Since you're well placed to be a pcgi advocate, could you explain the advantages a bit more? Is it simply that you feel it's easier to
It is simpler for me, but I am afraid it'd be equally complex for a less experienced users.
configure? How does it compare to using an enhanced site access?
There is no connection. PCGI is just a protocol to pass data between Zope and Apache. How you configure Zope is beyond PCGI protocol scope. I used Zope without virtual hosting at all, and I use Zope now with standard VirtualHostMonster - no problem. Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
I am trying to render the body of a zwiki page inside another page like this: <dtml-let sidebar1="aq_parent.LinksOfTheDay.render_structuredtextdtml(bare=1,AUTHENTIC ATED_USER=AUTHENTICATED_USER,tick=tick,bluestar=bluestar)" etc Note I need to pass through any objects I would like to acquire. (tick and bluestar are images in the parent folder) The context seems to have gone wrong. I even had to pass AUTHENTICATED_USER! Help! Thanks, Andrew _____________________________________________________________________ This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law. This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322
On Thu, 2001-12-20 at 15:25, Oleg Broytmann wrote:
On Thu, Dec 20, 2001 at 12:47:26PM +0000, seb bacon wrote: There is no connection. PCGI is just a protocol to pass data between Zope and Apache. How you configure Zope is beyond PCGI protocol scope. I used Zope without virtual hosting at all, and I use Zope now with standard VirtualHostMonster - no problem.
d'oh! so are you saying that there's no big comparison to be made between mod_pcgi2 and mod_proxy as methods of connecting zope to apache? that it just amounts to what you're comfortable with? ok, I suppose I'm going to have to get off my lazy ass and try them both side-by-side, myself... ;-) seb
On Thu, Dec 20, 2001 at 03:54:08PM +0000, seb bacon wrote:
There is no connection. PCGI is just a protocol to pass data between Zope and Apache. How you configure Zope is beyond PCGI protocol scope. I used Zope without virtual hosting at all, and I use Zope now with standard VirtualHostMonster - no problem.
so are you saying that there's no big comparison to be made between mod_pcgi2 and mod_proxy as methods of connecting zope to apache? that
Yes. I heard rumors that mod_pcgi2 is slightly faster, but I beleive the difference is marginal. Also add mod_fastcgi here. I cannot see any speed difference, and it requires more complex configuration... but I managed it finally, just to learn its configuration.
it just amounts to what you're comfortable with?
Yes, exactly! :)
ok, I suppose I'm going to have to get off my lazy ass and try them both side-by-side, myself... ;-)
You are always welcome! :) Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (4)
-
Andrew Perella -
Oleg Broytmann -
olpa@sybcom.de -
seb bacon