Can you show the full backtrace?

Still, no crash here can affect Apache. This is a crash in Python or a
Python module. I'm highly suspect of the Python install.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Wed, Oct 17, 2012 at 1:33 PM, Tucker <j...@gmail.com> wrote:

> This is an "it's not me, it's them" moment.  I'm limited by the
> offerings we have in our datacenters.  Since run a large production
> network, we sacrifice flexibility for predictability.  That means I
> don't have anything available to me other than Cent OS 5.2 and 5.4.
> My desktop runs Xubuntu quite nicely.
>
> For what it's worth, I enable debugging in settings_local.py and it
> looks like there's something about the login page that
> Djblets-0.7.2-py27 doesn't like.  This is after the stack trace I put
> in the above email.
>
> """
> Exception Type: TypeError at /account/login/
> Exception Value: string indices must be integers, not str
> """
>
> Hopefully I'll be able to narrow this down.
>
> On Wed, Oct 17, 2012 at 1:22 PM, Christian Hammond <chip...@chipx86.com>
> wrote:
> > Have you given Ubuntu a try? We've found them to be our best host for
> Review
> > Board when not using system packages.
> >
> >
> > Christian
> >
> > --
> > Christian Hammond - chip...@chipx86.com
> > Review Board - http://www.reviewboard.org
> > VMware, Inc. - http://www.vmware.com
> >
> >
> > On Wed, Oct 17, 2012 at 1:10 PM, Tucker <j...@gmail.com> wrote:
> >>
> >> altinstall is a make option for Python.  It allows you to run multiple
> >> versions of Python in parallel.  Unfortunately, Cent OS 5.4 still
> >> ships with Python 2.4 and, since I'm building a new machine, I'm
> >> trying to make sure it's possible to upgrade it in the future.  What
> >> if I have a different error, by trying a slightly different method?
> >>
> >> This is an attempt at installing 1.6 (not 1.6.13) and not doing
> >> anything to the DB.  From the apache error log:
> >>
> >> """
> >> mod_wsgi (pid=11867): Exception occurred processing WSGI script
> >> '/var/www/sites/reviews.sre.company.com/htdocs/reviewboard.wsgi'<http://reviews.sre.company.com/htdocs/reviewboard.wsgi%27>
> .,
> >> referer: http://reviews.sre.company.com/account/
> >> login/
> >> Traceback (most recent call last):, referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py",
> >> line 241, in __call__, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     response = self.get_response(request), referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py",
> >> line 179, in get_response, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     response = self.handle_uncaught_exception(request, resolver,
> >> sys.exc_info()), referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py",
> >> line 224, in handle_uncaught_exception, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     if resolver.urlconf_module is None:, referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py",
> >> line 323, in urlconf_module, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     self._urlconf_module = import_module(self.urlconf_name), referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File "/usr/lib/python2.7/site-packages/django/utils/importlib.py",
> >> line 35, in import_module, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     __import__(name), referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File
> >>
> "/usr/lib/python2.7/site-packages/Djblets-0.7.2-py2.7.egg/djblets/util/rooturl.py",
> >> line 40, in <module>, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     (r'^%s' % settings.SITE_ROOT[1:],
> >> include(settings.SITE_ROOT_URLCONF)),, referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File "/usr/lib/python2.7/site-packages/django/conf/urls/__init__.py",
> >> line 24, in include, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     urlconf_module = import_module(urlconf_module), referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File "/usr/lib/python2.7/site-packages/django/utils/importlib.py",
> >> line 35, in import_module, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     __import__(name), referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File
> >>
> "/usr/lib/python2.7/site-packages/ReviewBoard-1.6-py2.7.egg/reviewboard/urls.py",
> >> line 5, in <module>, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     from reviewboard.webapi.resources import root_resource, referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File
> >>
> "/usr/lib/python2.7/site-packages/ReviewBoard-1.6-py2.7.egg/reviewboard/webapi/resources.py",
> >> line 1532, in <module>, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     diffset_resource = DiffResource(), referer:
> >> http://reviews.sre.company.com/account/login/
> >>   File
> >>
> "/usr/lib/python2.7/site-packages/Djblets-0.7.2-py2.7.egg/djblets/webapi/resources.py",
> >> line 361, in __init__, referer:
> >> http://reviews.sre.company.com/account/login/
> >>     item_mimetypes.append(mime['item']), referer:
> >> http://reviews.sre.company.com/account/login/
> >> TypeError: string indices must be integers, not str, referer:
> >> http://reviews.sre.company.com/account/login/
> >> mod_wsgi (pid=11860): Exception occurred processing WSGI script
> >> '/var/www/sites/reviews.sre.company.com/htdocs/reviewboard.wsgi'.
> >> Traceback (most recent call last):
> >>   File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py",
> >> line 241, in __call__
> >>     response = self.get_response(request)
> >>   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py",
> >> line 179, in get_response
> >>     response = self.handle_uncaught_exception(request, resolver,
> >> sys.exc_info())
> >>   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py",
> >> line 224, in handle_uncaught_exception
> >>     if resolver.urlconf_module is None:
> >>   File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py",
> >> line 323, in urlconf_module
> >>     self._urlconf_module = import_module(self.urlconf_name)
> >>   File "/usr/lib/python2.7/site-packages/django/utils/importlib.py",
> >> line 35, in import_module
> >>     __import__(name)
> >>   File
> >>
> "/usr/lib/python2.7/site-packages/Djblets-0.7.2-py2.7.egg/djblets/util/rooturl.py",
> >> line 40, in <module>
> >>     (r'^%s' % settings.SITE_ROOT[1:],
> >> include(settings.SITE_ROOT_URLCONF)),
> >>   File "/usr/lib/python2.7/site-packages/django/conf/urls/__init__.py",
> >> line 24, in include
> >>     urlconf_module = import_module(urlconf_module)
> >>   File "/usr/lib/python2.7/site-packages/django/utils/importlib.py",
> >> line 35, in import_module
> >>     __import__(name)
> >>   File
> >>
> "/usr/lib/python2.7/site-packages/ReviewBoard-1.6-py2.7.egg/reviewboard/urls.py",
> >> line 5, in <module>
> >>     from reviewboard.webapi.resources import root_resource
> >>   File
> >>
> "/usr/lib/python2.7/site-packages/ReviewBoard-1.6-py2.7.egg/reviewboard/webapi/resources.py",
> >> line 1532, in <module>
> >>     diffset_resource = DiffResource()
> >>   File
> >>
> "/usr/lib/python2.7/site-packages/Djblets-0.7.2-py2.7.egg/djblets/webapi/resources.py",
> >> line 361, in __init__
> >>     item_mimetypes.append(mime['item'])
> >> TypeError: string indices must be integers, not str
> >> """
> >>
> >> Trust me, if there was any way I could get a more modern version of a
> >> Linux distro in our environment, I'd be all over it.  My alternative
> >> is to use ReviewBoard 1.6.x, with Python 2.4.3, and live with it
> >> forever.
> >>
> >> On Wed, Oct 17, 2012 at 12:45 PM, Christian Hammond <
> chip...@chipx86.com>
> >> wrote:
> >> > Wow, you're having all sorts of strange problems there.
> >> >
> >> > I'm thinking it all boils down to whatever altinstall is. I recommend
> >> > just
> >> > using the system-packaged Python (assuming it' 2.6) for now. It'll be
> a
> >> > good
> >> > while before that's deprecated.
> >> >
> >> > If easy_install can't recognize https, you're going to have much, much
> >> > bigger problems down the road. Maybe the Apache segfault is a part of
> >> > that.
> >> >
> >> > Christian
> >> >
> >> > --
> >> > Christian Hammond - chip...@chipx86.com
> >> > Review Board - http://www.reviewboard.org
> >> > VMware, Inc. - http://www.vmware.com
> >> >
> >> >
> >> > On Wed, Oct 17, 2012 at 11:39 AM, Tucker <j...@gmail.com> wrote:
> >> >>
> >> >> I'm trying to setup a new ReviewBoard 1.6 instance and running into
> >> >> some problems.  I have Python 2.7 installed, on CentOS 5.4, by way of
> >> >> Python's altinstall method.  Here are the steps I'm executing.
> >> >>
> >> >>
> >> >> sudo easy_install-2.7 -U ReviewBoard
> >> >> # This complains about not knowing how to handle https: for getting
> >> >> Django.-
> >> >>
> >> >> wget
> https://www.djangoproject.com/m/releases/1.3/Django-1.3.3.tar.gz
> >> >> # extract, build, install goes fine
> >> >>
> >> >> sudo easy_install-2.7 -U ReviewBoard
> >> >> # Success!
> >> >>
> >> >> $ sudo rb-site install --domain-name='reviews.sre.company.com'
> >> >> --site-root='/' --media-url='media/' --db-type='mysql'
> >> >> --db-name='reviewboard' --db-host='localhost' --db-user='reviewboard'
> >> >> --db-pass='password' --cache-type='memcached'
> >> >> --web-server-type='apache' --python-loader='wsgi'
> --admin-user='admin'
> >> >> --admin-password='password' --admin-email='j...@company.com'
> >> >> /var/www/sites/reviews.sre.company.com/
> >> >> # This all works fine and I get the installed message.
> >> >>
> >> >> $ sudo chown -R apache
> >> >> /var/www/sites/reviews.sre.company.com/htdocs/media/uploaded
> >> >> $ sudo chown -R apache /var/www/sites/reviews.sre.company.com/data
> >> >>
> >> >> Copy config from conf/ dir into /etc/httpd/conf.d/ dir.  Restart
> >> >> apache and memcached.  The site comes up fine but then I try import
> >> >> the dump from my old site.  The old site is 1.6 and the new site is
> >> >> running 1.6.13.  ReviewBoard tells me I need to upgrade.  When I run
> >> >> the upgrade, this is what I get:
> >> >>
> >> >> """
> >> >> Rebuilding directory structure
> >> >> Updating database. This may take a while.
> >> >> Creating tables ...
> >> >> Creating table hostingsvcs_hostingserviceaccount
> >> >> Traceback (most recent call last):
> >> >>   File "/usr/bin/rb-site", line 8, in <module>
> >> >>     load_entry_point('ReviewBoard==1.6.13', 'console_scripts',
> >> >> 'rb-site')()
> >> >>   File
> >> >>
> >> >>
> "/usr/lib/python2.7/site-packages/ReviewBoard-1.6.13-py2.7.egg/reviewboard/cmdline/rbsite.py",
> >> >> line 1745, in main
> >> >>     command.run()
> >> >>   File
> >> >>
> >> >>
> "/usr/lib/python2.7/site-packages/ReviewBoard-1.6.13-py2.7.egg/reviewboard/cmdline/rbsite.py",
> >> >> line 1642, in run
> >> >>     site.sync_database()
> >> >>   File
> >> >>
> >> >>
> "/usr/lib/python2.7/site-packages/ReviewBoard-1.6.13-py2.7.egg/reviewboard/cmdline/rbsite.py",
> >> >> line 346, in sync_database
> >> >>     self.run_manage_command("syncdb", params)
> >> >>   File
> >> >>
> >> >>
> "/usr/lib/python2.7/site-packages/ReviewBoard-1.6.13-py2.7.egg/reviewboard/cmdline/rbsite.py",
> >> >> line 469, in run_manage_command
> >> >>     execute_manager(reviewboard.settings, [__file__, cmd] + params)
> >> >>   File
> >> >>
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py",
> >> >> line 438, in execute_manager
> >> >>     utility.execute()
> >> >>   File
> >> >>
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py",
> >> >> line 379, in execute
> >> >>     self.fetch_command(subcommand).run_from_argv(self.argv)
> >> >>   File
> >> >> "/usr/lib/python2.7/site-packages/django/core/management/base.py",
> >> >> line 191, in run_from_argv
> >> >>     self.execute(*args, **options.__dict__)
> >> >>   File
> >> >> "/usr/lib/python2.7/site-packages/django/core/management/base.py",
> >> >> line 220, in execute
> >> >>     output = self.handle(*args, **options)
> >> >>   File
> >> >> "/usr/lib/python2.7/site-packages/django/core/management/base.py",
> >> >> line 351, in handle
> >> >>     return self.handle_noargs(**options)
> >> >>   File
> >> >>
> >> >>
> "/usr/lib/python2.7/site-packages/django/core/management/commands/syncdb.py",
> >> >> line 101, in handle_noargs
> >> >>     cursor.execute(statement)
> >> >>   File
> >> >> "/usr/lib/python2.7/site-packages/django/db/backends/mysql/base.py",
> >> >> line 86, in execute
> >> >>     return self.cursor.execute(query, args)
> >> >>   File
> >> >>
> >> >>
> "/usr/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-linux-x86_64.egg/MySQLdb/cursors.py",
> >> >> line 202, in execute
> >> >>   File
> >> >>
> >> >>
> "/usr/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-linux-x86_64.egg/MySQLdb/connections.py",
> >> >> line 36, in defaulterrorhandler
> >> >> _mysql_exceptions.OperationalError: (1005, "Can't create table
> >> >> './reviewboard/#sql-4eed_51.frm' (errno: 150)")
> >> >> """
> >> >>
> >> >> To make sure it's not a problem with credentials or permissions, I
> >> >> attempted the install using the mysql root account as well and no
> >> >> dice.
> >> >>
> >> >> If I run the upgrade a second time, I get this:
> >> >>
> >> >> """
> >> >> Updating database. This may take a while.
> >> >> Creating tables ...
> >> >> Upgrading Review Board from 1.6 to 1.6.13
> >> >> There are unapplied evolutions for scmtools.
> >> >> Adding baseline version for new models
> >> >> Project signature has changed - an evolution is required
> >> >> Installing custom SQL ...
> >> >> Installing indexes ...
> >> >> No fixtures found.
> >> >> Evolution successful.
> >> >> Resetting in-database caches.
> >> >> Upgrade complete.
> >> >> """
> >> >>
> >> >> Unfortunately, when I try and login, Apache segfaults:
> >> >>
> >> >> """
> >> >> [Wed Oct 17 14:38:53 2012] [notice] child pid 3210 exit signal
> >> >> Segmentation fault (11)
> >> >> """
> >> >>
> >> >> Any one have any ideas?
> >> >>
> >> >> --
> >> >>
> >> >> --tucker
> >> >>
> >> >> --
> >> >> 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
> >> >
> >> >
> >> > --
> >> > 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
> >>
> >>
> >>
> >> --
> >>
> >> --tucker
> >>
> >> --
> >> 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
> >
> >
> > --
> > 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
>
>
>
> --
>
> --tucker
>
> --
> 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
>

-- 
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

Reply via email to