Patchwork breaks on Fedora 17

Ralf Baechle ralf at linux-mips.org
Mon Oct 22 18:29:22 EST 2012


On Mon, Oct 22, 2012 at 02:40:06PM +0800, Jeremy Kerr wrote:

> Hi Ralf,
> 
> > Receiving an occasional error email from patchwork got me to revisit
> > the topic a few minutes ago.
> 
> Could you forward me one of these emails?

Here's one:

Date: Fri, 05 Oct 2012 07:35:06 -0000
From: root at localhost
To: ralf at linux-mips.org
Subject: [Django] ERROR (EXTERNAL IP): Internal Server Error: /patch/1552/
Content-Type: text/plain; charset="utf-8"

Traceback (most recent call last):

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

  File "/var/www/patchwork.linux-mips.org/patchwork/apps/patchwork/views/patch.py", line 29, in patch
    context = PatchworkRequestContext(request)

  File "/var/www/patchwork.linux-mips.org/patchwork/apps/patchwork/requestcontext.py", line 50, in __init__
    __init__(request, dict, processors);

  File "/usr/lib/python2.7/site-packages/django/template/context.py", line 175, in __init__
    for processor in get_standard_processors() + processors:

  File "/usr/lib/python2.7/site-packages/django/template/context.py", line 155, in get_standard_processors
    raise ImproperlyConfigured('Module "%s" does not define a "%s" callable request processor' % (module, attr))

ImproperlyConfigured: Module "django.core.context_processors" does not define a "auth" callable request processor


<ModPythonRequest
path:/patch/1552/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'AUTH_TYPE': None,
 'CONTENT_LENGTH': 0,
 'CONTENT_TYPE': None,
 'CSRF_COOKIE': 'xuHqlQyxqbU4Y38NLeoqV8o3RHqJHWDe',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': '*/*',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'ru, uk;q=0.8, be;q=0.8, en;q=0.7, *;q=0.01',
 'HTTP_CONNECTION': 'Keep-Alive',
 'HTTP_FROM': 'support at search.yandex.ru',
 'HTTP_HOST': 'patchwork.linux-mips.org',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)',
 'PATH_INFO': u'/patch/1552/',
 'PATH_TRANSLATED': None,
 'QUERY_STRING': None,
 'REMOTE_ADDR': '178.154.243.96',
 'REMOTE_HOST': None,
 'REMOTE_IDENT': None,
 'REMOTE_USER': None,
 'REQUEST_METHOD': 'GET',
 'SCRIPT_NAME': '',
 'SERVER_NAME': 'patchwork.linux-mips.org',
 'SERVER_PORT': 80,
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SOFTWARE': 'mod_python'}>

This one was triggered when I was still running the django-1.4 branch.

> I've recently fixed a bug where duplicate bundle creation with an
> Internal Server Error (+ bug mail) instead of returning a nice message
> to the user. If there's another source of error mails, it's probably
> something I should fix.
> 
> > Running it for a few minutes is hardly any kind of proper testing.  So
> > I'll drop you an email if something odd should happen.
> 
> It may be useful to run the included testsuite:
> 
>   cd apps
>   ./manage.py test patchwork
> 
> This should give you fairly decent coverage.

Just tried that and got:

Got an error creating the test database: (1044, "Access denied for user 'www-data'@'localhost' to database 'test_patchwork'")

I'm going to look into that later - right now I need to hit the road.

  Ralf


More information about the Patchwork mailing list