Sorry for the long, messy output, here's what happened when I tested the 
fix. This is an attempt to upgrade a 1.5.5 database to 1.7.6.

[root@crush]~/ReviewBoard# easy_install -U django_evolution -f
Searching for django-evolution
Best match: django-evolution 0.6.8
Processing django_evolution-0.6.8-py2.6.egg
'/usr/lib/python2.6/site-packages/django_evolution-0.6.8-py2.6.egg' (and 
everything under it)
creating /usr/lib/python2.6/site-packages/django_evolution-0.6.8-py2.6.egg
Extracting django_evolution-0.6.8-py2.6.egg to 
django-evolution 0.6.8 is already the active version in easy-install.pth

Installed /usr/lib/python2.6/site-packages/django_evolution-0.6.8-py2.6.egg
Processing dependencies for django-evolution
Finished processing dependencies for django-evolution
Searching for -f
Couldn't find index page for '-f' (maybe misspelled?)
Scanning index of all packages (this may take a while)
  C-c C-c^Cinterrupted

I don't know why easy_install got confused by '-f', but I did get a new 
django_evolution, so I tried updating my broken site:

[root@crush]~/ReviewBoard# cat rb-upgrade.log
Error: Model 'reviews.FileAttachmentComment' already has a field named 
Rebuilding directory structure
Updating database. This may take a while.

The log output below, including warnings and errors,
can be ignored unless upgrade fails.

------------------ <begin log output> ------------------
Creating tables ...
There are unapplied evolutions for auth.
There are unapplied evolutions for accounts.
There are unapplied evolutions for changedescs.
There are unapplied evolutions for diffviewer.
There are unapplied evolutions for reviews.
There are unapplied evolutions for scmtools.
Project signature has changed - an evolution is required
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Now when I log in to my site, I get this:

(1054, "Unknown column 'accounts_profile.is_private' in 'field list'")

Request Method:GETRequest URL:https://crush/Django Version:1.4.5Exception 
Type:DatabaseErrorException Value:

(1054, "Unknown column 'accounts_profile.is_private' in 'field list'")

in defaulterrorhandler, line 36Python Executable:/usr/bin/pythonPython 
Version:2.6.6Python Path:


Server time:Fri, 1 Mar 2013 19:08:48 +0000

I may try it again on a pristine 1.5.5 database.


On Wednesday, February 27, 2013 12:16:03 AM UTC-8, Christian Hammond wrote:
> Hi everyone,
> So some of you have hit database upgrade issues before when upgrading to 
> 1.7 (or, in some cases, 1.6). We've managed to figure out solutions for 
> some of you, but not all.
> I've spent a lot of time trying to figure out solutions, find the common 
> cases, and figure out a fix. Today, I have one that should fix it for at 
> least some of you. What I really need are volunteers to help test it.
> If you're having issues now, or have had issues in the past and still have 
> a broken database dump handy, I'd appreciate your help. Heck, even if you 
> have had no issues, and have an old database dump to test.
> I have a test version of Django Evolution up at 
> This version has some new logic that tries to avoid applying database 
> upgrades for things that are already in the database, which was the core 
> problem most of you hit.
> If you can give this a try, here's what I'd like you to do:
> 1) Get an installation going with your broken or pre-upgrade database.
> 2) Install django_evolution from the above URL, using:
>     $ sudo easy_install -U django_evolution -f 
> 3) Attempt a Review Board upgrade (rb-site manage /path/to/site upgrade)
> 4) Assuming it works, try to access the site and make sure things 
> generally work on it.
> Please then reply to this post with the following information:
> 1) The complete log output.
> 2) Whether you were testing with a dump from before a past broken upgrade 
> attempt, or a dump made after that past upgrade attempt failed.
> For extra credit, if you have did have a working database dump, 
> sanity-checking that you don't have any upgrade problems and that the site 
> runs would also really help me out.
> Thanks! Sooner I get some feedback, the sooner I can put this problem to 
> rest.
> - Christian
> -- 
> Christian Hammond - <javascript:>
> Review Board -
> VMware, Inc. - 

Want to help the Review Board project? Donate today at
Happy user? Let us know at
To unsubscribe from this group, send email to
For more options, visit this group at
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to