Hi,

First, do you have a backup of the database?

What actions did you take on the database prior to this attempt? For
example, did you ever run evolve yourself? Or attempt a downgrade after an
upgrade?

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com



On Thu, Dec 6, 2012 at 10:38 AM, Vishal Gautam <gautamvis...@gmail.com>wrote:

> Thanks for the response Chris!
>
> I upgrade CentOS to 5.8, manually installed Python 2.7, upgraded
> setuptools for 2.7, then upgraded RB to 1.7rc1. All this made it fine
> (after getting bunch of issues those I could look up in Google). Now I am
> stuck at upgrading the site .... and my RB instance is down ... Please help!
>
> [root@jira ~]# /usr/local/bin/rb-site upgrade /var/www/
> reviews.xxx.xxxx.com
> Rebuilding directory structure
> Updating database. This may take a while.
> /usr/local/lib/python2.7/site-packages/Djblets-0.7.5-py2.7.egg/djblets/gravatars/__init__.py:26:
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
>   from md5 import md5
> /usr/local/lib/python2.7/site-packages/pycrypto-2.6-py2.7-linux-x86_64.egg/Crypto/Util/number.py:57:
> PowmInsecureWarning: Not using mpz_powm_sec.  You should rebuild using
> libgmp >= 5 to avoid timing attack vulnerability.
> Creating tables ...
> 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
> required.
>
> The following are the changes that could not be resolved:
> In model reviews.FileAttachmentComment:
>     Field 'extra_data' has been added
> In model reviews.ReviewRequest:
>     Field 'last_review_activity_timestamp' has been added
>     Field 'last_review_timestamp' has been deleted
> In model accounts.Profile:
>     Field 'timezone' has been added
>     Field 'open_an_issue' has been added
> In model diffviewer.DiffSetHistory:
>     Field 'last_diff_updated' has been added
> In model diffviewer.FileDiff:
>     Field 'diff_hash' has been added
>     Field 'parent_diff_hash' has been added
>     Field 'diff64' has been added
>     Field 'parent_diff64' has been added
>     Field 'parent_diff' has been deleted
>     Field 'diff' has been deleted
> The model auth.Message has been deleted
> Error: Your models contain changes that Django Evolution cannot resolve
> automatically.
>
>
> On Wednesday, December 5, 2012 8:36:42 PM UTC+5:30, Christian Hammond
> wrote:
>
>> Review Board 1.7 requires Python 2.5 or higher. You'll have to upgrade in
>> order for it to work.
>>
>> What I'd recommend is a newer CentOS install, since some of our
>> dependencies will also need to be updated, and you won't hit as many issues
>> with the upgrade. Your best bet is to upgrade to something with Python 2.7.
>>
>> Christian
>>
>> --
>> Christian Hammond - chi...@chipx86.com
>> Review Board - http://www.reviewboard.org
>> VMware, Inc. - http://www.vmware.com
>>
>>
>>
>> On Wed, Dec 5, 2012 at 2:22 AM, Vishal Gautam <gautam...@gmail.com>wrote:
>>
>>> We are trying out RB, we have 1.6.14 installed and running on CentOS
>>> 5.5. Tried to upgrade it to 1.7 using following cmd but its failing  ...
>>>
>>>   easy_install -f http://downloads.reviewboard.**
>>> org/releases/ReviewBoard/1.7<http://downloads.reviewboard.org/releases/ReviewBoard/1.7>-U
>>>  ReviewBoard
>>>
>>> Here is the stracktrace, any help will be much appreciated
>>>
>>> Best match: ReviewBoard 1.7rc1
>>> Downloading http://downloads.reviewboard.**org/releases/ReviewBoard/1.7/
>>> **ReviewBoard-1.7rc1.tar.gz<http://downloads.reviewboard.org/releases/ReviewBoard/1.7/ReviewBoard-1.7rc1.tar.gz>
>>> Processing ReviewBoard-1.7rc1.tar.gz
>>> Running ReviewBoard-1.7rc1/setup.py -q bdist_egg --dist-dir
>>> /tmp/easy_install-vW-lSE/**ReviewBoard-1.7rc1/egg-dist-**tmp-DrI1Td
>>> Traceback (most recent call last):
>>>   File "./contrib/internal/build-**media.py", line 19, in ?
>>>     ret = call_command('collectstatic', interactive=False, verbosity=2)
>>>   File "/usr/lib/python2.4/site-**packages/Django-1.3.4-py2.4.**
>>> egg/django/core/management/__**init__.py", line 153, in call_command
>>>     klass = load_command_class(app_name, name)
>>>   File "/usr/lib/python2.4/site-**packages/Django-1.3.4-py2.4.**
>>> egg/django/core/management/__**init__.py", line 68, in
>>> load_command_class
>>>     return module.Command()
>>>   File "/usr/lib/python2.4/site-**packages/Django-1.3.4-py2.4.**
>>> egg/django/contrib/**staticfiles/management/**commands/collectstatic.py",
>>> line 41, in __init__
>>>     self.storage = get_storage_class(settings.**STATICFILES_STORAGE)()
>>>   File "/usr/lib/python2.4/site-**packages/Django-1.3.4-py2.4.**
>>> egg/django/core/files/storage.**py", line 265, in get_storage_class
>>>     raise ImproperlyConfigured('Error importing storage module %s: "%s"'
>>> % (module, e))
>>> django.core.exceptions.**ImproperlyConfigured: Error importing storage
>>> module pipeline.storage: "cannot import name CachedFilesMixin"
>>> Traceback (most recent call last):
>>>   File "/usr/bin/easy_install", line 7, in ?
>>>     sys.exit(
>>>   File "/usr/lib/python2.4/site-**packages/setuptools-0.6c12dev_**
>>> r88846-py2.4.egg/setuptools/**command/easy_install.py", line 1712, in
>>> main
>>> ..........
>>> snipped
>>> ...........
>>>     self.distribution.run_command(**command)
>>>   File "/usr/lib64/python2.4/**distutils/dist.py", line 966, in
>>> run_command
>>>     cmd_obj.run()
>>>   File "setup.py", line 63, in run
>>>   File "/usr/lib64/python2.4/**distutils/cmd.py", line 333, in
>>> run_command
>>>     self.distribution.run_command(**command)
>>>   File "/usr/lib64/python2.4/**distutils/dist.py", line 966, in
>>> run_command
>>>     cmd_obj.run()
>>>   File "setup.py", line 81, in run
>>> RuntimeError: Failed to build media files
>>>
>>>
>>> On Friday, November 30, 2012 3:38:07 AM UTC+5:30, Christian Hammond
>>> wrote:
>>>
>>>> Review Board "Better Late Than Never" 1.7 RC 1 is out. We had hoped to
>>>> get this out earlier, but hit some problems and annoyances during some
>>>> production use that we felt should be fixed first. So trust me, it was
>>>> worth the wait :)
>>>>
>>>> There's a lot of fixes, enhancements, and some small extension
>>>> interface changes in this release.
>>>>
>>>> See the news and release notes for more information.
>>>>
>>>> http://www.reviewboard.org/**new**s/2012/11/29/review-board-**1-7-**
>>>> rc-1-released/<http://www.reviewboard.org/news/2012/11/29/review-board-1-7-rc-1-released/>
>>>>
>>>> We'd like to ask those who plan to upgrade to 1.7 to please give it a
>>>> try. Aside from major fixes, we are hoping there won't be many changes made
>>>> until the final 1.7, so now's the time to report any regressions you hit.
>>>>
>>>> Christian
>>>>
>>>> --
>>>> Christian Hammond - chi...@chipx86.com
>>>>
>>>> Review Board - http://www.reviewboard.org
>>>> VMware, Inc. - http://www.vmware.com
>>>>
>>>
>>

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Reply via email to