Skip to content

Instantly share code, notes, and snippets.

@Domon
Created December 29, 2009 04:22
Show Gist options
  • Save Domon/265148 to your computer and use it in GitHub Desktop.
Save Domon/265148 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/home/plurk/plurk/new_production/ext/parts/web/wsgiserver/__init__.py", line 1177, in communicate
req.respond()
File "/home/plurk/plurk/new_production/ext/parts/web/wsgiserver/__init__.py", line 547, in respond
self._respond()
File "/home/plurk/plurk/new_production/ext/parts/web/wsgiserver/__init__.py", line 559, in _respond
response = self.wsgi_app(self.environ, self.start_response)
File "/home/plurk/plurk/new_production/ext/werkzeug/utils.py", line 859, in __call__
return self.app(environ, start_response)
File "/home/plurk/plurk/new_production/ext/parts/web/web.py", line 274, in dispatch_request
rv = handle_error()
File "/home/plurk/plurk/new_production/ext/parts/web/web.py", line 337, in handle_error
result = handler(e)
File "plurk/web/error_handler.py", line 64, in error_handler
trace_back=t_b)
File "plurk/templates.py", line 106, in renderPlurkTemplate
html = PlurkTemplates().addDynamicData(html, ses_user, page_user)
File "plurk/templates.py", line 112, in addDynamicData
'session_user': users.exposeSessionUser(ses_user),
File "plurk/users.py", line 246, in exposeSessionUser
session_user['notifications_count'] = Notifications().getCount(user.id)
File "/home/plurk/plurk/new_production/ext/parts/cache/__init__.py", line 123, in proxy
value = f(*args, **kwargs)
File "plurk/models/notifications.py", line 108, in getCount
is_email_confirmed = Users().isEmailConfirmed(uid)
File "plurk/models/users.py", line 143, in isEmailConfirmed
row = main_db().select('users_map', id=uid, cols='is_email_confirmed', as_one=True)
File "/home/plurk/plurk/new_production/ext/parts/db/wrapper.py", line 112, in select
with self.cursor(sql) as cursor:
File "/home/plurk/plurk/new_production/ext/parts/db/wrapper.py", line 53, in cursor
con = self.connections.createConnection(host)
File "/home/plurk/plurk/new_production/ext/parts/db/wrapper.py", line 551, in createConnection
raise Exception('Could not create a connection. Error was %s' % exception)
Exception: Could not create a connection. Error was Traceback (most recent call last):
File "/home/plurk/plurk/new_production/ext/parts/db/wrapper.py", line 536, in createConnection
charset = dbinfo.charset)
File "/usr/lib/python2.5/site-packages/MySQL_python-1.2.3c1-py2.5-linux-x86_64.egg/MySQLdb/__init__.py", line 81, in Connect
File "/usr/lib/python2.5/site-packages/MySQL_python-1.2.3c1-py2.5-linux-x86_64.egg/MySQLdb/connections.py", line 188, in __init__
super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2003, "Can't connect to MySQL server on '192.168.0.251' (111)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment