1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Traceback (most recent call last):
File "/home/plurk/plurk/git_trunk/ext/parts/web/wsgiserver/__init__.py", line 1246, in communicate
req.respond()
File "/home/plurk/plurk/git_trunk/ext/parts/web/wsgiserver/__init__.py", line 758, in respond
self.server.gateway(self).respond()
File "/home/plurk/plurk/git_trunk/ext/parts/web/wsgiserver/__init__.py", line 1949, in respond
response = self.req.server.wsgi_app(self.env, 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 70, in error_handler
trace_back=t_b)
File "plurk/templates.py", line 144, in renderPlurkTemplate
GLOBAL = kwargs['GLOBAL'] = globalVariable( **kwargs)
File "plurk/users.py", line 527, in globalVariable
gv.session_user = exposeSessionUser(ses_user)
File "plurk/users.py", line 348, in exposeSessionUser
session_user['notifications_count'] = Notifications().getCount(user.id)
File "plurk/models/notifications.py", line 119, in getCount
is_email_confirmed = Users().isEmailConfirmed(uid)
File "plurk/models/users.py", line 216, in isEmailConfirmed
row = main_db().select('users_map', id=uid, cols='is_email_confirmed', as_one=True)
File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 121, in select
with self.cursor(sql) as cursor:
File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 55, 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), dbinfo, exception))
Exception: Could not create a connection on server [{'charset': 'utf8',
'compress': False,
'exception': 'Traceback (most recent call last):\n File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 557, in getConnection\n con = MySQLdb.Connect(**conf)\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: (2003, "Can\'t connect to MySQL server on \'192.168.0.211\' (111)")\n',
'host': '192.168.0.211',
'passwd': 'plurk',
'port': 3306,
'refresh': True,
'refresh_host': '192.168.0.211',
'use_unicode': True,
'user': 'plurk'},
{'charset': 'utf8',
'compress': False,
'exception': 'Traceback (most recent call last):\n File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 557, in getConnection\n con = MySQLdb.Connect(**conf)\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: (2003, "Can\'t connect to MySQL server on \'192.168.0.211\' (111)")\n',
'host': '192.168.0.211',
'passwd': 'plurk',
'port': 3306,
'refresh': True,
'refresh_host': '192.168.0.211',
'use_unicode': True,
'user': 'plurk'},
{'charset': 'utf8',
'compress': False,
'exception': 'Traceback (most recent call last):\n File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 557, in getConnection\n con = MySQLdb.Connect(**conf)\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: (2003, "Can\'t connect to MySQL server on \'192.168.0.211\' (111)")\n',
'host': '192.168.0.211',
'passwd': 'plurk',
'port': 3306,
'refresh': True,
'refresh_host': '192.168.0.211',
'use_unicode': True,
'user': 'plurk'}]
.{'_rhost': '192.168.0.211', 'server_name': 'main', 'use_unicode': True, 'standby': '192.168.0.212', 'compress': False, 'charset': 'utf8', 'db': 'plurk_main', 'resolve_host': None, 'id': 'main', 'host': '192.168.0.211', 'user': 'plurk', 'refresh_host': <function refresh_host at 0x4d33488>, 'password': 'plurk', 'port': 3306}
Error was
Traceback (most recent call last):
File "/home/plurk/plurk/git_trunk/ext/parts/db/wrapper.py", line 557, in getConnection
con = MySQLdb.Connect(**conf)
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: (2003, "Can't connect to MySQL server on '192.168.0.211' (111)")