Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#8003 closed defect (fixed)

OperationalError: (2005, "Unknown MySQL server host 'db.dojotoolkit.com' (3)")

Reported by: ben hockey Owned by: Dustin Machi
Priority: high Milestone: 1.3
Component: Operations Version: 1.2.0
Keywords: Cc:
Blocked By: Blocking:

Description

How to Reproduce

While doing a GET operation on /search, Trac issued an internal error.

This happens a lot...

Request parameters:

{'q': u'trac'}

User Agent was: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1

System Information

Trac 0.11b2
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)
[GCC 4.2.1 (SUSE Linux)]
setuptools 0.6c3
MySQL server: "5.0.45", client: "5.0.45", thread-safe: 0
MySQLdb 1.2.1_p2
Genshi 0.6dev-r895
mod_python 3.3.1
jQuery: 1.2.3

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/main.py", line 419, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/main.py", line 196, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/search/web_ui.py", line 106, in process_request
    results += list(source.get_search_results(req, terms, filters))
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/versioncontrol/web_ui/changeset.py", line 943, in get_search_results
    repos = self.env.get_repository(req.authname)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/api.py", line 168, in __getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/main.py", line 130, in authenticate
    authname = authenticator.authenticate(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/auth.py", line 70, in authenticate
    authname = self._get_name_for_cookie(req, req.incookie['trac_auth'])
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/auth.py", line 180, in _get_name_for_cookie
    db = self.env.get_db_cnx()
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/env.py", line 250, in get_db_cnx
    return DatabaseManager(self).get_connection()
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/db/api.py", line 76, in get_connection
    return self._cnx_pool.get_cnx(self.timeout or None)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/db/pool.py", line 101, in get_cnx
    cnx = self._connector.get_connection(**self._kwargs)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/db/mysql_backend.py", line 53, in get_connection
    cnx = MySQLConnection(path, user, password, host, port, params)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/db/mysql_backend.py", line 169, in __init__
    host=host, port=port, charset='utf8')
  File "/usr/lib/python2.5/site-packages/MySQLdb/__init__.py", line 75, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/MySQLdb/connections.py", line 164, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2005, "Unknown MySQL server host 'db.dojotoolkit.com' (3)")

Change History (3)

comment:1 Changed 11 years ago by Adam Peller

Component: GeneralOps
Owner: changed from anonymous to Dustin Machi

It's been reported and dmachi knows about it.

comment:2 Changed 11 years ago by Dustin Machi

Resolution: fixed
Status: newclosed

comment:3 Changed 11 years ago by Adam Peller

Milestone: tbd1.3

batch move of tickets marked 'tbd' fixed in the 1.3 timeframe

Note: See TracTickets for help on using tickets.