Re: RB migrate and upgrade from 1.6.16 to 2.0.15

2015-05-29 Thread Christian Hammond
Glad it works!

- Christian 

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

-Original Message-
From: John McGowan 
Reply: reviewboard@googlegroups.com >
Date: May 29, 2015 at 7:06:37 AM
To: reviewboard@googlegroups.com >
Subject:  Re: RB migrate and upgrade from 1.6.16 to 2.0.15

> Thanks Christian, that solved it. Have the new version on running in
> parallel now as a hot standby on another node from the 1.6* version which
> was always a concern recreating it quickly.
>  
> Thanks again.
>  
> - John
>  
> On Thursday, 21 May 2015 16:29:27 UTC+1, John McGowan wrote:
>>
>> Hi,
>>
>> I've been trying to upgrade a RB instance that got to 1.6.16 to 2.0.15 on
>> another node (RH6.3 vs RH6.6).
>> I've the prereq packages on:
>>
>> # pip freeze
>> Beaker==1.3.1
>> cas==0.15
>> cups==1.0
>> cupshelpers==1.0
>> decorator==3.0.1
>> Django==1.6.11
>> django-evolution==0.7.5
>> django-haystack==2.3.1
>> django-pipeline==1.3.27
>> Djblets==0.6.28
>> docutils==0.12
>> ecdsa==0.13
>> ethtool==0.6
>> feedparser==5.2.0
>> firstboot==1.110
>> freeipa==2.0.0a0
>> futures==2.2.0
>> glusterfs-api==3.6.0.28
>> iniparse==0.3.1
>> iotop==0.3.2
>> ipapython==3.0.0
>> iwlib==1.0
>> kerberos==1.1
>> lxml==2.2.3
>> M2Crypto==0.20.2
>> Magic-file-extensions==0.1
>> Mako==0.3.4
>> Markdown==2.4.1
>> MarkupSafe==0.9.2
>> matplotlib==0.99.1.1
>> mercurial==3.4
>> mimeparse==0.1.3
>> MySQL-python==1.2.5
>> netaddr==0.7.5
>> nose==0.10.4
>> numpy==1.4.1
>> p4python==2014.1.925900
>> paramiko==1.15.2
>> PIL==1.1.7
>> Pillow==2.8.1
>> pillowfight==0.2
>> policycoreutils-default-encoding==0.1
>> pycrypto==2.6.1
>> pycurl==7.19.0
>> Pygments==2.0.2
>> pygpgme==0.1
>> pyOpenSSL==0.10
>> python-dateutil==1.5
>> python-default-encoding==0.1
>> python-dmidecode==3.10.13
>> python-ldap==2.3.10
>> python-meh==0.11
>> python-memcached==1.54
>> python-nss==0.13
>> pytz===2010h
>> pyxdg==0.18
>> recaptcha-client==1.0.6
>> ReviewBoard==2.0.15
>> rhnlib==2.5.22
>> rhsm==1.12.5
>> scdate==1.9.60
>> sckdump==2.0.5
>> scservices==0.99.45
>> scservices.dbus==0.99.45
>> setools==1.0
>> six==1.9.0
>> slip==0.2.20
>> slip.dbus==0.2.20
>> slip.gtk==0.2.20
>> smbc==1.0
>> SSSDConfig==1.11.6
>> suds==0.4.1
>> urlgrabber==3.9.1
>> virtinst==0.600.0
>> Whoosh==2.7.0
>> yum-metadata-parser==1.1.2
>>
>> D/B setup exactly as the old node with the same d/b|user|pass etc.
>>
>> Method:
>> # rb-site install
>> Then going in and dropping the d/b and creating the empty d/b again (I've
>> tried it without dropping the newly created one as well).
>> Taking the latest dump.sql from the old server and loading it into the new
>> d/b
>> Taking the latest htdocs/media/uploaded content to the new server from old
>> # rb-site upgrade 
>>
>> and getting these errors which I've seen mentioned around the web but
>> unsure how to correct and unsure how to read the evolve --hint to fix:
>>
>> 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)
>> 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:
>> The application markup has been deleted
>> In model scmtools.Repository:
>> Field '

