Re: RBTools 0.5.2 is released!

2013-08-23 Thread Matthew Woehlke

On 2013-08-23 07:43, Stephen Gallagher wrote:

On 08/22/2013 05:02 PM, Matthew Woehlke wrote:

Ah, well, I was wanting to rewrite the whole thing in Python anyway :-).
(Trying to do that and skirt around where RBTools wants a deprecated
optparse... now that's interesting...)


optparse is deprecated, not removed.


Sure, but (1) I'd prefer to not have any more barriers than necessary 
for eventually moving my code to Python 3.x (e.g. I'm also trying to 
respect some syntax issues with 2 vs. 3 that I know about), and honsetly 
(2) I like argparse better :-).


Anyway, as it turns out I don't want to be calling all of rbt's option 
handling anyway, so it becomes more an 'issue' that I need to synthesize 
an 'options' object with the attributes that the pieces I'm calling 
expect to be there.


--
Matthew

--
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
--- 
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/groups/opt_out.


Re: Error migrating and upgrading from 1.6.6 to 1.7.13

2013-08-23 Thread Alfred von Campe
On Aug 23, 2013, at 16:29, David Trowbridge  wrote:

> Let's try this--after creating the new site, but before loading the database 
> dump, delete the new database that rb-site created.

Sigh, I started playing with installing ReviewBoard 1.6 with easy install, and 
seems to have broken rb-site:

Traceback (most recent call last):
  File "/usr/bin/rb-site", line 5, in 
from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2659, in 

parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: paramiko>=1.9.0

Even after re-installing ReviewBoard and python-paramiko I keep getting this 
error.

I will try again on Monday as I need to lave work soon.

Thanks for a great product and support,
Alfred


-- 
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
--- 
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/groups/opt_out.


Re: Error migrating and upgrading from 1.6.6 to 1.7.13

2013-08-23 Thread Christian Hammond
It's probably safe enough to install a new 1.7.x site, nuke the database,
copy the old one over, and do an upgrade, without reinstalling 1.6.x. The
major changes are in the database, and the in-DB versioning should work
fine from a 1.7.x install.

One important thing is to copy over the SECRET_KEY from your
settings_local.py first.

Christian


On Friday, August 23, 2013, David Trowbridge wrote:

