rb-site manage /var/www/reviewboard rebuild_index gives error

36 views
Skip to first unread message

Koushik Roy

unread,
Jan 23, 2020, 5:01:40 PM1/23/20
to Review Board Community

1. Upgraded from RB 3.0.6 to 3.0.15
2. Everything went fine except -

  rb-site manage /var/www/reviewboard rebuild_index (or update_index) gives error:

ERROR:djblets.extensions.manager:Error loading extension rbmotd: APPLICATION_MODEL refers to model oauth.Application that has not been installed
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/Djblets-1.0.12-py2.7.egg/djblets/extensions/manager.py", line 704, in _load_extensions
    ext_class = entrypoint.load()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/dist-packages/rbmotd-1.0-py2.7.egg/rbmotd/extension.py", line 2, in <module>
    from reviewboard.extensions.hooks import TemplateHook
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-3.0.15.1.dev0-py2.7.egg/reviewboard/extensions/hooks.py", line 48, in <module>
    from reviewboard.urls import (diffviewer_url_names,
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-3.0.15.1.dev0-py2.7.egg/reviewboard/urls.py", line 49, in <module>
    admin.autodiscover()
  File "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/contrib/admin/__init__.py", line 29, in autodiscover
    import_module('%s.admin' % app)
  File "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/usr/local/lib/python2.7/dist-packages/django_oauth_toolkit-0.9.0-py2.7.egg/oauth2_provider/admin.py", line 9, in <module>
    Application = get_application_model()
  File "/usr/local/lib/python2.7/dist-packages/django_oauth_toolkit-0.9.0-py2.7.egg/oauth2_provider/models.py", line 267, in get_application_model
    raise ImproperlyConfigured(e.format(oauth2_settings.APPLICATION_MODEL))
ImproperlyConfigured: APPLICATION_MODEL refers to model oauth.Application that has not been installed


Note: I have added an explicit dependency on requests-oauthlib>=0.8,<=1.0 and on django-braces==1.13 as required in RB 3.0.16

What could I be missing?
Appreciate any help.
Thanks

Koushik Roy

Christian Hammond

unread,
Jan 25, 2020, 12:23:58 AM1/25/20
to revie...@googlegroups.com
Hmm, that is strange... By the time we load extensions, all of the apps (oauth included) should be loaded and initialized, but this is indicating it's not.

I noticed that the version is 3.0.15.1.dev0. Are there any changes at all to the source of Review Board there? Any customization of the app list either there or in your settings_local.py?

Christian

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/35dcf8f0-5f8c-4fb2-97f6-b261fab6cc7c%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

Koushik Roy

unread,
Jan 27, 2020, 10:02:11 AM1/27/20
to Review Board Community
Christian,
  There are few changes in the Reviewboard source. These are minor and definitely not related to app initialization and loading extensions.
  Also, these changes have been there for 4-5 years. I have made several upgrades by merging newer code from RB open source.
  I never had this issue.

  I am going to try out a few things like not installing the extensions and install RB 3.0.15 without my changes etc.
  Let's see how it goes. I might need more help.
  Thank you.

Koushik
Reply all
Reply to author
Forward
0 new messages