Moving to a different server

2010-10-21 Thread Charles Gagnon
I have a working reviewboard site that needs to be moved to a
different server. I am trying to figure out the best approach. I just
started maintaining this site so I'm not super familiar with the
product.

I assume I would have to install everything I need on the new box.
Maybe create a test site to check things. Than dump and import all the
related mysql files. Can I just copy over the site directory
structure?

Anybody has notes on this?

Thanks in advance.

-- 
Charles Gagnon
http://unixrealm.com
charlesg at unixrealm.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


Re: Moving to a different server

2010-10-21 Thread Christian Hammond
Hi Charles,

Yeah, I'd start with a test install, but you should be able to just
dump/import the SQL and copy over the entire site directory (make sure to
preserve permissions).

Christian

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


On Thu, Oct 21, 2010 at 1:08 PM, Charles Gagnon wrote:

> I have a working reviewboard site that needs to be moved to a
> different server. I am trying to figure out the best approach. I just
> started maintaining this site so I'm not super familiar with the
> product.
>
> I assume I would have to install everything I need on the new box.
> Maybe create a test site to check things. Than dump and import all the
> related mysql files. Can I just copy over the site directory
> structure?
>
> Anybody has notes on this?
>
> Thanks in advance.
>
> --
> Charles Gagnon
> http://unixrealm.com
> charlesg at unixrealm.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

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

Re: Moving to a different server

2010-11-05 Thread Charles Gagnon
The move went pretty week and seems somewhere simple to do. The one
problem I have now is user authentication. The siteconfiguration from
the SQL backup seem to have AD authentication in there but it doesn't
work and I can't figure out why? I can't even login with the admin
user?

Is there something I can do in mysql to flush all setings, clear
passwords so I can easily login and rebuild my setting from there. I
clear the password on one of my admin users and it still doesn't let
me in.

All I get constantly is "Incorrect username or password."

Thanks for your help.

On Thu, Oct 21, 2010 at 5:22 PM, Christian Hammond  wrote:
> Hi Charles,
>
> Yeah, I'd start with a test install, but you should be able to just
> dump/import the SQL and copy over the entire site directory (make sure to
> preserve permissions).
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board - http://www.reviewboard.org
> VMware, Inc. - http://www.vmware.com
>
>
> On Thu, Oct 21, 2010 at 1:08 PM, Charles Gagnon 
> wrote:
>>
>> I have a working reviewboard site that needs to be moved to a
>> different server. I am trying to figure out the best approach. I just
>> started maintaining this site so I'm not super familiar with the
>> product.
>>
>> I assume I would have to install everything I need on the new box.
>> Maybe create a test site to check things. Than dump and import all the
>> related mysql files. Can I just copy over the site directory
>> structure?
>>
>> Anybody has notes on this?
>>
>> Thanks in advance.
>>
>> --
>> Charles Gagnon
>> http://unixrealm.com
>> charlesg at unixrealm.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
>
> --
> 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



-- 
Charles Gagnon
http://unixrealm.com
charlesg at unixrealm.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


Re: Moving to a different server

2010-11-05 Thread Christian Hammond
It may have to do with the encrypted passwords in the database. These are
based off your SECRET_KEY setting, which is typically computed for you
during 'rb-site install'. Make sure that your new conf/settings_local.py has
the same SECRET_KEY as the old one.

Christian

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


On Fri, Nov 5, 2010 at 1:43 PM, Charles Gagnon wrote:

