Re: [Zope-dev] More signal 11 restarts....
Hello Which config/tool make that your zope restart automatically??? Gilles -Original Message- From: Leonardo Rochael Almeida <[EMAIL PROTECTED]> To: zope-dev <[EMAIL PROTECTED]> Date: Wednesday, December 05, 2001 20:07 Subject: Re: [Zope-dev] More signal 11 restarts > > >Hi Harald, > >On Wed, 2001-12-05 at 14:32, Harald Koschinski wrote: >> Daniel Duclos wrote: >> >> > I have a zope that is dumping signal 11 every 40 minutes or so. I have >tried >> >recompile python 2.1.1 with-threads without-pymalloc, recompile Zope with it, >> >recompile ZPAtterns, recompile and instal MYSQL for Python 0.9.1, upgraded to >> >Zope 2.4.3, all this on a Debian Linux box. >> > Nothing changed... still restarting... >> > Anybody, please, has any ideia on this matter? >> > Please, let me know if there's any relevant info that I forgot to mention >> >abot my case! >> > Thanks in advance!! >> > >> >> I have the same problem since we are live :-((( >> >> I have the same versions running like you and I tried the same to fix - >> but no change. >> >> What is your state with this problem. Fixed ? How? > >It's not fixed, but we managed to make it bearable so as not to lose the >client. > >by replacing LoginManager with exUserFolder we managed to bring down the >zope restart time from 5 min (we have a HUGE Data.fs) to 20 secs, and by >installing ZEO we brought down the restart time to between 2 and 8 secs. >By increasing the caching of requests we managed to increase the time >between restart from 15 min to 2 hours. That and a nicely formated >Apache error page for Proxy Errors, for the lucky bastards who happen to >hit the server in the exactly 2 seconds of restart, managed to calm down >the client enough for us to breath. > >I'll try the requestprofiler tip Chris gave, but I don't have much hope, >since we use mysql for authentication and the site is authenticated >mostly everywhere. > >We are seriously considering droping mysql for postgresql. > > Cheers, Leo > >-- >Ideas don't stay in some minds very long because they don't like >solitary confinement. > > > >___ >Zope-Dev maillist - [EMAIL PROTECTED] >http://lists.zope.org/mailman/listinfo/zope-dev >** No cross posts or HTML encoding! ** >(Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > > > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Fault tolerance and thread-loss
Hello I had thread blocking in my installation du to using the sendmail tag with invalid recipient(empty). I solved this and now my 3 'production' zope installations works well since months. Gilles Lavaux -Original Message- From: Jay, Dylan <[EMAIL PROTECTED]> To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]> Date: Tuesday, December 19, 2000 12:51 AM Subject: [Zope-dev] Fault tolerance and thread-loss >I'm finding that my installation is blocking all requests after awhile. By >best guess would be that threads are being used and somehow becoming >permanently blocked. When all 4 are gone then the server is useless and has >to be restarted. > >Seems to me this is a real problem for fault tolerance. Perhaps a monitor >should be run on a separate thread that starts aborting transactions when >they have been running too long and there are few remaining threads. > >Does this exist already? > > >Dylan Jay mailto:[EMAIL PROTECTED] >Avaya Communication Tel: +61 2 9886-8961 >Level 5, 15 Talavera Road FAX: +61 2 9352 9224 >Nth Ryde NSW 2113 Mobile:0409 606 171 >AUSTRALIA > >___ >Zope-Dev maillist - [EMAIL PROTECTED] >http://lists.zope.org/mailman/listinfo/zope-dev >** No cross posts or HTML encoding! ** >(Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Help: mod_python+ZPublisher and authentication
Hello, This is not exactly a Zope question, but I hope that some of you will be able to help me: I am using mod_python + ZPublisher + Ztemplate on a apache server and now I would like to restrict the access of some pages served by the ZHandler.py. How to do it?? Do I have to put a rewrite rule in apache? The Zhandler.py seams to reply all the time a 200 code to apache, do I have to modify it to send back an 'Unauthorized' code??( I don't know how to raise the 'Unauthorized' error from the python module I am publishing) Thanks for any help Gilles Lavaux ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Help needed: why is this DTML not working in zope 2 ?
Argh!!! no, I made a typo error : it was .the syntax was good. Ok, I will use the new syntax in my new sites. But for my old site, I will not modify my ~500 dtml methods, except if there is a way to automate the change. Gilles -Original Message- From: Chris Withers <[EMAIL PROTECTED]> To: Gilles Lavaux <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, July 04, 2000 1:33 PM Subject: Re: [Zope-dev] Help needed: why is this DTML not working in zope 2 ? >Gilles Lavaux wrote: >> But I found something: In my 'PUBLIC_Doc' document I display image with a >> tag, my problem disappear if I use >> , someone can explain this?? > >Are you sure the space after the # isn't your problem? > >I would STRONGLY recommend moving your code to the new syntax, >especially if you are having problems. > >You should be aware that plans are afoot to remove the old syntax... > >cheers, > >Chris > >___ >Zope-Dev maillist - [EMAIL PROTECTED] >http://lists.zope.org/mailman/listinfo/zope-dev >** No cross posts or HTML encoding! ** >(Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Help needed: why is this DTML not working in zope 2 ?
Hello Lee doesn't change anything, same error. (you are right, I can use the name directly , but I have some other piece of code where I have to use the _[_['']] construction, so it has to work...) But I found something: In my 'PUBLIC_Doc' document I display image with a tag, my problem disappear if I use , someone can explain this?? Thanks anyway for the replies Gilles -Original Message- From: LEE, Kwan Soo <[EMAIL PROTECTED]> To: Gilles Lavaux <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, July 04, 2000 12:32 PM Subject: Re: [Zope-dev] Help needed: why is this DTML not working in zope 2 ? >Not an answer, but a question. >> >> >> ## >> >> >> >You seems to "call" PUBLIC_Doc, then why don't you just >instead of the ? > >LEE Kwan Soo > >___ >Zope-Dev maillist - [EMAIL PROTECTED] >http://lists.zope.org/mailman/listinfo/zope-dev >** No cross posts or HTML encoding! ** >(Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Help needed: why is this DTML not working in zope 2 ?
Hello, I am a little bit disappointed not getting any echo from my previous question, so I report it. Maybe my dtml is wrong for zope2, but I would appreciate to have some explanation from more experienced peoples. If I can not find a solution, we will have to keep our zope1 production server, and it will be the end of the Zope story in my company :-( So my question was : I want to display the content of a site starting from a folder called 'Site' with a tree tag. I want also to render immediately inside the tree the documents with an ID=='PUBLIC_Doc'. In Zope 1.x I have a working dtml method like this: ## ## Unfortunatly for me , with zope 2.1.6 i get an error when I try to render the 'PUBLIC_Doc' document: . PUBLIC_Doc !# Error type:AttributeError Error Message: Error Message:__call__ Error TB:Traceback (innermost last): File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Try.py", line 221, in render_try_except result = render_blocks(self.section, md) File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 335, in eval return eval(code,globals,d) File "", line 0, in ? File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 161, in careful_getitem v=mapping[key] File "/usr/share/zope/lib/python/OFS/DTMLMethod.py", line 146, in __call__ r=apply(HTML.__call__, (self, client, REQUEST), kw) File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py", line 502, in __call__ try: return render_blocks(self._v_blocks, md) AttributeError: __call__ has someone a solution ?? Thanks, Gilles ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Tree Tag question: from zope 1.x to zope 2.x
Hello, I want to display the content of a site starting from a folder called 'Site' with a tree tag. I want also to render immediately inside the tree the documents with an ID=='PUBLIC_Doc'. In Zope 1.x I have a working dtml method like this: ## ## Unfortunatly for me , with zope 2.1.6 i get an error when I try to render the 'PUBLIC_Doc' document: . PUBLIC_Doc !# Error type:AttributeError Error Message: Error Message:__call__ Error TB:Traceback (innermost last): File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Try.py", line 221, in render_try_except result = render_blocks(self.section, md) File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 335, in eval return eval(code,globals,d) File "", line 0, in ? File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 161, in careful_getitem v=mapping[key] File "/usr/share/zope/lib/python/OFS/DTMLMethod.py", line 146, in __call__ r=apply(HTML.__call__, (self, client, REQUEST), kw) File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py", line 502, in __call__ try: return render_blocks(self._v_blocks, md) AttributeError: __call__ has someone a solution ?? Thanks, Gilles ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )