Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What does this internal server error mean?

What is happened? I'm on askbot 0.7.47

MySite ERROR (EXTERNAL IP): Internal Server Error: /upload/

Traceback (most recent call last):

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 105, in get_response
    response = middleware_method(request, callback, callback_args, callback_kwargs)

  File "/srv/mysite.com/node1/askbot/middleware/cancel.py", line 5, in process_view
    if 'cancel' in request.REQUEST:

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/wsgi.py", line 196, in _get_request
    self._request = datastructures.MergeDict(self.POST, self.GET)

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/core/handlers/wsgi.py", line 210, in _get_post
    self._load_post_and_files()

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/http/__init__.py", line 277, in _load_post_and_files
    self._post, self._files = self.parse_file_upload(self.META, data)

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/http/__init__.py", line 235, in parse_file_upload
    return parser.parse()

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/http/multipartparser.py", line 197, in parse
    for chunk in field_stream:

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/http/multipartparser.py", line 319, in next
    output = self._producer.next()

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/http/multipartparser.py", line 473, in next
    for bytes in stream:

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/http/multipartparser.py", line 319, in next
    output = self._producer.next()

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/http/multipartparser.py", line 380, in next
    data = self.flo.read(self.chunk_size)

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/http/multipartparser.py", line 410, in read
    return self._file.read(num_bytes)

  File "/srv/mysite.com/node1/env/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg/django/http/__init__.py", line 301, in read
    return self._stream.read(*args, **kwargs)

IOError: request data read error


<WSGIRequest
GET:<QueryDict: {}>,
POST:<could not parse>,
COOKIES:{'__utma': '268136331.428371438.1360245250.1360245250.1360245250.1',
 '__utmb': '268136331.1.10.1360245250',
 '__utmc': '268136331',
 '__utmz': '268136331.1360245250.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)',
 '_pk_id.1.902c': 'bd4e04d636d391d6.1360245250.1.1360245250.1360245250.',
 '_pk_ref.1.902c': '%5B%22%22%2C%22%22%2C1360245250%2C%22https%3A%2F%2Fwww.google.de%2F%22%5D',
 '_pk_ses.1.902c': '*',
 'testuser_csrf': 'f85e88044e5ef798c4ad49cf3e168af9',
 'sessionid': '938eda045f1061926ee9ca4a25507a5e'},
META:{'CONTENT_LENGTH': '2315738',
 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundaryXVJZQFqE3LIKoplk',
 'DOCUMENT_ROOT': '/srv/mysite.com/node1',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
 'HTTP_ACCEPT_LANGUAGE': 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4',
 'HTTP_CACHE_CONTROL': 'max-age=0',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'sessionid=938eda045f1061926ee9ca4a25507a5e; testuser_csrf=f85e88044e5ef798c4ad49cf3e168af9; _pk_ref.1.902c=%5B%22%22%2C%22%22%2C1360245250%2C%22https%3A%2F%2Fwww.google.de%2F%22%5D; _pk_id.1.902c=bd4e04d636d391d6.1360245250.1.1360245250.1360245250.; _pk_ses.1.902c=*; __utma=268136331.428371438.1360245250.1360245250.1360245250.1; __utmb=268136331.1.10.1360245250; __utmc=268136331; __utmz=268136331.1360245250.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)',
 'HTTP_HOST': 'mysite.com',
 'HTTP_ORIGIN': 'http://mysite.com',
 'HTTP_REFERER': 'http://mysite.com/question/111/test-question/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17',
 'PATH_INFO': u'/upload/',
 'PATH_TRANSLATED': '/srv/mysite.com/node1/django.wsgi/upload/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '79.197.1.55',
 'REMOTE_PORT': '64381',
 'REQUEST_METHOD': 'POST',
 'REQUEST_URI': '/upload/',
 'SCRIPT_FILENAME': '/srv/mysite.com/node1/django.wsgi',
 'SCRIPT_NAME': u'',
 'SERVER_ADDR': '33.200.98.156',
 'SERVER_ADMIN': 'mysite.com@mysite.com',
 'SERVER_NAME': 'mysite.com',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.22 (Ubuntu) Server at mysite.com Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.22 (Ubuntu)',
 'mod_wsgi.application_group': 'mysite.com|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.handler_script': '',
 'mod_wsgi.input_chunked': '0',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '80',
 'mod_wsgi.process_group': 'mysite_com_node1_80',
 'mod_wsgi.request_handler': 'wsgi-script',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (3, 3),
 'wsgi.errors': <mod_wsgi.Log object at 0x7f54540b64f0>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f54541e1dc8>,
 'wsgi.input': <mod_wsgi.Input object at 0x7f54540b62b0>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 1)}>