> The move went pretty week and seems somewhere simple to do. The one
> problem I have now is user authentication. The siteconfiguration from
> the SQL backup seem to have AD authentication in there but it doesn't
> work and I can't figure out why? I can't even login with the admin
> user?
>
> Is there something I can do in mysql to flush all setings, clear
> passwords so I can easily login and rebuild my setting from there. I
> clear the password on one of my admin users and it still doesn't let
> me in.
>
> All I get constantly is "Incorrect username or password."
>
> Thanks for your help.
>
> On Thu, Oct 21, 2010 at 5:22 PM, Christian Hammond 
> wrote:
> > Hi Charles,
> >
> > Yeah, I'd start with a test install, but you should be able to just
> > dump/import the SQL and copy over the entire site directory (make sure to
> > preserve permissions).
> >
> > Christian
> >
> > --
> > Christian Hammond - chip...@chipx86.com
> > Review Board - http://www.reviewboard.org
> > VMware, Inc. - http://www.vmware.com
> >
> >
> > On Thu, Oct 21, 2010 at 1:08 PM, Charles Gagnon 
> > wrote:
> >>
> >> I have a working reviewboard site that needs to be moved to a
> >> different server. I am trying to figure out the best approach. I just
> >> started maintaining this site so I'm not super familiar with the
> >> product.
> >>
> >> I assume I would have to install everything I need on the new box.
> >> Maybe create a test site to check things. Than dump and import all the
> >> related mysql files. Can I just copy over the site directory
> >> structure?
> >>
> >> Anybody has notes on this?
> >>
> >> Thanks in advance.
> >>
> >> --
> >> Charles Gagnon
> >> http://unixrealm.com
> >> charlesg at unixrealm.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
> >
> > --
> > 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
>
>
>
> --
> Charles Gagnon
> http://unixrealm.com
> charlesg at unixrealm.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
>

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

Re: Moving to a different server

2010-11-09 Thread Charles Gagnon
Thanks Christian for all your help so far.

Still struggling with this. I tried replacing the SECRET_KEY and they
now match. Still not go. I've even tried 'rb-site manager
createsuperuser' and the use I just created fails to login. Not sure
what's going on. I get almost nothing in the log even though I've set
"DEBUG = True" in settings.py.

Any other leads? Any other way to start fresh authentication wise...

On Fri, Nov 5, 2010 at 10:55 PM, Christian Hammond  wrote:
> It may have to do with the encrypted passwords in the database. These are
> based off your SECRET_KEY setting, which is typically computed for you
> during 'rb-site install'. Make sure that your new conf/settings_local.py has
> the same SECRET_KEY as the old one.
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board - http://www.reviewboard.org
> VMware, Inc. - http://www.vmware.com
>
>
> On Fri, Nov 5, 2010 at 1:43 PM, Charles Gagnon 
> wrote:
>>
>> The move went pretty week and seems somewhere simple to do. The one
>> problem I have now is user authentication. The siteconfiguration from
>> the SQL backup seem to have AD authentication in there but it doesn't
>> work and I can't figure out why? I can't even login with the admin
>> user?
>>
>> Is there something I can do in mysql to flush all setings, clear
>> passwords so I can easily login and rebuild my setting from there. I
>> clear the password on one of my admin users and it still doesn't let
>> me in.
>>
>> All I get constantly is "Incorrect username or password."
>>
>> Thanks for your help.
>>
>> On Thu, Oct 21, 2010 at 5:22 PM, Christian Hammond 
>> wrote:
>> > Hi Charles,
>> >
>> > Yeah, I'd start with a test install, but you should be able to just
>> > dump/import the SQL and copy over the entire site directory (make sure
>> > to
>> > preserve permissions).
>> >
>> > Christian
>> >
>> > --
>> > Christian Hammond - chip...@chipx86.com
>> > Review Board - http://www.reviewboard.org
>> > VMware, Inc. - http://www.vmware.com
>> >
>> >
>> > On Thu, Oct 21, 2010 at 1:08 PM, Charles Gagnon 
>> > wrote:
>> >>
>> >> I have a working reviewboard site that needs to be moved to a
>> >> different server. I am trying to figure out the best approach. I just
>> >> started maintaining this site so I'm not super familiar with the
>> >> product.
>> >>
>> >> I assume I would have to install everything I need on the new box.
>> >> Maybe create a test site to check things. Than dump and import all the
>> >> related mysql files. Can I just copy over the site directory
>> >> structure?
>> >>
>> >> Anybody has notes on this?
>> >>
>> >> Thanks in advance.
>> >>
>> >> --
>> >> Charles Gagnon
>> >> http://unixrealm.com
>> >> charlesg at unixrealm.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
>> >
>> > --
>> > 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
>>
>>
>>
>> --
>> Charles Gagnon
>> http://unixrealm.com
>> charlesg at unixrealm.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
>
> --
> 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



-- 
Charles Gagnon
http://unixrealm.com
charlesg at unixrealm.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


Re: Moving to a different server

