Re: [Zope-dev] determining database manager type from z database connection?
Kent Polk wrote: > > Is there a generic way to determine what 'brand' of database manager > a Zope database connection is connected to by interrogating the > connection object? ID: title: type: database_type is the 'brand' of the Zope DA. If you are connectet to a PostgreSQL DB using ZPyGreSQLDA you get 'PyGreSQL'. Using ZPoPyDA it returns 'PoPy'. That's not exactly what you are looking for but I hope it helps. Andreas -- ___ Andreas Heckel [EMAIL PROTECTED] LINUX is like a wigwam...no gates...no windows and an apache inside ;-) ___ 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] Zope Server hanging :-(
Michel Pelletier wrote: > > > > Those of you who are interested in looking at it, check out the > > ever-growing Zope Developer's Guide (shame on you if you haven't read > > it!). > > Ok, well maybe not shame considering you have to check it out of CVS. ;0 Just for folks who aren't following closely, Michel means that you can't see the most current new shiny development version without checking it out of CVS, but you *can* read a rough draft as of last week online. It's available on Zope.org at http://www.zope.org/Documentation/ZDG . ___ 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] Zope Server hanging :-(
On Thu, 3 May 2001, Michel Pelletier wrote: > On Thu, 3 May 2001, Chris McDonough wrote: > > > It's no problem, especially as Michel had insomnia last night and did > > it. ;-) > > My best stuff comes out when I can't sleep. > > Those of you who are interested in looking at it, check out the > ever-growing Zope Developer's Guide (shame on you if you haven't read > it!). Ok, well maybe not shame considering you have to check it out of CVS. ;0 -Michel ___ 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] Zope Server hanging :-(
On Thu, 3 May 2001, Chris McDonough wrote: > It's no problem, especially as Michel had insomnia last night and did > it. ;-) My best stuff comes out when I can't sleep. Those of you who are interested in looking at it, check out the ever-growing Zope Developer's Guide (shame on you if you haven't read it!). http://sourceforge.net/projects/zope-devel/ -Michel ___ 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] determining database manager type from z database connection?
Is there a generic way to determine what 'brand' of database manager a Zope database connection is connected to by interrogating the connection object? I couldn't see anything in the source and I also walked a connection object using the debugger and couldn't locate any non-specific way to determine this, outside of triggering an exception and observing the exception contents... ___ 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] CopySupport bug
There is a subtle bug in the CopySupport module that makes it impossible to copy and paste a folder that contains a ZCatalog with CatalogAware objects in indexed in the catalog also in that folder. The reason is as follows, CopySupport calls a hookable method manage_afterClone (which is hooked by CatalogAware). It does so after a copy is made of the object but BEFORE the copy is mounted in the ZODB. manage_afterClone in CatalogAware tries to reindex the object, and in doing so tries to derive its URL for use as the ZCatalog uid by calling absolute_url on the object. This fails of course because the object as yet has no URL because it is not mounted. The error reported is a KeyError on SERVER_URL. To make a long story somewhat shorter, I have a simple patch for this, but there is still one more subtle bit of behavior to take note of: When the ZCatalog is copied, all of its indexed data gets copied. Then the new copies of the objects index themselves. This means that the copied catalog has twice as many objects in it as the original. This bugged me at first, but it makes sense and I don't see any obvious solution that would be consistent. For those interested, the patch is here: http://classic.zope.org:8080/Collector/2205/view -- | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `--> ___ 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] another Zope hanging..
Christian Scholz writes: > I also now have some problems with a hanging zope. > > I got something like this in my stupid logfile: > > 2001-05-03T13:44:39 ERROR(200) ZServer uncaptured python exception, closing channel > (exceptions.OSError:[Errno 11] Die Ressource ist >zur Zeit nicht verf?gbar [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|poll|83] >[/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|handle_read_event|335] >[/opt/Zope-2.3.1-src/ZServer/medusa/select_trigger.py|handle_read|77] >[/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|287] >[/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|475]) What you see here is a traceback pressed into a single line. [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|475] e.g. means: you are in file "/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py" line "475" in function "recv". Dieter ___ 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] ANN: Proposal ContentNegotiation
From: "Toby Dickenson" <[EMAIL PROTECTED]> To: "'Andreas Jung'" <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 1:04 PM Subject: RE: [Zope-dev] ANN: Proposal ContentNegotiation > Your proposal suggests that published objects should generally return > pre-encoded objects in 8-bit strings. This is the one detail which in my > experience looks *wrong* and is very much dependant on my proposal. Not really - I only say that the internal character set is currently ascii/iso-8859-1. I did not mention that this will be the default character set in the future. Andreas ___ 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] another Zope hanging..
> Well, my problem might be that in my case most sql statement are done inside > some attribute provider of ZPatterns.. This is using ZSQL methods internally > but actually those then won't show up I guess.. Even if you weren't using ZPatterns, the error probably wouldn't jump out and say "here I am!" So I don't think there's much difference between using ZPatterns and not using ZPatterns. The process of detecting when something hangs is just like any other troubleshooting process, it's a matter of exclusion. If you notice that the request named "foobargorf/fleafang" *always* hangs, you investigate what it does, and try to reproduce it. If it's incidental, so be it, and move on to the next theory. > > I've also seen that some more recent version of the mysql stuff is around > and I am using this now.. > > The problem's also that I just have a few methods to invoke from the outside > which do lots of things by calling other object. Thus I might not really see > what's really causing the problem.. I hope though that my upgrade will show some > benefit.. The -M log perhaps won't show you the actual operation that's causing the hang, but it will show you the entry point into a routine which causes the hang. It's your job from there to track down the cause. This is just like debugging a program. You get an error somewhere, and you need to track it back to its root, which may be six levels up the call stack buried in some godforsaken regex. ;-) ___ 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] another Zope hanging..
Hi! > > most problems with hanging zope come from external RDBMS-access. > > Lots do, but lots don't... > > > You wont see anything useful in the logs because there are > > some objects published before the *sql-method is hanging. > > If you see a request come into ZServer, and you see the request go into > ZPublisher from ZServer, but ZPublisher never returns any data to ZServer, > that's an indication that something is wrong. A SQL method hanging would > look like this, it's the same thing as any other Zope component hanging. > > The "big-M" log is your friend, even in this case. As a matter of fact, > it's *especially* your friend in this case because it will be patterned > against one or a few methods, which is an easy problem to track down. Well, my problem might be that in my case most sql statement are done inside some attribute provider of ZPatterns.. This is using ZSQL methods internally but actually those then won't show up I guess.. I've also seen that some more recent version of the mysql stuff is around and I am using this now.. The problem's also that I just have a few methods to invoke from the outside which do lots of things by calling other object. Thus I might not really see what's really causing the problem.. I hope though that my upgrade will show some benefit.. (strangely on my development server these problems did not arise.. might have to check for any differences between the two..) I will keep cheking the -M anyway (as it seems all I can do.. ;-) cheers, Christian -- COM.lounge http://comlounge.net/ communication & design [EMAIL PROTECTED] ___ 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] another Zope hanging..
> Hi, > > most problems with hanging zope come from external RDBMS-access. Lots do, but lots don't... > You wont see anything useful in the logs because there are > some objects published before the *sql-method is hanging. If you see a request come into ZServer, and you see the request go into ZPublisher from ZServer, but ZPublisher never returns any data to ZServer, that's an indication that something is wrong. A SQL method hanging would look like this, it's the same thing as any other Zope component hanging. The "big-M" log is your friend, even in this case. As a matter of fact, it's *especially* your friend in this case because it will be patterned against one or a few methods, which is an easy problem to track down. ___ 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] another Zope hanging..
Hi, most problems with hanging zope come from external RDBMS-access. You wont see anything useful in the logs because there are some objects published before the *sql-method is hanging. If you have a monitor program for your database, you see many blocks on tables or rows during this times. I expect it with DB-adapters not fully thread aware and - with to high timeout. In fact it seems we need timeoutsockets and asynchronous rdb-access. If one thread is hanging, in the scope of 120 instructions, zope has to wait before the global interpreter lock frees. So if its stuck in the call of a C library (database adaptors are most in C) it cannot continue until the call returns. Regards Tino Wildenhain --On Donnerstag, 3. Mai 2001 17:51 +0200 Christian Scholz <[EMAIL PROTECTED]> wrote: > Hi! > >> Alright... so you're getting an OSError 11, and you're using Zope 2.3.1. >> >> errno 11 is "temporarily unavailable" which means about as much as >> "foobar feeblefar" as far as I'm concerned ;-). > > great :) > >> Though you've said the -M log isn't helpful here, I think it is. If >> this is happening when a certain method is hit, or at a certain time of >> day, or when a certain number of connections are reached, etc., the -M >> log in combination with requestprofiler can help determine this. >> Otherwise it's a guessing game. > > ok, just thought that maybe some exception can be caught.. I will try to > use requestprofiler now, though I checked the -M log before and around > that time there was no obvious problem.. (also it's not loaded at the > moment and it's happening here and then, don't see a pattern there..) > > I will check (and maybe change the mysql adapter, as I recently had > problems with it on a sun machine, too). > > thanks anyway :) > > Christian > > > ___ > 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] ANN: Proposal ContentNegotiation
On Thu, 03 May 2001 17:14:28 +0100, Toby Dickenson <[EMAIL PROTECTED]> wrote: >On Thu, 3 May 2001 11:45:58 -0400, "Andreas Jung" ><[EMAIL PROTECTED]> wrote: >> http://dev.zope.org/Wikis/DevSite/Proposals/HTTPContentNegotiation >http://www.zope.org/Members/htrd/wstring > >Ive expressed before that I would be more than happy for these to be >rolled into the Zope core, and they do cover a large part of your CSN >problem (plus several related problems that you havent realised >yet. ;-) > I should also mention. http://dev.zope.org/Wikis/DevSite/Proposals/UnicodeSupport which is my original proposal to include optional Unicode Support in the 2.3.0 release. Eventually only the first half of that proposal was implemented, that is support for python 2.0 but not unicode. This proposal is still the best overview of what my patch achieves. Toby Dickenson [EMAIL PROTECTED] ___ 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] ANN: Proposal ContentNegotiation
On Thu, 3 May 2001 11:45:58 -0400, "Andreas Jung" <[EMAIL PROTECTED]> wrote: >Hi folks, > >feel free to review and comment the proposal for extending the content >negotiation capabilities of Zope: > > http://dev.zope.org/Wikis/DevSite/Proposals/HTTPContentNegotiation > >Cheers, >Andreas >Digital Creations Andreas, Are you aware that I have a mature patch to give ZPublisher full Unicode support? It has been stable for six months, and is being used in at least two commercial products. http://www.zope.org/Members/htrd/wstring Ive expressed before that I would be more than happy for these to be rolled into the Zope core, and they do cover a large part of your CSN problem (plus several related problems that you havent realised yet. ;-) Toby Dickenson [EMAIL PROTECTED] ___ 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] another Zope hanging..
Hi! > Alright... so you're getting an OSError 11, and you're using Zope 2.3.1. > > errno 11 is "temporarily unavailable" which means about as much as "foobar > feeblefar" as far as I'm concerned ;-). great :) > Though you've said the -M log isn't helpful here, I think it is. If this is > happening when a certain method is hit, or at a certain time of day, or when > a certain number of connections are reached, etc., the -M log in combination > with requestprofiler can help determine this. Otherwise it's a guessing > game. ok, just thought that maybe some exception can be caught.. I will try to use requestprofiler now, though I checked the -M log before and around that time there was no obvious problem.. (also it's not loaded at the moment and it's happening here and then, don't see a pattern there..) I will check (and maybe change the mysql adapter, as I recently had problems with it on a sun machine, too). thanks anyway :) Christian ___ 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] ANN: Proposal ContentNegotiation
Hi folks, feel free to review and comment the proposal for extending the content negotiation capabilities of Zope: http://dev.zope.org/Wikis/DevSite/Proposals/HTTPContentNegotiation Cheers, Andreas Digital Creations ___ 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] another Zope hanging..
Alright... so you're getting an OSError 11, and you're using Zope 2.3.1. errno 11 is "temporarily unavailable" which means about as much as "foobar feeblefar" as far as I'm concerned ;-). Though you've said the -M log isn't helpful here, I think it is. If this is happening when a certain method is hit, or at a certain time of day, or when a certain number of connections are reached, etc., the -M log in combination with requestprofiler can help determine this. Otherwise it's a guessing game. - C - Original Message - From: "Christian Scholz" <[EMAIL PROTECTED]> To: "Chris McDonough" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "Christian Scholz" <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 11:22 AM Subject: Re: [Zope-dev] another Zope hanging.. > Hi! > > > What Python version are you using? > > That's 1.5.2 > > MySQLDA is MySQL-python-0.3.3.tar.gz and ZMySQLDA-2.0.4.tar.gz > > (if this makes any problems..) > > Zope is 2.3.1 as suerly have noticed.. :) > > cheers, > christian > > > > - Original Message - > > From: "Christian Scholz" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, May 03, 2001 11:05 AM > > Subject: [Zope-dev] another Zope hanging.. > > > > > > > Hi! > > > > > > I also now have some problems with a hanging zope. > > > > > > I got something like this in my stupid logfile: > > > > > > 2001-05-03T13:44:39 ERROR(200) ZServer uncaptured python exception, > > closing channel > > (exceptions.OSError:[Errno 11] Die Ressource ist zur Zeit nicht verf?gbar > > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|poll|83] > > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|handle_read_event|335] > > [/opt/Zope-2.3.1-src/ZServer/medusa/select_trigger.py|handle_read|77] > > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|287] > > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|475]) > > > > > > Now my question is simply if I can catch this exception somewhere and get > > some traceback etc. > > > Actually I am quite confused from the inner workings of medusa so I dunno > > where to start > > > searching. > > > > > > Can anyone help? > > > > > > (I know about the -M logging but unfortunately this does not help that > > much..) > > > > > > cheers, > > > Christian > > > > > > -- > > > COM.lounge http://comlounge.net/ > > > communication & design [EMAIL PROTECTED] > > > > > > ___ > > > 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 ) > > > > > > > -- > COM.lounge http://comlounge.net/ > communication & design [EMAIL PROTECTED] > > ___ > 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] another Zope hanging..
> > Maybe another general question: > > How are exceptions handled which appear in your own products and you don't catch them? > Is there some except somewhere "on top" ? Yes, in ZPublisher, there's an "exception hook". I don't know more about it than that. > > How does this look if you're using ZPatterns with your own attribute providers (as I do > with my sql attribute provider). Are these all handled somehow? > (usually I get some sort of traceback on the console/stupid log is something goes wrong > there and I don't handle it myself.. hope it's in general..) No idea, sorry. I'd imagine they're handled by the same exception handler. ___ 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] another Zope hanging..
Maybe another general question: How are exceptions handled which appear in your own products and you don't catch them? Is there some except somewhere "on top" ? How does this look if you're using ZPatterns with your own attribute providers (as I do with my sql attribute provider). Are these all handled somehow? (usually I get some sort of traceback on the console/stupid log is something goes wrong there and I don't handle it myself.. hope it's in general..) cheers, Christian On Thu, May 03, 2001 at 11:23:54AM -0400, Chris McDonough wrote: > What Python version are you using? > > - Original Message - > From: "Christian Scholz" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, May 03, 2001 11:05 AM > Subject: [Zope-dev] another Zope hanging.. > > > > Hi! > > > > I also now have some problems with a hanging zope. > > > > I got something like this in my stupid logfile: > > > > 2001-05-03T13:44:39 ERROR(200) ZServer uncaptured python exception, > closing channel > (exceptions.OSError:[Errno 11] Die Ressource ist zur Zeit nicht verf?gbar > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|poll|83] > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|handle_read_event|335] > [/opt/Zope-2.3.1-src/ZServer/medusa/select_trigger.py|handle_read|77] > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|287] > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|475]) > > > > Now my question is simply if I can catch this exception somewhere and get > some traceback etc. > > Actually I am quite confused from the inner workings of medusa so I dunno > where to start > > searching. > > > > Can anyone help? > > > > (I know about the -M logging but unfortunately this does not help that > much..) > > > > cheers, > > Christian > > > > -- > > COM.lounge http://comlounge.net/ > > communication & design [EMAIL PROTECTED] > > > > ___ > > 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 ) -- COM.lounge http://comlounge.net/ communication & design [EMAIL PROTECTED] ___ 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] another Zope hanging..
Hi! > What Python version are you using? That's 1.5.2 MySQLDA is MySQL-python-0.3.3.tar.gz and ZMySQLDA-2.0.4.tar.gz (if this makes any problems..) Zope is 2.3.1 as suerly have noticed.. :) cheers, christian > - Original Message - > From: "Christian Scholz" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, May 03, 2001 11:05 AM > Subject: [Zope-dev] another Zope hanging.. > > > > Hi! > > > > I also now have some problems with a hanging zope. > > > > I got something like this in my stupid logfile: > > > > 2001-05-03T13:44:39 ERROR(200) ZServer uncaptured python exception, > closing channel > (exceptions.OSError:[Errno 11] Die Ressource ist zur Zeit nicht verf?gbar > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|poll|83] > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|handle_read_event|335] > [/opt/Zope-2.3.1-src/ZServer/medusa/select_trigger.py|handle_read|77] > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|287] > [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|475]) > > > > Now my question is simply if I can catch this exception somewhere and get > some traceback etc. > > Actually I am quite confused from the inner workings of medusa so I dunno > where to start > > searching. > > > > Can anyone help? > > > > (I know about the -M logging but unfortunately this does not help that > much..) > > > > cheers, > > Christian > > > > -- > > COM.lounge http://comlounge.net/ > > communication & design [EMAIL PROTECTED] > > > > ___ > > 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 ) > > > -- COM.lounge http://comlounge.net/ communication & design [EMAIL PROTECTED] ___ 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] Zope Server hanging :-(
Please apply this patch, sorry! *** requestprofiler.py 2001/04/26 02:51:49 1.3 --- requestprofiler.py 2001/05/03 15:12:13 *** *** 269,276 i2 = i + 1 v1 = all[i] v2 = all[i2] ! if v1 == "NA" or v2 == "NA": return "I" ! else: return (all[i] + all[i2]) / 2 def total(self): t = 0 --- 269,276 i2 = i + 1 v1 = all[i] v2 = all[i2] ! if type(v1) is type('') or type(v2) is type(''): return "I" ! else: return (v1 + v2) / 2 def total(self): t = 0 - Original Message - From: "Chris Withers" <[EMAIL PROTECTED]> To: "Chris McDonough" <[EMAIL PROTECTED]> Cc: "Tim McLaughlin" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 10:35 AM Subject: Re: [Zope-dev] Zope Server hanging :-( > Chris McDonough wrote: > > > > You can also use cumulative reporting to sort by "hangs": > > > > requestprofiler.py your.log.file --cumulative --sort=hangs > > python requestprofiler.py my.log --cumulative --sort=hangs > out2.txt > > resulted in: > > Traceback (innermost last): > File "requestprofiler.py", line 586, in ? > analyze(open(sys.argv[1]), top, sortf, start, end, mode) > File "requestprofiler.py", line 346, in analyze > write(dict, top) > File "requestprofiler.py", line 360, in write > print str(stat)[:78] > File "requestprofiler.py", line 226, in __str__ > body = ( > File "requestprofiler.py", line 273, in median > else: return (all[i] + all[i2]) / 2 > TypeError: number coercion failed > > Any ideas? > > 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 )
Re: [Zope-dev] another Zope hanging..
What Python version are you using? - Original Message - From: "Christian Scholz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 11:05 AM Subject: [Zope-dev] another Zope hanging.. > Hi! > > I also now have some problems with a hanging zope. > > I got something like this in my stupid logfile: > > 2001-05-03T13:44:39 ERROR(200) ZServer uncaptured python exception, closing channel (exceptions.OSError:[Errno 11] Die Ressource ist zur Zeit nicht verf?gbar [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|poll|83] [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|handle_read_event|335] [/opt/Zope-2.3.1-src/ZServer/medusa/select_trigger.py|handle_read|77] [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|287] [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|475]) > > Now my question is simply if I can catch this exception somewhere and get some traceback etc. > Actually I am quite confused from the inner workings of medusa so I dunno where to start > searching. > > Can anyone help? > > (I know about the -M logging but unfortunately this does not help that much..) > > cheers, > Christian > > -- > COM.lounge http://comlounge.net/ > communication & design [EMAIL PROTECTED] > > ___ > 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] another Zope hanging..
Hi! I also now have some problems with a hanging zope. I got something like this in my stupid logfile: 2001-05-03T13:44:39 ERROR(200) ZServer uncaptured python exception, closing channel (exceptions.OSError:[Errno 11] Die Ressource ist zur Zeit nicht verf?gbar [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|poll|83] [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|handle_read_event|335] [/opt/Zope-2.3.1-src/ZServer/medusa/select_trigger.py|handle_read|77] [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|287] [/opt/Zope-2.3.1-src/ZServer/medusa/asyncore.py|recv|475]) Now my question is simply if I can catch this exception somewhere and get some traceback etc. Actually I am quite confused from the inner workings of medusa so I dunno where to start searching. Can anyone help? (I know about the -M logging but unfortunately this does not help that much..) cheers, Christian -- COM.lounge http://comlounge.net/ communication & design [EMAIL PROTECTED] ___ 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] Zope Server hanging :-(
Chris McDonough wrote: > > You can also use cumulative reporting to sort by "hangs": > > requestprofiler.py your.log.file --cumulative --sort=hangs python requestprofiler.py my.log --cumulative --sort=hangs > out2.txt resulted in: Traceback (innermost last): File "requestprofiler.py", line 586, in ? analyze(open(sys.argv[1]), top, sortf, start, end, mode) File "requestprofiler.py", line 346, in analyze write(dict, top) File "requestprofiler.py", line 360, in write print str(stat)[:78] File "requestprofiler.py", line 226, in __str__ body = ( File "requestprofiler.py", line 273, in median else: return (all[i] + all[i2]) / 2 TypeError: number coercion failed Any ideas? 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 )
Re: [Zope-dev] Zope Server hanging :-(
It's no problem, especially as Michel had insomnia last night and did it. ;-) Tim McLaughlin wrote: > > Sorry, Chris M, didn't mean to get you stuck in the documentation torture > chamber ;-) > > Cheers, > Tim > > -Original Message- > From: Michel Pelletier [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 02, 2001 11:58 PM > To: Chris McDonough > Cc: Tim McLaughlin; Chris Withers; [EMAIL PROTECTED] > Subject: Re: [Zope-dev] Zope Server hanging :-( > > On Wed, 2 May 2001, Chris McDonough wrote: > > > The docs (available via the --help switch) go into some of this detail, > but > > I agree that a narrative explaining how to approach it from a functional > > perspective would be a good thing. > > This should go in the debuggin and testing chapter of the dev guide. > Wanna take a stab? > > -Michel ___ 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] Zope Server hanging :-(
Sorry, Chris M, didn't mean to get you stuck in the documentation torture chamber ;-) Cheers, Tim -Original Message- From: Michel Pelletier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 11:58 PM To: Chris McDonough Cc: Tim McLaughlin; Chris Withers; [EMAIL PROTECTED] Subject: Re: [Zope-dev] Zope Server hanging :-( On Wed, 2 May 2001, Chris McDonough wrote: > The docs (available via the --help switch) go into some of this detail, but > I agree that a narrative explaining how to approach it from a functional > perspective would be a good thing. This should go in the debuggin and testing chapter of the dev guide. Wanna take a stab? -Michel ___ 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] Zope Server hanging: DataPoint
Chris Withers wrote: > > Good morning, I presume? :-) Present! > > This probably isn't meaningful... unless it is. ;-) > > Huh? This is a Jim Fultonism. In English, it means this is probably not meaningful. > > Conflict errors > > are normal... I wish they wouldn't be so "big" and have an UPPERCASE > > word in their description. > > OK, but I did notice them just before the server died. Maybe now would be a good > time to run the analyser script. > Unfortunately, I'd probably be expected to 'clean' the URLs of sensitive > information. Well the analyzer script only shows the first 20 or so chars of the URL by default unless you pass it the --verbose argument, so this might serve to do some "cleaning". Also, getting rid of the URL altogether is something you can do by using Unix "cut" or on windows putting the results of the analyzer script into Excel and deleting the column with the URL in it. > Hurm, d'ya think it'd be worth it? It's up to you, but I think so. - C ___ 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] Zope Server hanging: DataPoint
Good morning, I presume? :-) Chris McDonough wrote: > > This probably isn't meaningful... unless it is. ;-) Huh? > Conflict errors > are normal... I wish they wouldn't be so "big" and have an UPPERCASE > word in their description. OK, but I did notice them just before the server died. Maybe now would be a good time to run the analyser script. Unfortunately, I'd probably be expected to 'clean' the URLs of sensitive information. Hurm, d'ya think it'd be worth it? 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 )
Re: [Zope-dev] Zope Server hanging: DataPoint
This probably isn't meaningful... unless it is. ;-) Conflict errors are normal... I wish they wouldn't be so "big" and have an UPPERCASE word in their description. Chris Withers wrote: > > Hmmm... saw these in the stupid log, just before the server crashed: > > -- > 2001-05-03T10:09:34 INFO(0) Z2 CONFLICT Competing writes at, > /VirtualHostBase/http/server.nipltd.com:80/VirtualHostRoot/folder/object > Traceback (innermost last): > File /usr/local/zope/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, line > 171, in publish > File /usr/local/zope/Zope-2.3.2-src/lib/python/ZPublisher/mapply.py, line 160, > in mapply > File /usr/local/zope/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, line > 112, in call_object > > File /usr/local/zope/Zope-2.3.2-src/lib/python/ZODB/Connection.py, line 524, > in setstate > ConflictError: ("'\\000\\000\\000\\000\\000\\020\\036\\304'", ' Products.AProduct.Utility.AClass at 84ea878>') > > -- > 2001-05-03T10:09:42 INFO(0) Z2 CONFLICT Competing writes at, > /VirtualHostBase/http/server.nipltd.com:80/VirtualHostRoot/folder/object > Traceback (innermost last): > File /usr/local/zope/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, line > 175, in publish > File /usr/local/zope/Zope-2.3.2-src/lib/python/Zope/__init__.py, line 235, in > commit > File /usr/local/zope/Zope-2.3.2-src/lib/python/ZODB/Transaction.py, line 300, > in commit > File /usr/local/zope/Zope-2.3.2-src/lib/python/ZODB/Connection.py, line 281, > in commit > ConflictError: '\000\000\000\000\000\020\037\245' > > Could this bring it down? Should it? How can I track it down further? > > 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] Zope Server hanging: DataPoint
Hmmm... saw these in the stupid log, just before the server crashed: -- 2001-05-03T10:09:34 INFO(0) Z2 CONFLICT Competing writes at, /VirtualHostBase/http/server.nipltd.com:80/VirtualHostRoot/folder/object Traceback (innermost last): File /usr/local/zope/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/Zope-2.3.2-src/lib/python/ZPublisher/mapply.py, line 160, in mapply File /usr/local/zope/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, line 112, in call_object File /usr/local/zope/Zope-2.3.2-src/lib/python/ZODB/Connection.py, line 524, in setstate ConflictError: ("'\\000\\000\\000\\000\\000\\020\\036\\304'", '') -- 2001-05-03T10:09:42 INFO(0) Z2 CONFLICT Competing writes at, /VirtualHostBase/http/server.nipltd.com:80/VirtualHostRoot/folder/object Traceback (innermost last): File /usr/local/zope/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/local/zope/Zope-2.3.2-src/lib/python/Zope/__init__.py, line 235, in commit File /usr/local/zope/Zope-2.3.2-src/lib/python/ZODB/Transaction.py, line 300, in commit File /usr/local/zope/Zope-2.3.2-src/lib/python/ZODB/Connection.py, line 281, in commit ConflictError: '\000\000\000\000\000\020\037\245' Could this bring it down? Should it? How can I track it down further? 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] Grrr... Python Scripts
Hi Evan & zope-dev'ers, Hope you can help, and pre-emptive apologies for the bad mood I'm in :-S I want to do: try: acatalog.searchResults(aDict) except CatalogError,e: print "Something bad happened: ",e Where should I import CatalogError from? And _please_ don't tell me I have to go through some convoluted security process to do this :-( 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 )