Re: RB migrate and upgrade from 1.6.16 to 2.0.15

2015-05-29 Thread John McGowan
Thanks Christian, that solved it. Have the new version on running in 
parallel now as a hot standby on another node from the 1.6* version which 
was always a concern recreating it quickly.

Thanks again.

- John

On Thursday, 21 May 2015 16:29:27 UTC+1, John McGowan wrote:
>
> Hi,
>
> I've been trying to upgrade a RB instance that got to 1.6.16 to 2.0.15 on 
> another node (RH6.3 vs RH6.6). 
> I've the prereq packages on:
>
> # pip freeze
> Beaker==1.3.1
> cas==0.15
> cups==1.0
> cupshelpers==1.0
> decorator==3.0.1
> Django==1.6.11
> django-evolution==0.7.5
> django-haystack==2.3.1
> django-pipeline==1.3.27
> Djblets==0.6.28
> docutils==0.12
> ecdsa==0.13
> ethtool==0.6
> feedparser==5.2.0
> firstboot==1.110
> freeipa==2.0.0a0
> futures==2.2.0
> glusterfs-api==3.6.0.28
> iniparse==0.3.1
> iotop==0.3.2
> ipapython==3.0.0
> iwlib==1.0
> kerberos==1.1
> lxml==2.2.3
> M2Crypto==0.20.2
> Magic-file-extensions==0.1
> Mako==0.3.4
> Markdown==2.4.1
> MarkupSafe==0.9.2
> matplotlib==0.99.1.1
> mercurial==3.4
> mimeparse==0.1.3
> MySQL-python==1.2.5
> netaddr==0.7.5
> nose==0.10.4
> numpy==1.4.1
> p4python==2014.1.925900
> paramiko==1.15.2
> PIL==1.1.7
> Pillow==2.8.1
> pillowfight==0.2
> policycoreutils-default-encoding==0.1
> pycrypto==2.6.1
> pycurl==7.19.0
> Pygments==2.0.2
> pygpgme==0.1
> pyOpenSSL==0.10
> python-dateutil==1.5
> python-default-encoding==0.1
> python-dmidecode==3.10.13
> python-ldap==2.3.10
> python-meh==0.11
> python-memcached==1.54
> python-nss==0.13
> pytz===2010h
> pyxdg==0.18
> recaptcha-client==1.0.6
> ReviewBoard==2.0.15
> rhnlib==2.5.22
> rhsm==1.12.5
> scdate==1.9.60
> sckdump==2.0.5
> scservices==0.99.45
> scservices.dbus==0.99.45
> setools==1.0
> six==1.9.0
> slip==0.2.20
> slip.dbus==0.2.20
> slip.gtk==0.2.20
> smbc==1.0
> SSSDConfig==1.11.6
> suds==0.4.1
> urlgrabber==3.9.1
> virtinst==0.600.0
> Whoosh==2.7.0
> yum-metadata-parser==1.1.2
>
> D/B setup exactly as the old node with the same d/b|user|pass etc.
>
> Method:
> # rb-site install
> Then going in and dropping the d/b and creating the empty d/b again (I've 
> tried it without dropping the newly created one as well).
> Taking the latest dump.sql from the old server and loading it into the new 
> d/b
> Taking the latest htdocs/media/uploaded content to the new server from old
> # rb-site upgrade 
>
> and getting these errors which I've seen mentioned around the web but 
> unsure how to correct and unsure how to read the evolve --hint to fix:
>
> 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)
> 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:
> The application markup has been deleted
> In model scmtools.Repository:
> Field 'hosting_account' has been added
> Field 'extra_data' has been added
> CommandError: Your models contain changes that Django Evolution cannot 
> resolve automatically.
>
>
> # rb-site manage  list-evolutions
> Applied evolutions for 'sessions':
> session_expire_date_db_index
>
> Applied evolutions for 'accounts':
> is_private
>
> Applied evolutions for 'changedescs':
> fields_changed_longtext
>
> Applied evolutions for 'diffviewer':
> add_parent_diffs
> filediff_filenames_1024_chars
> diffset_basedir
> filediff_status
>
> Applied evolutions for 'reviews':
> change_descriptions
> last_review_timestamp
> shipit_count
> default_reviewer_repositories
> null_repository
> localsite
> group_incoming_request_count
> group_invite_only
> group_visible
> default_reviewer_local_site
> add_issues_to_comments
> file_attachments
>
> Applied evolutions for 'scmtools':
> bugzilla_url_charfield
> repository_raw_file_url
> repository_visible
> repository_path_length_255
> localsite
> repository_access_control
> group_site
> repository_hosting_accounts
> repository_extra_data_null
>
>
> Thanks in advance for any pointers in this.
>
> - John 
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to h

