豆瓣出错了,原来是用python加MYSQL弄得
Traceback (most recent call last):
File “/usr/lib/python2.4/site-packages/quixote/publish.py”, line 522, in process_request
output = self.try_publish(request, env.get(‘PATH_INFO’, ”))
File “/usr/lib/python2.4/site-packages/quixote/publish.py”, line 457, in try_publish
output = object(request)
File “/var/www/douban/luz/__init__.py”, line 33, in _q_index
return nonmember_ui(request)
File “/var/www/douban/luz/nm_home_ui.ptl”, line 17, in nonmember_ui
main_layout(request, main_content, sidebar_content, right_width=350)
File “/var/www/douban/luz/site_ui.ptl”, line 73, in main_layoutFile “/var/www/douban/luz/nm_home_ui.ptl”, line 52, in sidebar_content
others=get_latest_interests(‘1001’)
File “/var/www/douban/luzong/interest.py”, line 121, in get_latest_interests
store.farm.execute(“select subject_id,user_id,tags,comment,status,`time`,cat_id from user_interest order by id desc limit %s”, (limit,))
File “/usr/lib/python2.4/site-packages/MySQLdb/cursors.py”, line 137, in execute
self.errorhandler(self, exc, value)
File “/usr/lib/python2.4/site-packages/MySQLdb/connections.py”, line 33, in defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (2006, ‘MySQL server has gone away’)
Form:
Cookies:
__utma 164037162.1073837553.1135090838.1135090838.1135098134.2
__utmz 164037162.1135098134.2.2.utmccn=(referral)|utmcsr=baidu.com|utmcct=/s|utmcmd=referral
Environment:
CONTENT_LENGTH 0
DOCUMENT_ROOT /var/www/douban/
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT_LANGUAGE zh-cn
HTTP_COOKIE __utma=164037162.1073837553.1135090838.1135090838.1135098134.2; __utmz=164037162.1135098134.2.2.utmccn=(referral)|utmcsr=baidu.com|utmcct=/s|utmcmd=referral
HTTP_HOST www.douban.com
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; Poco 0.31; Alexa Toolbar; .NET CLR 2.0.40607)
HTTP_X_FORWARDED_FOR 139.18.179.4
PATH_INFO /
QUERY_STRING
REDIRECT_STATUS 200
REMOTE_ADDR 64.233.173.86
REMOTE_PORT 58067
REQUEST_METHOD GET
REQUEST_URI /
SCGI 1
SCRIPT_FILENAME /var/www/douban/
SCRIPT_NAME
SERVER_ADDR 61.129.113.231
SERVER_NAME www.douban.com
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE lighttpd/1.4.8