3836: Full index after upgrade to 2.0.15 fails with: django.core.exceptions.ImproperlyConfigured: App with label djblets is missing a models.py module

vlo****@gmai***** (Google Code) (Is this you? Claim this profile.)
chipx86
chipx86
May 17, 2015
What version are you running?
2.0.15

What's the URL of the page containing the problem?
N/A

What steps will reproduce the problem?
1. Upgrade to 2.0.15 from 2.0.12
2. Run sudo -u www-data rb-site upgrade /var/www/mysite
3. restart web server
4. restart memcached
5. sudo -u www-data rb-site manage /var/www/mysite/ index -- --full

What is the expected output? What do you see instead?
I expect it to complete without exception.  Instead:

Removing all documents from your index because you said so.
All documents removed.
Traceback (most recent call last):
  File "/usr/bin/rb-site", line 9, in <module>
    load_entry_point('ReviewBoard==2.0.15', 'console_scripts', 'rb-site')()
  File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/cmdline/rbsite.py", line 1885, in main
    command.run()
  File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/cmdline/rbsite.py", line 1814, in run
    site.run_manage_command(args[0], args[1:])
  File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/cmdline/rbsite.py", line 662, in run_manage_command
    execute_from_command_line([__file__, cmd] + params)
  File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/reviews/management/commands/index.py", line 19, in handle
    call_command('rebuild_index', interactive=False)
  File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py", line 159, in call_command
    return klass.execute(*args, **defaults)
  File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.6/site-packages/django_haystack-2.3.0-py2.6.egg/haystack/management/commands/rebuild_index.py", line 16, in handle
    call_command('update_index', **options)
  File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py", line 159, in call_command
    return klass.execute(*args, **defaults)
  File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.6/site-packages/django_haystack-2.3.0-py2.6.egg/haystack/management/commands/update_index.py", line 182, in handle
    items = load_apps()
  File "/usr/lib/python2.6/site-packages/django_haystack-2.3.0-py2.6.egg/haystack/utils/app_loading.py", line 51, in load_apps
    loaded_app = get_app(app_label)
  File "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/db/models/loading.py", line 186, in get_app
    raise ImproperlyConfigured("App with label %s is missing a models.py module." % app_label)
django.core.exceptions.ImproperlyConfigured: App with label djblets is missing a models.py module.

What operating system are you using? What browser?
Oracle Linux Server release 6.4

Please provide any additional information below.
#1 vlo****@gmai***** (Google Code) (Is this you? Claim this profile.)
djblets is at version 0.8.18
#2 vlo****@gmai***** (Google Code) (Is this you? Claim this profile.)
/usr/lib/python2.6/site-packages/Djblets-0.8.18-py2.6.egg/djblets/siteconfig/models.py
/usr/lib/python2.6/site-packages/Djblets-0.8.18-py2.6.egg/djblets/extensions/models.py
#3 vlo****@gmai***** (Google Code) (Is this you? Claim this profile.)
Found the issue:

django-haystack           - Pluggable search for Django.
  INSTALLED: 2.3.0
  LATEST:    2.3.1

Sounds like reviewboard doesn't expose that it depends on changes in 2.3.1 (namely https://github.com/dulaccc/django-haystack/commit/d421d960134d479df139a3654829a1c2307a88c0)

sudo easy_install -U django-haystack fixed the problem.
chipx86
#4 chipx86
Ahh, didn't see this when I replied to your e-mail. Thanks! We'll get this fixed for the next release.
  • +PendingReview
  • +Milestone-Release2.0.x
    +Component-Search
  • +chipx86
david
#5 david
Fixed in release-2.0.x (61a0724). Thanks!
  • -PendingReview
    +Fixed