Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1005 by mda...@dtlcontrols.com: Problem Upgrading from Alpha 4 to  
Beta 2
http://code.google.com/p/reviewboard/issues/detail?id=1005

I am running CentOS 5.2 with a MySQL 5 database.  I tried updating from
alpha 4 to beta 2 and when I run rb-site upgrade I get the error below when
it tries to update the database.  I also get the global name 's' not
defined in all reviews new or made before the upgrade.

What's the URL of the page containing the problem?
Any Review Page

What is the expected output? What do you see instead?


rb-site upgrade <correct path here>
Rebuilding directory structure
Updating database
Traceback (most recent call last):
   File "/usr/bin/rb-site", line 5, in ?
     pkg_resources.run_script('ReviewBoard==1.0beta2', 'rb-site')
   File
"/usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg/pkg_resources.py",
line 448, in run_script
     self.require(requires)[0].run_script(script_name, ns)
   File
"/usr/lib/python2.4/site-packages/setuptools-0.6c9-py2.4.egg/pkg_resources.py",
line 1166, in run_script
     execfile(script_filename, namespace, namespace)
   File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2-py2.4.egg/EGG-INFO/scripts/rb-site",
line 1280, in ?
     main(sys.argv[1:])
   File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2-py2.4.egg/EGG-INFO/scripts/rb-site",
line 1275, in main
     command.run()
   File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2-py2.4.egg/EGG-INFO/scripts/rb-site",
line 1196, in run
     site.sync_database()
   File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2-py2.4.egg/EGG-INFO/scripts/rb-site",
line 224, in sync_database
     self.run_manage_command("syncdb", ["--noinput"])
   File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2-py2.4.egg/EGG-INFO/scripts/rb-site",
line 262, in run_manage_command
     execute_manager(reviewboard.settings, [__file__, cmd] + params)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/__init__.py",
line 340, in execute_manager
     utility.execute()
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/__init__.py",
line 295, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/base.py",
line 192, in run_from_argv
     self.execute(*args, **options.__dict__)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/base.py",
line 219, in execute
     output = self.handle(*args, **options)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/base.py",
line 348, in handle
     return self.handle_noargs(**options)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/commands/syncdb.py",
line 101, in handle_noargs
     emit_post_sync_signal(created_models, verbosity, interactive)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/management/sql.py",
line 205, in emit_post_sync_signal
     interactive=interactive)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/dispatch/dispatcher.py",
line 148, in send
     response = receiver(signal=self, sender=sender, **named)
   File
"/usr/lib/python2.4/site-packages/ReviewBoard-1.0beta2-py2.4.egg/reviewboard/admin/management/sites.py",
line 24, in init_siteconfig
     siteconfig, is_new = SiteConfiguration.objects.get_or_create(site=site)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/db/models/manager.py",
line 96, in get_or_create
     return self.get_query_set().get_or_create(**kwargs)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/db/models/query.py",
line 332, in get_or_create
     return self.get(**kwargs), False
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/db/models/query.py",
line 304, in get
     num = len(clone)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/db/models/query.py",
line 160, in __len__
     self._result_cache = list(self.iterator())
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/db/models/query.py",
line 280, in iterator
     obj = self.model(*row[index_start:])
   File
"/usr/lib/python2.4/site-packages/Djblets-0.5beta1-py2.4.egg/djblets/siteconfig/models.py",
line 54, in __init__
     models.Model.__init__(self, *args, **kwargs)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/db/models/base.py",
line 266, in __init__
     signals.post_init.send(sender=self.__class__, instance=self)
   File
"/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/dispatch/dispatcher.py",
line 148, in send
     response = receiver(signal=self, sender=sender, **named)
   File
"/usr/lib/python2.4/site-packages/Djblets-0.5beta1-py2.4.egg/djblets/util/fields.py",
line 174, in post_init
     value = self.loads(value)
   File
"/usr/lib/python2.4/site-packages/Djblets-0.5beta1-py2.4.egg/djblets/util/fields.py",
line 199, in loads
     logging.warning("JSONField decode error. Expected dictionary, "
NameError: global name 's' is not defined


What operating system are you using? What browser?
Centos 5.2

Please provide any additional information below.
Mysql 5 Database

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to