kapacitor
kapacitor copied to clipboard
Given "Custom Anomaly Detection" example is not working
I have followed exact same steps but it is showing an error like
"run: open server: open service *udf.Service: failed to load process info for "tTest": write error: write |1: broken pipe"
please suggest
@kchakraborty Are there any other logs? The UDF process is crashing and that is why you are getting the broken pipe error
@kchakraborty . Got the same issue. See more logs in /var/log/kapacitor/kapacitor.log
You may have to install python dependency. Install using pip install protobuf
Also, if you see any error saying udf_pb2 is not globally defined, then update ttest.py file, fourth line to
from kapacitor.udf import udf_pb2
I'm having the same or similar issue. This is what the output from kapacitor.log looks like repeating over and over. Restarting kapacitor doesn't quite help. Ocasionally however it manages to start properly and process a few points all with the same code for my udf.
[run] 2018/01/11 12:28:15 I! Kapacitor starting, version 1.3.1, branch master, commit 3b5512f7276483326577907803167e4bb213c613
[run] 2018/01/11 12:28:15 I! Go version go1.7.5
[srv] 2018/01/11 12:28:15 I! Kapacitor hostname: localhost
[srv] 2018/01/11 12:28:15 I! ClusterID: 05e4100b-92ae-41bd-99f8-06ac364fb355 ServerID: d2b0718a-00ee-448f-9f05-6ba0469f5423
[task_master:main] 2018/01/11 12:28:15 I! opened
[udf] 2018/01/11 12:28:15 I!P /usr/bin/python2: can't open file 'my_udf_here.py': [Errno 13] Permission denied
[httpd] 2018/01/11 12:28:45 I! Closed HTTP service
[httpd] 2018/01/11 12:28:45 I! Closed HTTP service
[task_master:main] 2018/01/11 12:28:45 I! closed
[run] 2018/01/11 12:28:45 E! open server: open service *udf.Service: failed to load process info for "my_udf_here": write error: write |1: broken pipe
[run] 2018/01/11 12:28:45 I! Kapacitor starting, version 1.3.1, branch master, commit 3b5512f7276483326577907803167e4bb213c613
[run] 2018/01/11 12:28:45 I! Go version go1.7.5
[srv] 2018/01/11 12:28:45 I! Kapacitor hostname: localhost
[srv] 2018/01/11 12:28:45 I! ClusterID: 05e4100b-92ae-41bd-99f8-06ac364fb355 ServerID: d2b0718a-00ee-448f-9f05-6ba0469f5423
[task_master:main] 2018/01/11 12:28:45 I! opened
[udf] 2018/01/11 12:28:45 I!P /usr/bin/python2: can't open file 'my_udf_here.py': [Errno 13] Permission denied
ps -xal | grep -e kapacitor -e python | grep -v grep | grep -v tail
4 997 32078 1 20 0 183292 32508 - Ssl ? 0:00 /usr/bin/kapacitord -config /etc/kapacitor/kapacitor.conf
0 997 32085 32078 20 0 0 0 - Z ? 0:00 [python2] <defunct>
I also encountered the same problem. Is this problem solved? Can you provide a solution?
I have followed exact same steps but it is showing an error like
"run: open server: open service *udf.Service: failed to load process info for "tTest": write error: write |1: broken pipe"
please suggest
I also encountered the same problem. Is this problem solved? Can you provide a solution?
me2, tested on 3 devices, 2 times as user, 1 as root always the same error: *lvl=error msg="encountered error" service=run err="open server: open service udf.Service: failed to load process info for "tTest": write error: write |1: broken pipe"