Re: RB migrate and upgrade from 1.6.16 to 2.0.15

2015-05-28 Thread Christian Hammond
Hi John,

Try the process again, but instead of ID 7, try deleting ID 6.

Basically, they have the same timestamp, but different content, and one is 
being chosen incorrectly over the other. If deleting 7 didn't fix it, 6 
probably will.

Christian
 

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

-Original Message-
From: John McGowan 
Reply: reviewboard@googlegroups.com >
Date: May 28, 2015 at 2:21:05 PM
To: reviewboard@googlegroups.com >
Subject:  Re: RB migrate and upgrade from 1.6.16 to 2.0.15

> Hi Christian,
>  
> Tried it there on new install, import d/b and then the upgrade. Before
> upgrade ID 7 existed just as you say, and after the upgrade 8 exists.
> Output looks similar in error to the original run. Would any further d/b
> dumps assist you here?
>  
> # rb-site upgrade 
> 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 ...
> Upgrading Review Board from 1.6.16 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
> 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:
> The application markup has been deleted
> In model scmtools.Repository:
> Field 'hosting_account' has been added
> Field 'extra_data' has been added
> CommandError: Your models contain changes that Django Evolution cannot
> resolve automatically.
>  
>  
> - John
>  
>  
>  
>  
> On Thursday, 21 May 2015 16:29:27 UTC+1, John McGowan wrote:
>>
>> Hi,
>>
>> I've been trying to upgrade a RB instance that got to 1.6.16 to 2.0.15 on
>> another node (RH6.3 vs RH6.6).
>> I've the prereq packages on:
>>
>> # pip freeze
>> Beaker==1.3.1
>> cas==0.15
>> cups==1.0
>> cupshelpers==1.0
>> decorator==3.0.1
>> Django==1.6.11
>> django-evolution==0.7.5
>> django-haystack==2.3.1
>> django-pipeline==1.3.27
>> Djblets==0.6.28
>> docutils==0.12
>> ecdsa==0.13
>> ethtool==0.6
>> feedparser==5.2.0
>> firstboot==1.110
>> freeipa==2.0.0a0
>> futures==2.2.0
>> glusterfs-api==3.6.0.28
>> iniparse==0.3.1
>> iotop==0.3.2
>> ipapython==3.0.0
>> iwlib==1.0
>> kerberos==1.1
>> lxml==2.2.3
>> M2Crypto==0.20.2
>> Magic-file-extensions==0.1
>> Mako==0.3.4
>> Markdown==2.4.1
>> MarkupSafe==0.9.2
>> matplotlib==0.99.1.1
>> mercurial==3.4
>> mimeparse==0.1.3
>> MySQL-python==1.2.5
>> netaddr==0.7.5
>> nose==0.10.4
>> numpy==1.4.1
>> p4python==2014.1.925900
>> paramiko==1.15.2
>> PIL==1.1.7
>> Pillow==2.8.1
>> pillowfight==0.2
>> policycoreutils-default-encoding==0.1
>> pycrypto==2.6.1
>> pycurl==7.19.0
>> Pygments==2.0.2
>> pygpgme==0.1
>> pyOpenSSL==0.10
>> python-dateutil==1.5
>> python-default-encoding==0.1
>> python-dmidecode==3.10.13
>> python-ldap==2.3.10
>> python-meh==0.11
>> python-memcached==1.54
>> python-nss==0.13
>> pytz===2010h
>> pyxdg==0.18
>> recaptcha-client==1.0.6
>> ReviewBoard==2.0.15
>> rhnlib==2.5.22
>> rhsm==1.12.5
>> scdate==1.9.60
>> sckdump==2.0.5
>> scservices==0.99.45
>> scservices.dbus==0.99.45
>> setools==1.0
>> six==1.9.0
>> slip==0.2.20
>> slip.dbus==0.2.20
>> slip.gtk==0.2.20
>> smbc==1.0
>> SSSDConfig==1.11.6
>> suds==0.4.1
>> urlgrabber==3.9.1
>> virtinst==0.600.0
>> Whoosh==2.7.0
>> yum-metadata-parser==1.1.2
>>
>> D/B setup exactly as the old node with the same d/b|user|pass etc.
>>
>> Method:
>> # rb-site install
>> Then going in and droppi

