Hi
Having some trouble starting pping after upgradring from 3.15 Running on pping.log produces the following error :
[2014-04-14 09:28:35] pping.py:__init__:54 [Notice] Setting debuglevel=5 [2014-04-14 09:28:35] pping.py:__init__:57 [Notice] Setting checkinterval=20 [2014-04-14 09:28:35] db.py:cursor:109 [Critical] 'NoneType' object has no attribute 'cursor' [2014-04-14 09:28:35] db.py:cursor:110 [Critical] Could not get cursor. Trying to reconnect... [2014-04-14 09:28:35] db.py:connect:70 [Notice] Successfully (re)connected to NAVdb [2014-04-14 09:28:35] db.py:connect:70 [Notice] Successfully (re)connected to NAVdb Traceback (most recent call last): File "/usr/lib/nav/pping.py", line 273, in <module> start(nofork) File "/usr/lib/nav/pping.py", line 241, in start myPinger.main() File "/usr/lib/nav/pping.py", line 174, in main self.generateEvents() File "/usr/lib/nav/pping.py", line 115, in generateEvents rtt) File "/usr/lib/python2.7/dist-packages/nav/statemon/statistics.py", line 68, in update send_metrics(metrics) File "/usr/lib/python2.7/dist-packages/nav/metrics/carbon.py", line 69, in send_metrics return send_metrics_to(metric_tuples, host, port) File "/usr/lib/python2.7/dist-packages/nav/metrics/carbon.py", line 57, in send_metrics_to carbon.send(packet) socket.error: [Errno 111] Connection refused
Anyone have solution for this ?
Hilsen Jostein Berge It-konsulent Karmøy Kommune Tlf : (528)57291
On Mon, 14 Apr 2014 09:48:02 +0200 (CEST) Jostein Berge jostein.berge@karmoy.kommune.no wrote:
Having some trouble starting pping after upgradring from 3.15 Running on pping.log produces the following error :
[snip]
File "/usr/lib/python2.7/dist-packages/nav/metrics/carbon.py", line 57, in send_metrics_to carbon.send(packet) socket.error: [Errno 111] Connection refused
Anyone have solution for this ?
Yes, this likely means the Carbon backend is not running, so NAV cannot send its metrics to it. Please start the carbon-cache backend.
Thanks for the reply, Yes that`s correct.
Got it solved by configuring and starting it. The debian config guide helped a lot.
Hilsen Jostein Berge It-konsulent Karmøy Kommune Tlf : (528)57291
----- Opprinnelig melding ----- Fra: "Morten Brekkevold" morten.brekkevold@uninett.no Til: "jostein berge" jostein.berge@karmoy.kommune.no Kopi: nav-users@uninett.no Sendt: 22. april 2014 12:36:35 Emne: Re: Nav 4.0.1 trouble with nav pping service
On Mon, 14 Apr 2014 09:48:02 +0200 (CEST) Jostein Berge jostein.berge@karmoy.kommune.no wrote:
Having some trouble starting pping after upgradring from 3.15 Running on pping.log produces the following error :
[snip]
File "/usr/lib/python2.7/dist-packages/nav/metrics/carbon.py", line 57, in send_metrics_to carbon.send(packet) socket.error: [Errno 111] Connection refused
Anyone have solution for this ?
Yes, this likely means the Carbon backend is not running, so NAV cannot send its metrics to it. Please start the carbon-cache backend.