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's gravatar image

i1der
865814
accept rate: 0%

edited 14 Dec '10, 07:38

Turn on debug and ignore whats in the log. Then you'll see the real error, and we can help you.

(15 Dec '10, 21:51) Hernani Cerq... ♦♦

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.

(20 Dec '10, 05:32) i1der

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.

(20 Dec '10, 05:55) Hernani Cerq... ♦♦

After setting DEBUG = logging.DEBUG, The real error is complaining forum_openidassociation and forum_openidnonce not created. After installing openid and syncdb, able to log in using google account

easy_install python-openid
python manage.py syncdb --all
link

answered 17 Dec '10, 05:26

i1der's gravatar image

i1der
865814
accept rate: 0%

Thanks for the solution. That fixed the 500 error on Google and Yahoo for me.

(04 Aug '11, 19:46) drewerd
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×156
×75
×41

Asked: 14 Dec '10, 05:57

Seen: 489 times

Last updated: 04 Aug '11, 19:46

powered by OSQA