Monday, September 01, 2008

Code when Plurk "Twittered"

Traceback (most recent call last):
File "/home/plurk/plurk/production/releases/20080901123945/ext/amiweb/wsgiserver.py", line 626, in communicate
req.respond()
File "/home/plurk/plurk/production/releases/20080901123945/ext/amiweb/wsgiserver.py", line 359, in respond
response = self.wsgi_app(self.environ, self.start_response)
File "/home/plurk/plurk/production/releases/20080901123945/ext/werkzeug/utils.py", line 862, in __call__
return app(environ, start_response)
File "/home/plurk/plurk/production/releases/20080901123945/ext/amiweb/amiweb.py", line 179, in __call__
return self.wsgi_app.__call__(environ, start_response)
File "/home/plurk/plurk/production/releases/20080901123945/ext/paste/translogger.py", line 67, in __call__
return self.application(environ, replacement_start_response)
File "/home/plurk/plurk/production/releases/20080901123945/ext/werkzeug/utils.py", line 815, in __call__
return self.app(environ, start_response)
File "/home/plurk/plurk/production/releases/20080901123945/ext/amiweb/sessions.py", line 27, in __call__
return self.application(environ, session_start_response)
File "/home/plurk/plurk/production/releases/20080901123945/ext/amiweb/amiweb.py", line 290, in __call__
return self.errorHandler(e, environ, start_response, t_b)
File "/home/plurk/plurk/production/releases/20080901123945/ext/amiweb/amiweb.py", line 401, in errorHandler
return self.customErrorHandler(error_object, t_b)
File "plurk/server.py", line 121, in _errorHandler
return app.renderTemplate('errors/error_50x.mako', error_title=title, explanation=explanation, trace_back=trace_back)
File "plurk/app.py", line 3268, in renderTemplate
ses_user = Users().getCurrentUser()
File "plurk/app.py", line 1126, in getCurrentUser
user = model.Users().getUserById(uid)
File "/home/plurk/plurk/production/releases/20080901123945/ext/carrierframework/cache.py", line 66, in proxy
value = f(*args, **kwargs)
File "plurk/model.py", line 292, in getUserById
user = users_db(id).select('users', id=id, as_one=True)
File "plurk/db.py", line 189, in users_db
group = Shard().getUserGroupInfo(id)
File "plurk/db.py", line 263, in getUserGroupInfo
return self.getGroupFromMap('users', id)
File "plurk/db.py", line 255, in getGroupFromMap
group_info = cacheFunction(id, cache_key, pa(main_db().select, table, id = id, as_one = True))
File "plurk/db.py", line 177, in main_db
return PlurkDb().config_db('main')
File "plurk/db.py", line 56, in config_db
return local_data['db_pools'][db_name].getConnection()
File "/home/plurk/plurk/production/releases/20080901123945/ext/amiweb/amidb.py", line 407, in getConnection
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/production/releases/20080901123945/ext/amiweb/amidb.py", line 400, in getConnection
self.con = self.createConnection()
File "/home/plurk/plurk/production/releases/20080901123945/ext/amiweb/amidb.py", line 385, in createConnection
charset = dbinfo.charset)
File "/var/lib/python-support/python2.5/MySQLdb/__init__.py", line 74, in Connect
return Connection(*args, **kwargs)
File "/var/lib/python-support/python2.5/MySQLdb/connections.py", line 170, in __init__
super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2003, "Can't connect to MySQL server on '192.168.0.251' (111)")

No comments: