Re: Error migrating and upgrading from 1.6.6 to 1.7.13
TemplateDoesNotExist at /trial5/ deco/box.html Request Method: GET Request URL: http://mumbaireviewsrv.geometric.local/trial5/ Django Version: 1.4.6 Exception Type: TemplateDoesNotExist Exception Value: deco/box.html Exception Location: /usr/lib/python2.6/site-packages/django/template/loader.py in find_template, line 138 Python Executable: /usr/bin/python Python Version: 2.6.5 Python Path: ['/usr/reviewboardsites/trial5/conf', '/usr/lib/python2.6/site-packages/ReviewBoard-1.7.13-py2.6.egg', '/usr/lib/python2.6/site-packages/python_memcached-1.51-py2.6.egg', '/usr/lib/python2.6/site-packages/PIL-1.1.6-py2.6-linux-i686.egg', '/usr/lib/python2.6/site-packages/psycopg2-2.5-py2.6-linux-i686.egg', '/usr/lib/python2.6/site-packages/Djblets-0.7.17-py2.6.egg', '/usr/lib/python2.6/site-packages/futures-2.1.4-py2.6.egg', '/usr/lib/python2.6/site-packages/docutils-0.10-py2.6.egg', '/usr/lib/python2.6/site-packages/Markdown-2.3.1-py2.6.egg', '/usr/lib/python2.6/site-packages/mimeparse-0.1.3-py2.6.egg', '/usr/lib/python2.6/site-packages/paramiko-1.10.1-py2.6.egg', '/usr/lib/python2.6/site-packages/crypto-1.1.0-py2.6.egg', '/usr/lib/python2.6/site-packages/rsa-3.1.1-py2.6.egg', '/usr/lib/python2.6/site-packages/pyasn1-0.1.6-py2.6.egg', '/usr/lib/python2.6/site-packages/pycrypto-2.6-py2.6-linux-i686.egg', '/usr/lib/python2.6/site-packages/recaptcha_client-1.0.6-py2.6.egg', '/usr/lib/python2.6/site-packages/django_evolution-0.6.9-py2.6.egg', '/usr/lib/python2.6/site-packages/Pygments-1.6-py2.6.egg', '/usr/lib/python2.6/site-packages/pytz-2013b-py2.6.egg', '/usr/lib/python2.6/site-packages/django_pipeline-1.2.24-py2.6.egg', '/usr/lib/python2.6/site-packages/RBTools-0.5.2-py2.6.egg', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages/python_dateutil-1.5-py2.6.egg', '/usr/lib/python2.6/site-packages/feedparser-5.1.3-py2.6.egg', '/usr/lib/python2.6/site-packages'] Server time: Fri, 30 Aug 2013 11:31:44 + On Wed, Aug 28, 2013 at 1:04 AM, Alfred von Campe alf...@von-campe.comwrote: On Aug 27, 2013, at 14:58, Christian Hammond chip...@chipx86.com wrote: What type of auth were you using? You'll want to ensure you have the proper Python modules installed for LDAP, NIS or ActiveDirectory. We are using LDAP. I was able to log in after using the FQDN for our server (I googled for Cookies must be enabled and ReviewBoard), but after I log in and navigate to another page, it asks me to log in again (and again). So maybe I am missing the proper module. What is the name of the module(s) I need for LDAP? How do I check to see if it's properly configured? It was working just fine for the old site... Can you visually confirm for me that the SECRET_KEY is the same across instances? Yes, they are identical: $ for site in rb $RB_SITE_OLD; do grep SECRET $site/conf/settings_local.py | md5sum; done f825b34ef2d2cbaa1c80fd92c03e311a - f825b34ef2d2cbaa1c80fd92c03e311a - 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: Error migrating and upgrading from 1.6.6 to 1.7.13
This really should be a new thread, but in your case, something is either wrong with your Djblets install, or something is wrong with permissions, or something.. That file is provided by Djblets, and you shouldn't see this error. I've never actually seen this particular problem before. I find it very odd that Django isn't anywhere in that Python Path. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org Beanbag, Inc. - http://www.beanbaginc.com On Fri, Aug 30, 2013 at 4:37 AM, Shilpa Gaikwad shilpa.anan...@gmail.comwrote: TemplateDoesNotExist at /trial5/ deco/box.html Request Method: GET Request URL: http://mumbaireviewsrv.geometric.local/trial5/ Django Version: 1.4.6 Exception Type: TemplateDoesNotExist Exception Value: deco/box.html Exception Location: /usr/lib/python2.6/site-packages/django/template/loader.py in find_template, line 138 Python Executable: /usr/bin/python Python Version: 2.6.5 Python Path: ['/usr/reviewboardsites/trial5/conf', '/usr/lib/python2.6/site-packages/ReviewBoard-1.7.13-py2.6.egg', '/usr/lib/python2.6/site-packages/python_memcached-1.51-py2.6.egg', '/usr/lib/python2.6/site-packages/PIL-1.1.6-py2.6-linux-i686.egg', '/usr/lib/python2.6/site-packages/psycopg2-2.5-py2.6-linux-i686.egg', '/usr/lib/python2.6/site-packages/Djblets-0.7.17-py2.6.egg', '/usr/lib/python2.6/site-packages/futures-2.1.4-py2.6.egg', '/usr/lib/python2.6/site-packages/docutils-0.10-py2.6.egg', '/usr/lib/python2.6/site-packages/Markdown-2.3.1-py2.6.egg', '/usr/lib/python2.6/site-packages/mimeparse-0.1.3-py2.6.egg', '/usr/lib/python2.6/site-packages/paramiko-1.10.1-py2.6.egg', '/usr/lib/python2.6/site-packages/crypto-1.1.0-py2.6.egg', '/usr/lib/python2.6/site-packages/rsa-3.1.1-py2.6.egg', '/usr/lib/python2.6/site-packages/pyasn1-0.1.6-py2.6.egg', '/usr/lib/python2.6/site-packages/pycrypto-2.6-py2.6-linux-i686.egg', '/usr/lib/python2.6/site-packages/recaptcha_client-1.0.6-py2.6.egg', '/usr/lib/python2.6/site-packages/django_evolution-0.6.9-py2.6.egg', '/usr/lib/python2.6/site-packages/Pygments-1.6-py2.6.egg', '/usr/lib/python2.6/site-packages/pytz-2013b-py2.6.egg', '/usr/lib/python2.6/site-packages/django_pipeline-1.2.24-py2.6.egg', '/usr/lib/python2.6/site-packages/RBTools-0.5.2-py2.6.egg', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages/python_dateutil-1.5-py2.6.egg', '/usr/lib/python2.6/site-packages/feedparser-5.1.3-py2.6.egg', '/usr/lib/python2.6/site-packages'] Server time: Fri, 30 Aug 2013 11:31:44 + On Wed, Aug 28, 2013 at 1:04 AM, Alfred von Campe alf...@von-campe.comwrote: On Aug 27, 2013, at 14:58, Christian Hammond chip...@chipx86.com wrote: What type of auth were you using? You'll want to ensure you have the proper Python modules installed for LDAP, NIS or ActiveDirectory. We are using LDAP. I was able to log in after using the FQDN for our server (I googled for Cookies must be enabled and ReviewBoard), but after I log in and navigate to another page, it asks me to log in again (and again). So maybe I am missing the proper module. What is the name of the module(s) I need for LDAP? How do I check to see if it's properly configured? It was working just fine for the old site... Can you visually confirm for me that the SECRET_KEY is the same across instances? Yes, they are identical: $ for site in rb $RB_SITE_OLD; do grep SECRET $site/conf/settings_local.py | md5sum; done f825b34ef2d2cbaa1c80fd92c03e311a - f825b34ef2d2cbaa1c80fd92c03e311a - 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
Re: Error migrating and upgrading from 1.6.6 to 1.7.13
On Aug 23, 2013, at 16:29, David Trowbridge trowb...@gmail.com wrote: Let's try this--after creating the new site, but before loading the database dump, delete the new database that rb-site created. This seems to have worked. Because I had tried to install ReviewBoard 1.6.6 via easy_install, my server was in a state where I couldn't run the rb-site command anymore. I think I have successfullyr epaired this after lots of manual deletion and re-installation. But now I have another problem. During this upgrade, the paths to the RB site have changed slightly, and after the installation I get a message about a missing htdocs/media/uploaded directory using he old path. So I guess that somewhere in the database the old path is stored. Remember, you guys suggested that I delete the new database before importing the old one. How do I fix this? Also, I guess I have to copy the contents of htdocs/media/uploaded/{images,files} from the old server to the new so that all the uploaded files and images from the old server are available on the new server. And I also have to copy the secret key into settings_local.py. Anything else that needs to be done to migrate the data to the new server? I think I am getting close. 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.
Re: Error migrating and upgrading from 1.6.6 to 1.7.13
On Aug 27, 2013, at 11:07, I wrote: But now I have another problem. During this upgrade, the paths to the RB site have changed slightly, and after the installation I get a message about a missing htdocs/media/uploaded directory using he old path. So I guess that somewhere in the database the old path is stored. Remember, you guys suggested that I delete the new database before importing the old one. How do I fix this? OK, I figured this out myself. I searched for the old path in the MySQL dump file and changed all instances to the new path. So far, so good. The only problem I have is that I can't log in to the new ReviewBoard server. Even the local account doesn't work. How do I debug authentication failures? The local account was created with the following command: 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 Also, I guess I have to copy the contents of htdocs/media/uploaded/{images,files} from the old server to the new so that all the uploaded files and images from the old server are available on the new server. And I also have to copy the secret key into settings_local.py. Anything else that needs to be done to migrate the data to the new server? I think I am getting close. I ended up adding the following lines to my script to copy all the relevant data from the old instance to the new: rsync -av $RB_SITE_OLD/htdocs/media/uploaded/. $RB_SITE/htdocs/media/uploaded/. cp -pr $RB_SITE_OLD/data/.ssh $RB_SITE/data sed -i.orig s/SECRET_KEY = '.*'/$(grep SECRET_KEY $RB_SITE_OLD/conf/settings_local.py)/ $RB_SITE/conf/settings_local.py Is there anything else I may have missed? 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
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 alf...@von-campe.comwrote: 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: Error migrating and upgrading from 1.6.6 to 1.7.13
On Aug 23, 2013, at 16:14, David Trowbridge trowb...@gmail.com 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: Error migrating and upgrading from 1.6.6 to 1.7.13
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 alf...@von-campe.comwrote: On Aug 23, 2013, at 16:14, David Trowbridge trowb...@gmail.com 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
On Aug 23, 2013, at 16:29, David Trowbridge trowb...@gmail.com 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 module from pkg_resources import load_entry_point File /usr/lib/python2.6/site-packages/pkg_resources.py, line 2659, in module 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.