> Alfred,
>
> What's happening is that rb-site install is creating a bunch of tables,
> and then you're importing in the database dump but it's ending up with a
> mix of old and new.
>
> I'd recommend installing 1.6.6 on the new server, importing the database
> dump, and then upgrading in-place.
>
> -David
>
>
> On Fri, Aug 23, 2013 at 8:41 AM, Alfred von Campe wrote:
>
> I'm trying to upgrade a REviewBoard instance from 1.6.6 to 1.7.13.  I've
> created a dump of the existing database and am running the following script
> on the new server:
>
> #!/bin/sh
>
> RB_SITE="/var/www/html/rb"
> RB_USER="admin"
> RB_EMAIL=""
> RB_DOMAIN=""
> RB_PASSWORD=""
>
> # Delete and create empty rb database
> echo "drop database reviewboard; create database reviewboard; use
> reviewboard; grant all privileges on revieboard.* to 'rb'@'localhost'
> identified by '$RB_PASSWORD' with grant option;" | mysql -u rb
> -p"$RB_PASSWORD"
>
> # Delete existing ReviewBoard site directory so it can be recreated
> /bin/rm -fr $RB_SITE
>
> # Create the new ReviewBoard site
> rb-site install --console --noinput --domain-name=$RB_DOMAIN --site-root=/
> --db-type=mysql --db-name=reviewboard --db-host=localhost --db-user=rb
> --db-pass="$RB_PASSWORD" --cache-type=memcached --web-server-type=apache
> --python-loader=wsgi --admin-user=admin --admin-password="$RB_PASSWORD"
> --admin-email=$RB_EMAIL --cache-info=localhost:11211 $RB_SITE
>
> # Import tables from old database
> echo
> echo "Importing tables from old database (please wait...)"
> mysql -u rb -p"$RB_PASSWORD" < $(dirname $RB_SITE)/rb_dump.sql
>
> # Upgrade ReviewBoard site (trying twice)
> rb-site upgrade $RB_SITE
> rb-site upgrade $RB_SITE
> rb-site manage  $RB_SITE list-evolutions
>
>
> The full log is attached, but the gist is that the rb-site upgrade fails
> with the following error:
>
> Error: Error applying evolution: (1050, "Table
> 'reviews_reviewrequest_depends_on' already exists")
>
> If I run rb-site upgrade again I get the following error:
>
>  Error: Error applying evolution: (1051, "Unknown table 'auth_message'")
>
> The log also contains the about of the rb-site manage list-evolutions
> command.
>
> I would appreciate any information on how I can make this migration work.
>
> Thanks,
> Alfred
>
> --
> 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
> ---
> 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/groups/opt_out.
>
>
>  --
> 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
> ---
> 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 



-- 
-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.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
--- 
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/groups/opt_out.


Re: Error migrating and upgrading from 1.6.6 to 1.7.13

2013-08-23 Thread David Trowbridge
Let's try this--after creating the new site, but before loading the
database dump, delete the new database that rb-site created.

-David



On Fri, Aug 23, 2013 at 1:26 PM, Alfred von Campe wrote:

> On Aug 23, 2013, at 16:14, David Trowbridge  wrote:
>
> What's happening is that rb-site install is creating a bunch of tables,
> and then you're importing in the database dump but it's ending up with a
> mix of old and new.
>
> I'd recommend installing 1.6.6 on the new server, importing the database
> dump, and then upgrading in-place.
>
>
> Hmm, easier said than done, I think.  I neglected to mention that the old
> server is running CentOS 5.9 with ReviewBoard installed via easy_install,
> and the new server is running CentOS 6.4 with ReviewBoard installed from
> the peel repo.  So how do Install 1.6.X on the new server?  I guess I would
> have to:
>
>   o Uninstall ReviewBoard 1.7.X via yum remove (yum remove ReviewBoard
> pythin-django-evolution python-django-peipeline python-djblets)
>   o Install ReviewBoard 1.6.X via easy_install (what is the exact command
> I need so that 1.6.6 gets installed?)
>   o Install ReviewBoard 1.7.X via yum
>
> I am unsure how to install 1.6.X, so the exact easy_install command would
> be appreciated.  Also, I worry that mixing easy_install and yum
> installations of ReviewBoard on the same server may cause some issues down
> the road.  Has anyone done this?  My other option would be to do this on a
> test server, and then export the 1.7.X database to the production server so
> that I don't mix the two installation methods on the production server.
>
> Alfred
>
> --
> 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
> ---
> 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/groups/opt_out.
>

-- 
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
--- 
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/groups/opt_out.


Re: Error migrating and upgrading from 1.6.6 to 1.7.13

2013-08-23 Thread Alfred von Campe
On Aug 23, 2013, at 16:14, David Trowbridge  wrote:

> What's happening is that rb-site install is creating a bunch of tables, and 
> then you're importing in the database dump but it's ending up with a mix of 
> old and new.
> 
> I'd recommend installing 1.6.6 on the new server, importing the database 
> dump, and then upgrading in-place.

Hmm, easier said than done, I think.  I neglected to mention that the old 
server is running CentOS 5.9 with ReviewBoard installed via easy_install, and 
the new server is running CentOS 6.4 with ReviewBoard installed from the peel 
repo.  So how do Install 1.6.X on the new server?  I guess I would have to:

  o Uninstall ReviewBoard 1.7.X via yum remove (yum remove ReviewBoard 
pythin-django-evolution python-django-peipeline python-djblets)
  o Install ReviewBoard 1.6.X via easy_install (what is the exact command I 
need so that 1.6.6 gets installed?)
  o Install ReviewBoard 1.7.X via yum

I am unsure how to install 1.6.X, so the exact easy_install command would be 
appreciated.  Also, I worry that mixing easy_install and yum installations of 
ReviewBoard on the same server may cause some issues down the road.  Has anyone 
done this?  My other option would be to do this on a test server, and then 
export the 1.7.X database to the production server so that I don't mix the two 
installation methods on the production server.

Alfred

-- 
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
--- 
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/groups/opt_out.


Re: RBTools 0.5.2 is released!

2013-08-23 Thread Christian Hammond
On Friday, August 23, 2013, Stephen Gallagher wrote:

> On 08/23/2013 03:32 PM, Christian Hammond wrote:
> > On Fri, Aug 23, 2013 at 4:43 AM, Stephen Gallagher
> >   step...@gallagherhome.com >> wrote:
> >
> > On 08/22/2013 05:02 PM, Matthew Woehlke wrote:
> > > Ah, well, I was wanting to rewrite the whole thing in Python
> > anyway :-).
> > > (Trying to do that and skirt around where RBTools wants a
> deprecated
> > > optparse... now that's interesting...)
> > >
> >
> > optparse is deprecated, not removed. It's not going to see any new
> > development, but last I heard it's going to remain available
> > indefinitely. Also, as python 2.7 is the last release in the Python 2
> > line, it's pretty clear that it's never going to be removed from that
> > series. That gives ReviewBoard (and anyone consuming RBTools) until
> at
> > least 2015 to deal with the migration (since the Python upstream has
> > committed to bug-fix support of Python 2.7 for five years after its
> > release). Beyond that, I know of certain enterprise OSes that will
> > likely extend the usable life of Python themselves.
> >
> > With that in mind, though: Christian, will ReviewBoard 1.8 be
> supporting
> > Python 3.x?
> >
> >
> > Right, it should be safe to depend on RBTools with optparse and all that
> > for some time. We have a lot of people relying on Python 2.x, and will
> > probably support it for quite a while.
> >
> > Review Board 1.8 will not support Python 3.x. While Django is now
> > starting to support it, we still have a number of dependencies we need
> > to check on, several of which likely need work, and nobody has even
> > begun that, let alone tested any of it with Review Board. There's going
> > to be a lot of work needed on our codebase as well. It's going to be
> > quite an undertaking (one that I very much want help with).
> >
> > I'm spending almost every waking moment of 1.8, and there's still a lot
> > of work to do on it. I don't want to delay the release any further than
> > it's already delayed. Maybe we can prioritize this for the next big
> release.
> >
>
>
> Sorry, I should have been clear that this was a curiosity, not a request :)


