Code

Ticket #12411: mod_wsgi_mpp_error.txt

File mod_wsgi_mpp_error.txt, 4.1 KB (added by alextreme, 4 years ago)
Line 
1Traceback (most recent call last):
2
3  File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 92, in get_response
4    response = callback(request, *callback_args, **callback_kwargs)
5
6  File "/usr/lib/python2.5/site-packages/django/contrib/admin/options.py", line 226, in wrapper
7    return self.admin_site.admin_view(view)(*args, **kwargs)
8
9  File "/usr/lib/python2.5/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
10    response = view_func(request, *args, **kwargs)
11
12  File "/usr/lib/python2.5/site-packages/django/contrib/admin/sites.py", line 186, in inner
13    return view(request, *args, **kwargs)
14
15  File "/usr/lib/python2.5/site-packages/django/db/transaction.py", line 240, in _commit_on_success
16    res = func(*args, **kw)
17
18  File "/usr/lib/python2.5/site-packages/django/contrib/admin/options.py", line 806, in change_view
19    if request.method == 'POST' and request.POST.has_key("_saveasnew"):
20
21  File "/usr/lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 171, in _get_post
22    self._load_post_and_files()
23
24  File "/usr/lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 137, in _load_post_and_files
25    self._post, self._files = self.parse_file_upload(self.META, self.environ['wsgi.input'])
26
27  File "/usr/lib/python2.5/site-packages/django/http/__init__.py", line 123, in parse_file_upload
28    parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding)
29
30  File "/usr/lib/python2.5/site-packages/django/http/multipartparser.py", line 80, in __init__
31    raise MultiPartParserError("Invalid content length: %r" % content_length)
32
33MultiPartParserError: Invalid content length: 0
34
35
36<WSGIRequest
37GET:<QueryDict: {}>,
38POST:<could not parse>,
39COOKIES:{'sessionid': '65d2448590402e1bf58c5271dde0e766'},
40META:{'CONTENT_LENGTH': '0',
41 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------7d932d12f0638',
42 'DOCUMENT_ROOT': '/htdocs',
43 'GATEWAY_INTERFACE': 'CGI/1.1',
44 'HTTP_ACCEPT': 'image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*',
45 'HTTP_ACCEPT_LANGUAGE': 'en-gb',
46 'HTTP_CONNECTION': 'Keep-Alive',
47 'HTTP_COOKIE': 'sessionid=65d2448590402e1bf58c5271dde0e766',
48 'HTTP_HOST': '<hostname>',
49 'HTTP_PRAGMA': 'no-cache',
50 'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)',
51 'PATH': '/usr/local/bin:/usr/bin:/bin',
52 'PATH_INFO': u'/admin/<appname>/<modelname>/117/',
53 'PATH_TRANSLATED': '/home/alex/<projectname>/django_prod.wsgi/admin/<appname>/<modelname>/117/',
54 'QUERY_STRING': '',
55 'REMOTE_ADDR': '<ipaddress>',
56 'REMOTE_PORT': '29773',
57 'REQUEST_METHOD': 'POST',
58 'REQUEST_URI': '/admin/<appname>/<modelname>/117/',
59 'SCRIPT_FILENAME': '/home/alex/<projectname>/django_prod.wsgi',
60 'SCRIPT_NAME': u'',
61 'SERVER_ADDR': '<ipaddress>',
62 'SERVER_ADMIN': '[no address given]',
63 'SERVER_NAME': '<hostname>',
64 'SERVER_PORT': '80',
65 'SERVER_PROTOCOL': 'HTTP/1.1',
66 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_wsgi/2.8 Server at <hostname> Port 80</address>\n',
67 'SERVER_SOFTWARE': 'Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny4 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_wsgi/2.8',
68 'mod_wsgi.application_group': '<hostname>|',
69 'mod_wsgi.callable_object': 'application',
70 'mod_wsgi.listener_host': '',
71 'mod_wsgi.listener_port': '80',
72 'mod_wsgi.process_group': '',
73 'mod_wsgi.reload_mechanism': '0',
74 'mod_wsgi.script_reloading': '1',
75 'mod_wsgi.version': (2, 8),
76 'wsgi.errors': <mod_wsgi.Log object at 0xb5e4e60>,
77 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xb5f4bf0>,
78 'wsgi.input': <mod_wsgi.Input object at 0xb5e8228>,
79 'wsgi.multiprocess': True,
80 'wsgi.multithread': False,
81 'wsgi.run_once': False,
82 'wsgi.url_scheme': 'http',
83 'wsgi.version': (1, 0)}>