Re: RB migrate and upgrade from 1.6.16 to 2.0.15

2015-05-28 Thread John McGowan
Hi Christian,

Tried it there on new install, import d/b and then the upgrade. Before 
upgrade ID 7 existed just as you say, and after the upgrade 8 exists. 
Output looks similar in error to the original run. Would any further d/b 
dumps assist you here?

# rb-site upgrade 
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 ...
Upgrading Review Board from 1.6.16 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
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:
The application markup has been deleted
In model scmtools.Repository:
Field 'hosting_account' has been added
Field 'extra_data' has been added
CommandError: Your models contain changes that Django Evolution cannot 
resolve automatically.


- John




On Thursday, 21 May 2015 16:29:27 UTC+1, John McGowan wrote:
>
> Hi,
>
> I've been trying to upgrade a RB instance that got to 1.6.16 to 2.0.15 on 
> another node (RH6.3 vs RH6.6). 
> I've the prereq packages on:
>
> # pip freeze
> Beaker==1.3.1
> cas==0.15
> cups==1.0
> cupshelpers==1.0
> decorator==3.0.1
> Django==1.6.11
> django-evolution==0.7.5
> django-haystack==2.3.1
> django-pipeline==1.3.27
> Djblets==0.6.28
> docutils==0.12
> ecdsa==0.13
> ethtool==0.6
> feedparser==5.2.0
> firstboot==1.110
> freeipa==2.0.0a0
> futures==2.2.0
> glusterfs-api==3.6.0.28
> iniparse==0.3.1
> iotop==0.3.2
> ipapython==3.0.0
> iwlib==1.0
> kerberos==1.1
> lxml==2.2.3
> M2Crypto==0.20.2
> Magic-file-extensions==0.1
> Mako==0.3.4
> Markdown==2.4.1
> MarkupSafe==0.9.2
> matplotlib==0.99.1.1
> mercurial==3.4
> mimeparse==0.1.3
> MySQL-python==1.2.5
> netaddr==0.7.5
> nose==0.10.4
> numpy==1.4.1
> p4python==2014.1.925900
> paramiko==1.15.2
> PIL==1.1.7
> Pillow==2.8.1
> pillowfight==0.2
> policycoreutils-default-encoding==0.1
> pycrypto==2.6.1
> pycurl==7.19.0
> Pygments==2.0.2
> pygpgme==0.1
> pyOpenSSL==0.10
> python-dateutil==1.5
> python-default-encoding==0.1
> python-dmidecode==3.10.13
> python-ldap==2.3.10
> python-meh==0.11
> python-memcached==1.54
> python-nss==0.13
> pytz===2010h
> pyxdg==0.18
> recaptcha-client==1.0.6
> ReviewBoard==2.0.15
> rhnlib==2.5.22
> rhsm==1.12.5
> scdate==1.9.60
> sckdump==2.0.5
> scservices==0.99.45
> scservices.dbus==0.99.45
> setools==1.0
> six==1.9.0
> slip==0.2.20
> slip.dbus==0.2.20
> slip.gtk==0.2.20
> smbc==1.0
> SSSDConfig==1.11.6
> suds==0.4.1
> urlgrabber==3.9.1
> virtinst==0.600.0
> Whoosh==2.7.0
> yum-metadata-parser==1.1.2
>
> D/B setup exactly as the old node with the same d/b|user|pass etc.
>
> Method:
> # rb-site install
> Then going in and dropping the d/b and creating the empty d/b again (I've 
> tried it without dropping the newly created one as well).
> Taking the latest dump.sql from the old server and loading it into the new 
> d/b
> Taking the latest htdocs/media/uploaded content to the new server from old
> # rb-site upgrade 
>
> and getting these errors which I've seen mentioned around the web but 
> unsure how to correct and unsure how to read the evolve --hint to fix:
>
> 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)
> 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:
> The appli