Oh I know, just figured I'd talk about it a bit :)

Christian


-- 
-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.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
--- 
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/groups/opt_out.


Re: Error migrating and upgrading from 1.6.6 to 1.7.13

2013-08-23 Thread David Trowbridge
Alfred,

What's happening is that rb-site install is creating a bunch of tables, and
then you're importing in the database dump but it's ending up with a mix of
old and new.

I'd recommend installing 1.6.6 on the new server, importing the database
dump, and then upgrading in-place.

-David


On Fri, Aug 23, 2013 at 8:41 AM, Alfred von Campe wrote:

> I'm trying to upgrade a REviewBoard instance from 1.6.6 to 1.7.13.  I've
> created a dump of the existing database and am running the following script
> on the new server:
>
> #!/bin/sh
>
> RB_SITE="/var/www/html/rb"
> RB_USER="admin"
> RB_EMAIL=""
> RB_DOMAIN=""
> RB_PASSWORD=""
>
> # Delete and create empty rb database
> echo "drop database reviewboard; create database reviewboard; use
> reviewboard; grant all privileges on revieboard.* to 'rb'@'localhost'
> identified by '$RB_PASSWORD' with grant option;" | mysql -u rb
> -p"$RB_PASSWORD"
>
> # Delete existing ReviewBoard site directory so it can be recreated
> /bin/rm -fr $RB_SITE
>
> # Create the new ReviewBoard site
> rb-site install --console --noinput --domain-name=$RB_DOMAIN --site-root=/
> --db-type=mysql --db-name=reviewboard --db-host=localhost --db-user=rb
> --db-pass="$RB_PASSWORD" --cache-type=memcached --web-server-type=apache
> --python-loader=wsgi --admin-user=admin --admin-password="$RB_PASSWORD"
> --admin-email=$RB_EMAIL --cache-info=localhost:11211 $RB_SITE
>
> # Import tables from old database
> echo
> echo "Importing tables from old database (please wait...)"
> mysql -u rb -p"$RB_PASSWORD" < $(dirname $RB_SITE)/rb_dump.sql
>
> # Upgrade ReviewBoard site (trying twice)
> rb-site upgrade $RB_SITE
> rb-site upgrade $RB_SITE
> rb-site manage  $RB_SITE list-evolutions
>
>
> The full log is attached, but the gist is that the rb-site upgrade fails
> with the following error:
>
> Error: Error applying evolution: (1050, "Table
> 'reviews_reviewrequest_depends_on' already exists")
>
> If I run rb-site upgrade again I get the following error:
>
>  Error: Error applying evolution: (1051, "Unknown table 'auth_message'")
>
> The log also contains the about of the rb-site manage list-evolutions
> command.
>
> I would appreciate any information on how I can make this migration work.
>
> Thanks,
> Alfred
>
> --
> 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
> ---
> 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/groups/opt_out.
>

-- 
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
--- 
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/groups/opt_out.


Re: RBTools 0.5.2 is released!

2013-08-23 Thread Stephen Gallagher
On 08/23/2013 03:32 PM, Christian Hammond wrote:
> On Fri, Aug 23, 2013 at 4:43 AM, Stephen Gallagher
> mailto:step...@gallagherhome.com>> wrote:
> 
> On 08/22/2013 05:02 PM, Matthew Woehlke wrote:
> > Ah, well, I was wanting to rewrite the whole thing in Python
> anyway :-).
> > (Trying to do that and skirt around where RBTools wants a deprecated
> > optparse... now that's interesting...)
> >
> 
> optparse is deprecated, not removed. It's not going to see any new
> development, but last I heard it's going to remain available
> indefinitely. Also, as python 2.7 is the last release in the Python 2
> line, it's pretty clear that it's never going to be removed from that
> series. That gives ReviewBoard (and anyone consuming RBTools) until at
> least 2015 to deal with the migration (since the Python upstream has
> committed to bug-fix support of Python 2.7 for five years after its
> release). Beyond that, I know of certain enterprise OSes that will
> likely extend the usable life of Python themselves.
> 
> With that in mind, though: Christian, will ReviewBoard 1.8 be supporting
> Python 3.x?
> 
> 
> Right, it should be safe to depend on RBTools with optparse and all that
> for some time. We have a lot of people relying on Python 2.x, and will
> probably support it for quite a while.
> 
> Review Board 1.8 will not support Python 3.x. While Django is now
> starting to support it, we still have a number of dependencies we need
> to check on, several of which likely need work, and nobody has even
> begun that, let alone tested any of it with Review Board. There's going
> to be a lot of work needed on our codebase as well. It's going to be
> quite an undertaking (one that I very much want help with).
> 
> I'm spending almost every waking moment of 1.8, and there's still a lot
> of work to do on it. I don't want to delay the release any further than
> it's already delayed. Maybe we can prioritize this for the next big release.
> 


Sorry, I should have been clear that this was a curiosity, not a request :)


