How to recover from the 2GB limit in Windows?
This is the error messages I get, causing a PANIC startup exception: 2003-10-23T12:29:47 PANIC(300) z2 Startup exception Traceback (innermost last): File C:\Archivos de programa\Web261\z2.py, line 582, in ? File C:\ARCHIV~1\WEB261\lib\python\Zope\__init__.py, line 46, in startup (Object: startup) File C:\ARCHIV~1\WEB261\lib\python\Zope\App\startup.py, line 51, in startup File C:\ARCHIV~1\WEB261\lib\python\ZODB\FileStorage.py, line 272, in __init__ (Object: C:\Archivos de programa\Web261\var\Data.fs) File C:\ARCHIV~1\WEB261\lib\python\ZODB\FileStorage.py, line 473, in _restore_index (Object: C:\Archivos de programa\Web261\var\Data.fs) File C:\ARCHIV~1\WEB261\lib\python\ZODB\FileStorage.py, line 374, in _sane (Object: C:\Archivos de programa\Web261\var\Data.fs) IOError: (0, 'Error') I just didn't noticed how close I was to the 2GB limit, and now Data.fs is 2,097,371 bytes. I'm using Zope 2.6.1 on Python 2.1.3. My RAM is 512MB Thanks in advance, Ausum
Ausum Studio wrote:
This is the error messages I get, causing a PANIC startup exception:
Depending on your setup, the "easiest" solutions might be to move it to a Linux install and then pack it there. regards Max M
Looking for a quick tip here: :) Can I rely on current Python 2.1.3 RPMs or do I need to build it with the large_file option on, as in old releases? Ausum ----- Original Message ----- From: "Max M" <maxm@mxm.dk> To: "Ausum Studio" <ausum_studio@hotmail.com> Cc: <zope@zope.org> Sent: Thursday, October 23, 2003 1:20 PM Subject: Re: [Zope] How to recover from the 2GB limit in Windows?
Ausum Studio wrote:
This is the error messages I get, causing a PANIC startup exception:
Depending on your setup, the "easiest" solutions might be to move it to a Linux install and then pack it there.
regards Max M
_______________________________________________ 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 )
You can probably find out by doing this: [chrism@beach test]$ python Python 2.2.3 (#1, Jul 28 2003, 12:56:56) [GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
from test import test_largefile create large file via seek (may be sparse file) ... check file size with os.fstat 2500000001L =?= 2500000001L ... yes check file size with os.stat 2500000001L =?= 2500000001L ... yes play around with seek() and read() with the built largefile 0L =?= 0 ... yes 'z' =?= 'z' ... yes 1L =?= 1 ... yes ...
It will print an error message on failure or will print a bunch of useless stuff on success (as above). On Thu, 2003-10-23 at 15:13, Ausum Studio wrote:
Looking for a quick tip here: :)
Can I rely on current Python 2.1.3 RPMs or do I need to build it with the large_file option on, as in old releases?
Ausum
----- Original Message ----- From: "Max M" <maxm@mxm.dk> To: "Ausum Studio" <ausum_studio@hotmail.com> Cc: <zope@zope.org> Sent: Thursday, October 23, 2003 1:20 PM Subject: Re: [Zope] How to recover from the 2GB limit in Windows?
Ausum Studio wrote:
This is the error messages I get, causing a PANIC startup exception:
Depending on your setup, the "easiest" solutions might be to move it to a Linux install and then pack it there.
regards Max M
_______________________________________________ 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 )
On Thu, Oct 23, 2003 at 08:20:29PM +0200, Max M wrote:
Ausum Studio wrote:
This is the error messages I get, causing a PANIC startup exception:
Depending on your setup, the "easiest" solutions might be to move it to a Linux install and then pack it there.
Contrary to some belief, windows has been ahead of Linux here for years :-) NTFS has supported large files and filesystems (4 TB) since 1994. If there is a problem, I suspect it is in the python build, not in Windows itself. (assuming you use a modern windows version and not a W9x variant) -- __________________________________________________ "Nothing is as subjective as reality" Reinoud van Leeuwen reinoud.v@n.leeuwen.net http://www.xs4all.nl/~reinoud __________________________________________________
You're right, Reinoud. I should have built Python 2.1.3 with the famous large file support on, but for several reasons I'm not used to build stuff in W2K, so I went to Linux RH9 in the way Max suggested. I enabled LFS before building both Python and Zope. Then copied all the products from W2k to Linux; then started Zope; packaged the offending Data.fs; and then moved it back to W2K.. Fortunately it worked. Thanks a lot, Ausum ----- Original Message ----- From: "Reinoud van Leeuwen" <reinoud.v@n.leeuwen.net> To: <zope@zope.org> Sent: Thursday, October 23, 2003 2:29 PM Subject: Re: [Zope] How to recover from the 2GB limit in Windows?
On Thu, Oct 23, 2003 at 08:20:29PM +0200, Max M wrote:
Ausum Studio wrote:
This is the error messages I get, causing a PANIC startup exception:
Depending on your setup, the "easiest" solutions might be to move it to a Linux install and then pack it there.
Contrary to some belief, windows has been ahead of Linux here for years :-) NTFS has supported large files and filesystems (4 TB) since 1994. If there is a problem, I suspect it is in the python build, not in Windows itself.
(assuming you use a modern windows version and not a W9x variant)
-- __________________________________________________ "Nothing is as subjective as reality" Reinoud van Leeuwen reinoud.v@n.leeuwen.net http://www.xs4all.nl/~reinoud __________________________________________________
_______________________________________________ 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 )
participants (4)
-
Ausum Studio -
Chris McDonough -
Max M -
Reinoud van Leeuwen