Re: ImportError: No module named urllib.parse
On Thursday, June 18, 2015 at 11:04:24 AM UTC-7, Barret Rennie wrote: Hi John, That import doesn’t specifically import urllib.parse; it imports it from Six, a Python 2 — 3 compatibility layer. Can you verify that importing “six.moves.urllib.parse.urlparse” does not work in terminal? Regards, Barret Rennie Hi Barret. Is this what you mean? # python Python 2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2 Type help, copyright, credits or license for more information. import six.moves.urllib.parse.urlparse Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named urllib.parse.urlparse -- 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 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/d/optout.
ImportError: No module named settings_local
I can run # rb-site manage --help just fine. But, taking the help literally, I get this when I try: # rb-site manage -- --help ... 'manage' command: Runs a Django management command on the site. Usage: `rb-site manage path command -- arguments.` Run `manage -- --help` for the list of commands. 'upgrade' command: Upgrades an existing site installation, synchronizing media trees and upgrading the database, unless otherwise specified. --no-db-upgrade don't upgrade the database --all-sites Upgrade all installed sites [root@dyn40-25-217 reviews.tintri.com]# rb-site manage -- --help Traceback (most recent call last): File /usr/bin/rb-site, line 9, in module load_entry_point('ReviewBoard==2.0.15', 'console_scripts', 'rb-site')() File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 1885, in main command.run() File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 1808, in run initialize() File /usr/lib/python2.7/site-packages/reviewboard/__init__.py, line 77, in initialize import settings_local ImportError: No module named settings_local I do have a settings_local.py in the place in which rb-site created it. -- 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 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/d/optout.
ImportError: No module named urllib.parse
Which module must I install to run rbt? # which rbt /usr/bin/rbt # rpm -q --whatprovides /usr/bin/rbt RBTools-0.7.2-1.el7.noarch # rbt --help Traceback (most recent call last): File /usr/bin/rbt, line 9, in module load_entry_point('RBTools==0.7.2', 'console_scripts', 'rbt')() File /usr/lib/python2.7/site-packages/pkg_resources.py, line 378 , in load_entry_point return get_distribution(dist).load_entry_point(group, name) File /usr/lib/python2.7/site-packages/pkg_resources.py, line 2566, in load_entry_point return ep.load() File /usr/lib/python2.7/site-packages/pkg_resources.py, line 2260, in load entry = __import__(self.module_name, globals(),globals(), [ '__name__']) File /usr/lib/python2.7/site-packages/rbtools/commands/__init__.py, line 12, in module from six.moves.urllib.parse import urlparse ImportError: No module named urllib.parse However, I can import urllib without error: # python Python 2.7.5 (default, Jun 17 2014, 18:11:42) [GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2 Type help, copyright, credits or license for more information. import urllib -- 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 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/d/optout.
Re: ImportError: No module named settings_local
On Thursday, June 18, 2015 at 11:54:51 AM UTC-7, Christian Hammond wrote: Hi John, How did you install Review Board? Christian I'm using the version that is provided by EPEL from Centos 7. # rpm -q epel-release epel-release-7-5.noarch # rpm -q ReviewBoard ReviewBoard-2.0.15-1.el7.noarch -- 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 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/d/optout.
Re: ImportError: No module named urllib.parse
On Thursday, June 18, 2015 at 1:33:55 PM UTC-7, Barret Rennie wrote: Hi John, Yes thats what I mean. I’ll take a look at it. Can you tell me what version of six is installed? python-six-1.3.0-4.el7.noarch -- 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 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/d/optout.
MemoryError: Problem installing fixture
How do I work around this? # rb-site manage /var/www/reviews.tintri.com loaddata /tmp/reviews-charles2_rb20_data.json Traceback (most recent call last): File /usr/bin/rb-site, line 9, in module load_entry_point('ReviewBoard==2.0.15', 'console_scripts', 'rb-site')() File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 1885, in main command.run() File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 1814, in run site.run_manage_command(args[0], args[1:]) File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 662, in run_manage_command execute_from_command_line([__file__, cmd] + params) File /usr/lib/python2.7/site-packages/django/core/management/__init__.py , line 399, in execute_from_command_line utility.execute() File /usr/lib/python2.7/site-packages/django/core/management/__init__.py , line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File /usr/lib/python2.7/site-packages/django/core/management/base.py, line 242, in run_from_argv self.execute(*args, **options.__dict__) File /usr/lib/python2.7/site-packages/django/core/management/base.py, line 285, in execute output = self.handle(*args, **options) File /usr/lib/python2.7/site-packages/django/core/management/commands/loaddata.py , line 55, in handle self.loaddata(fixture_labels) File /usr/lib/python2.7/site-packages/django/core/management/commands/loaddata.py , line 84, in loaddata self.load_label(fixture_label) File /usr/lib/python2.7/site-packages/django/core/management/commands/loaddata.py , line 134, in load_label for obj in objects: File /usr/lib/python2.7/site-packages/django/core/serializers/json.py, line 65, in Deserializer stream_or_string = stream_or_string.read() MemoryError: Problem installing fixture '/tmp/reviews-charles2_rb20_data.json': -- 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 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/d/optout.
assert index_name in indexes during `rb-site upgrade`
http://ur1.ca/muhac (reviewboard-venv)[root@dyn40-25-179 tintri]# rb-site upgrade /var/www/reviewboard Rebuilding directory structure Updating database. This may take a while. The log output below, including warnings and errors, can be ignored unless upgrade fails. -- begin log output -- 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 changedescs. There are unapplied evolutions for diffviewer. There are unapplied evolutions for reviews. There are unapplied evolutions for scmtools. Project signature has changed - an evolution is required Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) CRITICAL:root:Error running database evolver function change_column_attr_unique: Traceback (most recent call last): File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/db/common.py, line 495, in change_column_attrs attr_info['new_value']) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/db/common.py, line 607, in change_column_attr_unique self.remove_recorded_index(model, constraint_name, unique=True) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/db/common.py, line 822, in remove_recorded_index index_name, unique=unique) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/signature.py, line 186, in remove_index_from_database_sig assert index_name in indexes AssertionError ERROR:root:Unexpected error: Traceback (most recent call last): File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/management/commands/evolve.py, line 65, in handle self.evolve(*app_labels, **options) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/management/commands/evolve.py, line 125, in evolve sql.extend(self.evolve_app(app)) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/management/commands/evolve.py, line 165, in evolve_app app_mutator_sql = app_mutator.to_sql() File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutators.py, line 304, in to_sql sql.extend(mutator.to_sql()) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/mutators.py, line 187, in to_sql return self.evolver.generate_table_ops_sql(self, self._ops) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/db/common.py, line 42, in generate_table_ops_sql prev_sql_result, prev_op) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/db/common.py, line 84, in generate_table_op_sql op['new_attrs'])) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/db/common.py, line 495, in change_column_attrs attr_info['new_value']) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/db/common.py, line 607, in change_column_attr_unique self.remove_recorded_index(model, constraint_name, unique=True) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/db/common.py, line 822, in remove_recorded_index index_name, unique=unique) File /tintri/reviewboard-venv/lib/python2.7/site-packages/django_evolution-0.7.5-py2.7.egg/django_evolution/signature.py, line 186, in remove_index_from_database_sig assert index_name in indexes AssertionError Traceback (most recent call last): File /tintri/reviewboard-venv/bin/rb-site, line 9, in module load_entry_point('ReviewBoard==2.0.17', 'console_scripts', 'rb-site')() File /tintri/reviewboard-venv/lib/python2.7/site-packages/ReviewBoard-2.0.17-py2.7.egg/reviewboard/cmdline/rbsite.py, line 1885, in main command.run() File /tintri/reviewboard-venv/lib/python2.7/site-packages/ReviewBoard-2.0.17-py2.7.egg/reviewboard/cmdline/rbsite.py, line 1694, in run site.migrate_database() File /tintri/reviewboard-venv/lib/python2.7/site-packages/ReviewBoard-2.0.17-py2.7.egg/reviewboard/cmdline/rbsite.py, line 438, in migrate_database self.run_manage_command(evolve, [--noinput, --execute]) File /tintri/reviewboard-venv/lib/python2.7/site-packages/ReviewBoard-2.0.17-py2.7.egg/reviewboard/cmdline/rbsite.py, line 662, in run_manage_command execute_from_command_line([__file__, cmd] + params) File
Re: rb-site upgrade help needed
I do have a backup. python-django-evolution-0.7.4-1.el7.noarch evolution-data-server-3.8.5-34.el7.x86_64 On Wed, Jun 17, 2015 at 8:10 PM, Christian Hammond christ...@beanbaginc.com wrote: What version of django_evolution do you have? Do you have a database backup? Christian -- Christian Hammond - christ...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -Original Message- From: John Schmitt marmalo...@gmail.com Reply: reviewboard@googlegroups.com reviewboard@googlegroups.com Date: June 17, 2015 at 6:35:54 PM To: reviewboard@googlegroups.com reviewboard@googlegroups.com Subject: rb-site upgrade help needed I need help getting my data from ReviewBoard 1.5 to 2.0 to migrate. Can anyone tell me what to do to make this work? Thank you. [root@dyn40-25-217 ~]# mysql -p reviewboard.dump Enter password: [root@dyn40-25-217 ~]# rb-site upgrade /var/www/reviews.tintri.com Rebuilding directory structure Updating database. This may take a while. The log output below, including warnings and errors, can be ignored unless upgrade fails. -- begin log output -- Creating tables ... Upgrading Review Board from 1.5.5 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 Evolutions in attachments baseline: file_attachment_orig_filename, file_attachment_file_max_length_512, file_attachment_repo_info, file_attachment_repo_path_no_index, file_attachment_repo_revision_max_length_64 Evolutions in site baseline: localsite_public Evolutions in hostingsvcs baseline: account_hosting_url, account_hosting_url_max_length_255, account_unique_together_baseline Project signature has changed - an evolution is required Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) Registering new SCM Tool Plastic SCM (reviewboard.scmtools.plastic. PlasticTool) in database CommandError: Error applying evolution: (1050, Table 'reviews_review_file_attachment_comments' already exists) If I restart httpd at this point, I'll see this in /var/log/messages: Jun 17 18:26:49 localhost rb-site: -- begin log output -- Jun 17 18:26:49 localhost rb-site: Creating tables ... Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for auth. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for contenttypes. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for accounts. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for changedescs. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for diffviewer. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for reviews. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for scmtools. Jun 17 18:26:50 localhost rb-site: Project signature has changed - an evolution is required Jun 17 18:26:50 localhost rb-site: Installing custom SQL ... Jun 17 18:26:50 localhost rb-site: Installing indexes ... Jun 17 18:26:50 localhost rb-site: Installed 0 object(s) from 0 fixture(s) Jun 17 18:26:50 localhost rb-site: Traceback (most recent call last): Jun 17 18:26:50 localhost rb-site: File /usr/bin/rb-site, line 9, in module Jun 17 18:26:50 localhost rb-site: load_entry_point('ReviewBoard==2.0.15', 'console_scripts', 'rb-site')() Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 1885, in main Jun 17 18:26:50 localhost rb-site: command.run() Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 1694, in run Jun 17 18:26:50 localhost rb-site: site.migrate_database() Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 438, in migrate_database Jun 17 18:26:50 localhost rb-site: self.run_manage_command(evolve, [ --noinput, --execute]) Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 662, in run_manage_command Jun 17 18:26:50 localhost rb-site: execute_from_command_line([__file__, cmd] + params) Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/django/core/management/__init__.py, line 399, in execute_from_command_line Jun 17 18:26:50 localhost rb-site: utility.execute() Jun
rb-site upgrade help needed
I need help getting my data from ReviewBoard 1.5 to 2.0 to migrate. Can anyone tell me what to do to make this work? Thank you. [root@dyn40-25-217 ~]# mysql -p reviewboard.dump Enter password: [root@dyn40-25-217 ~]# rb-site upgrade /var/www/reviews.tintri.com Rebuilding directory structure Updating database. This may take a while. The log output below, including warnings and errors, can be ignored unless upgrade fails. -- begin log output -- Creating tables ... Upgrading Review Board from 1.5.5 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 Evolutions in attachments baseline: file_attachment_orig_filename, file_attachment_file_max_length_512, file_attachment_repo_info, file_attachment_repo_path_no_index, file_attachment_repo_revision_max_length_64 Evolutions in site baseline: localsite_public Evolutions in hostingsvcs baseline: account_hosting_url, account_hosting_url_max_length_255, account_unique_together_baseline Project signature has changed - an evolution is required Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) Registering new SCM Tool Plastic SCM (reviewboard.scmtools.plastic. PlasticTool) in database CommandError: Error applying evolution: (1050, Table 'reviews_review_file_attachment_comments' already exists) If I restart httpd at this point, I'll see this in /var/log/messages: Jun 17 18:26:49 localhost rb-site: -- begin log output -- Jun 17 18:26:49 localhost rb-site: Creating tables ... Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for auth. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for contenttypes. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for accounts. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for changedescs. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for diffviewer. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for reviews. Jun 17 18:26:50 localhost rb-site: There are unapplied evolutions for scmtools. Jun 17 18:26:50 localhost rb-site: Project signature has changed - an evolution is required Jun 17 18:26:50 localhost rb-site: Installing custom SQL ... Jun 17 18:26:50 localhost rb-site: Installing indexes ... Jun 17 18:26:50 localhost rb-site: Installed 0 object(s) from 0 fixture(s) Jun 17 18:26:50 localhost rb-site: Traceback (most recent call last): Jun 17 18:26:50 localhost rb-site: File /usr/bin/rb-site, line 9, in module Jun 17 18:26:50 localhost rb-site: load_entry_point('ReviewBoard==2.0.15', 'console_scripts', 'rb-site')() Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 1885, in main Jun 17 18:26:50 localhost rb-site: command.run() Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 1694, in run Jun 17 18:26:50 localhost rb-site: site.migrate_database() Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 438, in migrate_database Jun 17 18:26:50 localhost rb-site: self.run_manage_command(evolve, [ --noinput, --execute]) Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/reviewboard/cmdline/rbsite.py, line 662, in run_manage_command Jun 17 18:26:50 localhost rb-site: execute_from_command_line([__file__, cmd] + params) Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/django/core/management/__init__.py, line 399, in execute_from_command_line Jun 17 18:26:50 localhost rb-site: utility.execute() Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/django/core/management/__init__.py, line 392, in execute Jun 17 18:26:50 localhost rb-site: self.fetch_command(subcommand). run_from_argv(self.argv) Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/django/core/management/base.py, line 242, in run_from_argv Jun 17 18:26:50 localhost rb-site: self.execute(*args, **options.__dict__) Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/django/core/management/base.py, line 285, in execute Jun 17 18:26:50 localhost rb-site: output = self.handle(*args, **options) Jun 17 18:26:50 localhost rb-site: File /usr/lib/python2.7/site-packages/django_evolution/management/commands/evolve.py , line 65, in handle Jun 17 18:26:50 localhost rb-site: self.evolve(*app_labels, **options) Jun 17 18:26:50
Re: CRITICAL:root:Error running database evolver function change_column_attr_unique:
# rpm -q ReviewBoard python-djblets python-django-evolution ReviewBoard-2.0.17-1.el7.noarch python-djblets-0.8.20-1.el7.noarch python-django-evolution-0.7.5-1.el7.noarch On Sat, Jul 4, 2015 at 12:53 PM, Christian Hammond christ...@beanbaginc.com wrote: Hi John, What versions of Review Board and Django Evolution are you using? Christian On Saturday, July 4, 2015, John Schmitt marmalo...@gmail.com wrote: Something seems to go wrong during my upgrade. What do I need to do to make this work? This is my script that ought to upgrade my installation from 1.55 to 2.0 #!/bin/bash export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' set -x set -e set -u systemctl stop httpd # perform a fresh installation of ReviewBoard rm -rf /var/www/reviews.domain.com mysql --password=password -e 'drop database if exists reviewboard;' mysql --password=password -e 'create database reviewboard;' rb-site install /var/www/reviews.domain.com --noinput \ --opt-out-support-data \ --domain-name=' reviews.domain.com' \ --site-root='/' \ --static-url='static/' \ --media-url='media/' \ --db-type='mysql' \ --db-name='reviewboard' \ --db-user='root' \ --db-pass='password' \ --db-host='localhost' \ --cache-type='memcached' \ --cache-info= 'localhost:11211' \ --web-server-type='apache' \ --web-server-port='80' \ --python-loader='wsgi' \ --admin-user='admin' \ --admin-password='password' \ --admin-email=' jschm...@domain.com' chown -R apache.apache /var/www/reviews.domain.com/data chown -R apache.apache /var/www/reviews.domain.com/htdocs/media/ext chown -R apache.apache /var/www/reviews.domain.com/htdocs/media/uploaded chown -R apache.apache /var/www/reviews.domain.com/htdocs/static/ext mkdir /var/www/reviews.domain.com/search-index chown -R apache.apache /var/www/reviews.domain.com/search-index # import the reviewboard data from the old reviewobard installation # general.log grows too big so I delete it but I have to restart mariadb so it'll create a fresh one rm -rf /var/log/mariadb/general.log mysql --password=password /root/reviewboard.dump rm -rf /var/log/mariadb/general.log systemctl restart mariadb # the old installation was stored at /data/... # the new installation is stored at /var/www/reviews.domain.com/... # the new installation directory has to be manually set in the siteconfig_siteconfiguration table # the siteconfig_siteconfiguration is a giant json string #mysql --password=password --batch --skip-column-names -e 'use reviewboard; select settings from siteconfig_siteconfiguration;' | grep '^{' siteconfig_siteconfiguration.text mysql --password=password --batch --skip-column-names -e 'use reviewboard; select settings from siteconfig_siteconfiguration;' siteconfig_siteconfiguration.text sed -i 's|/data/django-sites/ReviewBoard|/var/www/reviews.domain.com|' siteconfig_siteconfiguration.text sed -i 's|data/django-sites/ReviewBoard|/var/www/reviews.domain.com|' siteconfig_siteconfiguration.text # the giant json string needs to be quoted so bash won't munge it; is there a better way? /usr/bin/echo -n 'use reviewboard; update siteconfig_siteconfiguration set settings=' siteconfig.command0 /usr/bin/echo -n ' siteconfig.command0 cat siteconfig_siteconfiguration.text siteconfig.command0 /usr/bin/echo -n ' siteconfig.command0 # `cat` seems to put in a newline I do not want tr -d '\n' siteconfig.command0 siteconfig.command # print the final command, for debugging /usr/bin/echo -- cat siteconfig.command /usr/bin/echo -- mysql --password=password siteconfig.command rb-site upgrade /var/www/reviews.domain.com systemctl start httpd This seems to work but then I see this when I try to start httpd: Jul 04 11:07:32 dyn40-62-43.tintri.com systemd[1]: Starting The Apache HTTP Server... Jul 04 11:07:44 dyn40-62-43.tintri.com rb-site[2066]: CRITICAL:root:Error running database evolver function change_column_attr_unique: Jul 04 11:07:44 dyn40-62-43
Re: Upgrade to 2.0.15 just worked, and users liked it
Do I understand correctly that you do the database import *before *you run `rb-site install`? -- 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 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/d/optout.
Re: Upgrade to 2.0.15 just worked, and users liked it
Are you suggesting that I copy both the database and also the site directory? Are you suggesting that I skip the `rb-site install` step completely? Thanks for the tips. On Sunday, July 5, 2015 at 10:39:38 PM UTC-7, Christian Hammond wrote: Hi John, If setting things up to import an existing database, you'd want to copy over the site directory and do `rb-site upgrade` rather than an install. The reason being that `rb-site install` will generate new keys for authentication and for the install key for the version of Review Board (needed for some extensions), and it's important to use the ones associated with the database. Christian -- Christian Hammond - chi...@chipx86.com javascript: Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Sat, Jul 4, 2015 at 8:57 PM, John Schmitt marma...@gmail.com javascript: wrote: Do I understand correctly that you do the database import *before *you run `rb-site install`? -- 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 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 javascript:. For more options, visit https://groups.google.com/d/optout. -- 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 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/d/optout.
Re: Upgrade to 2.0.15 just worked, and users liked it
Can you please explain your thinking about setuptools? I have an up-to-date centos 7 installation. On Sunday, July 5, 2015 at 10:36:45 PM UTC-7, Christian Hammond wrote: Hi, What version of Python are you using? Can you try upgrading setuptools? It might just be too old now. Christian -- Christian Hammond - chi...@chipx86.com javascript: Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Wed, Jun 24, 2015 at 2:17 AM, Noopur Sankhere noopur.s...@gmail.com javascript: wrote: Hi Eric, I am trying to installI ReviewBoard1.7.13(same is on my production server) on test server first. I have installed python, apache +mod_wsgi, patch, memchached, python setuptools up til now. And stuck at easy_install ReviewBoard==1.7.13 command. This command is not working. It s giving me following logs: Searching for ReviewBoard==1.7.13 Reading http://pypi.python.org/simple/ReviewBoard/ Download error: unknown url type: https -- Some packages may not be found! Couldn't find index page for 'ReviewBoard' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ Download error: unknown url type: https -- Some packages may not be found! No local packages or download links found for ReviewBoard==1.7.13 Best match: None Traceback (most recent call last): File /usr/bin/easy_install, line 8, in module load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')() File build/bdist.linux-i686/egg/setuptools/command/easy_install.py, line 1712, in main File build/bdist.linux-i686/egg/setuptools/command/easy_install.py, line 1700, in with_ei_usage File build/bdist.linux-i686/egg/setuptools/command/easy_install.py, line 1716, in lambda File /usr/lib64/python2.7/distutils/core.py, line 152, in setup dist.run_commands() File /usr/lib64/python2.7/distutils/dist.py, line 953, in run_commands self.run_command(cmd) File /usr/lib64/python2.7/distutils/dist.py, line 972, in run_command cmd_obj.run() File build/bdist.linux-i686/egg/setuptools/command/easy_install.py, line 211, in run File build/bdist.linux-i686/egg/setuptools/command/easy_install.py, line 434, in easy_install File build/bdist.linux-i686/egg/setuptools/package_index.py, line 475, in fetch_distribution AttributeError: 'NoneType' object has no attribute 'clone' my http/https proxy are set properly still I am facing this issue. Please help. On Tuesday, 23 June 2015 23:21:28 UTC+5:30, er...@tibco.com wrote: I'm not at liberty to share the Ansible scripts that I run, sorry about that. The actual installation of ReviewBoard was pretty easy: # Install ReviewBoard itself - name: Install ReviewBoard easy_install: name=ReviewBoard==2.0.15 sudo: yes register: reviewboard_install That's the simple part! (Note the use of the reviewboard_install registered variable - later in my Ansible task list, I make a complete backup of the database if this is true, so that in the case of a real upgrade, the data is automatically backed up.) In general, I've found success with Ansible by going one step at a time. In my case, I created a clone of my production server by way of building out an Ansible script executing against a VM. Then I could restore my VM state and re-run my Ansible playbook as many times as I wanted, tweaking it as needed. What this script looks like will vary based on your target OS, how you configure Apache, and many other details. In my case, I tried to use as many of the packages from the system package manager, and only use the ones installed by easy_install when the OS-provided package was insufficient. To make it easy to test against production data, I put this in my Ansible script: - name: Copy database backup file to machine copy: src={{ rb_database_backup }} dest=/root/toimport.sql sudo: yes when: rb_database_backup is defined - name: Import existing machine data shell: mysql -u root -p{{ mysql_root_password }} /root/toimport.sql when: rb_database_backup is defined sudo: yes So if I invoke the Ansible script with --extra-vars=rb_database_backup=/path/to/export/of/production/data, then I end up with a complete working copy of the production system, with all of its data (from when I did the backup). The other trick, which works nicely with ReviewBoard is the installation upgrade part. Ansible is built running idempotent operations, and the structure of ReviewBoard management tasks is such that they (mostly) just work in that context. Which means you can get away with something like this (I've edited this to remove information specific to my company, so this script won't work as-is). - name: Create databases mysql_db: name=rbdatabase sudo: yes - name: Grant privileges mysql_user: name=rbuser append_privs=yes priv=rbdatabase.*:ALL sudo: yes - name:
CommandError: Error applying evolution: (1050, Table 'reviews_review_file_attachment_comments' already exists)
Is there a work-around for this? # rb-site upgrade /var/www/reviews.domain.com Rebuilding directory structure Updating database. This may take a while. The log output below, including warnings and errors, can be ignored unless upgrade fails. -- begin log output -- Creating tables ... Upgrading Review Board from 1.5.5 to 2.0.17 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 Evolutions in attachments baseline: file_attachment_orig_filename, file_attachment_file_max_length_512, file_attachment_repo_info, file_attachment_repo_path_no_index, file_attachment_repo_revision_max_length_64 Evolutions in site baseline: localsite_public Evolutions in hostingsvcs baseline: account_hosting_url, account_hosting_url_max_length_255, account_unique_together_baseline Project signature has changed - an evolution is required Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) Registering new SCM Tool Plastic SCM (reviewboard.scmtools.plastic. PlasticTool) in database CommandError: Error applying evolution: (1050, Table 'reviews_review_file_attachment_comments' already exists) -- 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 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/d/optout.
Re: CommandError: Error applying evolution: (1050, Table 'reviews_review_file_attachment_comments' already exists)
My script drops the entire database then does a clean install. Then I import my old mysql database and run `rb-site upgrade`. I'd really like to be able to finish this upgrade. My struggle with it has been a couple of weeks now - I keep hoping that I'm doing something wrong and that posting my script would alert someone brighter than me that I could do something better and finish this. Thanks for taking an interest. On Mon, Jul 6, 2015 at 11:08 AM, Christian Hammond christ...@beanbaginc.com wrote: This looks like another symptom of a very confused database. Are you starting from scratch every time you do an import + upgrade? It's not enough to drop individual tables. The entire database must be recreated. Christian On Monday, July 6, 2015, John Schmitt marmalo...@gmail.com wrote: Is there a work-around for this? # rb-site upgrade /var/www/reviews.domain.com Rebuilding directory structure Updating database. This may take a while. The log output below, including warnings and errors, can be ignored unless upgrade fails. -- begin log output -- Creating tables ... Upgrading Review Board from 1.5.5 to 2.0.17 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 Evolutions in attachments baseline: file_attachment_orig_filename, file_attachment_file_max_length_512, file_attachment_repo_info, file_attachment_repo_path_no_index, file_attachment_repo_revision_max_length_64 Evolutions in site baseline: localsite_public Evolutions in hostingsvcs baseline: account_hosting_url, account_hosting_url_max_length_255, account_unique_together_baseline Project signature has changed - an evolution is required Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) Registering new SCM Tool Plastic SCM (reviewboard.scmtools.plastic. PlasticTool) in database CommandError: Error applying evolution: (1050, Table 'reviews_review_file_attachment_comments' already exists) -- 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 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/d/optout. -- -- Christian Hammond - christ...@beanbaginc.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -- 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 this message because you are subscribed to a topic in the Google Groups reviewboard group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/reviewboard/21RErXZnLpo/unsubscribe. To unsubscribe from this group and all its topics, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 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/d/optout.
Re: CRITICAL:root:Error running database evolver function change_column_attr_unique:
Thanks for looking at this, Christian. When dumping my old database, I have the option of adding 'DROP TABLE' commands. I've been doing that since I get different error messages without it. Should I find a better way to dump and import? I'm working on reproducing so that I can answer your question. On Sunday, July 5, 2015 at 10:51:12 PM UTC-7, Christian Hammond wrote: Hi John, It looks like what's happening is that the database upgrade process is expecting your old database to have a unique index/constraint for a field (marking a particular column as being unique across entries in the table), which it doesn't have for some reason. What I'd suggest is: 1) Restoring the database backup and getting a list of all indexes on the database. 2) Running: rb-site manage /path/to/site evolve -- --sql ... and dumping that to a file. 3) Find what indexes/constraints are being removed/changed that aren't present in the original database. If this isn't clear, go ahead and post both sets of data here. 4) Add any indexes that are missing. Christian -- Christian Hammond - chi...@chipx86.com javascript: Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Sat, Jul 4, 2015 at 8:53 PM, John Schmitt marma...@gmail.com javascript: wrote: # rpm -q ReviewBoard python-djblets python-django-evolution ReviewBoard-2.0.17-1.el7.noarch python-djblets-0.8.20-1.el7.noarch python-django-evolution-0.7.5-1.el7.noarch On Sat, Jul 4, 2015 at 12:53 PM, Christian Hammond chri...@beanbaginc.com javascript: wrote: Hi John, What versions of Review Board and Django Evolution are you using? Christian On Saturday, July 4, 2015, John Schmitt marma...@gmail.com javascript: wrote: Something seems to go wrong during my upgrade. What do I need to do to make this work? This is my script that ought to upgrade my installation from 1.55 to 2.0 #!/bin/bash export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' set -x set -e set -u systemctl stop httpd # perform a fresh installation of ReviewBoard rm -rf /var/www/reviews.domain.com mysql --password=password -e 'drop database if exists reviewboard;' mysql --password=password -e 'create database reviewboard;' rb-site install /var/www/reviews.domain.com --noinput \ --opt-out-support-data \ --domain-name=' reviews.domain.com' \ --site-root='/' \ --static-url='static/' \ --media-url='media/' \ --db-type='mysql' \ --db-name='reviewboard' \ --db-user='root' \ --db-pass='password' \ --db-host='localhost' \ --cache-type='memcached' \ --cache-info='localhost:11211' \ --web-server-type='apache' \ --web-server-port='80' \ --python-loader='wsgi' \ --admin-user='admin' \ --admin-password='password' \ --admin-email=' jschm...@domain.com' chown -R apache.apache /var/www/reviews.domain.com/data chown -R apache.apache /var/www/reviews.domain.com/htdocs/media/ext chown -R apache.apache /var/www/reviews.domain.com/htdocs/media/uploaded chown -R apache.apache /var/www/reviews.domain.com/htdocs/static/ext mkdir /var/www/reviews.domain.com/search-index chown -R apache.apache /var/www/reviews.domain.com/search-index # import the reviewboard data from the old reviewobard installation # general.log grows too big so I delete it but I have to restart mariadb so it'll create a fresh one rm -rf /var/log/mariadb/general.log mysql --password=password /root/reviewboard.dump rm -rf /var/log/mariadb/general.log systemctl restart mariadb # the old installation was stored at /data/... # the new installation is stored at /var/www/reviews.domain.com/... # the new installation directory has to be manually set in the siteconfig_siteconfiguration table # the siteconfig_siteconfiguration is a giant json string #mysql --password=password --batch --skip-column-names -e 'use reviewboard; select settings from
Re: CommandError: Error applying evolution: (1050, Table 'reviews_review_file_attachment_comments' already exists)
On Monday, July 6, 2015 at 2:41:34 PM UTC-7, Christian Hammond wrote: Hi John, Yeah, I know this must be frustrating. I don't know why it's being so difficult, as we routinely have people upgrade from 1.0.x and 1.5.x to 2.0.x without problems. If you're able to get me that list of SQL statements (from the `rb-site manage /path/to/site evolve -- --sql`) on a clean database import, it might help shed some light on this. What do you mean by a clean database import? I have a clone of our running 1.5.5 installation. Do you want the results of that command before I dump it? -- 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 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/d/optout.