GoodCloud/django-ajax-uploader — Issue #15: s3 Upload Error - Cannot Allocate Memory
Author: hdn8
Created: 2011-12-13 19:38:12+00:00
State: open

I've been getting this error occasionally, and it seems regardless of the filesize. Heres the traceback:

File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/srv/venvs/launch/src/ajaxuploader/ajaxuploader/views.py", line 14, in __call__
return self._ajax_upload(request)

File "/srv/venvs/launch/src/ajaxuploader/ajaxuploader/views.py", line 51, in _ajax_upload
backend.setup(filename)

File "/srv/venvs/launch/src/ajaxuploader/ajaxuploader/backends/s3.py", line 26, in setup
self._pool = Pool(processes=self.NUM_PARALLEL_PROCESSES)

File "/usr/lib64/python2.6/multiprocessing/__init__.py", line 227, in Pool
return Pool(processes, initializer, initargs)

File "/usr/lib64/python2.6/multiprocessing/pool.py", line 104, in __init__
w.start()

File "/usr/lib64/python2.6/multiprocessing/process.py", line 104, in start
self._popen = Popen(self)

File "/usr/lib64/python2.6/multiprocessing/forking.py", line 94, in __init__
self.pid = os.fork()

OSError: [Errno 12] Cannot allocate memory

I'm running on a micro EC2 instance uploading using the s3 backend.