{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/kapacitor/issues/1085","repository_url":"https://api.github.com/repos/influxdata/kapacitor","labels_url":"https://api.github.com/repos/influxdata/kapacitor/issues/1085/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/kapacitor/issues/1085/comments","events_url":"https://api.github.com/repos/influxdata/kapacitor/issues/1085/events","html_url":"https://github.com/influxdata/kapacitor/issues/1085","id":194872499,"number":1085,"title":"Kapacitor not recording data stream and alerts not visible in kapacitor log","user":{"login":"ipsha1545","id":22066710,"avatar_url":"https://avatars.githubusercontent.com/u/22066710?v=3","gravatar_id":"","url":"https://api.github.com/users/ipsha1545","html_url":"https://github.com/ipsha1545","followers_url":"https://api.github.com/users/ipsha1545/followers","following_url":"https://api.github.com/users/ipsha1545/following{/other_user}","gists_url":"https://api.github.com/users/ipsha1545/gists{/gist_id}","starred_url":"https://api.github.com/users/ipsha1545/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipsha1545/subscriptions","organizations_url":"https://api.github.com/users/ipsha1545/orgs","repos_url":"https://api.github.com/users/ipsha1545/repos","events_url":"https://api.github.com/users/ipsha1545/events{/privacy}","received_events_url":"https://api.github.com/users/ipsha1545/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-12T01:19:55Z","updated_at":"2016-12-19T05:58:10Z","closed_at":null,"body":"# Kapacitor not recording data stream and alerts not visible in kapacitor log\r\n\r\n### I have a Fedora24(CentOS)  vm in windows10 host.I followed the article [here](https://github.com/influxdata/kapacitor/issues/648).\r\n\r\nFollowing are the details\r\nI tried with the exact same version of Influxdb,kapacitor and telegraf as was mentioned in the article but it seemed like many changes were made in kapacitor 1.0 beta later like \r\nthe old task.db database file since it is still needed to do the migration.\r\n[storage]\r\nboltdb = \"/var/lib/kapacitor/kapacitor.db\"\r\n\r\nas I am receiving error exactly at this point.\r\n\r\n1.First I tried with\r\nSoftware Versions:\r\n\r\nInfluxDB - 0.13.0\r\nTelegraf - 0.13.1\r\nKapacitor - 0.13.1\r\n\r\nLater on I uninstalled Kapacitor -0.13.1 and installed 1.1.1\r\n\r\n\r\nHere are the configuration files\r\n\r\n1.influxdb.conf\r\n\r\n ```\r\nlogging-enabled = true\r\n pprof-enabled = false\r\n \r\n [admin]\r\n enabled = true\r\n bind-address = \":8083\"\r\n https-enabled = false\r\n https-certificate = \"/etc/ssl/influxdb.pem\"\r\n \r\n [http]\r\n enabled = true\r\n bind-address = \":8086\"\r\n auth-enabled = false\r\n log-enabled = true\r\n write-tracing = false\r\n  logging-enabled = true\r\n pprof-enabled = false\r\n \r\n [admin]\r\n enabled = true\r\n bind-address = \":8083\"\r\n https-enabled = false\r\n https-certificate = \"/etc/ssl/influxdb.pem\"\r\n \r\n [http]\r\n enabled = true\r\n bind-address = \":8086\"\r\n auth-enabled = false\r\n log-enabled = true\r\n write-tracing = false\r\n pprof-enabled = false\r\n https-enabled = false\r\n https-certificate = \"/etc/ssl/influxdb.pem\"\r\n max-row-limit = 10000\r\n \r\n [subscriber]\r\n enabled = true\r\n http-timeout = \"30s\"\r\n \r\n [[udp]]\r\n enabled = false\r\n \r\n [continuous_queries]\r\n log-enabled = true\r\n enabled = true\r\n\r\nOther details are omitted  as of now\r\n\r\n```\r\n2.telegraf.conf\r\n\r\n```\r\n[agent]\r\n    interval = \"1s\"\r\n\r\n[outputs]\r\n\r\n[outputs.influxdb]\r\n    urls = [\"http://localhost:8086\"]\r\n    database = \"kapacitor_example\"\r\n    user_agent = \"telegraf\"\r\n\r\n[cpu]\r\n    percpu = false\r\n    totalcpu = true\r\n    drop = [\"cpu_time\"]\r\n```\r\n\r\n3.Kapacitor.conf\r\n```\r\n\r\n hostname = \"localhost\"\r\n \r\n data_dir = \"/var/lib/kapacitor\"\r\n \r\n default-retention-policy = \"\"\r\n \r\n [http]\r\n   bind-address = \":9092\"\r\n   auth-enabled = false\r\n   log-enabled = true\r\n   write-tracing = false\r\n   pprof-enabled = false\r\n   https-enabled = false\r\n\r\n hostname = \"localhost\"\r\n \r\n data_dir = \"/var/lib/kapacitor\"\r\n \r\n default-retention-policy = \"\"\r\n \r\n [http]\r\n   bind-address = \":9092\"\r\n   auth-enabled = false\r\n   log-enabled = true\r\n   write-tracing = false\r\n   pprof-enabled = false\r\n   https-enabled = false\r\n   https-certificate = \"/etc/ssl/kapacitor.pem\"\r\n \r\n [config-override]\r\n   enabled = true\r\n \r\n [logging]\r\n   file = \"/var/log/kapacitor/kapacitor.log\"\r\n   level = \"INFO\"\r\n \r\n [replay]\r\n   dir = \"/var/lib/kapacitor/replay\"\r\n \r\n [[influxdb]]\r\n   default = true\r\n   name = \"localhost\"\r\n   urls = [\"http://localhost:8086\"]\r\n   username = \"\"\r\n   password = \"\"\r\n   ssl-ca = \"\"\r\n   ssl-cert = \"\"\r\n   ssl-key = \"\"\r\n   insecure-skip-verify = false\r\n   timeout = \"0\"\r\n   disable-subscriptions = false\r\n   udp-buffer = 1000\r\n   udp-read-buffer = 0\r\n   startup-timeout = \"0\"\r\n   \r\n   startup-timeout = \"5m\"\r\n   disable-subscriptions = false\r\n   subscription-protocol = \"http\"\r\n \r\n\r\n```\r\n4.cpu_alert.tick\r\n\r\n```\r\nstream\r\n        |from()\r\n        .measurement('cpu')\r\n                \r\n    |alert()\r\n                .crit(lambda: \"usage_idle\" < 90 )\r\n        .log('/tmp/cpu_idle_alerts.log')\r\n```\r\nI followed  [https://docs.influxdata.com/kapacitor/v0.12/introduction/getting_started/](url)  for installation.\r\n\r\n### Steps to reproduce\r\n\r\n```\r\nkapacitor define cpu_alert -type stream -tick ~/cpu_alert.tick -dbrp kapacitor_example.default\r\n\r\n$ kapacitor show cpu_alert \r\nID: cpu_alert\r\nError: \r\nTemplate: \r\nType: stream\r\nStatus: enabled\r\nExecuting: true\r\nCreated: 10 Dec 16 13:44 PST\r\nModified: 11 Dec 16 09:39 PST\r\nLastEnabled: 11 Dec 16 09:39 PST\r\nDatabases Retention Policies: [\"kapacitor_example\".\"default\"]\r\nTICKscript:\r\nstream\r\n    |from()\r\n        .measurement('cpu')\r\n    |alert()\r\n        .crit(lambda: \"usage_idle\" < 90)\r\n        .log('/tmp/cpu_idle_alerts.log')\r\n\r\nDOT:\r\ndigraph cpu_alert {\r\ngraph [throughput=\"0.00 points/s\"];\r\n\r\nstream0 [avg_exec_time_ns=\"0s\" ];\r\nstream0 -> from1 [processed=\"0\"];\r\n\r\nfrom1 [avg_exec_time_ns=\"0s\" ];\r\nfrom1 -> alert2 [processed=\"0\"];\r\n\r\nalert2 [alerts_triggered=\"0\" avg_exec_time_ns=\"0s\" crits_triggered=\"0\" infos_triggered=\"0\" oks_triggered=\"0\" warns_triggered=\"0\" ];\r\n\r\n[ticku@localhost ~]$ kapacitor record stream -task cpu_alert -duration 20s -no-wait\r\n922d81ca-9375-413c-9ffb-7c8fdd68a360\r\n[ticku@localhost ~]$ kapacitor list recordings 922d81ca-9375-413c-9ffb-7c8fdd68a360\r\nID                                   Type    Status    Size      Date                   \r\n922d81ca-9375-413c-9ffb-7c8fdd68a360 stream  running   0 B       11 Dec 16 09:46 PST    \r\n\r\n\r\n\r\n[ticku@localhost ~]$ sudo cat /var/log/kapacitor/kapacitor.log \r\n[run] 2016/12/10 18:16:39 I! Kapacitor starting, version 1.1.1, branch master, commit d1e0173df2b9f44c64b7bbf1a120a1bdb3ef683e\r\n[run] 2016/12/10 18:16:39 I! Go version go1.7.4\r\n[srv] 2016/12/10 18:16:39 I! Kapacitor hostname: localhost\r\n[srv] 2016/12/10 18:16:39 I! ClusterID: e364dd76-166e-4e1c-bbe5-06c1c24aac1e ServerID: e859317a-0ea9-4272-a0bd-3b8ce8eeec03\r\n[task_master:main] 2016/12/10 18:16:39 I! opened\r\n[task_store] 2016/12/10 18:16:39 W! **could not open old boltd for task_store. Not performing migration. Remove the `task_store.dir` configuration to disable migration.**\r\n[task_master:main] 2016/12/10 18:16:39 I! Started task: cpu_alert\r\n[smtp] 2016/12/10 18:16:39 I! Starting SMTP service\r\n[stats] 2016/12/10 18:16:39 I! opened service\r\n[httpd] 2016/12/10 18:16:39 I! Starting HTTP service\r\n[httpd] 2016/12/10 18:16:39 I! Authentication enabled: false\r\n[httpd] 2016/12/10 18:16:39 I! Listening on HTTP: [::]:9092\r\n[run] 2016/12/10 18:16:39 I! Listening for signals\r\n[httpd] ::1 - - [10/Dec/2016:18:17:21 -0800] \"GET /kapacitor/v1/debug/vars HTTP/1.1\" 200 1851 \"-\" \"KapacitorClient\" f264449f-bf47-11e6-8001-000000000000 4124\r\n[httpd] ::1 - - [10/Dec/2016:18:17:55 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 612 \"-\" \"KapacitorClient\" 06b41a2c-bf48-11e6-8002-000000000000 3782\r\n[httpd] ::1 - - [10/Dec/2016:18:17:55 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 614 \"-\" \"KapacitorClient\" 06b4d137-bf48-11e6-8003-000000000000 17560\r\n[task_master:main] 2016/12/10 18:17:55 I! Stopped task: cpu_alert\r\n[httpd] ::1 - - [10/Dec/2016:18:17:55 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 440 \"-\" \"KapacitorClient\" 06b79c77-bf48-11e6-8004-000000000000 12599\r\n[task_master:main] 2016/12/10 18:17:55 I! Started task: cpu_alert\r\n[httpd] ::1 - - [10/Dec/2016:18:17:55 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 600 \"-\" \"KapacitorClient\" 06ba122a-bf48-11e6-8005-000000000000 23309\r\n[httpd] ::1 - - [10/Dec/2016:18:18:03 -0800] \"GET /kapacitor/v1/tasks?dot-view=attributes&fields=type&fields=status&fields=executing&fields=dbrps&limit=100&offset=0&pattern=cpu%2A&replay-id=&script-format=formatted HTTP/1.1\" 200 201 \"-\" \"KapacitorClient\" 0bc55423-bf48-11e6-8006-000000000000 2564\r\n[httpd] ::1 - - [10/Dec/2016:18:18:04 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 600 \"-\" \"KapacitorClient\" 0c497bab-bf48-11e6-8007-000000000000 25805\r\n[httpd] ::1 - - [10/Dec/2016:18:18:21 -0800] \"GET /kapacitor/v1/tasks?dot-view=attributes&fields=link&limit=100&offset=0&pattern=cpu_alert&replay-id=&script-format=formatted HTTP/1.1\" 200 124 \"-\" \"KapacitorClient\" 166f8ef7-bf48-11e6-8008-000000000000 1401\r\n[httpd] ::1 - - [10/Dec/2016:18:18:21 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 609 \"-\" \"KapacitorClient\" 16700e1c-bf48-11e6-8009-000000000000 12661\r\n[httpd] ::1 - - [10/Dec/2016:18:20:07 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 609 \"-\" \"KapacitorClient\" 554f65cc-bf48-11e6-800a-000000000000 14409\r\n[run] 2016/12/10 18:26:14 I! Signal received, initializing clean shutdown...\r\n[run] 2016/12/10 18:26:14 I! Waiting for clean shutdown...\r\n[task_master:main] 2016/12/10 18:26:14 I! Stopped task: cpu_alert\r\n[smtp] 2016/12/10 18:26:14 I! Closing SMTP service\r\n[stats] 2016/12/10 18:26:14 I! closed service\r\n[httpd] 2016/12/10 18:26:14 I! Closed HTTP service\r\n[task_master:main] 2016/12/10 18:26:14 I! closed\r\n[run] 2016/12/10 18:26:14 I! server shutdown completed\r\n[run] 2016/12/10 18:26:17 I! Kapacitor starting, version 1.1.1, branch master, commit d1e0173df2b9f44c64b7bbf1a120a1bdb3ef683e\r\n[run] 2016/12/10 18:26:17 I! Go version go1.7.4\r\n[srv] 2016/12/10 18:26:17 I! Kapacitor hostname: localhost\r\n[srv] 2016/12/10 18:26:17 I! ClusterID: e364dd76-166e-4e1c-bbe5-06c1c24aac1e ServerID: e859317a-0ea9-4272-a0bd-3b8ce8eeec03\r\n[task_master:main] 2016/12/10 18:26:17 I! opened\r\n[task_store] 2016/12/10 18:26:17 W! could not open old boltd for task_store. Not performing migration. Remove the `task_store.dir` configuration to disable migration.\r\n[task_master:main] 2016/12/10 18:26:18 I! Started task: cpu_alert\r\n[smtp] 2016/12/10 18:26:18 I! Starting SMTP service\r\n[stats] 2016/12/10 18:26:18 I! opened service\r\n[httpd] 2016/12/10 18:26:18 I! Starting HTTP service\r\n[httpd] 2016/12/10 18:26:18 I! Authentication enabled: false\r\n[httpd] 2016/12/10 18:26:18 I! Listening on HTTP: [::]:9092\r\n[run] 2016/12/10 18:26:18 I! Listening for signals\r\n[httpd] ::1 - - [10/Dec/2016:18:26:35 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 609 \"-\" \"KapacitorClient\" 3d139b0e-bf49-11e6-8001-000000000000 19523\r\n[httpd] ::1 - - [10/Dec/2016:18:26:35 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 612 \"-\" \"KapacitorClient\" 3d1714ff-bf49-11e6-8002-000000000000 25929\r\n[task_master:main] 2016/12/10 18:26:36 I! Stopped task: cpu_alert\r\n[httpd] ::1 - - [10/Dec/2016:18:26:36 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 438 \"-\" \"KapacitorClient\" 3d1b490d-bf49-11e6-8003-000000000000 20700\r\n[task_master:main] 2016/12/10 18:26:36 I! Started task: cpu_alert\r\n[httpd] ::1 - - [10/Dec/2016:18:26:36 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 599 \"-\" \"KapacitorClient\" 3d1e8e28-bf49-11e6-8004-000000000000 25508\r\n[httpd] ::1 - - [10/Dec/2016:18:26:49 -0800] \"GET /kapacitor/v1/tasks?dot-view=attributes&fields=link&limit=100&offset=0&pattern=cpu_alert&replay-id=&script-format=formatted HTTP/1.1\" 200 124 \"-\" \"KapacitorClient\" 45614b9a-bf49-11e6-8005-000000000000 7634\r\n[httpd] ::1 - - [10/Dec/2016:18:26:49 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 610 \"-\" \"KapacitorClient\" 45629fad-bf49-11e6-8006-000000000000 20701\r\n[httpd] ::1 - - [10/Dec/2016:18:27:04 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 610 \"-\" \"KapacitorClient\" 4e24e582-bf49-11e6-8007-000000000000 16534\r\n[run] 2016/12/10 18:31:11 I! Signal received, initializing clean shutdown...\r\n[run] 2016/12/10 18:31:11 I! Waiting for clean shutdown...\r\n[task_master:main] 2016/12/10 18:31:11 I! Stopped task: cpu_alert\r\n[smtp] 2016/12/10 18:31:11 I! Closing SMTP service\r\n[stats] 2016/12/10 18:31:11 I! closed service\r\n[httpd] 2016/12/10 18:31:11 I! Closed HTTP service\r\n[task_master:main] 2016/12/10 18:31:11 I! closed\r\n[run] 2016/12/10 18:31:11 I! server shutdown completed\r\n[run] 2016/12/10 18:32:01 I! Kapacitor starting, version 1.1.1, branch master, commit d1e0173df2b9f44c64b7bbf1a120a1bdb3ef683e\r\n[run] 2016/12/10 18:32:01 I! Go version go1.7.4\r\n[srv] 2016/12/10 18:32:01 I! Kapacitor hostname: localhost\r\n[srv] 2016/12/10 18:32:01 I! ClusterID: e364dd76-166e-4e1c-bbe5-06c1c24aac1e ServerID: e859317a-0ea9-4272-a0bd-3b8ce8eeec03\r\n[task_master:main] 2016/12/10 18:32:01 I! opened\r\n[task_store] 2016/12/10 18:32:01 W! could not open old boltd for task_store. Not performing migration. Remove the `task_store.dir` configuration to disable migration.\r\n[task_master:main] 2016/12/10 18:32:01 I! Started task: cpu_alert\r\n[smtp] 2016/12/10 18:32:01 I! Starting SMTP service\r\n[stats] 2016/12/10 18:32:01 I! opened service\r\n[httpd] 2016/12/10 18:32:01 I! Starting HTTP service\r\n[httpd] 2016/12/10 18:32:01 I! Authentication enabled: false\r\n[httpd] 2016/12/10 18:32:01 I! Listening on HTTP: [::]:9092\r\n[run] 2016/12/10 18:32:01 I! Listening for signals\r\n[httpd] ::1 - - [10/Dec/2016:18:32:14 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 610 \"-\" \"KapacitorClient\" 06a0858c-bf4a-11e6-8001-000000000000 3791\r\n[httpd] ::1 - - [10/Dec/2016:18:32:20 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 610 \"-\" \"KapacitorClient\" 0a602e3d-bf4a-11e6-8002-000000000000 8258\r\n[httpd] ::1 - - [10/Dec/2016:18:32:20 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 611 \"-\" \"KapacitorClient\" 0a6197b0-bf4a-11e6-8003-000000000000 14542\r\n[task_master:main] 2016/12/10 18:32:20 I! Stopped task: cpu_alert\r\n[httpd] ::1 - - [10/Dec/2016:18:32:20 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 438 \"-\" \"KapacitorClient\" 0a641f42-bf4a-11e6-8004-000000000000 9198\r\n[task_master:main] 2016/12/10 18:32:20 I! Started task: cpu_alert\r\n[httpd] ::1 - - [10/Dec/2016:18:32:20 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 600 \"-\" \"KapacitorClient\" 0a65ca90-bf4a-11e6-8005-000000000000 38318\r\n[httpd] ::1 - - [10/Dec/2016:18:32:24 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 600 \"-\" \"KapacitorClient\" 0cb42c9f-bf4a-11e6-8006-000000000000 9891\r\n[httpd] ::1 - - [10/Dec/2016:18:32:28 -0800] \"GET /kapacitor/v1/tasks?dot-view=attributes&fields=link&limit=100&offset=0&pattern=cpu_alert&replay-id=&script-format=formatted HTTP/1.1\" 200 124 \"-\" \"KapacitorClient\" 0f6127b7-bf4a-11e6-8007-000000000000 2811\r\n[httpd] ::1 - - [10/Dec/2016:18:32:28 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 610 \"-\" \"KapacitorClient\" 0f620002-bf4a-11e6-8008-000000000000 16844\r\n[run] 2016/12/10 18:38:28 I! Signal received, initializing clean shutdown...\r\n[run] 2016/12/10 18:38:28 I! Waiting for clean shutdown...\r\n[task_master:main] 2016/12/10 18:38:28 I! Stopped task: cpu_alert\r\n[smtp] 2016/12/10 18:38:28 I! Closing SMTP service\r\n[stats] 2016/12/10 18:38:28 I! closed service\r\n[httpd] 2016/12/10 18:38:28 I! Closed HTTP service\r\n[task_master:main] 2016/12/10 18:38:28 I! closed\r\n[run] 2016/12/10 18:38:28 I! server shutdown completed\r\n[run] 2016/12/10 18:38:52 I! Kapacitor starting, version 1.1.1, branch master, commit d1e0173df2b9f44c64b7bbf1a120a1bdb3ef683e\r\n[run] 2016/12/10 18:38:52 I! Go version go1.7.4\r\n[srv] 2016/12/10 18:38:52 I! Kapacitor hostname: localhost\r\n[srv] 2016/12/10 18:38:52 I! ClusterID: e364dd76-166e-4e1c-bbe5-06c1c24aac1e ServerID: e859317a-0ea9-4272-a0bd-3b8ce8eeec03\r\n[task_master:main] 2016/12/10 18:38:52 I! opened\r\n[task_store] 2016/12/10 18:38:52 W! could not open old boltd for task_store. Not performing migration. Remove the `task_store.dir` configuration to disable migration.\r\n[task_master:main] 2016/12/10 18:38:52 I! Started task: cpu_alert\r\n[smtp] 2016/12/10 18:38:52 I! Starting SMTP service\r\n[stats] 2016/12/10 18:38:52 I! opened service\r\n[httpd] 2016/12/10 18:38:52 I! Starting HTTP service\r\n[httpd] 2016/12/10 18:38:52 I! Authentication enabled: false\r\n[httpd] 2016/12/10 18:38:52 I! Listening on HTTP: [::]:9092\r\n[run] 2016/12/10 18:38:52 I! Listening for signals\r\n[httpd] ::1 - - [10/Dec/2016:18:39:13 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 610 \"-\" \"KapacitorClient\" 0090d939-bf4b-11e6-8001-000000000000 4844\r\n[httpd] ::1 - - [10/Dec/2016:18:39:13 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 610 \"-\" \"KapacitorClient\" 0091c034-bf4b-11e6-8002-000000000000 24413\r\n[task_master:main] 2016/12/10 18:39:13 I! Stopped task: cpu_alert\r\n[httpd] ::1 - - [10/Dec/2016:18:39:13 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 437 \"-\" \"KapacitorClient\" 0095fb86-bf4b-11e6-8003-000000000000 16514\r\n[task_master:main] 2016/12/10 18:39:13 I! Started task: cpu_alert\r\n[httpd] ::1 - - [10/Dec/2016:18:39:13 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 600 \"-\" \"KapacitorClient\" 0098b80b-bf4b-11e6-8004-000000000000 26238\r\n[httpd] ::1 - - [10/Dec/2016:18:39:20 -0800] \"GET /kapacitor/v1/tasks?dot-view=attributes&fields=link&limit=100&offset=0&pattern=cpu_alert&replay-id=&script-format=formatted HTTP/1.1\" 200 124 \"-\" \"KapacitorClient\" 048759ae-bf4b-11e6-8005-000000000000 1720\r\n[httpd] ::1 - - [10/Dec/2016:18:39:20 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 611 \"-\" \"KapacitorClient\" 0487d50f-bf4b-11e6-8006-000000000000 8508\r\n[httpd] ::1 - - [10/Dec/2016:18:39:24 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 611 \"-\" \"KapacitorClient\" 0707ad3e-bf4b-11e6-8007-000000000000 14243\r\n[httpd] ::1 - - [11/Dec/2016:09:39:04 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 611 \"-\" \"KapacitorClient\" b57659a9-bfc8-11e6-8008-000000000000 37256\r\n[httpd] ::1 - - [11/Dec/2016:09:39:04 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 615 \"-\" \"KapacitorClient\" b57dca07-bfc8-11e6-8009-000000000000 35760\r\n[task_master:main] 2016/12/11 09:39:04 I! Stopped task: cpu_alert\r\n[httpd] ::1 - - [11/Dec/2016:09:39:04 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 441 \"-\" \"KapacitorClient\" b58356b2-bfc8-11e6-800a-000000000000 19168\r\n[task_master:main] 2016/12/11 09:39:04 I! Started task: cpu_alert\r\n[httpd] ::1 - - [11/Dec/2016:09:39:04 -0800] \"PATCH /kapacitor/v1/tasks/cpu_alert HTTP/1.1\" 200 602 \"-\" \"KapacitorClient\" b5865a7c-bfc8-11e6-800b-000000000000 21753\r\n[httpd] ::1 - - [11/Dec/2016:09:42:35 -0800] \"GET /kapacitor/v1/tasks?dot-view=attributes&fields=type&fields=status&fields=executing&fields=dbrps&limit=100&offset=0&pattern=cp%2A&replay-id=&script-format=formatted HTTP/1.1\" 200 201 \"-\" \"KapacitorClient\" 3342378a-bfc9-11e6-800c-000000000000 15366\r\n[httpd] ::1 - - [11/Dec/2016:09:42:35 -0800] \"GET /kapacitor/v1/tasks/cpu_alert?dot-view=attributes&replay-id=&script-format=formatted HTTP/1.1\" 200 602 \"-\" \"KapacitorClient\" 33ced0aa-bfc9-11e6-800d-000000000000 5718\r\n[httpd] ::1 - - [11/Dec/2016:09:44:37 -0800] \"POST /kapacitor/v1/recordings/stream HTTP/1.1\" 201 214 \"-\" \"KapacitorClient\" 7bfc88ff-bfc9-11e6-800e-000000000000 37514\r\n[httpd] ::1 - - [11/Dec/2016:09:44:59 -0800] \"GET /kapacitor/v1/tasks?dot-view=attributes&fields=type&fields=status&fields=executing&fields=dbrps&limit=100&offset=0&pattern=fccd05f3-be59-4e93-83db-67027ecd4a12&replay-id=&script-format=formatted HTTP/1.1\" 200 43 \"-\" \"KapacitorClient\" 8913636c-bfc9-11e6-800f-000000000000 1115\r\n[httpd] ::1 - - [11/Dec/2016:09:46:39 -0800] \"POST /kapacitor/v1/recordings/stream HTTP/1.1\" 201 213 \"-\" \"KapacitorClient\" c4f25780-bfc9-11e6-8010-000000000000 11718\r\n[httpd] ::1 - - [11/Dec/2016:09:46:59 -0800] \"GET /kapacitor/v1/recordings?fields=type&fields=size&fields=date&fields=status&limit=100&offset=0&pattern=922d81ca-9375-413c-9ffb-7c8fdd68a360 HTTP/1.1\" 200 223 \"-\" \"KapacitorClient\" d0d0fa26-bfc9-11e6-8011-000000000000 645\r\n\r\n\r\n[ticku@localhost ~]$ influx\r\nVisit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.\r\nConnected to http://localhost:8086 version 0.13.0\r\nInfluxDB shell version: 0.13.0\r\n> show subscriptions\r\nname: telegraf\r\n--------------\r\nretention_policy\tname\t\t\t\t\t\tmode\tdestinations\r\ndefault\t\t\tkapacitor-e364dd76-166e-4e1c-bbe5-06c1c24aac1e\tANY\t[http://localhost:9092]\r\n\r\n\r\nname: _internal\r\n---------------\r\nretention_policy\tname\t\t\t\t\t\tmode\tdestinations\r\nmonitor\t\t\tkapacitor-e364dd76-166e-4e1c-bbe5-06c1c24aac1e\tANY\t[http://localhost:9092]\r\n\r\n\r\nname: kapacitor_example\r\n-----------------------\r\nretention_policy\tname\t\t\t\t\t\tmode\tdestinations\r\ndefault\t\t\tkapacitor-e364dd76-166e-4e1c-bbe5-06c1c24aac1e\tANY\t[http://localhost:9092]\r\n\r\n\r\n\r\n\r\n[httpd] 2016/12/10 17:42:30 ::1 - - [10/Dec/2016:17:42:30 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 1416bc85-bf43-11e6-8032-000000000000 6.05208ms\r\n[httpd] 2016/12/10 17:42:40 ::1 - - [10/Dec/2016:17:42:40 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 1a0b9efe-bf43-11e6-8033-000000000000 7.417738ms\r\n[httpd] 2016/12/10 17:42:40 ::1 - - [10/Dec/2016:17:42:40 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 1a0b9fbc-bf43-11e6-8034-000000000000 10.765394ms\r\n[httpd] 2016/12/10 17:42:50 ::1 - - [10/Dec/2016:17:42:50 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 200197ed-bf43-11e6-8036-000000000000 8.655367ms\r\n[httpd] 2016/12/10 17:42:50 ::1 - - [10/Dec/2016:17:42:50 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 200197ed-bf43-11e6-8035-000000000000 11.39447ms\r\n[httpd] 2016/12/10 17:43:00 ::1 - - [10/Dec/2016:17:43:00 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 25f6f89b-bf43-11e6-8037-000000000000 4.489744ms\r\n[httpd] 2016/12/10 17:43:00 ::1 - - [10/Dec/2016:17:43:00 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 25f74eb0-bf43-11e6-8038-000000000000 4.027544ms\r\n[httpd] 2016/12/10 17:43:10 ::1 - - [10/Dec/2016:17:43:10 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 2becdaa1-bf43-11e6-8039-000000000000 4.398767ms\r\n[httpd] 2016/12/10 17:43:10 ::1 - - [10/Dec/2016:17:43:10 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 2bed6aa4-bf43-11e6-803a-000000000000 2.589761ms\r\n[httpd] 2016/12/10 17:43:20 ::1 - - [10/Dec/2016:17:43:20 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 31e2dd1e-bf43-11e6-803b-000000000000 4.905191ms\r\n[httpd] 2016/12/10 17:43:20 ::1 - - [10/Dec/2016:17:43:20 -0800] POST /write?consistency=any&db=telegraf&precision=s&rp=default HTTP/1.1 204 0 - InfluxDBClient 31e3037a-bf43-11e6-803c-000000000000 14.243782ms\r\n[run] 2016/12/10 17:43:25 Signal received, initializing clean shutdown...\r\n[run] 2016/12/10 17:43:25 Waiting for clean shutdown...\r\n[copier] 2016/12/10 17:43:25 copier listener closed\r\n[cluster] 2016/12/10 17:43:25 cluster service accept error: network connection closed\r\n[shard-precreation] 2016/12/10 17:43:25 Precreation service terminating\r\n[snapshot] 2016/12/10 17:43:25 snapshot listener closed\r\n[continuous_querier] 2016/12/10 17:43:25 continuous query service terminating\r\n[retention] 2016/12/10 17:43:25 retention policy enforcement terminating\r\n[monitor] 2016/12/10 17:43:25 shutting down monitor system\r\n[monitor] 2016/12/10 17:43:25 terminating storage of statistics\r\n[subscriber] 2016/12/10 17:43:27 closed service\r\n[run] 2016/12/10 17:43:27 server shutdown completed\r\n[ticku@localhost influxdb]$ \r\n```\r\n\r\nAs it can be seen the error lies in\r\n`[task_store] 2016/12/10 18:16:39 W! **could not open old boltd for task_store. Not performing migration. Remove the `task_store.dir` configuration to disable migration.**`\r\n\r\nHow to resolve this?\r\nI tried all possible ways to do that:-\r\n1.Added [subscriber] in kapacitor-0.13.1.\r\n2.Referred to all the available forums and articles available online but none of them provided a solution.\r\n3.I also tried in docker but on enabling the cpu_alert neither the kapacitor records any stream nor is the log file created.'show subscriptions' lists subscriptions correctly and there are no errors in influxdb logs\r\n \r\n\r\n\r\n```\r\ndocker run -d --name influxdb -p 8083:8083 -p 8086:8086 influxdb\r\n\r\ndocker run -d --name telegraf --net=container:influxdb telegraf\r\n\r\n```\r\nAfter creating tick folder in root of the host I created tickscript - cpu_alert.tick to  that ~/tick folder.\r\n\r\nAdd tickscript - cpu_alert.tick to  that ~/tick folder.\r\n\r\n```\r\nAdd ip of influxdb into kapacitor config file and run below command.\r\n\r\ndocker run -p 9092:9092 -d --link influxdb:influxdb --name kapacitor -v ~/Downloads/kapacitor.conf:/etc/kapacitor/kapacitor.conf:ro -v ~/tick/:/root -w=/root kapacitor \r\n\r\nkapacitor define cpu_alert -type stream -tick ~/cpu_alert.tick -dbrp telegraf.autogen\r\n\r\nkapacitor enable cpu_alert\r\n```\r\nTried restarting the containers but it doesnot seem to work.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/influxdata/kapacitor/issues/comments/267888023","html_url":"https://github.com/influxdata/kapacitor/issues/1085#issuecomment-267888023","issue_url":"https://api.github.com/repos/influxdata/kapacitor/issues/1085","id":267888023,"user":{"login":"ipsha1545","id":22066710,"avatar_url":"https://avatars.githubusercontent.com/u/22066710?v=3","gravatar_id":"","url":"https://api.github.com/users/ipsha1545","html_url":"https://github.com/ipsha1545","followers_url":"https://api.github.com/users/ipsha1545/followers","following_url":"https://api.github.com/users/ipsha1545/following{/other_user}","gists_url":"https://api.github.com/users/ipsha1545/gists{/gist_id}","starred_url":"https://api.github.com/users/ipsha1545/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipsha1545/subscriptions","organizations_url":"https://api.github.com/users/ipsha1545/orgs","repos_url":"https://api.github.com/users/ipsha1545/repos","events_url":"https://api.github.com/users/ipsha1545/events{/privacy}","received_events_url":"https://api.github.com/users/ipsha1545/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T05:58:10Z","updated_at":"2016-12-19T05:58:10Z","body":"Is there any specific version of kapacitor,influxdb and telegraph for which the entire setup will work fine without issues,the stream of data will be visible in kapacitor and the alerts can be visible in the log file either on docker or on localhost?"}}
{"actor":{"display_login":"ipsha1545"}}