Created
February 15, 2011 15:51
-
-
Save gugod/827682 to your computer and use it in GitHub Desktop.
plurk error message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/home/plurk/plurk/git_trunk/ext/parts/web/wsgiserver/__init__.py", line 1183, in communicate | |
req.respond() | |
File "/home/plurk/plurk/git_trunk/ext/parts/web/wsgiserver/__init__.py", line 553, in respond | |
self._respond() | |
File "/home/plurk/plurk/git_trunk/ext/parts/web/wsgiserver/__init__.py", line 565, in _respond | |
response = self.wsgi_app(self.environ, self.start_response) | |
File "/home/plurk/plurk/git_trunk/ext/werkzeug/utils.py", line 859, in __call__ | |
return self.app(environ, start_response) | |
File "/home/plurk/plurk/git_trunk/ext/parts/web/web.py", line 295, in dispatch_request | |
rv = handle_error() | |
File "/home/plurk/plurk/git_trunk/ext/parts/web/web.py", line 358, in handle_error | |
result = handler(e) | |
File "plurk/web/error_handler.py", line 65, in error_handler | |
trace_back=t_b) | |
File "plurk/templates.py", line 143, in renderPlurkTemplate | |
html = PlurkTemplates().addDynamicData(html, ses_user, page_user) | |
File "plurk/templates.py", line 149, in addDynamicData | |
'session_user': users.exposeSessionUser(ses_user), | |
File "plurk/users.py", line 321, in exposeSessionUser | |
session_user['notifications_count'] = Notifications().getCount(user.id) | |
File "/home/plurk/plurk/git_trunk/ext/parts/cache/__init__.py", line 125, in proxy | |
value = f(*args, **kwargs) | |
File "plurk/models/notifications.py", line 112, in getCount | |
where='status in (0, -2)') | |
File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 236, in selectCount | |
res = self.select(table, cols="COUNT(%s)" % column, as_one=True, **kw) | |
File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 120, in select | |
with self.cursor(sql) as cursor: | |
File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 54, in cursor | |
con = self.connections.getConnection(host) | |
File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 578, in getConnection | |
(pprint.pformat(attempts), cloned_info, exception)) | |
Exception: Could not create a connection on servers [{'charset': 'utf8', | |
'compress': False, | |
'exception': 'Traceback (most recent call last):\n File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 554, in getConnection\n con = MySQLdb.Connect(**conn_info)\n File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3-py2.6-linux-x86_64.egg/MySQLdb/__init__.py", line 81, in Connect\n return Connection(*args, **kwargs)\n File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3-py2.6-linux-x86_64.egg/MySQLdb/connections.py", line 187, in __init__\n super(Connection, self).__init__(*args, **kwargs2)\nOperationalError: (2002, "Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2)")\n', | |
'host': 'localhost', | |
'passwd': u'plurk', | |
'port': 3306, | |
'refresh': True, | |
'success': False, | |
'use_unicode': True, | |
'user': u'plurk'}, | |
{'charset': 'utf8', | |
'compress': False, | |
'exception': 'Traceback (most recent call last):\n File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 554, in getConnection\n con = MySQLdb.Connect(**conn_info)\n File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3-py2.6-linux-x86_64.egg/MySQLdb/__init__.py", line 81, in Connect\n return Connection(*args, **kwargs)\n File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3-py2.6-linux-x86_64.egg/MySQLdb/connections.py", line 187, in __init__\n super(Connection, self).__init__(*args, **kwargs2)\nOperationalError: (2002, "Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2)")\n', | |
'host': 'localhost', | |
'passwd': u'plurk', | |
'port': 3306, | |
'refresh': True, | |
'success': False, | |
'use_unicode': True, | |
'user': u'plurk'}, | |
{'charset': 'utf8', | |
'compress': False, | |
'exception': 'Traceback (most recent call last):\n File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 554, in getConnection\n con = MySQLdb.Connect(**conn_info)\n File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3-py2.6-linux-x86_64.egg/MySQLdb/__init__.py", line 81, in Connect\n return Connection(*args, **kwargs)\n File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3-py2.6-linux-x86_64.egg/MySQLdb/connections.py", line 187, in __init__\n super(Connection, self).__init__(*args, **kwargs2)\nOperationalError: (2002, "Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2)")\n', | |
'host': 'localhost', | |
'passwd': u'plurk', | |
'port': 3306, | |
'refresh': True, | |
'success': False, | |
'use_unicode': True, | |
'user': u'plurk'}] : {'charset': 'utf8', 'use_unicode': True, 'server_name': 'plurk_group021', 'db': '', '_rhost': u'192.168.0.12', 'compress': False, 'resolve_host': <function resolve_host at 0x576a410>, 'shard_info': {'name': u'bonie_clyde', 'id': 5L, 'host': u'192.168.0.11', 'host_extra': u'192.168.0.12', 'balancing': u'host_extra', 'user': u'plurk', 'password': u'plurk', 'port': 3306}, 'port': 3306, 'host': 'localhost', 'user': '*', 'refresh_host': <function refresh_host at 0x576a2a8>, 'password': '*', 'id': 'shard_db_:5'}. | |
Error was Traceback (most recent call last): | |
File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 554, in getConnection | |
con = MySQLdb.Connect(**conn_info) | |
File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3-py2.6-linux-x86_64.egg/MySQLdb/__init__.py", line 81, in Connect | |
return Connection(*args, **kwargs) | |
File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3-py2.6-linux-x86_64.egg/MySQLdb/connections.py", line 187, in __init__ | |
super(Connection, self).__init__(*args, **kwargs2) | |
OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
看起來像是 mysql 掛了。