-- 
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
--- 
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/groups/opt_out.


Re: RBTools 0.5.2 is released!

2013-08-23 Thread Christian Hammond
On Fri, Aug 23, 2013 at 4:43 AM, Stephen Gallagher <
step...@gallagherhome.com> wrote:

> On 08/22/2013 05:02 PM, Matthew Woehlke wrote:
> > Ah, well, I was wanting to rewrite the whole thing in Python anyway :-).
> > (Trying to do that and skirt around where RBTools wants a deprecated
> > optparse... now that's interesting...)
> >
>
> optparse is deprecated, not removed. It's not going to see any new
> development, but last I heard it's going to remain available
> indefinitely. Also, as python 2.7 is the last release in the Python 2
> line, it's pretty clear that it's never going to be removed from that
> series. That gives ReviewBoard (and anyone consuming RBTools) until at
> least 2015 to deal with the migration (since the Python upstream has
> committed to bug-fix support of Python 2.7 for five years after its
> release). Beyond that, I know of certain enterprise OSes that will
> likely extend the usable life of Python themselves.
>
> With that in mind, though: Christian, will ReviewBoard 1.8 be supporting
> Python 3.x?
>
>
Right, it should be safe to depend on RBTools with optparse and all that
for some time. We have a lot of people relying on Python 2.x, and will
probably support it for quite a while.

Review Board 1.8 will not support Python 3.x. While Django is now starting
to support it, we still have a number of dependencies we need to check on,
several of which likely need work, and nobody has even begun that, let
alone tested any of it with Review Board. There's going to be a lot of work
needed on our codebase as well. It's going to be quite an undertaking (one
that I very much want help with).

