Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3500 by Update from RB 1.6.2 to 2.0.3 failed.

What version are you running?

What's the URL of the page containing the problem?

What steps will reproduce the problem?
1. use easy_install -U ReviewBoard to update to 2.0.3
2. rb-site upgrade /path/to/site

What is the expected output? What do you see instead?
I expect the update to succeed. It doesn't. The backtrace:

Traceback (most recent call last):
  File "/usr/bin/rb-site", line 9, in <module>
    load_entry_point('ReviewBoard==2.0.3', 'console_scripts', 'rb-site')()
File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.3-py2.6.egg/reviewboard/cmdline/", line 1859, in main
File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.3-py2.6.egg/reviewboard/cmdline/", line 1657, in run
    diff_dedup_needed = site.get_diff_dedup_needed()
File "/usr/lib/python2.6/site-packages/ReviewBoard-2.0.3-py2.6.egg/reviewboard/cmdline/", line 449, in get_diff_dedup_needed
    return FileDiff.objects.unmigrated().count() > 0
File "/usr/lib/python2.6/site-packages/Django-1.6.5-py2.6.egg/django/db/models/", line 294, in count
    return self.query.get_count(using=self.db)
File "/usr/lib/python2.6/site-packages/Django-1.6.5-py2.6.egg/django/db/models/sql/", line 390, in get_count
    number = obj.get_aggregation(using=using)[None]
File "/usr/lib/python2.6/site-packages/Django-1.6.5-py2.6.egg/django/db/models/sql/", line 356, in get_aggregation
    result = query.get_compiler(using).execute_sql(SINGLE)
File "/usr/lib/python2.6/site-packages/Django-1.6.5-py2.6.egg/django/db/models/sql/", line 786, in execute_sql
    cursor.execute(sql, params)
File "/usr/lib/python2.6/site-packages/Django-1.6.5-py2.6.egg/django/db/backends/", line 53, in execute
    return self.cursor.execute(sql, params)
File "/usr/lib/python2.6/site-packages/Django-1.6.5-py2.6.egg/django/db/", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/lib/python2.6/site-packages/Django-1.6.5-py2.6.egg/django/db/backends/", line 53, in execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: column diffviewer_filediff.diff_hash_id does not exist
LINE 1: ...CT COUNT(*) FROM "diffviewer_filediff" WHERE NOT ("diffviewe...

What operating system are you using? What browser?
Scientific Linux release 6.3 (Carbon)

Please provide any additional information below.
The issue is similar to the one addressed here:

In fact, you only need to additionally catch a django.db.utils.ProgrammingError in the except block and everything works like a charm.

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to