2010-11-09 Thread Christian Hammond
May be worth shutting off AD and seeing if you can log in then. Obviously
you can't log in to do that, but this should work:

$ rb-site manage /path/to/site shell
>>> from djblets.siteconfig.models import SiteConfiguration
>>> siteconfig = SiteConfiguration.objects.get_current()
>>> siteconfig.set('auth_backend', 'builtin')
>>> siteconfig.save()

Then restart Apache. It should revert back to built-in auth. You can then
try your original or newly created superuser and see if that works.

Christian

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


On Tue, Nov 9, 2010 at 11:25 AM, Charles Gagnon wrote:

> Thanks Christian for all your help so far.
>
> Still struggling with this. I tried replacing the SECRET_KEY and they
> now match. Still not go. I've even tried 'rb-site manager
> createsuperuser' and the use I just created fails to login. Not sure
> what's going on. I get almost nothing in the log even though I've set
> "DEBUG = True" in settings.py.
>
> Any other leads? Any other way to start fresh authentication wise...
>
> On Fri, Nov 5, 2010 at 10:55 PM, Christian Hammond 
> wrote:
> > It may have to do with the encrypted passwords in the database. These are
> > based off your SECRET_KEY setting, which is typically computed for you
> > during 'rb-site install'. Make sure that your new conf/settings_local.py
> has
> > the same SECRET_KEY as the old one.
> >
> > Christian
> >
> > --
> > Christian Hammond - chip...@chipx86.com
> > Review Board - http://www.reviewboard.org
> > VMware, Inc. - http://www.vmware.com
> >
> >
> > On Fri, Nov 5, 2010 at 1:43 PM, Charles Gagnon 
> > wrote:
> >>
> >> The move went pretty week and seems somewhere simple to do. The one
> >> problem I have now is user authentication. The siteconfiguration from
> >> the SQL backup seem to have AD authentication in there but it doesn't
> >> work and I can't figure out why? I can't even login with the admin
> >> user?
> >>
> >> Is there something I can do in mysql to flush all setings, clear
> >> passwords so I can easily login and rebuild my setting from there. I
> >> clear the password on one of my admin users and it still doesn't let
> >> me in.
> >>
> >> All I get constantly is "Incorrect username or password."
> >>
> >> Thanks for your help.
> >>
> >> On Thu, Oct 21, 2010 at 5:22 PM, Christian Hammond  >
> >> wrote:
> >> > Hi Charles,
> >> >
> >> > Yeah, I'd start with a test install, but you should be able to just
> >> > dump/import the SQL and copy over the entire site directory (make sure
> >> > to
> >> > preserve permissions).
> >> >
> >> > Christian
> >> >
> >> > --
> >> > Christian Hammond - chip...@chipx86.com
> >> > Review Board - http://www.reviewboard.org
> >> > VMware, Inc. - http://www.vmware.com
> >> >
> >> >
> >> > On Thu, Oct 21, 2010 at 1:08 PM, Charles Gagnon <
> charl...@unixrealm.com>
> >> > wrote:
> >> >>
> >> >> I have a working reviewboard site that needs to be moved to a
> >> >> different server. I am trying to figure out the best approach. I just
> >> >> started maintaining this site so I'm not super familiar with the
> >> >> product.
> >> >>
> >> >> I assume I would have to install everything I need on the new box.
> >> >> Maybe create a test site to check things. Than dump and import all
> the
> >> >> related mysql files. Can I just copy over the site directory
> >> >> structure?
> >> >>
> >> >> Anybody has notes on this?
> >> >>
> >> >> Thanks in advance.
> >> >>
> >> >> --
> >> >> Charles Gagnon
> >> >> http://unixrealm.com
> >> >> charlesg at unixrealm.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
> >> >
> >> > --
> >> > 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
> >>
> >>
> >>
> >> --
> >> Charles Gagnon
> >> http://unixrealm.com
> >> charlesg at unixrealm.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 thi

Re: Moving to a different server

2010-11-09 Thread Charles Gagnon
Huge progress... I was able to login. Discovered some packages were
missing and causing the problems. Namely python-ldap and PyLucene.

After adding these missing packages, I'm getting much better results.

We're finalizing the testing now but I think I'm close to done on the move.

Thanks again.



