Eu tenho uma instância de VM do Ubuntu Server 10.04, executando django com mod_wsgi. Ele estava funcionando bem e, depois de fazer uma reinicialização /etc/init.d/apache2 e /etc/init.d/apache2, recebi apenas erros internos 500. Eu verifiquei os logs, e quando eu bati no servidor, nada é gerado. No entanto, quando o servidor é reiniciado, recebo o seguinte, que, tanto quanto posso dizer, não está relacionado ao meu problema.
EDIT: Apenas percebi que eu tenho um arquivo de log personalizado, não no lugar habitual. Aqui está o que o arquivo de log real está capturando todo esse tempo:
[Mon Jul 19 05:40:10 2010] [info] [client 192.168.1.152] mod_wsgi (pid=1693, process='', application='192.168.1.153|'): Loading WSGI script '/srv/www/mysite.com/application/django.wsgi'.
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] mod_wsgi (pid=1693): Exception occurred processing WSGI script '/srv/www/mysite.com/application/django.wsgi'.
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] Traceback (most recent call last):
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py", line 241, in __call__
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] response = self.get_response(request)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 142, in get_response
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return self.handle_uncaught_exception(request, resolver, exc_info)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 166, in handle_uncaught_exception
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return debug.technical_500_response(request, *exc_info)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/views/debug.py", line 58, in technical_500_response
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] html = reporter.get_traceback_html()
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/views/debug.py", line 137, in get_traceback_html
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return t.render(c)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py", line 173, in render
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return self._render(context)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py", line 167, in _render
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return self.nodelist.render(context)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py", line 796, in render
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] bits.append(self.render_node(node, context))
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/template/debug.py", line 72, in render_node
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] result = node.render(context)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/template/debug.py", line 89, in render
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] output = self.filter_expression.resolve(context)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/template/__init__.py", line 579, in resolve
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] new_obj = func(obj, *arg_vals)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/template/defaultfilters.py", line 693, in date
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return format(value, arg)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/dateformat.py", line 281, in format
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return df.format(format_string)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/dateformat.py", line 30, in format
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] pieces.append(force_unicode(getattr(self, piece)()))
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/dateformat.py", line 187, in r
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return self.format('D, j M Y H:i:s O')
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/dateformat.py", line 30, in format
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] pieces.append(force_unicode(getattr(self, piece)()))
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/encoding.py", line 66, in force_unicode
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] s = unicode(s)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/functional.py", line 206, in __unicode_cast
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return self.__func(*self.__args, **self.__kw)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/translation/__init__.py", line 55, in ugettext
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return real_ugettext(message)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/functional.py", line 55, in _curried
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/translation/__init__.py", line 36, in delayed_loader
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return getattr(trans, real_name)(*args, **kwargs)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/translation/trans_real.py", line 276, in ugettext
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] return do_translate(message, 'ugettext')
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/translation/trans_real.py", line 266, in do_translate
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] _default = translation(settings.LANGUAGE_CODE)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/translation/trans_real.py", line 176, in translation
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] default_translation = _fetch(settings.LANGUAGE_CODE)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/translation/trans_real.py", line 159, in _fetch
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] app = import_module(appname)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] __import__(name)
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] TemplateSyntaxError: Caught
ImportError while rendering: No module named mysite.website
[Mon Jul 19 07:40:11 2010] [debug] mod_deflate.c(615): [client 192.168.1.152] Zlib: Compressed 620 to 383 : URL /admin