unexpected end-of-file (perhaps the fastcgi process died)

xin_ma 2016-09-20 05:36:51
项目开发语言:python
项目运行环境:lighttpd + fastcgi
项目开发系统:centos7
查看 lighttpd error.log

2016-09-20 17:16:09: (mod_fastcgi.c.2390) unexpected end-of-file (perhaps the fastcgi process died): pid: 13149 socket: unix:/tmp/phonecms2015-static.socket-0
2016-09-20 17:16:09: (mod_fastcgi.c.3128) child signaled: 9
2016-09-20 17:16:09: (mod_fastcgi.c.3171) response not received, request sent: 821 on socket: unix:/tmp/phonecms2015-static.socket-0 for /service.py?, closing connection

查看项目日志:
File "/var/www/webapps/phonecms2015-static/tools/phonecms2015-static-sync/service.py", line 23, in post_clean_valide_token
urllib2.urlopen(req)
File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error

出错代码块:
def post_clean_valide_token(self):
url = STATIC_HOST + "/api/syncStatic"
try:
log.info("called static sync!url:%s"%url)
values = {'token':self.token}
req = urllib2.Request(url=url,data=urllib.urlencode(values))
urllib2.urlopen(req)
except Exception, e:
log.error('into sync post_clean_valide_token:%s' % traceback.format_exc())


...全文
359 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
xin_ma 2016-09-20
  • 打赏
  • 举报
回复

6,721

社区成员

发帖
与我相关
我的任务
社区描述
专题开发/技术/项目 Google技术社区
社区管理员
  • Google技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