| <class '_mysql_exceptions.OperationalError'> | Python 2.7.6: /usr/bin/python Sun Aug 23 04:19:12 2026 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /var/www/html/exons/list.py in |
| 40 config.read('db.conf') |
| 41 |
| => 42 db = Database(host=config.get('database','host'), user=config.get('database','user'), passwd=config.get('database','password'), path=config.get('database','cachedir'), folder=config.get('database','cachename'), cache_time=cache_time) |
| 43 curr = db.getGenericCursor() |
| 44 |
| db undefined, Database = <class Superfamily.CachingDatabase>, host undefined, config = <ConfigParser.ConfigParser instance>, config.get = <bound method ConfigParser.get of <ConfigParser.ConfigParser instance>>, user undefined, passwd undefined, path undefined, folder undefined, cache_time = 86400 |
| /home/ben/work/bin/python_modules/Superfamily.py in __init__(self=<Superfamily.CachingDatabase instance>, host='doge.mrc-lmb.cam.ac.uk', user='ben', passwd='', path='/home/ben/web/exons', folder='.cached_db_results', cache_time=86400) |
| 457 storage_dir = os.path.join(storage_dir, folder) |
| 458 |
| => 459 self.db = CachingMySQLdb.Connect(storage_dir, cache_time, host=host, user=user, passwd=passwd) |
| 460 self.cursor = self.db.cursor() |
| 461 |
| self = <Superfamily.CachingDatabase instance>, self.db undefined, global CachingMySQLdb = <module 'CachingMySQLdb' from '/home/ben/work/bin/python_modules/CachingMySQLdb.py'>, CachingMySQLdb.Connect = <function Connect>, storage_dir = '/home/ben/web/exons/.cached_db_results', cache_time = 86400, host = 'doge.mrc-lmb.cam.ac.uk', user = 'ben', passwd = '' |
| /home/ben/work/bin/python_modules/CachingMySQLdb.py in Connect(storage_dir='/home/ben/web/exons/.cached_db_results', acceptable_age=86400, *args=(), **kwargs={'host': 'doge.mrc-lmb.cam.ac.uk', 'passwd': '', 'user': 'ben'}) |
| 106 acceptable_age: number of seconds old the cached verion is allowed to be. |
| 107 Default = 0 = any age""" |
| => 108 return CachingConnection(storage_dir, acceptable_age, *args, **kwargs) |
| 109 |
| 110 connect = Connection = Connect |
| global CachingConnection = <class 'CachingMySQLdb.CachingConnection'>, storage_dir = '/home/ben/web/exons/.cached_db_results', acceptable_age = 86400, args = (), kwargs = {'host': 'doge.mrc-lmb.cam.ac.uk', 'passwd': '', 'user': 'ben'} |
| /home/ben/work/bin/python_modules/CachingMySQLdb.py in __init__(self=<_mysql.connection closed at 1d2b7b0>, storage_dir='/home/ben/web/exons/.cached_db_results', acceptable_age=86400, *args=(), **kwargs={'cursorclass': <class 'CachingMySQLdb.CachingCursor'>, 'host': 'doge.mrc-lmb.cam.ac.uk', 'passwd': '', 'user': 'ben'}) |
| 97 |
| 98 kwargs["cursorclass"] = CachingCursor |
| => 99 super(CachingConnection, self).__init__(*args, **kwargs) |
| 100 |
| 101 |
| builtin super = <type 'super'>, global CachingConnection = <class 'CachingMySQLdb.CachingConnection'>, self = <_mysql.connection closed at 1d2b7b0>, ).__init__ = <bound method CachingConnection.__init__ of <_mysql.connection closed at 1d2b7b0>>, args = (), kwargs = {'cursorclass': <class 'CachingMySQLdb.CachingCursor'>, 'host': 'doge.mrc-lmb.cam.ac.uk', 'passwd': '', 'user': 'ben'} |
| /usr/lib/python2.7/dist-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 1d2b7b0>, *args=(), **kwargs={'cursorclass': <class 'CachingMySQLdb.CachingCursor'>, 'host': 'doge.mrc-lmb.cam.ac.uk', 'passwd': '', 'user': 'ben'}) |
| 185 kwargs2['client_flag'] = client_flag |
| 186 |
| => 187 super(Connection, self).__init__(*args, **kwargs2) |
| 188 |
| 189 self.encoders = dict([ (k, v) for k, v in conv.items() |
| builtin super = <type 'super'>, global Connection = <class 'MySQLdb.connections.Connection'>, self = <_mysql.connection closed at 1d2b7b0>, ).__init__ = <bound method CachingConnection.__init__ of <_mysql.connection closed at 1d2b7b0>>, args = (), kwargs2 = {'client_flag': 196608, 'conv': {0: <class 'decimal.Decimal'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None>, ...}, 'host': 'doge.mrc-lmb.cam.ac.uk', 'passwd': '', 'user': 'ben'} |
<class '_mysql_exceptions.OperationalError'>: (2003, "Can't connect to MySQL server on 'doge.mrc-lmb.cam.ac.uk' (113)")
args =
(2003, "Can't connect to MySQL server on 'doge.mrc-lmb.cam.ac.uk' (113)")
message =
''