Hi, It should be working out of the box. I don't see anything immediately wrong with the output you provided (aside from the error, of course).
What I may need to do is perform an emergency repair. We do charge for this without a support contract, but it's usually done fairly fast. Before going down that route, though, I want to verify it's not a bug in the current Django Evolution. Can you send me a dump of the database schema from the 1.6 release (no data), and then a dump of the data from the django_project_version and django_evolution tables? This will not include confidential data. Christian On Fri, Apr 28, 2017 at 08:22 drosera <sunne...@gmail.com> wrote: > Dear all, > > I'm having the same/similar problem as described in thread > https://groups.google.com/forum/#!topic/reviewboard/QC8p69DOtpM. > Unfortunately this is also an emergency as the old server has crashed and > we have basically no other choice then to get RB up and running on the new > server.... > > In my case, no migration to MySQL has been involved. Therefore the MySQL > specific steps didn't apply. > > I followed Christian Hammond's proposition described in > https://groups.google.com/forum/#!topic/reviewboard/46LCYqi5d48 to > migrate RB 1.6.5 from a very old openSuSE server to an up-to-date Debian 8 > server with RB 2.5.10: > > - Dump database on old server > - Install RB on new server according to regular instructions > (apt-get/pip) > - Copy complete site directory and apache config to new server > (adapted UIds and GIDs etc.) > - Import odl database dump (psql --dbname=rb --file=rb.dump > --username=rb -h localhost -W) > - ran rb-site upgrade /var/www/reviewboard > > This results in > > > $ rb-site upgrade /var/www/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. > > ------------------ <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 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/management/commands/evolve.py" > , line 65, in handle > self.evolve(*app_labels, **options) > File > "/usr/local/lib/python2.7/dist-packages/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/management/commands/evolve.py" > , line 164, in evolve_app > app_mutator.run_mutations(mutations) > File > "/usr/local/lib/python2.7/dist-packages/django_evolution/mutators.py", > line 279, in run_mutations > self.run_mutation(mutation) > File > "/usr/local/lib/python2.7/dist-packages/django_evolution/mutators.py", > line 268, in run_mutation > model_mutator.run_mutation(mutation) > File > "/usr/local/lib/python2.7/dist-packages/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/mutations.py", > line 446, in mutate > self.add_column(mutator, model) > File > "/usr/local/lib/python2.7/dist-packages/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/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 11, in <module> > sys.exit(main()) > File > "/usr/local/lib/python2.7/dist-packages/reviewboard/cmdline/rbsite.py", > line 1938, in main > command.run() > File > "/usr/local/lib/python2.7/dist-packages/reviewboard/cmdline/rbsite.py", > line 1741, in run > site.migrate_database() > File > "/usr/local/lib/python2.7/dist-packages/reviewboard/cmdline/rbsite.py", > line 452, in migrate_database > self.run_manage_command("evolve", ["--noinput", "--execute"]) > File > "/usr/local/lib/python2.7/dist-packages/reviewboard/cmdline/rbsite.py", > line 692, in run_manage_command > execute_from_command_line([__file__, cmd] + params) > File > "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py" > , line 399, in execute_from_command_line > utility.execute() > File > "/usr/local/lib/python2.7/dist-packages/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/core/management/base.py", > line 242, in run_from_argv > self.execute(*args, **options.__dict__) > File > "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", > line 285, in execute > output = self.handle(*args, **options) > File > "/usr/local/lib/python2.7/dist-packages/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/management/commands/evolve.py" > , line 125, in evolve > sql.extend(self.evolve_app(app)) > File > "/usr/local/lib/python2.7/dist-packages/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/mutators.py", > line 279, in run_mutations > self.run_mutation(mutation) > File > "/usr/local/lib/python2.7/dist-packages/django_evolution/mutators.py", > line 268, in run_mutation > model_mutator.run_mutation(mutation) > File > "/usr/local/lib/python2.7/dist-packages/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/mutations.py", > line 446, in mutate > self.add_column(mutator, model) > File > "/usr/local/lib/python2.7/dist-packages/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/mutations.py", > line 37, in create_field > related_model_sig = proj_sig[related_app_name][related_model_name] > KeyError: u'FileDiffData' > $ > > I also ran the steps requested by Christian Hammond in thread > https://groups.google.com/forum/embed/#!topic/reviewboard/46LCYqi5d48: > > > $ rb-site manage /var/www/reviewboard syncdb > Creating tables ... > 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 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 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) > $ > > > And then > > > $ rb-site manage /var/www/reviewboard shell > > > > > Python 2.7.9 (default, Jun 29 2016, 13:08:31) > [GCC 4.9.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > (InteractiveConsole) > >>> 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) > ... > 1 - 25 - 2012-04-16 13:30:40.232282+00:00 > 2 - 6 - 2017-04-28 16:38:07.961835+00:00 > >>> quit() > $ > > > However the errors are still the sames. When I run rb-site manage /var/ > www/reviewboard syncdb now, then I get > > > $ rb-site manage /var/www/reviewboard syncdb > 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 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) > $ > > > But the errors in rb-site upgrade /var/www/reviewboard are still the > same. Any hint or recommendation on how to fix this are highly appreciated. > > > Thanks in advance > > frank > > > -- > 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. > -- -- Christian Hammond President/CEO of Beanbag <https://www.beanbaginc.com/> Makers of Review Board <https://www.reviewboard.org/> -- 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.