Hi, I have a Centos 6 server that I have upgraded a couple of times, started with 1.6.3. Now I am trying to update 1.7.6 to 1.7.11 but I run into some problems with rb-site upgrades. See output below my little side note.
----- SIDE NOTE START ----- This is my try-out server so I want to test the upgrade before I do it on our production server. Besides needing help with below problem, are there any best practices on how to apply upgrades on production servers? Sadly I am having my server setup on a virtual server that I dont have possiblility to clone, this is my current way: 2 Servers: Production server (not clonable and only accessable through ssh) Try-out server (playground, full access) Try to keep playground server as similar as production server as possible. backup reviewboard from production server (see below script) "install" backup on playground server ---- mysql reviewboard < /opt/rb_backups/<date>_<version>/mysqldb.dump ---- rm /var/www/html/reviewboard ---- copy and untar /opt/rb_backups/<date>_<version>/reviewboard /var/www/html/reviewboard ---- easy_install ReviewBoard==<version> ---- /etc/init.d/httpd restart ---- /etc/init.d/memcached restart upgrade reviewboard upgrade site restart apache restart memcached $ cat /opt/rb_backups/rb_backup.sh #!/bin/bash rb_version=$(rb-site --version | awk '{print $2}') todays_date=$(date +"%m_%d_%Y_") folder=$todays_date$rb_version mkdir /opt/rb_backups/$folder mysqldump --user=root reviewboard --password > /opt/rb_backups/$folder/mysqldb.dump tar -cvzf reviewboard.tar.gz /var/www/html/reviewboard mv reviewboard.tar.gz /opt/rb_backups/$folder/ ----- SIDE NOTE END ----- Here is my failing upgrade sequence: $ sudo /opt/rb_backups/rb_backup.sh $ sudo easy_install -U ReviewBoard Searching for ReviewBoard Reading http://pypi.python.org/simple/ReviewBoard/ Reading http://www.review-board.org/ Reading http://downloads.review-board.org/releases/ Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.7/ Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.6/ Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.5/ Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.0/ Reading http://downloads.review-board.org/releases/ReviewBoard/1.0/ Reading http://downloads.reviewboard.org/nightlies/ Best match: ReviewBoard 1.7.11 Downloading http://downloads.reviewboard.org/releases/ReviewBoard/1.7/ReviewBoard-1.7.11-py2.6.egg Processing ReviewBoard-1.7.11-py2.6.egg creating /usr/lib/python2.6/site-packages/ReviewBoard-1.7.11-py2.6.egg Extracting ReviewBoard-1.7.11-py2.6.egg to /usr/lib/python2.6/site-packages Removing ReviewBoard 1.7.6 from easy-install.pth file Adding ReviewBoard 1.7.11 to easy-install.pth file Installing rb-site script to /usr/bin Installing rbssh script to /usr/bin Installed /usr/lib/python2.6/site-packages/ReviewBoard-1.7.11-py2.6.egg Reading http://downloads.reviewboard.org/mirror/ Processing dependencies for ReviewBoard Searching for markdown>=2.3.1 Reading http://pypi.python.org/simple/markdown/ Best match: Markdown 2.3.1 Downloading https://pypi.python.org/packages/source/M/Markdown/Markdown-2.3.1.zip#md5=39460227bfe10a8e8b88c90505226b90 Processing Markdown-2.3.1.zip Running Markdown-2.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-d_guvq/Markdown-2.3.1/egg-dist-tmp-0YtOWc zip_safe flag not set; analyzing archive contents... Removing Markdown 2.2.1 from easy-install.pth file Adding Markdown 2.3.1 to easy-install.pth file Installing markdown_py script to /usr/bin Installed /usr/lib/python2.6/site-packages/Markdown-2.3.1-py2.6.egg Searching for Djblets>=0.7.15,<0.7.16 Reading http://pypi.python.org/simple/Djblets/ Reading http://www.reviewboard.org/wiki/Djblets Reading http://downloads.reviewboard.org/releases/Djblets/0.7/ Reading http://www.review-board.org/wiki/Djblets Reading http://downloads.review-board.org/releases/Djblets/0.6/ Reading http://downloads.reviewboard.org/releases/Djblets/0.6/ Reading http://downloads.review-board.org/releases/Djblets/0.5/ Best match: Djblets 0.7.15 Downloading http://downloads.reviewboard.org/releases/Djblets/0.7/Djblets-0.7.15-py2.6.egg Processing Djblets-0.7.15-py2.6.egg creating /usr/lib/python2.6/site-packages/Djblets-0.7.15-py2.6.egg Extracting Djblets-0.7.15-py2.6.egg to /usr/lib/python2.6/site-packages Removing Djblets 0.7.11 from easy-install.pth file Adding Djblets 0.7.15 to easy-install.pth file Installed /usr/lib/python2.6/site-packages/Djblets-0.7.15-py2.6.egg Searching for django-evolution>=0.6.9 Reading http://pypi.python.org/simple/django_evolution/ Best match: django-evolution 0.6.9 Downloading https://pypi.python.org/packages/2.6/d/django_evolution/django_evolution-0.6.9-py2.6.egg#md5=14f26c28fbfd5d8c97a902122a0e6aca Processing django_evolution-0.6.9-py2.6.egg creating /usr/lib/python2.6/site-packages/django_evolution-0.6.9-py2.6.egg Extracting django_evolution-0.6.9-py2.6.egg to /usr/lib/python2.6/site-packages Removing django-evolution 0.6.8 from easy-install.pth file Adding django-evolution 0.6.9 to easy-install.pth file Installed /usr/lib/python2.6/site-packages/django_evolution-0.6.9-py2.6.egg Finished processing dependencies for ReviewBoard $ sudo rb-site upgrade -d /var/www/html/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 ... Upgrading Review Board from 1.7.6 to 1.7.11 There are unapplied evolutions for accounts. There are unapplied evolutions for hostingsvcs. There are unapplied evolutions for reviews. Project signature has changed - an evolution is required Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) Traceback (most recent call last): File "/usr/bin/rb-site", line 9, in <module> load_entry_point('ReviewBoard==1.7.11', 'console_scripts', 'rb-site')() File "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.11-py2.6.egg/reviewboard/cmdline/rbsite.py", line 1937, in main command.run() File "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.11-py2.6.egg/reviewboard/cmdline/rbsite.py", line 1780, in run site.migrate_database() File "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.11-py2.6.egg/reviewboard/cmdline/rbsite.py", line 377, in migrate_database self.run_manage_command("evolve", ["--noinput", "--execute"]) File "/usr/lib/python2.6/site-packages/ReviewBoard-1.7.11-py2.6.egg/reviewboard/cmdline/rbsite.py", line 560, in run_manage_command execute_manager(reviewboard.settings, [__file__, cmd] + params) File "/usr/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 459, in execute_manager utility.execute() File "/usr/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/base.py", line 196, in run_from_argv self.execute(*args, **options.__dict__) File "/usr/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/base.py", line 232, in execute output = self.handle(*args, **options) File "/usr/lib/python2.6/site-packages/django_evolution-0.6.9-py2.6.egg/django_evolution/management/commands/evolve.py", line 60, in handle self.evolve(*app_labels, **options) File "/usr/lib/python2.6/site-packages/django_evolution-0.6.9-py2.6.egg/django_evolution/management/commands/evolve.py", line 140, in evolve database)) File "/usr/lib/python2.6/site-packages/django_evolution-0.6.9-py2.6.egg/django_evolution/mutations.py", line 608, in mutate old_field_sig = model_sig['fields'][self.field_name] KeyError: 'timezone' -- 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.