Just got a fresh install on Ubuntu10.10 with mysql with revision 620, whenever Google account or Yahoo account is used to log in, there is an 500 error and the log file looks like the following. However when facebook or twitter account is used, it only outputs "Invalid API key specified".
/home/osqa/osqa-server/forum/templatetags/ui_registry.py TIME: 2010-12-14 05:29:30,581 MSG: ui_registry.py:render:26 Exception 'request' rendering ui objects <forum.modules.ui_objects.Link object at 0x2af29fe27cd0>:
Traceback (most recent call last):
File "/home/osqa/osqa-server/forum/templatetags/ui_registry.py", line 22, in render
result += ui_object.render(context)
File "/home/osqa/osqa-server/forum/modules/ui_objects.py", line 107, in render
html.hyperlink(self.url(context), self.text(context), **self.attrs(context)),
File "/home/osqa/osqa-server/forum/modules/ui_objects.py", line 67, in __call__
return self.argument(user, context)
File "/home/osqa/osqa-server/forum/registry.py", line 42, in <lambda>
url=lambda u, c: settings.CONTACT_URL and settings.CONTACT_URL or "%s?next=%s" % (reverse('feedback'), cleanup_urls( c['request'].path)),
File "/usr/lib/pymodules/python2.6/django/template/context.py", line 46, in __getitem__
raise KeyError(key)
KeyError: 'request'
Running /home/osqa/osqa-server# python manage.py syncdb --all gives:
Syncing... No fixtures found.
Synced:
django.contrib.auth
django.contrib.contenttypes
django.contrib.sessions
django.contrib.sites
django.contrib.admin
django.contrib.markup
forum
south
Not synced (use migrations):
- (use ./manage.py migrate to migrate these)
Can anyone give me some help?
asked
14 Dec '10, 05:57
i1der
86●5●8●14
accept rate:
0%
Turn on debug and ignore whats in the log. Then you'll see the real error, and we can help you.
Hi Cerqueira: After setting
DEBUG = logging.DEBUG, the log in page gives me the real error. The real error is not in ${APACHE_LOG_DIR}/osqa.error.log . Is it logged in some other file? If not, I as the site owner would not know the error unless someone report it.Expected errors are caught and logged. Others like missing db tables (your case) are completely unexpected, and should not happen on a successful install, thus, is hard to track them and log them.