Re: RB migrate and upgrade from 1.6.16 to 2.0.15

2015-05-28 Thread Christian Hammond
Hey John,

Sorry, haven't had time until now.

So first, back up your database. I then want you to try this:

DELETE FROM django_project_version WHERE id IN (7, 8);

There's an issue that's come up a couple of times in django-evolution,
which I have not been able to trace, where two entries get recorded for the
same timestamp, but one contains the old version of the database schema
while the other contains the new version. This *should* correct that.

Ideally, you should do this on a copy of the database prior to your
previous upgrade, if possible, just to rule out any other modifications
made during the failed upgrade process. (In that case, ID #8 may not exist.)

Let me know if that works for you!

Christian

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

On Thu, May 28, 2015 at 3:45 AM, John McGowan 
wrote:

> Hi Christian,
>
> Any pointers on this problem?
>
> Thanks,
>   John
>
> On Thursday, 21 May 2015 16:29:27 UTC+1, John McGowan wrote:
>
>> Hi,
>>
>> I've been trying to upgrade a RB instance that got to 1.6.16 to 2.0.15 on
>> another node (RH6.3 vs RH6.6).
>> I've the prereq packages on:
>>
>> # pip freeze
>> Beaker==1.3.1
>> cas==0.15
>> cups==1.0
>> cupshelpers==1.0
>> decorator==3.0.1
>> Django==1.6.11
>> django-evolution==0.7.5
>> django-haystack==2.3.1
>> django-pipeline==1.3.27
>> Djblets==0.6.28
>> docutils==0.12
>> ecdsa==0.13
>> ethtool==0.6
>> feedparser==5.2.0
>> firstboot==1.110
>> freeipa==2.0.0a0
>> futures==2.2.0
>> glusterfs-api==3.6.0.28
>> iniparse==0.3.1
>> iotop==0.3.2
>> ipapython==3.0.0
>> iwlib==1.0
>> kerberos==1.1
>> lxml==2.2.3
>> M2Crypto==0.20.2
>> Magic-file-extensions==0.1
>> Mako==0.3.4
>> Markdown==2.4.1
>> MarkupSafe==0.9.2
>> matplotlib==0.99.1.1
>> mercurial==3.4
>> mimeparse==0.1.3
>> MySQL-python==1.2.5
>> netaddr==0.7.5
>> nose==0.10.4
>> numpy==1.4.1
>> p4python==2014.1.925900
>> paramiko==1.15.2
>> PIL==1.1.7
>> Pillow==2.8.1
>> pillowfight==0.2
>> policycoreutils-default-encoding==0.1
>> pycrypto==2.6.1
>> pycurl==7.19.0
>> Pygments==2.0.2
>> pygpgme==0.1
>> pyOpenSSL==0.10
>> python-dateutil==1.5
>> python-default-encoding==0.1
>> python-dmidecode==3.10.13
>> python-ldap==2.3.10
>> python-meh==0.11
>> python-memcached==1.54
>> python-nss==0.13
>> pytz===2010h
>> pyxdg==0.18
>> recaptcha-client==1.0.6
>> ReviewBoard==2.0.15
>> rhnlib==2.5.22
>> rhsm==1.12.5
>> scdate==1.9.60
>> sckdump==2.0.5
>> scservices==0.99.45
>> scservices.dbus==0.99.45
>> setools==1.0
>> six==1.9.0
>> slip==0.2.20
>> slip.dbus==0.2.20
>> slip.gtk==0.2.20
>> smbc==1.0
>> SSSDConfig==1.11.6
>> suds==0.4.1
>> urlgrabber==3.9.1
>> virtinst==0.600.0
>> Whoosh==2.7.0
>> yum-metadata-parser==1.1.2
>>
>> D/B setup exactly as the old node with the same d/b|user|pass etc.
>>
>> Method:
>> # rb-site install
>> Then going in and dropping the d/b and creating the empty d/b again (I've
>> tried it without dropping the newly created one as well).
>> Taking the latest dump.sql from the old server and loading it into the
>> new d/b
>> Taking the latest htdocs/media/uploaded content to the new server from old
>> # rb-site upgrade 
>>
>> and getting these errors which I've seen mentioned around the web but
>> unsure how to correct and unsure how to read the evolve --hint to fix:
>>
>> 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)
>> 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:
>> The application markup has been deleted
>> In model scmtools.Repository:
>> Field 'hosting_account' has been added
>> Field 'extra_data' has been added
>> CommandError: Your models contain changes that Django Evolution cannot
>> resolve automatically.
>>
>>
>> # rb-site manage  list-evolutions
>> Applied evolutions for 'sessions':
>> session_expire_date_db_index
>>
>> Applied evolutions for 'accounts':
>> is_private
>>
>> Applied evolutions for 'changedescs':
>> fields_changed_longtext
>>
>> Applied evolutions for 'diffviewer':

