# Kapacitor fluxtask showing error

**URL:** <https://community.influxdata.com/t/kapacitor-fluxtask-showing-error/25578>\
**Category:** Kapacitor\
**Created:** [June 28, 2022, 9:25am UTC](https://community.influxdata.com/t/kapacitor-fluxtask-showing-error/25578 "2022-06-28T09:25:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pratik\_Das\_Baghel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/pratik_das_baghel/32/5698_2.png) [@Pratik\_Das\_Baghel](https://community.influxdata.com/u/Pratik_Das_Baghel)\
**Post date:** [June 28, 2022, 9:25am UTC](https://community.influxdata.com/t/kapacitor-fluxtask-showing-error/25578/1 "2022-06-28T09:25:12Z")

</div>

I am running Kapacitor as docker container. I wanted to use fluxtask, below is the configuration i added:

```auto
[fluxtask]
  enabled = true
  task-run-org = "provided-influxdb-org"

```

I am getting following error:

```auto
run: open server: open service *fluxtask.Service: creating analytical store: could not create database for analytic store, tried 5 times

```

If i disable the fluxtask, kapacitor is working fine.

Any resolution for this.

---

<div class="post-metadata">

**Author:** ![Giovanni\_Luisotto](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/giovanni_luisotto/32/4017_2.png) [@Giovanni\_Luisotto](https://community.influxdata.com/u/Giovanni_Luisotto)\
**Post date:** [June 28, 2022, 10:25am UTC](https://community.influxdata.com/t/kapacitor-fluxtask-showing-error/25578/2 "2022-06-28T10:25:43Z")

</div>

In order to work it needs an InfluxDB database, and as you can see it tried to create it but failed (probably due to permission).

refer to:

> **[Use Flux tasks with Kapacitor | Kapacitor 1.6 Documentation](https://docs.influxdata.com/kapacitor/v1.6/working/flux/#set-up-a-flux-task-database-in-influxdb)**
>
> Use Kapacitor 1.6+ to run Flux tasks against InfluxDB and other data sources. Leverage the full library of Flux functionality to build powerful data processing and monitoring tasks in Kapacitor.

---

<div class="post-metadata">

**Author:** ![exabrial](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/exabrial/32/2160_2.png) [@exabrial](https://community.influxdata.com/u/exabrial)\
**Post date:** [April 18, 2023, 8:26pm UTC](https://community.influxdata.com/t/kapacitor-fluxtask-showing-error/25578/3 "2023-04-18T20:26:20Z")

</div>

Did you ever find a solution to this? We’re getting the same thing and I’ve re-read the documentation several times and checked I’ve performed the steps listed.
