Previously, I upgraded from 1.7.27  to 2.0.20 without problem.

Wesly Chen於 2015年11月14日星期六 UTC-8下午2時30分40秒寫道:
>
> I used MySQL
> mysql-server-5.1.73-5.el6_6.x86_64
>
> rb-mysql-schema.sql  is the reviewboard schema
> ($ mysqldump -uroot -p --databases reviewboard --no-data --quick 
> --single-transaction > /tmp/rb-mysql-schema.sql)
> rb-mysql-django.sql  is these table dump,   django_evolution and 
> django_project_version
> ($ mysqldump -uroot -p reviewboard django_evolution django_project_version 
> --quick --single-transaction > /tmp/rb-mysql-django.sql)
>
>
> Christian Hammond於 2015年11月14日星期六 UTC-8下午2時13分28秒寫道:
>>
>> Glad it's not the production one.
>>
>> Can you tell me what type of database you're using, and can you get me 
>> both a dump of the database schema (no content, just the schema), and a 
>> second dump containing just the django_evolution and django_project_version 
>> table contents? With those, I can try reproducing the problem here, see 
>> what may have gone wrong.
>>
>> Christian
>>
>> -- 
>> Christian Hammond - chri...@beanbaginc.com
>> Review Board - https://www.reviewboard.org
>> Beanbag, Inc. - https://www.beanbaginc.com
>>
>> On Sat, Nov 14, 2015 at 2:11 PM, Wesly Chen <wesly...@gmail.com> wrote:
>>
>>> This is the staging server which just took an image from production one 
>>> (VM).
>>> It cannot be recovered or the db need to be restored?
>>>
>>> Christian Hammond於 2015年11月14日星期六 UTC-8下午2時06分27秒寫道:
>>>>
>>>> Hi Wesly,
>>>>
>>>> Did you take a backup of your database prior to upgrade, or is this on 
>>>> a staging server?
>>>>
>>>> Christian
>>>>
>>>> -- 
>>>> Christian Hammond - chri...@beanbaginc.com
>>>> Review Board - https://www.reviewboard.org
>>>> Beanbag, Inc. - https://www.beanbaginc.com
>>>>
>>>> On Sat, Nov 14, 2015 at 1:47 PM, Wesly Chen <wesly...@gmail.com> wrote:
>>>>
>>>>> # easy_install -U ReviewBoard
>>>>> run successfully.
>>>>>
>>>>> when upgrade the site, I got the error. My Linux system is CentOS 6.5 
>>>>>  64-bit
>>>>>
>>>>> # rb-site upgrade /var/www/reviews.adara.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 ...
>>>>> Creating table accounts_trophy
>>>>> Creating table attachments_fileattachmenthistory
>>>>> Creating table diffviewer_rawfilediffdata
>>>>> Creating table notifications_webhooktarget_repositories
>>>>> Creating table notifications_webhooktarget
>>>>> Creating table webapi_webapitoken
>>>>> Upgrading Review Board from 2.0.20 to 2.5.1.1
>>>>> There are unapplied evolutions for accounts.
>>>>> There are unapplied evolutions for attachments.
>>>>> There are unapplied evolutions for diffviewer.
>>>>> There are unapplied evolutions for notifications.
>>>>> There are unapplied evolutions for reviews.
>>>>> There are unapplied evolutions for webapi.
>>>>> Adding baseline version for new models
>>>>> Evolutions in notifications baseline: webhooktarget_extra_state, 
>>>>> webhooktarget_extra_data_null
>>>>> 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'index_together'
>>>>> Traceback (most recent call last):
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>>>>  
>>>>> line 65, in handle
>>>>>     self.evolve(*app_labels, **options)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>>>>  
>>>>> line 125, in evolve
>>>>>     sql.extend(self.evolve_app(app))
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>>>>  
>>>>> line 164, in evolve_app
>>>>>     app_mutator.run_mutations(mutations)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>>>>  
>>>>> line 279, in run_mutations
>>>>>     self.run_mutation(mutation)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>>>>  
>>>>> line 268, in run_mutation
>>>>>     model_mutator.run_mutation(mutation)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>>>>  
>>>>> line 165, in run_mutation
>>>>>     mutation.mutate(self, self.create_model())
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutations.py",
>>>>>  
>>>>> line 785, in mutate
>>>>>     mutator.change_meta(self, self.prop_name, self.new_value)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>>>>  
>>>>> line 136, in change_meta
>>>>>     'old_value': self.model_sig['meta'][prop_name],
>>>>> KeyError: u'index_together'
>>>>> Traceback (most recent call last):
>>>>>   File "/usr/bin/rb-site", line 9, in <module>
>>>>>     load_entry_point('ReviewBoard==2.5.1.1', 'console_scripts', 
>>>>> 'rb-site')()
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>>>>  
>>>>> line 1922, in main
>>>>>     command.run()
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>>>>  
>>>>> line 1725, in run
>>>>>     site.migrate_database()
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>>>>  
>>>>> line 452, in migrate_database
>>>>>     self.run_manage_command("evolve", ["--noinput", "--execute"])
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/ReviewBoard-2.5.1.1-py2.6.egg/reviewboard/cmdline/rbsite.py",
>>>>>  
>>>>> line 676, in run_manage_command
>>>>>     execute_from_command_line([__file__, cmd] + params)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py",
>>>>>  
>>>>> line 399, in execute_from_command_line
>>>>>     utility.execute()
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/__init__.py",
>>>>>  
>>>>> line 392, in execute
>>>>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py",
>>>>>  
>>>>> line 242, in run_from_argv
>>>>>     self.execute(*args, **options.__dict__)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/Django-1.6.11-py2.6.egg/django/core/management/base.py",
>>>>>  
>>>>> line 285, in execute
>>>>>     output = self.handle(*args, **options)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>>>>  
>>>>> line 65, in handle
>>>>>     self.evolve(*app_labels, **options)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>>>>  
>>>>> line 125, in evolve
>>>>>     sql.extend(self.evolve_app(app))
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/management/commands/evolve.py",
>>>>>  
>>>>> line 164, in evolve_app
>>>>>     app_mutator.run_mutations(mutations)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>>>>  
>>>>> line 279, in run_mutations
>>>>>     self.run_mutation(mutation)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>>>>  
>>>>> line 268, in run_mutation
>>>>>     model_mutator.run_mutation(mutation)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>>>>  
>>>>> line 165, in run_mutation
>>>>>     mutation.mutate(self, self.create_model())
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutations.py",
>>>>>  
>>>>> line 785, in mutate
>>>>>     mutator.change_meta(self, self.prop_name, self.new_value)
>>>>>   File 
>>>>> "/usr/lib/python2.6/site-packages/django_evolution-0.7.5-py2.6.egg/django_evolution/mutators.py",
>>>>>  
>>>>> line 136, in change_meta
>>>>>     'old_value': self.model_sig['meta'][prop_name],
>>>>> KeyError: u'index_together'
>>>>>
>>>>> -- 
>>>>> 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...@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...@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