Re: RB migrate and upgrade from 1.6.16 to 2.0.15

2015-05-28 Thread John McGowan
Hi Christian, 

Any pointers on this problem?

Thanks,
  John

On Thursday, 21 May 2015 16:29:27 UTC+1, John McGowan wrote:
>
> Hi,
>
> I've been trying to upgrade a RB instance that got to 1.6.16 to 2.0.15 on 
> another node (RH6.3 vs RH6.6). 
> I've the prereq packages on:
>
> # pip freeze
> Beaker==1.3.1
> cas==0.15
> cups==1.0
> cupshelpers==1.0
> decorator==3.0.1
> Django==1.6.11
> django-evolution==0.7.5
> django-haystack==2.3.1
> django-pipeline==1.3.27
> Djblets==0.6.28
> docutils==0.12
> ecdsa==0.13
> ethtool==0.6
> feedparser==5.2.0
> firstboot==1.110
> freeipa==2.0.0a0
> futures==2.2.0
> glusterfs-api==3.6.0.28
> iniparse==0.3.1
> iotop==0.3.2
> ipapython==3.0.0
> iwlib==1.0
> kerberos==1.1
> lxml==2.2.3
> M2Crypto==0.20.2
> Magic-file-extensions==0.1
> Mako==0.3.4
> Markdown==2.4.1
> MarkupSafe==0.9.2
> matplotlib==0.99.1.1
> mercurial==3.4
> mimeparse==0.1.3
> MySQL-python==1.2.5
> netaddr==0.7.5
> nose==0.10.4
> numpy==1.4.1
> p4python==2014.1.925900
> paramiko==1.15.2
> PIL==1.1.7
> Pillow==2.8.1
> pillowfight==0.2
> policycoreutils-default-encoding==0.1
> pycrypto==2.6.1
> pycurl==7.19.0
> Pygments==2.0.2
> pygpgme==0.1
> pyOpenSSL==0.10
> python-dateutil==1.5
> python-default-encoding==0.1
> python-dmidecode==3.10.13
> python-ldap==2.3.10
> python-meh==0.11
> python-memcached==1.54
> python-nss==0.13
> pytz===2010h
> pyxdg==0.18
> recaptcha-client==1.0.6
> ReviewBoard==2.0.15
> rhnlib==2.5.22
> rhsm==1.12.5
> scdate==1.9.60
> sckdump==2.0.5
> scservices==0.99.45
> scservices.dbus==0.99.45
> setools==1.0
> six==1.9.0
> slip==0.2.20
> slip.dbus==0.2.20
> slip.gtk==0.2.20
> smbc==1.0
> SSSDConfig==1.11.6
> suds==0.4.1
> urlgrabber==3.9.1
> virtinst==0.600.0
> Whoosh==2.7.0
> yum-metadata-parser==1.1.2
>
> D/B setup exactly as the old node with the same d/b|user|pass etc.
>
> Method:
> # rb-site install
> Then going in and dropping the d/b and creating the empty d/b again (I've 
> tried it without dropping the newly created one as well).
> Taking the latest dump.sql from the old server and loading it into the new 
> d/b
> Taking the latest htdocs/media/uploaded content to the new server from old
> # rb-site upgrade 
>
> and getting these errors which I've seen mentioned around the web but 
> unsure how to correct and unsure how to read the evolve --hint to fix:
>
> 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)
> 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:
> The application markup has been deleted
> In model scmtools.Repository:
> Field 'hosting_account' has been added
> Field 'extra_data' has been added
> CommandError: Your models contain changes that Django Evolution cannot 
> resolve automatically.
>
>
> # rb-site manage  list-evolutions
> Applied evolutions for 'sessions':
> session_expire_date_db_index
>
> Applied evolutions for 'accounts':
> is_private
>
> Applied evolutions for 'changedescs':
> fields_changed_longtext
>
> Applied evolutions for 'diffviewer':
> add_parent_diffs
> filediff_filenames_1024_chars
> diffset_basedir
> filediff_status
>
> Applied evolutions for 'reviews':
> change_descriptions
> last_review_timestamp
> shipit_count
> default_reviewer_repositories
> null_repository
> localsite
> group_incoming_request_count
> group_invite_only
> group_visible
> default_reviewer_local_site
> add_issues_to_comments
> file_attachments
>
> Applied evolutions for 'scmtools':
> bugzilla_url_charfield
> repository_raw_file_url
> repository_visible
> repository_path_length_255
> localsite
> repository_access_control
> group_site
> repository_hosting_accounts
> repository_extra_data_null
>
>
> Thanks in advance for any pointers in this.
>
> - John 
>

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

