[Zope] Zope FTP - OverflowError: requested number of bytes is more than a Python string can hold

Tres Seaver tseaver at palladion.com
Fri Dec 4 10:40:32 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jan Schulze wrote:

> 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])

You need to be using a blob-aware field type here.  This is not a Python
/ medusa problem, but an Archetypes / Marshall problem:  check with the
Plone folks to see if there is a supported solution for the versino of
Plone you are running, or look at Chris McDonough's blob package:

  http://plope.com/software/blob/


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksZLXAACgkQ+gerLs4ltQ7AzQCghVeRiD3F1ETunBeQtwiZz636
f8sAnjmJNc46qxoSY2xP+NUJZEvgy9F6
=4jae
-----END PGP SIGNATURE-----



More information about the Zope mailing list