I'm spending almost every waking moment of 1.8, and there's still a lot of
work to do on it. I don't want to delay the release any further than it's
already delayed. Maybe we can prioritize this for the next big release.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.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
--- 
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/groups/opt_out.


Error migrating and upgrading from 1.6.6 to 1.7.13

2013-08-23 Thread Alfred von Campe
I'm trying to upgrade a REviewBoard instance from 1.6.6 to 1.7.13.  I've 
created a dump of the existing database and am running the following script on 
the new server:

#!/bin/sh

RB_SITE="/var/www/html/rb"
RB_USER="admin"
RB_EMAIL=""
RB_DOMAIN=""
RB_PASSWORD=""

# Delete and create empty rb database
echo "drop database reviewboard; create database reviewboard; use reviewboard; 
grant all privileges on revieboard.* to 'rb'@'localhost' identified by 
'$RB_PASSWORD' with grant option;" | mysql -u rb -p"$RB_PASSWORD"

# Delete existing ReviewBoard site directory so it can be recreated
/bin/rm -fr $RB_SITE

# Create the new ReviewBoard site 
rb-site install --console --noinput --domain-name=$RB_DOMAIN --site-root=/ 
--db-type=mysql --db-name=reviewboard --db-host=localhost --db-user=rb 
--db-pass="$RB_PASSWORD" --cache-type=memcached --web-server-type=apache 
--python-loader=wsgi --admin-user=admin --admin-password="$RB_PASSWORD" 
--admin-email=$RB_EMAIL --cache-info=localhost:11211 $RB_SITE

# Import tables from old database
echo
echo "Importing tables from old database (please wait...)"
mysql -u rb -p"$RB_PASSWORD" < $(dirname $RB_SITE)/rb_dump.sql

# Upgrade ReviewBoard site (trying twice)
rb-site upgrade $RB_SITE
rb-site upgrade $RB_SITE
rb-site manage  $RB_SITE list-evolutions


The full log is attached, but the gist is that the rb-site upgrade fails with 
the following error:

