Re: [Repoze-dev] bfg concurrency problem with SqlAlchemy, SOLVED

2010-08-18 Thread Chris Withers
Iain Duncan wrote: > I was erroneously trying to re-create mappers on each request when my > abstract model was being created. I had reasons for this that I won't > detail here, but suffice it to say it was a terrible idea because > mappers in SA are globa, so if you make a call to clear_mappers

Re: [Repoze-dev] bfg concurrency problem with SqlAlchemy, SOLVED

2010-08-18 Thread Iain Duncan
Solved, posting in case someone googles this one day. I was erroneously trying to re-create mappers on each request when my abstract model was being created. I had reasons for this that I won't detail here, but suffice it to say it was a terrible idea because mappers in SA are globa, so if you mak

[Repoze-dev] bfg concurrency problem with SqlAlchemy, uh-oh

2010-08-18 Thread Iain Duncan
I'm sure this is my fault, but hoping someone has helpful suggestions. have figured out that my weird issue happens when two requests hit the paster server serving my app too quickly. When I put a breakpoint in my javascript debugger, and manually separate the ajax requests in time, I don't have a

Re: [Repoze-dev] repoze.bfg random intermittent server errors fetching static resources

2010-08-18 Thread Iain Duncan
On Wed, Aug 18, 2010 at 4:28 PM, Chris Withers wrote: > Iain Duncan wrote: > >> FWIW, I can sit there and hit reload, and get totally different responses >> randomly, sometimes my bfg methods return what they are supposed to, and >> others I get the 500s. >> Could there be a connection with using

Re: [Repoze-dev] repoze.bfg random intermittent server errors fetching static resources

2010-08-18 Thread Chris Withers
Iain Duncan wrote: > FWIW, I can sit there and hit reload, and get totally different > responses randomly, sometimes my bfg methods return what they are > supposed to, and others I get the 500s. > > Could there be a connection with using resource directory overloads in > the zcml? It would b

Re: [Repoze-dev] repoze.bfg random intermittent server errors fetching static resources

2010-08-18 Thread Iain Duncan
On Wed, Aug 18, 2010 at 4:26 PM, Iain Duncan wrote: > Maybe some of this well help, I'm serving with paster serve --reload ( > though removing reload doesn't seem to help ). > > It definitely seems like paster and/or bfg are not keeping up for some > reason ( could be me! ). In my calendar app, a

Re: [Repoze-dev] repoze.bfg random intermittent server errors fetching static resources

2010-08-18 Thread Iain Duncan
Maybe some of this well help, I'm serving with paster serve --reload ( though removing reload doesn't seem to help ). It definitely seems like paster and/or bfg are not keeping up for some reason ( could be me! ). In my calendar app, a ton of static requests are made very quickly to get all the bi

Re: [Repoze-dev] repoze.bfg random intermittent server errors fetching static resources

2010-08-18 Thread Charlie Clark
Am 19.08.2010, 00:34 Uhr, schrieb Iain Duncan : > However, a lot of the time, seemingly random static request just get > served > up an internal server error 500 by bfg. I can't see why, sometimes I hit > reload and it works. If I copy the url into another browser window, it > *always* works. Bu

Re: [Repoze-dev] repoze.bfg random intermittent server errors fetching static resources

2010-08-18 Thread Chris McDonough
Sorry, not here. It works 100% of the time for us, at least in all the apps we've deployed. - C On Wed, 2010-08-18 at 15:34 -0700, Iain Duncan wrote: > Hi everyone, I have an app that I have set up to use the bfg resources > facility for serving static files. I'm pretty sure I've done it right,

[Repoze-dev] repoze.bfg random intermittent server errors fetching static resources

2010-08-18 Thread Iain Duncan
Hi everyone, I have an app that I have set up to use the bfg resources facility for serving static files. I'm pretty sure I've done it right, because most of the time everything works. However, a lot of the time, seemingly random static request just get served up an internal server error 500 by bf