<class '_mysql_exceptions.OperationalError'> | Python 2.7.5+: /usr/bin/python Tue Feb 11 10:21:11 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/www/crowfly.net/hudsonartists/index.py in |
9 sys.path.append(libdir) |
10 |
11 from reportbase import ReportBase |
=> 12 ReportBase().go() |
13 |
ReportBase = <class 'reportbase.ReportBase'>, ).go = <unbound method ReportBase.go> |
/apps/vreports/lib/reportbase.py in __init__(self=<reportbase.ReportBase object>, report_name=None, allow_download=True, traceback_dir='') |
62 |
63 self.debug_cgi = self.params.debug_cgi |
=> 64 self.db = db.Db(self.params.database) |
65 self.reportFilters = ReportFilters(self.params) |
66 self.reportSummaries= ReportSummaries(self.params) |
self = <reportbase.ReportBase object>, self.db undefined, global db = <module 'vlib.db' from '/usr/local/lib/python2.7/dist-packages/vlib/db.pyc'>, db.Db = <class 'vlib.db.Db'>, self.params = {'report_title': 'Hudson Valley Artists Register...'}], 'num_group_bys': 4, 'display_num_rows': 100}, self.params.database = {'engine': 'mysql', 'passwd': 'FireFlower5', 'ho..., 'db': 'hudsonartists', 'user': 'hudsonartists'} |
/usr/local/lib/python2.7/dist-packages/vlib/db.py in __init__(self=<vlib.db.Db object>, params={'engine': 'mysql', 'passwd': 'FireFlower5', 'ho..., 'db': 'hudsonartists', 'user': 'hudsonartists'}) |
37 |
38 self.params = params |
=> 39 self.connect(params) |
40 |
41 def connect(self, params): |
self = <vlib.db.Db object>, self.connect = <bound method Db.connect of <vlib.db.Db object>>, params = {'engine': 'mysql', 'passwd': 'FireFlower5', 'ho..., 'db': 'hudsonartists', 'user': 'hudsonartists'} |
/usr/local/lib/python2.7/dist-packages/vlib/db.py in connect(self=<vlib.db.Db object>, params={'engine': 'mysql', 'passwd': 'FireFlower5', 'ho..., 'db': 'hudsonartists', 'user': 'hudsonartists'}) |
61 db = params["db"], |
62 port = int(params.get('port', MYSQL_PORT)), |
=> 63 charset = "utf8") |
64 |
65 elif engine == 'mssql': |
charset undefined |
/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'charset': 'utf8', 'db': 'hudsonartists', 'host': 'localhost', 'passwd': 'FireFlower5', 'port': 3306, 'user': 'hudsonartists'}) |
79 """Factory function for connections.Connection.""" |
80 from MySQLdb.connections import Connection |
=> 81 return Connection(*args, **kwargs) |
82 |
83 connect = Connection = Connect |
Connection = <class 'MySQLdb.connections.Connection'>, args = (), kwargs = {'charset': 'utf8', 'db': 'hudsonartists', 'host': 'localhost', 'passwd': 'FireFlower5', 'port': 3306, 'user': 'hudsonartists'} |
/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 2d65610>, *args=(), **kwargs={'charset': 'utf8', 'db': 'hudsonartists', 'host': 'localhost', 'passwd': 'FireFlower5', 'port': 3306, 'user': 'hudsonartists'}) |
191 autocommit = kwargs2.pop('autocommit', False) |
192 |
=> 193 super(Connection, self).__init__(*args, **kwargs2) |
194 self.cursorclass = cursorclass |
195 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 2d65610>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 2d65610>>, 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>, ...}, 'db': 'hudsonartists', 'host': 'localhost', 'passwd': 'FireFlower5', 'port': 3306, 'user': 'hudsonartists'} |
<class '_mysql_exceptions.OperationalError'>: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
args =
(2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
message =
''