On Aug 23, 2007, at 11:06 AM, Mike Orr wrote:

>
> On 8/22/07, Max Ischenko <[EMAIL PROTECTED]> wrote:
>>  About 1-3 times a day I receive the following worrying error on my
>> production site deployment (traceback below). Any ideas what it  
>> may mean and
>> how it could be fixed?
>>
> '/home/dou/lib/python2.4/site-packages/Beaker-0.7.4-py2.4.egg/ 
> beaker/container.py',
>> line 172 in open
>>  if self.openers == 0: self.do_open(flags)
>> File '/home/dou/lib/python2.4/site-packages/Beaker-
>> 0.7.4-py2.4.egg/beaker/container.py', line 714 in do_open
>>  self.hash = cPickle.load(fh)
>> EOFError:
>
> I'm getting the same error on a Quixote site; not Beaker but it does
> use pickle.  And  it only happens in a certain section of the site
> that's generated by RoboHelp (i.e., static files with Javascript and
> frames).  Oddly, no users have complained even though the error log
> shows it happening several times a day.  I think some users are
> getting "Internal Server Error".  Since this portion of the site
> doesn't need sessions I was going to bypass the code, but that will
> require hacking Quixote so I haven't yet.  I was going to mention it
> for Pylons, that there should be a way to bypass sessions for certain
> URLs as a stopgap in case problems like this occur.
>
> I assume it's a concurrency issue, but I don't see why this part of
> the site would have greater concurrency than elsewhere.

This issue was reported recently, and Ben committed a fix for it  
that's included in Beaker 0.7.5. Now any potential exceptions raised  
by cPickle.load are caught and Beaker continues on assuming there was  
no data loaded.

As to why the file containing the Pickle data was corrupted in the  
first place, I don't know. It could be due to a previous app crash  
that prevented cPickle from finishing its write, or possibly by  
another Beaker bug.

Neither Ben nor I could reproduce this ourselves (unless I explicitly  
corrupted a session file myself). If you're able to reproduce this  
easily, I'd be curious to see what the file causing the EOFError  
contained. You could backup your data dir for later investigation  
before upgrading Beaker.

--
Philip Jenvey



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to