Re: [Zope] Hanging site

2006-09-08 Thread Chris McDonough
FWIW, this message is raised when ZServer detects that the headers  
are too long.  It is intentional and can be controlled up or down  
using the "http-header-max-length" directive in zope.conf.


- C



On Sep 8, 2006, at 3:44 PM, Dieter Maurer wrote:


Chris Withers wrote at 2006-9-8 07:46 +0100:

...
and got this entry on the last "hangup":


2006-09-06T19:44:34 ERROR(200) ZServer uncaptured python exception,
closing channel 
(exceptions.ValueError:HTTP headers invalid (too long) (got: 8760  
bytes,

allowed 8192 bytes
[/sw1/packages/python235/lib/python2.3/asyncore.py|read|69]
[/sw1/packages/python235/lib/python2.3/asyncore.py| 
handle_read_event|390]

[/sw1/packages/python235/lib/python2.3/asynchat.py|handle_read|148]
[/sw0/sbzope_3_2/lib/python/ZServer/HTTPServer.py| 
collect_incoming_data|378])


Ah, so you're exposing Zope to the big wide internet without a
protective proxy like Apache in from?


I have seen this kind of error *ALTHOUGH* we do have Apache
in front of Zope -- probably, because Apache is less stupid
about the header size than Zope.



--
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zope and sakai comparison

2006-09-08 Thread David H

David Bear wrote:


Our university has dump a lot of money into sakai. I don't know
anything about it but I wonder if someone has compared sakai with
zope?



 


I only say adopt a good web framework and make it yours ...

Zope is a good as it gets ... and I've never seen a smarter (so smart I 
feel below average :-) ) group that will help you than in the Zope 
community.


David

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Authentication Problem with migration from Zope 2.6.1 to Zope 2.9.4

2006-09-08 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 8 Sep 2006, at 21:53, Dieter Maurer wrote:


yogeen honnavar wrote at 2006-9-8 03:10 -0700:

 Module , line 1, in 
AttributeError: findUser


What you see is *not* an authentication problem but
a DTML method ("DTMLMethod at /isac/PGA/cl/areYouCLpaRecoSanc")
no longer fitting the implementation: it expects a method "findUser"
and this is no longer there.


The method still exists in version 2.7, so something else must be amiss.

Does the product show up as installed correctly when you go to the  
Control_panel in the ZMI and click on Product Management? Do you see  
any error output when starting Zope in the foreground (-> set  
debug_mode to "on" in zope.conf and then start the instance with  
"zopectl fg"). Are you sure the DTML method is finding the correct  
obect to call "findUsers" on? You don't provide enough details I'm  
afraid.


jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFAdQZRAx5nvEhZLIRApX9AJ90+w/ZtyWp1mUnsAeI+5AuJPc7sgCfZmll
Wcl6lcBK96XKo9K+a+p3nfg=
=2AKA
-END PGP SIGNATURE-
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Authentication Problem with migration from Zope 2.6.1 to Zope 2.9.4

2006-09-08 Thread Dieter Maurer
yogeen honnavar wrote at 2006-9-8 03:10 -0700:
> ...
>trace :
>
>2006-09-08T14:38:52 ERROR Zope.SiteErrorLog
>http://systemIP:8080/isac/PGA/index_html
>Traceback (innermost last):
> ...
>  Module OFS.DTMLMethod, line 137, in __call__
>   - 
>   - URL:
>http://systemIP:8080/isac/PGA/cl/areYouCLpaRecoSanc/manage_main
>   - Physical Path: /isac/PGA/cl/areYouCLpaRecoSanc
>  Module DocumentTemplate.DT_String, line 476, in
>__call__
>  Module DocumentTemplate.DT_Let, line 76, in render
>  Module DocumentTemplate.DT_Let, line 75, in render
>  Module DocumentTemplate.DT_Util, line 196, in eval
>   - __traceback_info__: _
>  Module , line 1, in 
>AttributeError: findUser

What you see is *not* an authentication problem but
a DTML method ("DTMLMethod at /isac/PGA/cl/areYouCLpaRecoSanc")
no longer fitting the implementation: it expects a method "findUser"
and this is no longer there.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Hanging site

