Hi John,

Try upgrading to Django Evolution 0.7.5, restore the backup, and try the 
migration again. I believe you hit a bug we had already fixed.

Christian

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

-----Original Message-----
From: John Schmitt <marmalo...@gmail.com>
Reply: reviewboard@googlegroups.com <reviewboard@googlegroups.com>>
Date: June 17, 2015 at 10:10:46 PM
To: Christian Hammond <christ...@beanbaginc.com>>
Cc: reviewboard@googlegroups.com <reviewboard@googlegroups.com>>
Subject:  Re: rb-site upgrade help needed

> I do have a backup.
>  
> python-django-evolution-0.7.4-1.el7.noarch
> evolution-data-server-3.8.5-34.el7.x86_64
>  
>  
> On Wed, Jun 17, 2015 at 8:10 PM, Christian Hammond <christ...@beanbaginc.com
>> wrote:
>  
>> What version of django_evolution do you have?
>>
>> Do you have a database backup?
>>
>> Christian
>>
>> --
>> Christian Hammond - christ...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> -----Original Message-----
>> From: John Schmitt <marmalo...@gmail.com>
>> Reply: reviewboard@googlegroups.com <reviewboard@googlegroups.com>>
>> Date: June 17, 2015 at 6:35:54 PM
>> To: reviewboard@googlegroups.com <reviewboard@googlegroups.com>>
>> Subject: rb-site upgrade help needed
>>
>> > I need help getting my data from ReviewBoard 1.5 to 2.0 to migrate. Can
>> > anyone tell me what to do to make this work?
>> >
>> > Thank you.
>> >
>> > [root@dyn40-25-217 ~]# mysql -p < reviewboard.dump
>> > Enter password:
>> > [root@dyn40-25-217 ~]# rb-site upgrade /var/www/reviews.tintri.com
>> > 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 ...
>> > Upgrading Review Board from 1.5.5 to 2.0.15
>> > 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.
>> > Adding baseline version for new models
>> > Evolutions in attachments baseline: file_attachment_orig_filename,
>> > file_attachment_file_max_length_512, file_attachment_repo_info,
>> > file_attachment_repo_path_no_index,
>> > file_attachment_repo_revision_max_length_64
>> > Evolutions in site baseline: localsite_public
>> > Evolutions in hostingsvcs baseline: account_hosting_url,
>> > account_hosting_url_max_length_255, account_unique_together_baseline
>> > Project signature has changed - an evolution is required
>> > Installing custom SQL ...
>> > Installing indexes ...
>> > Installed 0 object(s) from 0 fixture(s)
>> > Registering new SCM Tool Plastic SCM (reviewboard.scmtools.plastic.
>> > PlasticTool) in database
>> > CommandError: Error applying evolution: (1050, "Table
>> > 'reviews_review_file_attachment_comments' already exists")
>> >
>> >
>> > If I restart httpd at this point, I'll see this in /var/log/messages:
>> >
>> > Jun 17 18:26:49 localhost rb-site: ------------------ <begin log output>
>> > ------------------
>> > Jun 17 18:26:49 localhost rb-site: Creating tables ...
>> > Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for
>> auth.
>> > Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for
>> > contenttypes.
>> > Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for
>> > accounts.
>> > Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for
>> > changedescs.
>> > Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for
>> > diffviewer.
>> > Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for
>> > reviews.
>> > Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for
>> > scmtools.
>> > Jun 17 18:26:50 localhost rb-site: Project signature has changed - an
>> > evolution is required
>> > Jun 17 18:26:50 localhost rb-site: Installing custom SQL ...
>> > Jun 17 18:26:50 localhost rb-site: Installing indexes ...
>> > Jun 17 18:26:50 localhost rb-site: Installed 0 object(s) from 0
>> fixture(s)
>> > Jun 17 18:26:50 localhost rb-site: Traceback (most recent call last):
>> > Jun 17 18:26:50 localhost rb-site: File "/usr/bin/rb-site", line 9, in
>> > <module>
>> > Jun 17 18:26:50 localhost rb-site:
>> load_entry_point('ReviewBoard==2.0.15',
>> > 'console_scripts', 'rb-site')()
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", line
>> 1885,
>> > in main
>> > Jun 17 18:26:50 localhost rb-site: command.run()
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", line
>> 1694,
>> > in run
>> > Jun 17 18:26:50 localhost rb-site: site.migrate_database()
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", line
>> 438,
>> > in migrate_database
>> > Jun 17 18:26:50 localhost rb-site: self.run_manage_command("evolve", [
>> > "--noinput", "--execute"])
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py", line
>> 662,
>> > in run_manage_command
>> > Jun 17 18:26:50 localhost rb-site: execute_from_command_line([__file__,
>> cmd]
>> > + params)
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line
>> > 399, in execute_from_command_line
>> > Jun 17 18:26:50 localhost rb-site: utility.execute()
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line
>> > 392, in execute
>> > Jun 17 18:26:50 localhost rb-site: self.fetch_command(subcommand).
>> > run_from_argv(self.argv)
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django/core/management/base.py", line
>> 242,
>> > in run_from_argv
>> > Jun 17 18:26:50 localhost rb-site: self.execute(*args,
>> **options.__dict__)
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django/core/management/base.py", line
>> 285,
>> > in execute
>> > Jun 17 18:26:50 localhost rb-site: output = self.handle(*args, **options)
>> > Jun 17 18:26:50 localhost rb-site: File
>> >
>> "/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py"
>> > , line 65, in handle
>> > Jun 17 18:26:50 localhost rb-site: self.evolve(*app_labels, **options)
>> > Jun 17 18:26:50 localhost rb-site: File
>> >
>> "/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py"
>> > , line 125, in evolve
>> > Jun 17 18:26:50 localhost rb-site: sql.extend(self.evolve_app(app))
>> > Jun 17 18:26:50 localhost rb-site: File
>> >
>> "/usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py"
>> > , line 165, in evolve_app
>> > Jun 17 18:26:50 localhost rb-site: app_mutator_sql = app_mutator.to_sql()
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line
>> 304,
>> > in to_sql
>> > Jun 17 18:26:50 localhost rb-site: sql.extend(mutator.to_sql())
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django_evolution/mutators.py", line
>> 187,
>> > in to_sql
>> > Jun 17 18:26:50 localhost rb-site: return self.evolver.
>> > generate_table_ops_sql(self, self._ops)
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django_evolution/db/common.py", line
>> 42,
>> > in generate_table_ops_sql
>> > Jun 17 18:26:50 localhost rb-site: prev_sql_result, prev_op)
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django_evolution/db/common.py", line
>> 84,
>> > in generate_table_op_sql
>> > Jun 17 18:26:50 localhost rb-site: op['new_attrs']))
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django_evolution/db/common.py", line
>> 490,
>> > in change_column_attrs
>> > Jun 17 18:26:50 localhost rb-site: attr_info['new_value'])
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django_evolution/db/common.py", line
>> 602,
>> > in change_column_attr_unique
>> > Jun 17 18:26:50 localhost rb-site: self.remove_recorded_index(model,
>> > constraint_name, unique=True)
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django_evolution/db/common.py", line
>> 817,
>> > in remove_recorded_index
>> > Jun 17 18:26:50 localhost rb-site: index_name, unique=unique)
>> > Jun 17 18:26:50 localhost rb-site: File
>> > "/usr/lib/python2.7/site-packages/django_evolution/signature.py", line
>> 187,
>> > in remove_index_from_database_sig
>> > Jun 17 18:26:50 localhost rb-site: assert unique == indexes[index_name][
>> > 'unique']
>> > Jun 17 18:26:50 localhost rb-site: AssertionError
>> >
>> >
>> >
>> >
>> >
>> > --
>> > 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.
>> >
>>
>>
>  
> --
> 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.
>  

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