Sorry, haven't had time until now.
So first, back up your database. I then want you to try this:
DELETE FROM django_project_version WHERE id IN (7, 8);
There's an issue that's come up a couple of times in django-evolution,
which I have not been able to trace, where two entries get recorded for the
same timestamp, but one contains the old version of the database schema
while the other contains the new version. This *should* correct that.
Ideally, you should do this on a copy of the database prior to your
previous upgrade, if possible, just to rule out any other modifications
made during the failed upgrade process. (In that case, ID #8 may not exist.)
Let me know if that works for you!
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com
On Thu, May 28, 2015 at 3:45 AM, John McGowan <john.mcgow...@gmail.com>
> Hi Christian,
> Any pointers on this problem?
> On Thursday, 21 May 2015 16:29:27 UTC+1, John McGowan wrote:
>> I've been trying to upgrade a RB instance that got to 1.6.16 to 2.0.15 on
>> another node (RH6.3 vs RH6.6).
>> I've the prereq packages on:
>> # pip freeze
>> D/B setup exactly as the old node with the same d/b|user|pass etc.
>> # rb-site install<path>
>> Then going in and dropping the d/b and creating the empty d/b again (I've
>> tried it without dropping the newly created one as well).
>> Taking the latest dump.sql from the old server and loading it into the
>> new d/b
>> Taking the latest htdocs/media/uploaded content to the new server from old
>> # rb-site upgrade <path>
>> and getting these errors which I've seen mentioned around the web but
>> unsure how to correct and unsure how to read the evolve --hint to fix:
>> 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 contenttypes.
>> There are unapplied evolutions for accounts.
>> There are unapplied evolutions for attachments.
>> There are unapplied evolutions for changedescs.
>> There are unapplied evolutions for diffviewer.
>> There are unapplied evolutions for hostingsvcs.
>> There are unapplied evolutions for reviews.
>> There are unapplied evolutions for scmtools.
>> There are unapplied evolutions for site.
>> Project signature has changed - an evolution is required
>> Installing custom SQL ...
>> Installing indexes ...
>> Installed 0 object(s) from 0 fixture(s)
>> The stored evolutions do not completely resolve all model changes.
>> Run `./manage.py evolve --hint` to see a suggestion for the changes
>> The following are the changes that could not be resolved:
>> The application markup has been deleted
>> In model scmtools.Repository:
>> Field 'hosting_account' has been added
>> Field 'extra_data' has been added
>> CommandError: Your models contain changes that Django Evolution cannot
>> resolve automatically.
>> # rb-site manage <path> list-evolutions
>> Applied evolutions for 'sessions':
>> Applied evolutions for 'accounts':
>> Applied evolutions for 'changedescs':
>> Applied evolutions for 'diffviewer':
>> Applied evolutions for 'reviews':
>> Applied evolutions for 'scmtools':
>> Thanks in advance for any pointers in this.
>> - John
> Supercharge your Review Board with Power Pack:
> Want us to host Review Board for you? Check out RBCommons:
> Happy user? Let us know! https://www.reviewboard.org/users/
> 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 to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Supercharge your Review Board with Power Pack:
Want us to host Review Board for you? Check out RBCommons:
Happy user? Let us know! https://www.reviewboard.org/users/
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.