Newrelic插件Nginx-nr-agent无法正常工作

前端之家收集整理的这篇文章主要介绍了Newrelic插件Nginx-nr-agent无法正常工作 前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我正在使用Newrelic的Nginx-nr-agent,但突然崩溃,发出以下错误,并且没有重新开始.

2016-04-12 07:51:07,021 Nginx-nr-agent [ERROR]: EXCEPTION: Traceback (most recent call last):
File "/usr/bin/Nginx-nr-agent.py",line 431,in newrelic_push
u = urlopen(r,data=json.dumps(payload))
File "/usr/lib/python2.7/urllib2.py",line 127,in urlopen
return _opener.open(url,data,timeout)
File "/usr/lib/python2.7/urllib2.py",line 401,in open
response = self._open(req,data)
File "/usr/lib/python2.7/urllib2.py",line 419,in _open
'_open',req)
File "/usr/lib/python2.7/urllib2.py",line 379,in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py",line 1219,in https_open
return self.do_open(httplib.HTTPSConnection,line 1184,in do_open
r = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py",line 1034,in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py",line 407,in begin
version,status,reason = self._read_status()
File "/usr/lib/python2.7/httplib.py",line 365,in _read_status
line = self.fp.readline()
File "/usr/lib/python2.7/socket.py",line 447,in readline
data = self._sock.recv(self._rbufsize)
File "/usr/lib/python2.7/ssl.py",line 241,in recv
return self.read(buflen)
File "/usr/lib/python2.7/ssl.py",line 160,in read
return self._sslobj.read(len)
File "/usr/lib/pymodules/python2.7/daemon/daemon.py",line 399,in terminate
raise exception
SystemExit: Terminating on signal 15

有什么帮助吗?

最佳答案
我从here得到了两个解决方案,一个是删除pid文件/var/run/Nginx-nr-agent/Nginx-nr-agent.pid,然后启动/重新启动它.第二种解决方案是重新启动服务器.

猜你在找的Nginx相关文章