2006-09-08 Thread Dieter Maurer
Chris Withers wrote at 2006-9-8 07:46 +0100:
> ...
>and got this entry on the last "hangup":
>> 
>> 2006-09-06T19:44:34 ERROR(200) ZServer uncaptured python exception, 
>> closing channel > 212.96.102.29:3207 at 0x9c0326c channel#: 149 requests:> 
>> (exceptions.ValueError:HTTP headers invalid (too long) (got: 8760 bytes, 
>> allowed 8192 bytes 
>> [/sw1/packages/python235/lib/python2.3/asyncore.py|read|69] 
>> [/sw1/packages/python235/lib/python2.3/asyncore.py|handle_read_event|390] 
>> [/sw1/packages/python235/lib/python2.3/asynchat.py|handle_read|148] 
>> [/sw0/sbzope_3_2/lib/python/ZServer/HTTPServer.py|collect_incoming_data|378])
>>  
>
>Ah, so you're exposing Zope to the big wide internet without a 
>protective proxy like Apache in from?

I have seen this kind of error *ALTHOUGH* we do have Apache
in front of Zope -- probably, because Apache is less stupid
about the header size than Zope.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Change language with PTS

2006-09-08 Thread Josef Meile
Hi Chris,

> Don't use PTS!
Only if using zope < 2.8.x, which indeed I'm using, for we have a 3rd party
product that depends on that. Anyway, an update will be done, so, I will
follow this advice.

> If you have a google, you'll see i've just recently done the 
> language-selection-from-cookies dance in Zope 2 but using Zope 3's 
> infinitely better translation machinery ;-)
Yes, I googled a little bit and it looks promising. I even did a small
example, which luckily worked.

> There's even a sx.translations package which will help with providing 
> you with a list of languages to pick from...
> 
> Lemme know if you want me to release it once you've had a read of the 
> relevant threads...
I searched that thread and the references there helped me a lot with my
small example. Google even now how to spell your last name ;-), but I don't.
Anyway, for the interested here is the thread:

* Zope 2.9 and Zope 3 i18n, more questions...
  http://mail.zope.org/pipermail/zope3-dev/2006-June/019496.html

The article by Philipp von Weitershausen, which is mentioned in there, is
really useful. The examples of his website are even better.

I'm not the OP, jet I would be also interested in your product. I'm not
planning to use the zope3 translation yet, but I want to experiment a little
bit.


Regards
Josef

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] zope and sakai comparison

2006-09-08 Thread David Bear
Our university has dump a lot of money into sakai. I don't know
anything about it but I wonder if someone has compared sakai with
zope?



-- 
David Bear
phone:  602-496-0424
fax:602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
 "Beware the IP portfolio, everyone will be suspect of trespassing"
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Authentication Problem with migration from Zope 2.6.1 to Zope 2.9.4

2006-09-08 Thread yogeen honnavar
hello andreas,
  am hereby giving the trace from log
file. other than LDAPUF we r not using any other 3rd
party products. 
 what i want is just to get basic authentication
popup dialog to come. if it comes then the problem
will be solved i guess. is there a way to configure
the application so that the popup dialog pops up when
the application is accessed ? coz the error mesg is
that its trying find user Anonymous in LDAP and not
finding. if popup comes then it may pass the entered
username/password to LDAPUF i guess.
I have not yet tried migrating by just copying the
Data.fs file. i'll try it out soon. till now i hv
tried using import/export.
please help.
thanks and regards
-yogeen

trace :

2006-09-08T14:38:52 ERROR Zope.SiteErrorLog
http://systemIP:8080/isac/PGA/index_html
Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module OFS.DTMLDocument, line 128, in __call__
   - 
   - URL:
http://systemIP:8080/isac/PGA/index_html/manage_main
   - Physical Path: /isac/PGA/index_html
  Module DocumentTemplate.DT_String, line 476, in
__call__
  Module OFS.DTMLMethod, line 137, in __call__
   - 
   - URL:
http://systemIP:8080/isac/PGA/cl_index_html/manage_main
   - Physical Path: /isac/PGA/cl_index_html
  Module DocumentTemplate.DT_String, line 476, in
__call__
  Module DocumentTemplate.DT_Let, line 75, in render
  Module DocumentTemplate.DT_Util, line 196, in eval
   - __traceback_info__: cl
  Module , line 1, in 
  Module DocumentTemplate.DT_Util, line 160, in render
  Module OFS.DTMLMethod, line 137, in __call__
   - 
   - URL:
http://systemIP:8080/isac/PGA/cl/areYouCLpaRecoSanc/manage_main
   - Physical Path: /isac/PGA/cl/areYouCLpaRecoSanc
  Module DocumentTemplate.DT_String, line 476, in
__call__
  Module DocumentTemplate.DT_Let, line 76, in render
  Module DocumentTemplate.DT_Let, line 75, in render
  Module DocumentTemplate.DT_Util, line 196, in eval
   - __traceback_info__: _
  Module , line 1, in 
AttributeError: findUser


--- Andreas Jung <[EMAIL PROTECTED]> wrote:

> 
> 
> --On 8. September 2006 01:04:16 -0700 yogeen
> honnavar <[EMAIL PROTECTED]> 
> wrote:
> 
> > hello andreas,
> >   thanks for the response. u said
> > Import/Export is supported between Identical
> > installations only, then can u pls tell me how to
> > migrate an application from an older version of
> zope
> > to a newer version ?
> 
> To be honest: that's *your* problem :-) If you
> upgrade *only*
> your Zope with unchanged 3rd party-products
> (identical versions) then there 
> is a chance the upgrading by copying the Data.fs
> and/or export/import
> might work. But export/import *is not* a migration
> tool. Migrations are 
> specific to your products and your app.
> 
> 
> >  reg LDAPUF versions...we hv LDAPUF vers
> 2.2beta
> > on old server. on the new system we hv installed
> > LDAPUF version 2.7.
> > following is the error i get when i access the
> URL
> >
> > Error : AttributeError
> > ErrorValue : findUser
> 
> I asked about the *full traceback*. This excerpt is
> useless.
> 
> -aj

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Authentication Problem with migration from Zope 2.6.1 to Zope 2.9.4

