Opened 13 years ago

Closed 13 years ago

#7655 closed defect (worksforme)

OperationalError: (2005, "Unknown MySQL server host '' (3)")

Reported by: coldfire22x Owned by: Dustin Machi
Priority: high Milestone: tbd
Component: Website Version:
Keywords: Cc:
Blocked By: Blocking:


How to Reproduce

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

Received this error when trying to view tickets.

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2008070208 Firefox/3.0.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-log", 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/", line 419, in _dispatch_request
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/web/", line 196, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/ticket/", line 79, in process_request
    db = self.env.get_db_cnx()
  File "/usr/lib/python2.5/site-packages/Trac-0.11b2-py2.5.egg/trac/", 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/", 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/", 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/", 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/", line 169, in __init__
    host=host, port=port, charset='utf8')
  File "/usr/lib/python2.5/site-packages/MySQLdb/", line 75, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/MySQLdb/", line 164, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2005, "Unknown MySQL server host '' (3)")

Change History (1)

comment:1 Changed 13 years ago by bill

Resolution: worksforme
Status: newclosed

(In Dustin's words) not an ongoing error, closing.

Note: See TracTickets for help on using tickets.