Error: Error applying evolution: (1050, "Table 
'reviews_reviewrequest_depends_on' already exists")

If I run rb-site upgrade again I get the following error:

 Error: Error applying evolution: (1051, "Unknown table 'auth_message'")

The log also contains the about of the rb-site manage list-evolutions command.

I would appreciate any information on how I can make this migration work.

Thanks,
Alfred

-- 
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
--- 
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/groups/opt_out.


rb.log
Description: Binary data


Re: RBTools 0.5.2 is released!

2013-08-23 Thread Stephen Gallagher
On 08/22/2013 05:02 PM, Matthew Woehlke wrote:
> Ah, well, I was wanting to rewrite the whole thing in Python anyway :-).
> (Trying to do that and skirt around where RBTools wants a deprecated
> optparse... now that's interesting...)
> 

optparse is deprecated, not removed. It's not going to see any new
development, but last I heard it's going to remain available
indefinitely. Also, as python 2.7 is the last release in the Python 2
line, it's pretty clear that it's never going to be removed from that
series. That gives ReviewBoard (and anyone consuming RBTools) until at
least 2015 to deal with the migration (since the Python upstream has
committed to bug-fix support of Python 2.7 for five years after its
release). Beyond that, I know of certain enterprise OSes that will
likely extend the usable life of Python themselves.

With that in mind, though: Christian, will ReviewBoard 1.8 be supporting
Python 3.x?

-- 
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
--- 
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/groups/opt_out.


Re: error when adding svn repository callback_ssl_client_cert_prompt required

2013-08-23 Thread Michaela Newell
Hi David,

Thanks. I was not the same person who got the certificate it seems whoever 
got the certificate is the only user that can also add the repo.

Many Thanks,
Michaela

On Thursday, 22 August 2013 23:10:46 UTC+1, David Trowbridge wrote:
>
> One thing to double-check is that the certificate file is owned and 
> readable by whatever user your web server is running as.
>
> -David
>
>
> On Tue, Aug 20, 2013 at 5:07 AM, Michaela Newell 
> 
> > wrote:
>
>> Hi,
>>
>> I already have repositories added that do not need certificates however 
>> when I try and add a repo with a certificate the logs show the message:
>> ERROR -  - SVN: Failed to get repository information for : 
>> callback_ssl_client_cert_prompt required
>>
>> The site also displays:
>> A repository was not found at the specified path.
>>
>>
>> Do you know what is causing this? The certificate is on the client under 
>> /path/to/site/data/.subversion
>>
>> -- 
>> 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...@googlegroups.com 
>> For more options, visit this group at 
>> http://groups.google.com/group/reviewboard?hl=en
>> --- 
>> 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/groups/opt_out.
>>
>
>

-- 
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
--- 
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/groups/opt_out.


Re: RB- Bug: Expand to header in diff viewer page is not coming for perl file

2013-08-23 Thread satish singh
Hi Christian,

Thanks for helping me, the issue is resolved now.

I didn't got file "reviewboard/diffviewer/filetypes.py", but in 
"diffviewer/diffutils.py" I did added support for .thpl file and it looks 
to work now.

> '.thpl': [
> re.compile(r'^\s*sub [A-Za-z0-9_]+'),
> ],

'.thpl' extension is used for perl file here, rest every thing is perl. The 
.*thpl* file type is unique to storage and is used to test filers.

Thanks,
Satish 


On Friday, 23 August 2013 00:59:27 UTC+5:30, Christian Hammond wrote:
>
> Hi Satish,
>
> This would have to be modified in reviewboard/diffviewer/filetypes.py.
>
> What does a thpl file represent? I'm not familiar with that extension. If 
> that's standard, it can be added to our mapping in a release.
>
> Christian
>
> -- 
> Christian Hammond - chi...@chipx86.com 
> Review Board - http://www.reviewboard.org
> Beanbag, Inc. - http://www.beanbaginc.com
>
>
> On Thu, Aug 22, 2013 at 4:23 AM, satish singh 
> > wrote:
>
>>
>> Hi Christian,
>>  
>> I got the issue, actually we save a perl file with .thpl extension 
>> instead of .pl.
>> I am attaching a screenshot where I have same file with .pl and .thpl 
>> extension,
>> the "Expand to function/class" is working for file with .pl extension and 
>> it's not working for .thpl extension.
>>
>> Can you please let me know where to make a corresponding change so that 
>> it support .thpl files.
>>
>> Regards,
>> Satish SIngh
>>
>>
>> On Thursday, 22 August 2013 00:59:03 UTC+5:30, Christian Hammond wrote:
>>
>>> Can you provide a sample perl file that it does not work with that you 
>>> think it should?
>>>
>>> Can you also take a screenshot?
>>>
>>> - Christian
>>>
>>> -- 
>>> Christian Hammond - chi...@chipx86.com
>>>
>>> Review Board - http://www.reviewboard.org
>>> Beanbag, Inc. - http://www.beanbaginc.com
>>>
>>>
>>> On Wed, Aug 21, 2013 at 5:36 AM, satish singh  wrote:
>>>
  Diff-viewer expansion to a function/class is not working for perl 
 files, it working for rest of the file types, can anyone provide some 
 pointers for this.
 Where to look for the issue ?

 Review board recently upgraded to 1.7.7.1 from 1.6.3

 Thanks.


 On Wednesday, 21 August 2013 16:30:53 UTC+5:30, Varun Jain wrote:
>
> Hi Team,
>
> We are not able to see any expand to header button for Perl files that 
> can be seen for all other files.
>
> Please let us know if anyone is experiencing same issue.
>
> Thanks,
> Varun
>
>
>  -- 
 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...@**
 googlegroups.com

 For more options, visit this group at http://groups.google.com/**
 group/reviewboard?hl=en
 --- 
 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/**groups/opt_out
 .

>>>
>>>  -- 
>> 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...@googlegroups.com 
>> For more options, visit this group at 
>> http://groups.google.com/group/reviewboard?hl=en
>> --- 
>> 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/groups/opt_out.
>>
>
>

-- 
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
--- 
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/groups/opt_out.