Ask Your Question
0

Error running Askbot on Openshift

asked 2015-05-24 22:36:35 -0600

gabriel_cervantes gravatar image

I've been trying to get Askbot to run on Openshift but I keep bumping into this error:

Environment:

Request Method: GET Request URL: ...

Django Version: 1.5.12 Python Version: 2.7.5 Installed Applications: ('longerusername', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.humanize', 'django.contrib.sitemaps', 'django.contrib.messages', 'compressor', 'askbot', 'askbot.deps.django_authopenid', 'south', 'askbot.deps.livesettings', 'keyedcache', 'robots', 'django_countries', 'djcelery', 'djkombu', 'followit', 'tinymce', 'group_messaging') Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware', 'askbot.middleware.forum_mode.ForumModeMiddleware', 'askbot.middleware.cancel.CancelActionMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'askbot.middleware.view_log.ViewLogMiddleware', 'askbot.middleware.spaceless.SpacelessMiddleware')

Traceback: File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 101. resolver_match = resolver.resolve(request.path_info) File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve 338. for pattern in self.url_patterns: File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/core/urlresolvers.py" in url_patterns 366. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/core/urlresolvers.py" in urlconf_module 361. self._urlconf_module = import_module(self.urlconf_name) File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/utils/importlib.py" in import_module 35. __import__(name) File "/var/lib/openshift/556280355973caf2c40000c0/app-root/runtime/repo/urls.py" in <module> 16. admin.autodiscover() File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/contrib/admin/__init__.py" in autodiscover 29. import_module('%s.admin' % app) File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/utils/importlib.py" in import_module 35. __import__(name) File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/robots/admin.py" in <module> 5. from robots.forms import RuleAdminForm File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/robots/forms.py" in <module> 7. class RuleAdminForm(forms.ModelForm): File "/var/lib/openshift/556280355973caf2c40000c0/python/virtenv/lib/python2.7/site-packages/django/forms/models.py" in __new__ 221. raise FieldError(message)</module></module></module>

Exception Type: FieldError at /questions/ Exception Value: Unknown field(s) (a, l, _) specified for Rule

The Openshift environemnt is pretty simple: just Python 2.7.5 and PostgreSQL 9.2. This is how I installed Askbot onto Openshift:

  1. run askbot-install on my localmachine and edit settings.py
  2. push everything to Openshift's GIT repo
  3. have Openshift run the rest of the commands in the official installation guide via the deploy hook

Theoretically, this should replicate what one typically does when following the official installation guide.

Any thoughts on what might be causing this error?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-26 18:39:59 -0600

gabriel_cervantes gravatar image

It turns out that it was the same bug causing this issue: http://askbot.org/en/question/13218/fielderror-at/%3C/p (http://askbot.org/en/question/13218/fielderror-at/</p<>>)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-05-24 22:36:35 -0600

Seen: 4,341 times

Last updated: May 24 '15