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

New issue 3385 by Error 500 while trying to login when two url point to the same site

What version are you running?

What's the URL of the page containing the problem?

What steps will reproduce the problem?
1. Have an apache configuration that have two NamedVirtualHost pointing to exactly the same review board install 2. Configure, in general, one of the two hostname in the "server" field (for example:
3. Test a logout/login with the two hostnames.

What is the expected output? What do you see instead?
I expect a normal login for both, but, instead, one of them gives me an error 500.

What operating system are you using? What browser?
Ubuntu 14.04, Chrome.

Please provide any additional information below.
I'm attaching my apache config.

Apache error log:
  Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/", line 851, in emit
  msg = self.format(record)
  File "/usr/lib/python2.7/logging/", line 724, in format
  return fmt.format(record)
  File "/usr/lib/python2.7/logging/", line 467, in format
  s = self._fmt % record.__dict__
  KeyError: u'request_info'
  Logged from file, line 111

The email I received from buildbot:
File "/usr/local/lib/python2.7/dist-packages/Django-1.6.5-py2.7.egg/django/core/handlers/", line 118, in get_response
    response = middleware_method(request, e)
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.8.1-py2.7.egg/djblets/log/", line 245, in process_exception
    exception, exc_info=1)
  File "/usr/lib/python2.7/logging/", line 1586, in error
    root.error(msg, *args, **kwargs)
  File "/usr/lib/python2.7/logging/", line 1176, in error
    self._log(ERROR, msg, args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.8.1-py2.7.egg/djblets/log/", line 116, in _log_with_request
    old_log(self, *args, **kwargs)
  File "/usr/lib/python2.7/logging/", line 1269, in _log
  File "/usr/lib/python2.7/logging/", line 1279, in handle
  File "/usr/lib/python2.7/logging/", line 1319, in callHandlers
  File "/usr/lib/python2.7/logging/", line 749, in handle
  File "/usr/lib/python2.7/logging/", line 424, in emit
  ValueError: I/O operation on closed file

The temporary fix I did:
Edit /usr/local/lib/python2.7/dist-packages/Djblets-0.8.1-py2.7.egg/djblets/log/ and comment out the implementation of LoggingMiddleware.process_exception

        apache.conf  999 bytes  1.6 KB

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to