Hi
I try to install kapacitor , after follow instruction try to run below commands, but error appear:
kapacitor -config -skipVerify
flag provided but not defined: -config
Usage of main:
-skipVerify
Disable SSL verification (note, this is insecure). Defaults to the KAPACITOR_UNSAFE_SSL environment variable or false if not set.
-url string
The URL http(s)://host:port of the kapacitord server. Defaults to the KAPACITOR_URL environment variable or http://localhost:9092 if not set.
also try this one:
/usr/bin/kapacitord -config /etc/kapacitor/kapacitor.conf
lvl=error msg="failed to connect to InfluxDB, retrying..." service=influxdb cluster=default err="Get http://localhost:8086/ping: net/http: HTTP/1.x transport connection broken: malformed HTTP response \"\\x15\\x03\\x01\\x00\\x02\\x02\""
The cluster subscription-mode is planned for future versions of Kapacitor and Kapacitor Enterprise. If used currently, subscription data will not be received
more info in log file
lvl=info msg=“go version” service=run version=go1.10.2
lvl=info msg=“listing Kapacitor hostname” source=srv hostname=localhost
lvl=info msg=“listing ClusterID and ServerID” source=srv cluster_id=760c2d
lvl=info msg=“opened task master” service=kapacitor task_master=main
lvl=error msg=“encountered error” service=run err=“open server: open service *influxdb.Service: failed to link subscription on startup: canceled”
getting close -)
Looks that you have secured the influx database …
I guess the mode destination should show https in the show subscriptions output …
You may have to change some configuration in the kapacitor.conf file …
for example : subscription-protocol = “https”
Are you using a self signed certificate? the malformed http response looks similar to one i’ve had in the past regarding self signed certificates. If so, you need to tell Kapacitor to skip verifying the SSL certificate and also update the URL. As in, change it from http://hostname:8086 to https
[[influxdb]]
# Connect to an InfluxDB cluster
# Kapacitor can subscribe, query and write to this cluster.
# Using InfluxDB is not required and can be disabled.
enabled = true
default = true
name = "localhost"
urls = ["https://localhost:8086"]
username = ""
password = ""
timeout = 0
# Absolute path to pem encoded CA file.
# A CA can be provided without a key/cert pair
# ssl-ca = "/etc/kapacitor/ca.pem"
# Absolutes paths to pem encoded key and cert files.
# ssl-cert = "/etc/kapacitor/cert.pem"
# ssl-key = "/etc/kapacitor/key.pem"
# Do not verify the TLS/SSL certificate.
# This is insecure.
insecure-skip-verify = true
Changing the HTTP sections in Kapacitor config (near the top) won’t help. I’ve been there and tried.
Hi @IvanTheFirst … It is still pretty confusing for me as I am only the beginner. I will truly appreciate it if you could provide a detailed insight on it.