Moving to a different server

180 views
Skip to first unread message

Charles Gagnon

unread,
Oct 21, 2010, 4:08:23 PM10/21/10
to revie...@googlegroups.com
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

Christian Hammond

unread,
Oct 21, 2010, 5:22:43 PM10/21/10
to revie...@googlegroups.com
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 - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com



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

Charles Gagnon

unread,
Nov 5, 2010, 4:43:03 PM11/5/10
to revie...@googlegroups.com
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.

Christian Hammond

unread,
Nov 5, 2010, 10:55:45 PM11/5/10
to revie...@googlegroups.com
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 - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


Charles Gagnon

unread,
Nov 9, 2010, 2:25:54 PM11/9/10
to revie...@googlegroups.com
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...

Christian Hammond

unread,
Nov 9, 2010, 2:31:05 PM11/9/10
to revie...@googlegroups.com
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 - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


Charles Gagnon

unread,
Nov 9, 2010, 4:16:39 PM11/9/10
to revie...@googlegroups.com
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.

Reply all
Reply to author
Forward
0 new messages