On Tue, Nov 9, 2010 at 2:31 PM, Christian Hammond  wrote:
> May be worth shutting off AD and seeing if you can log in then. Obviously
> you can't log in to do that, but this should work:
>
>     $ rb-site manage /path/to/site shell
>     >>> from djblets.siteconfig.models import SiteConfiguration
>     >>> siteconfig = SiteConfiguration.objects.get_current()
>     >>> siteconfig.set('auth_backend', 'builtin')
>     >>> siteconfig.save()
>
> Then restart Apache. It should revert back to built-in auth. You can then
> try your original or newly created superuser and see if that works.
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board - http://www.reviewboard.org
> VMware, Inc. - http://www.vmware.com
>
>
> On Tue, Nov 9, 2010 at 11:25 AM, Charles Gagnon 
> wrote:
>>
>> Thanks Christian for all your help so far.
>>
>> Still struggling with this. I tried replacing the SECRET_KEY and they
>> now match. Still not go. I've even tried 'rb-site manager
>> createsuperuser' and the use I just created fails to login. Not sure
>> what's going on. I get almost nothing in the log even though I've set
>> "DEBUG = True" in settings.py.
>>
>> Any other leads? Any other way to start fresh authentication wise...
>>
>> On Fri, Nov 5, 2010 at 10:55 PM, Christian Hammond 
>> wrote:
>> > It may have to do with the encrypted passwords in the database. These
>> > are
>> > based off your SECRET_KEY setting, which is typically computed for you
>> > during 'rb-site install'. Make sure that your new conf/settings_local.py
>> > has
>> > the same SECRET_KEY as the old one.
>> >
>> > Christian
>> >
>> > --
>> > Christian Hammond - chip...@chipx86.com
>> > Review Board - http://www.reviewboard.org
>> > VMware, Inc. - http://www.vmware.com
>> >
>> >
>> > On Fri, Nov 5, 2010 at 1:43 PM, Charles Gagnon 
>> > wrote:
>> >>
>> >> The move went pretty week and seems somewhere simple to do. The one
>> >> problem I have now is user authentication. The siteconfiguration from
>> >> the SQL backup seem to have AD authentication in there but it doesn't
>> >> work and I can't figure out why? I can't even login with the admin
>> >> user?
>> >>
>> >> Is there something I can do in mysql to flush all setings, clear
>> >> passwords so I can easily login and rebuild my setting from there. I
>> >> clear the password on one of my admin users and it still doesn't let
>> >> me in.
>> >>
>> >> All I get constantly is "Incorrect username or password."
>> >>
>> >> Thanks for your help.
>> >>
>> >> On Thu, Oct 21, 2010 at 5:22 PM, Christian Hammond
>> >> 
>> >> wrote:
>> >> > Hi Charles,
>> >> >
>> >> > Yeah, I'd start with a test install, but you should be able to just
>> >> > dump/import the SQL and copy over the entire site directory (make
>> >> > sure
>> >> > to
>> >> > preserve permissions).
>> >> >
>> >> > Christian
>> >> >
>> >> > --
>> >> > Christian Hammond - chip...@chipx86.com
>> >> > Review Board - http://www.reviewboard.org
>> >> > VMware, Inc. - http://www.vmware.com
>> >> >
>> >> >
>> >> > On Thu, Oct 21, 2010 at 1:08 PM, Charles Gagnon
>> >> > 
>> >> > wrote:
>> >> >>
>> >> >> I have a working reviewboard site that needs to be moved to a
>> >> >> different server. I am trying to figure out the best approach. I
>> >> >> just
>> >> >> started maintaining this site so I'm not super familiar with the
>> >> >> product.
>> >> >>
>> >> >> I assume I would have to install everything I need on the new box.
>> >> >> Maybe create a test site to check things. Than dump and import all
>> >> >> the
>> >> >> related mysql files. Can I just copy over the site directory
>> >> >> structure?
>> >> >>
>> >> >> Anybody has notes on this?
>> >> >>
>> >> >> Thanks in advance.
>> >> >>
>> >> >> --
>> >> >> Charles Gagnon
>> >> >> http://unixrealm.com
>> >> >> charlesg at unixrealm.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
>> >> >
>> >> > --
>> >> > 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
>> >> >