[Zope] Zope FTP - OverflowError: requested number of bytes is more than a Python string can hold
Andreas Jung
lists at zopyx.com
Fri Dec 4 06:59:35 EST 2009
And here is a nice comment within marshaller.py:
93 def demarshall(self, obj, data, **kw):$
94 if kw.has_key('file'):$
95 if not data:$
96 # XXX Yuck! Shouldn't read the whole file, never.$
97 # OTOH, if you care about large files, you should be$
98 # using the PrimaryFieldMarshaller or something$
99 # similar.$
100 data = kw['file'].read()$
101 del kw['file']$
So when this is your own content-types: it's broken and should likely
use PrimaryFieldMarshaller, otherwise: Plone is guilty one.
In general I would upload large files to Zope/Plone only w/ blob support
or iw.fss support (Plone)
Andreas
Am 04.12.09 12:53, schrieb Andreas Jung:
> You're trying to upload a 5GB file into Zope?
>
> Andreas
>
> Am 04.12.09 12:47, schrieb Jan Schulze:
>
>> Hi all,
>>
>> I am are using ZServer/Medusa for FTP-Uploads to our ZODB. This works for smaller files, but the above error appears in instance.log, when using a ~5 GB file.
>>
>> There's probably nothing I can do about it, as it's an internal python marshalling limit. Or would there be a way to make uploading big files work?
>>
>>
>> This is the complete error message from instance.log:
>>
>> 2009-12-04T12:34:49 ERROR Zope.SiteErrorLog http://0.0.0.0/Zope2/sara/data/RudSoil_vs_lssu_160807.rma/PUT
>> Traceback (innermost last):
>> Module ZPublisher.Publish, line 119, in publish
>> Module ZPublisher.mapply, line 88, in mapply
>> Module ZPublisher.Publish, line 42, in call_object
>> Module webdav.NullResource, line 167, in PUT
>> Module Products.Archetypes.WebDAVSupport, line 116, in PUT
>> Module Products.Archetypes.utils, line 160, in mapply
>> Module Products.Marshall.marshaller, line 99, in demarshall
>> OverflowError: requested number of bytes is more than a Python string can hold
>> ------
>> 2009-12-04T12:34:57 ERROR ZServer uncaptured python exception, closing channel <ZServer.FTPServer.zope_ftp_channel connected 134.2.9.145:42267 at 0x1e5c6a70> (socket.error:(9, 'Bad file descriptor') [/raid/opt/Python-2.4.6/lib/python2.4/asynchat.py|initiate_send|219] [/raid/opt/Python-2.4.6/lib/python2.4/asyncore.py|send|332] [/raid/opt/Python-2.4.6/lib/python2.4/socket.py|_dummy|136])
>>
>>
>>
>> Best Regards,
>> Jan
>> _______________________________________________
>> Zope maillist - Zope at zope.org
>> https://mail.zope.org/mailman/listinfo/zope
>> ** No cross posts or HTML encoding! **
>> (Related lists -
>> https://mail.zope.org/mailman/listinfo/zope-announce
>> https://mail.zope.org/mailman/listinfo/zope-dev )
>>
>>
>
>
>
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> https://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> https://mail.zope.org/mailman/listinfo/zope-announce
> https://mail.zope.org/mailman/listinfo/zope-dev )
>
--
ZOPYX Ltd. & Co KG \ zopyx group
Charlottenstr. 37/1 \ The full-service network for your
D-72070 Tübingen \ Python, Zope and Plone projects
www.zopyx.com, info at zopyx.com \ www.zopyxgroup.com
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20091204/b5561c99/attachment.vcf
More information about the Zope
mailing list