Can you run the following:

$ rb-site manage /path/to/site shell
>>> from django_evolution.models import Version
>>> for v in Version.objects.order_by('pk'):
>>>    print '%s - %s - %s' % (v.pk, v.evolutions.count(), v.when)

That'll give me a sense of what evolutions are applied. There's a
hard-to-diagnose issue that's come up before where an invalid entry ends up
in the history, throwing things off, and this will help me check for that.

Thanks,

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Mon, Jul 13, 2015 at 3:58 PM, Risha Chheda <rishachh...@gmail.com> wrote:

> No, that doesn't help either.
>
> # rb-site manage /var/ReviewBoard syncdb
> Creating tables ...
> There are unapplied evolutions for auth.
> The following content types are stale and need to be deleted:
>
>     auth | message
>
> Any objects related to these content types by a foreign key will also
> be deleted. Are you sure you want to delete these content types?
> If you're unsure, answer 'no'.
>
>     Type 'yes' to continue, or 'no' to cancel: yes
> 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)
>
>
> root@05e83c8f5ab7:/# rb-site upgrade /var/ReviewBoard
> ......
> ......
> <Same error as the original email>
>
>
> On Mon, Jul 13, 2015 at 3:26 PM, Christian Hammond <
> christ...@beanbaginc.com> wrote:
>
>> Hi Risha,
>>
>> That's strange. It's like some state is missing there.
>>
>> Can you try doing this first:
>>
>>     $ rb-site manage /var/ReviewBoard syncdb
>>
>> and then do the upgrade? See if that gets any further.
>>
>> Christian
>>
>> --
>> Christian Hammond - christ...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> -----Original Message-----
>> From: Risha Chheda <rishachh...@gmail.com>
>> Reply: reviewboard@googlegroups.com <reviewboard@googlegroups.com>>
>> Date: July 13, 2015 at 3:24:20 PM
>> To: reviewboard@googlegroups.com <reviewboard@googlegroups.com>>
>> Subject:  Upgrading from 1.6.8 to 2.x
>>
>> > Hi,
>> >
>> > I am trying to upgrade reviewboard from 1.6.8 to 2.5.beta and everytime
>> I
>> > get this traceback:
>> > mysql version I'm testing against is 5.6.25.
>> >
>> > Both reviewboard and mysql are running in their own docker containers on
>> > the same VM.
>> > I tried upgrading from 1.6.8 to 2.0.18 as well, but I get the same
>> issue.
>> >
>> > # rb-site upgrade /var/ReviewBoard
>> > Rebuilding directory structure
>> > Updating database. This may take a while.
>> >
>> > The log output below, including warnings and errors,
>> > can be ignored unless upgrade fails.
>> >
>> > ------------------ ------------------
>> > 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)
>> > ERROR:root:Unexpected error: u'FileDiffData'
>> > Traceback (most recent call last):
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/management/commands/evolve.py",
>> > line 65, in handle
>> > self.evolve(*app_labels, **options)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/management/commands/evolve.py",
>> > line 125, in evolve
>> > sql.extend(self.evolve_app(app))
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/management/commands/evolve.py",
>> > line 164, in evolve_app
>> > app_mutator.run_mutations(mutations)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutators.py",
>> > line 279, in run_mutations
>> > self.run_mutation(mutation)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutators.py",
>> > line 268, in run_mutation
>> > model_mutator.run_mutation(mutation)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutators.py",
>> > line 165, in run_mutation
>> > mutation.mutate(self, self.create_model())
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutations.py",
>> > line 446, in mutate
>> > self.add_column(mutator, model)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutations.py",
>> > line 450, in add_column
>> > self.field_type, self.field_attrs, model)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutations.py",
>> > line 37, in create_field
>> > related_model_sig = proj_sig[related_app_name][related_model_name]
>> > KeyError: u'FileDiffData'
>> > Traceback (most recent call last):
>> > File "/usr/local/bin/rb-site", line 9, in
>> > load_entry_point('ReviewBoard==2.5beta1', 'console_scripts',
>> > 'rb-site')()
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5beta1-py2.7.egg/reviewboard/cmdline/rbsite.py",
>> > line 1885, in main
>> > command.run()
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5beta1-py2.7.egg/reviewboard/cmdline/rbsite.py",
>> > line 1694, in run
>> > site.migrate_database()
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5beta1-py2.7.egg/reviewboard/cmdline/rbsite.py",
>> > line 438, in migrate_database
>> > self.run_manage_command("evolve", ["--noinput", "--execute"])
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5beta1-py2.7.egg/reviewboard/cmdline/rbsite.py",
>> > line 662, in run_manage_command
>> > execute_from_command_line([__file__, cmd] + params)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/core/management/__init__.py",
>> > line 399, in execute_from_command_line
>> > utility.execute()
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/core/management/__init__.py",
>> > line 392, in execute
>> > self.fetch_command(subcommand).run_from_argv(self.argv)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/core/management/base.py",
>> > line 242, in run_from_argv
>> > self.execute(*args, **options.__dict__)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/Django-1.6.11-py2.7.egg/django/core/management/base.py",
>> > line 285, in execute
>> > output = self.handle(*args, **options)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/management/commands/evolve.py",
>> > line 65, in handle
>> > self.evolve(*app_labels, **options)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/management/commands/evolve.py",
>> > line 125, in evolve
>> > sql.extend(self.evolve_app(app))
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/management/commands/evolve.py",
>> > line 164, in evolve_app
>> > app_mutator.run_mutations(mutations)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutators.py",
>> > line 279, in run_mutations
>> > self.run_mutation(mutation)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutators.py",
>> > line 268, in run_mutation
>> > model_mutator.run_mutation(mutation)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutators.py",
>> > line 165, in run_mutation
>> > mutation.mutate(self, self.create_model())
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutations.py",
>> > line 446, in mutate
>> > self.add_column(mutator, model)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutations.py",
>> > line 450, in add_column
>> > self.field_type, self.field_attrs, model)
>> > File
>> >
>> "/usr/local/lib/python2.7/dist-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutations.py",
>> > line 37, in create_field
>> > related_model_sig = proj_sig[related_app_name][related_model_name]
>> > KeyError: u'FileDiffData'
>> >
>> > What am I missing ? Does anyone know how to get around this ?
>> >
>> > Thanks,
>> > Risha
>> >
>> > --
>> > 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 "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.
>> >
>>
>>
>
>
> --
> Regards,
> Risha Chheda
>

-- 
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 
"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.

Reply via email to