Re: RB migrate and upgrade from 1.6.16 to 2.0.15

2015-05-21 Thread Christian Hammond
Hi John,

This looks like some state is a bit messed up in the database for the
evolution history. Can you attach an SQL dump of the contents of the
django_project_version and django_evolution tables?

Christian

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

On Thu, May 21, 2015 at 6:24 AM, John McGowan 
wrote:

> Hi,
>
> I've been trying to upgrade a RB instance that got to 1.6.16 to 2.0.15 on
> another node (RH6.3 vs RH6.6).
> I've the prereq packages on:
>
> # pip freeze
> Beaker==1.3.1
> cas==0.15
> cups==1.0
> cupshelpers==1.0
> decorator==3.0.1
> Django==1.6.11
> django-evolution==0.7.5
> django-haystack==2.3.1
> django-pipeline==1.3.27
> Djblets==0.6.28
> docutils==0.12
> ecdsa==0.13
> ethtool==0.6
> feedparser==5.2.0
> firstboot==1.110
> freeipa==2.0.0a0
> futures==2.2.0
> glusterfs-api==3.6.0.28
> iniparse==0.3.1
> iotop==0.3.2
> ipapython==3.0.0
> iwlib==1.0
> kerberos==1.1
> lxml==2.2.3
> M2Crypto==0.20.2
> Magic-file-extensions==0.1
> Mako==0.3.4
> Markdown==2.4.1
> MarkupSafe==0.9.2
> matplotlib==0.99.1.1
> mercurial==3.4
> mimeparse==0.1.3
> MySQL-python==1.2.5
> netaddr==0.7.5
> nose==0.10.4
> numpy==1.4.1
> p4python==2014.1.925900
> paramiko==1.15.2
> PIL==1.1.7
> Pillow==2.8.1
> pillowfight==0.2
> policycoreutils-default-encoding==0.1
> pycrypto==2.6.1
> pycurl==7.19.0
> Pygments==2.0.2
> pygpgme==0.1
> pyOpenSSL==0.10
> python-dateutil==1.5
> python-default-encoding==0.1
> python-dmidecode==3.10.13
> python-ldap==2.3.10
> python-meh==0.11
> python-memcached==1.54
> python-nss==0.13
> pytz===2010h
> pyxdg==0.18
> recaptcha-client==1.0.6
> ReviewBoard==2.0.15
> rhnlib==2.5.22
> rhsm==1.12.5
> scdate==1.9.60
> sckdump==2.0.5
> scservices==0.99.45
> scservices.dbus==0.99.45
> setools==1.0
> six==1.9.0
> slip==0.2.20
> slip.dbus==0.2.20
> slip.gtk==0.2.20
> smbc==1.0
> SSSDConfig==1.11.6
> suds==0.4.1
> urlgrabber==3.9.1
> virtinst==0.600.0
> Whoosh==2.7.0
> yum-metadata-parser==1.1.2
>
> D/B setup exactly as the old node with the same d/b|user|pass etc.
>
> Method:
> # rb-site install
> Then going in and dropping the d/b and creating the empty d/b again (I've
> tried it without dropping the newly created one as well).
> Taking the latest dump.sql from the old server and loading it into the new
> d/b
> Taking the latest htdocs/media/uploaded content to the new server from old
> # rb-site upgrade 
>
> and getting these errors which I've seen mentioned around the web but
> unsure how to correct and unsure how to read the evolve --hint to fix:
>
> 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)
> 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:
> The application markup has been deleted
> In model scmtools.Repository:
> Field 'hosting_account' has been added
> Field 'extra_data' has been added
> CommandError: Your models contain changes that Django Evolution cannot
> resolve automatically.
>
>
> # rb-site manage  list-evolutions
> Applied evolutions for 'sessions':
> session_expire_date_db_index
>
> Applied evolutions for 'accounts':
> is_private
>
> Applied evolutions for 'changedescs':
> fields_changed_longtext
>
> Applied evolutions for 'diffviewer':
> add_parent_diffs
> filediff_filenames_1024_chars
> diffset_basedir
> filediff_status
>
> Applied evolutions for 'reviews':
> change_descriptions
> last_review_timestamp
> shipit_count
> default_reviewer_repositories
> null_repository
> localsite
> group_incoming_request_count
> group_invite_only
> group_visible
> default_reviewer_local_site
> add_issues_to_comments
> file_attachments
>
> Applied evolutions for 'scmtools':
> bugzilla_url_charfield
> repository_raw_file_url
> repository_visible
> repository_path_length_255
> localsite
> repository_access_control
> group_site
> repository_hosting_accounts
> repository_extra_data_null
>
>
> Thanks in advance for any pointers in this.
>
>