2006-09-08 Thread yogeen honnavar
hello andreas,
  thanks for the response. u said
Import/Export is supported between Identical
installations only, then can u pls tell me how to
migrate an application from an older version of zope
to a newer version ?
 reg LDAPUF versions...we hv LDAPUF vers 2.2beta
on old server. on the new system we hv installed
LDAPUF version 2.7. 
following is the error i get when i access the URL

Error : AttributeError
ErrorValue : findUser

   pls note that no authentication dialog pops up
unlike on old server. it is trying to run as Anonymous
User(i confirmed this by commenting authentication
part of the code..i was able to get to the home page).
   
Ur valuable suggestions will be greatly helpful.

   thanks and regards
   -Yogeen

 Please let me know what may be the problem ?

--- Andreas Jung <[EMAIL PROTECTED]> wrote:

> 
> 
> --On 7. September 2006 22:37:43 -0700 yogeen
> honnavar <[EMAIL PROTECTED]> 
> wrote:
> 
> > Dear users,
> >we have a zope application on an older
> > system running Redhat 7.2 and Zope 2.6.1 with
> python
> > 2.1. Now we wish to migrate the application to
> latest
> > stable relase of zope 2.9.4 with python 2.4.3
> >  we hv installed zope 2.9.4 and imported the
> > application through .zexp file.
> 
> Export/import is *only supported* between
> *identical*
> installations.
> 
> > this application uses
> > LDAPUserFolder for authenticating against an LDAP
> > server. After importing the application we
> recreated
> > LDAPUserFolder instance as per the instructions.
> Now
> > the problem is, when we access the application the
> > Authentication pop-up dialog is not coming up and
> the
> > application is trying to search the LDAP directory
> for.
> 
> L
> > Anonymous user and since the user does not exist
> in
> > LDAP it is returning error Error: findUser.
> > In the old zope server basic authentication
> dialog
> > pops up when we access the URL.
> > Can anyone suggest how to solve this problem ?
> How
> > to configure the application as protected
> resource(we
> > are using the built-in ZServer) so that
> authentication
> > dialog pops up when the URL is accessed ? any help
> > would be greatly appreciated.
> >
> 
> In every case you should provide reasonable version
> information
> about the installted LDAPUF versions and provide the
> related
> traceback..
> 
> -aj
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Hanging site

2006-09-08 Thread Chris Withers

David wrote:

- Browser just reports time out (not that the site is not available)


Too many negatives inside your brackets, please clarify...


- DeadlockDebugger does not respond either


I find that hard to believe...

I've tried packing the ZODB (which worked fine, but did not resolve the 
issue).


No, can't see that helping here.


I've run the fsrecover.py, but that didn't seem to find anything.


Again, irrelevent here.

I have now enabled the event.log 


?! You should ALWAYS be writing an event log...

and got this entry on the last "hangup":


2006-09-06T19:44:34 ERROR(200) ZServer uncaptured python exception, 
closing channel 212.96.102.29:3207 at 0x9c0326c channel#: 149 requests:> 
(exceptions.ValueError:HTTP headers invalid (too long) (got: 8760 bytes, 
allowed 8192 bytes 
[/sw1/packages/python235/lib/python2.3/asyncore.py|read|69] 
[/sw1/packages/python235/lib/python2.3/asyncore.py|handle_read_event|390] 
[/sw1/packages/python235/lib/python2.3/asynchat.py|handle_read|148] 
[/sw0/sbzope_3_2/lib/python/ZServer/HTTPServer.py|collect_incoming_data|378]) 


Ah, so you're exposing Zope to the big wide internet without a 
protective proxy like Apache in from?


d'oh.

Read the error message. People are trying to hack your server. Zope 
tries to prevent against it, but I'd still stick a defensive proxying 
configuration of Apache in front and see if the problem goes away..


Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope hands when database takes too long to respond

2006-09-08 Thread Chris Withers

Sinang, Danny wrote:

Hello,
 
We wrote an application (on Zope v2.7.6-final) that queries a MySQL

database via ZMySQLDA v2.0.8.
 
Whenever the MySQL server experiences heavy load, Zope seems to hang,

such that we can't even access the ZMI.


DeadlockDebugger can confirm what your problem actually is.


Is this a bug in version 2.7.6 or ZMySQLDA ?


Likely neither.


Or are there some settings I can tweak to adjust some database
connection timeout value ?


You might wanna ask on a MySQL list. Also follow others' advice to find 
out why you MySQL server isn't responding.


cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )