[Zope] OSError along with FSSession...
Dear Zope Users: I have upgraded to FSSession 0.4.2 lately and occasionally run into the same problem several times. Each time it costs me a zope down. I do really need some help... Zope complains an error type "OSError" and throws the error value saying [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' occasionally since a recent upgrade of FSSession product to 0.4.2. Following that error will be a series of TransactionErrors for each and every request Zope received. And only a zope restart could help zope resume its operations. Since this error only comes up occasionally, I'm completely clueless on solving it. My environment is RedHat Linux 6.2 + Zope 2.1.6. The traceback information looks like this... Traceback (innermost last): File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 169, in publish File /usr/local/Zope-2.1.6-src/lib/python/ZODB/Transaction.py, line 275, in co mmit File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/TM.py, line 120, in t pc_finish (Object: TM) File /usr/local/zope/lib/python/Products/FSSession/FSSession.py, line 87, in _ finish (Object: TM) File /usr/local/zope/lib/python/Products/FSSession/FSSession.py, line 208, in final_commit (Object: FSSession) OSError: [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' Any help will be very appreciative! Chien-pin ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] OSError along with FSSession...
Chien-Pin Wang writes: > Zope complains an error type "OSError" and throws the error value > saying [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' > occasionally since a recent upgrade of FSSession product to 0.4.2. > Following that error will be a series of TransactionErrors for each and > every request Zope received. And only a zope restart could help zope > resume its operations. Since this error only comes up occasionally, I'm > completely clueless on solving it. > > File /usr/local/zope/lib/python/Products/FSSession/FSSession.py, line > 208, in > final_commit > (Object: FSSession) > OSError: [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' Maybe, a bug in "FSSession.final_commit". Look at line 208 of "FSSession.py". I expect some lines before, a filename is constructed for the above directory and session specific data. For some reason, the session specific data leads to an empty filename. Therefore, the operation in line 208 (probably an "os.rename" or other "os" operation) gets the directory rather than a file path. You have two options: * analyse, why the session data leads to an empty filename (this may be difficult) * add a try: ... except: pass around line 208 and wait for the FSSession author to analyse and fix the problem. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] OSError along with FSSession...
On Wed, 6 Sep 2000, Chien-Pin Wang wrote: > > Dear Zope Users: > > I have upgraded to FSSession 0.4.2 lately and occasionally run into > the same problem several times. Each time it costs me a zope down. I do > really need some help... > > > Zope complains an error type "OSError" and throws the error value > saying [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' > occasionally since a recent upgrade of FSSession product to 0.4.2. I have managed to reproduce the error by setting SessionUID to an empty string before calling FSSession. Check for situations where you clear the REQUEST variables before calling FSSession. In the meantime I will add some checks on the input values of SessionUID. I will probably release a fixed version during the weekend if not sooner. Pavlos ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )