# Can't start kapacitor

**URL:** https://community.influxdata.com/t/cant-start-kapacitor/7382
**Category:** Systems
**Created:** [November 13, 2018, 4:59am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382 "2018-11-13T04:59:32Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Indeed\_1](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@Indeed\_1](https://community.influxdata.com/u/Indeed_1)
#### Post date: [November 13, 2018, 4:59am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/1 "2018-11-13T04:59:32Z")

</div>

Hi  
I try to install kapacitor , after follow [instruction](https://docs.influxdata.com/kapacitor/v1.5/introduction/getting-started/) 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\""

```

FYI:  
config file same as [this](https://github.com/influxdata/kapacitor/blob/master/etc/kapacitor/kapacitor.conf)

Any idea?

Thanks,

---

<div class="post-metadata">

### Author: ![MarcV](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/marcv/32/7676_2.png) [@MarcV](https://community.influxdata.com/u/MarcV)
#### Post date: [November 13, 2018, 6:49am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/2 "2018-11-13T06:49:01Z")

</div>

Hi ,

I assume Influxdb is up and running ? 🙂

If you can get Kapacitor started you might get no data because the subscription-mode =“cluster” in your config file … as described here :

[https://docs.influxdata.com/kapacitor/v1.5/administration/subscription-management/](https://docs.influxdata.com/kapacitor/v1.5/administration/subscription-management/)

The `cluster` subscription-mode is planned for future versions of Kapacitor and [Kapacitor Enterprise](https://docs.influxdata.com/enterprise_kapacitor/). If used currently, subscription data will not be received

best regards

---

<div class="post-metadata">

### Author: ![Indeed\_1](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@Indeed\_1](https://community.influxdata.com/u/Indeed_1)
#### Post date: [November 13, 2018, 8:22am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/3 "2018-11-13T08:22:58Z")

</div>

Yes influxdb, telegraf and cholonograf already installed and running.

I don’t use cluster mode and all subscriptions are disabled.

Any other idea?

---

<div class="post-metadata">

### Author: ![MarcV](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/marcv/32/7676_2.png) [@MarcV](https://community.influxdata.com/u/MarcV)
#### Post date: [November 13, 2018, 1:17pm UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/4 "2018-11-13T13:17:05Z")

</div>

can you try : /usr/bin/kapacitord ( without any arguments )  
do you have more info in /var/log/kapacitor/kapacitor.log ?

---

<div class="post-metadata">

### Author: ![Indeed\_1](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@Indeed\_1](https://community.influxdata.com/u/Indeed_1)
#### Post date: [November 14, 2018, 3:47am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/5 "2018-11-14T03:47:30Z")

</div>

> [@MarcV](#):
>
> /usr/bin/kapacitord

yes without arguments produce same result!

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”

---

<div class="post-metadata">

### Author: ![MarcV](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/marcv/32/7676_2.png) [@MarcV](https://community.influxdata.com/u/MarcV)
#### Post date: [November 14, 2018, 6:03am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/6 "2018-11-14T06:03:38Z")

</div>

Can you show the output of  
show subscriptions

These may help also :

[https://github.com/influxdata/kapacitor/issues/1372](https://github.com/influxdata/kapacitor/issues/1372)

---

<div class="post-metadata">

### Author: ![MarcV](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/marcv/32/7676_2.png) [@MarcV](https://community.influxdata.com/u/MarcV)
#### Post date: [November 14, 2018, 6:04am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/7 "2018-11-14T06:04:20Z")

</div>

[https://github.com/influxdata/kapacitor/issues/1479](https://github.com/influxdata/kapacitor/issues/1479)

---

<div class="post-metadata">

### Author: ![Indeed\_1](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@Indeed\_1](https://community.influxdata.com/u/Indeed_1)
#### Post date: [November 14, 2018, 7:13am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/8 "2018-11-14T07:13:58Z")

</div>

here is subscriptions section of my config file:

disable-subscriptions = false  
subscription-protocol = “http”  
subscription-mode = “cluster”  
kapacitor-hostname = “”

---

<div class="post-metadata">

### Author: ![MarcV](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/marcv/32/7676_2.png) [@MarcV](https://community.influxdata.com/u/MarcV)
#### Post date: [November 14, 2018, 8:00am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/9 "2018-11-14T08:00:54Z")

</div>

Thanks ,  
Can you also logon to Influxdb and execute the command :  
show subscriptions

---

<div class="post-metadata">

### Author: ![Indeed\_1](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@Indeed\_1](https://community.influxdata.com/u/Indeed_1)
#### Post date: [November 14, 2018, 8:04am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/10 "2018-11-14T08:04:04Z")

</div>

here it is:  
[root@vinfluxdb kapacitor]# influx -ssl -unsafeSsl  
Connected to [https://localhost:8086](https://localhost:8086) version 1.4.2  
InfluxDB shell version: 1.4.2

```
show subscriptions
name: my_db
retention_policy name mode destinations
---------------- ---- ---- ------------
autogen kapacitor-9332c ANY [http://localhost:9092]

name: telegraf
retention_policy name mode destinations
---------------- ---- ---- ------------
autogen kapacitor-9332c ANY [http://localhost:9092]

name: alert
retention_policy name mode destinations
---------------- ---- ---- ------------
autogen kapacitor-9332c ANY [http://localhost:9092]
>

```

---

<div class="post-metadata">

### Author: ![MarcV](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/marcv/32/7676_2.png) [@MarcV](https://community.influxdata.com/u/MarcV)
#### Post date: [November 14, 2018, 8:43am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/11 "2018-11-14T08:43:34Z")

</div>

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”

Please check out following document …

[https://docs.influxdata.com/kapacitor/v1.5/administration/security/](https://docs.influxdata.com/kapacitor/v1.5/administration/security/)

best regards ,

---

<div class="post-metadata">

### Author: ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)
#### Post date: [November 14, 2018, 4:45pm UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/12 "2018-11-14T16:45:06Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![IvanTheFirst](https://avatars.discourse-cdn.com/v4/letter/i/bbce88/32.png) [@IvanTheFirst](https://community.influxdata.com/u/IvanTheFirst)
#### Post date: [July 13, 2019, 10:35pm UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/13 "2019-07-13T22:35:41Z")

</div>

I know that it is very late to answer 🙂 But for others like me - try to disable system proxy (check by env command).

---

<div class="post-metadata">

### Author: ![naveen\_kumar](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/naveen_kumar/32/9559_2.png) [@naveen\_kumar](https://community.influxdata.com/u/naveen_kumar)
#### Post date: [April 12, 2022, 8:55am UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/14 "2022-04-12T08:55:01Z")

</div>

how to solve this error?

---

<div class="post-metadata">

### Author: ![sandersbud4](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/sandersbud4/32/7200_2.png) [@sandersbud4](https://community.influxdata.com/u/sandersbud4)
#### Post date: [May 11, 2022, 12:48pm UTC](https://community.influxdata.com/t/cant-start-kapacitor/7382/15 "2022-05-11T12:48:07Z")

</div>

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.
