Influxdb: database not found telegraf:connection refused

Hi guys,
I’m new in this, and i have two big problems.

I configuration my influxdb in docker but when i need write metrics in my BBDD, influxdb show me the next error:

ts=2021-01-08T21:37:10.019605Z lvl=info msg="failed to store statistics" log_id=0R_zI6OW000 service=monitor error="database not found: _internal"

ts=2021-01-08T21:37:20.028249Z lvl=info msg="Failed to create storage" log_id=0R_zI6OW000 service=monitor db_instance=_internal error="rename /var/lib/influxdb/meta/meta.dbtmp /var/lib/influxdb/meta/meta.db: device or resource busy"

ts=2021-01-08T21:37:20.028613Z lvl=info msg="failed to store statistics" log_id=0R_zI6OW000 service=monitor error="database not found: _internal"

I know, it is very difficult for you to determine what my problem may be but I do not understand what is wrong. My .conf file:

[shard]
  store-enabled = true
  store-database = "mybbdd"
  store-interval = "10s"

my other problem is with the connection between influxdb and telegraf.

`2021-01-08T21:44:25Z E! [agent] Error writing to outputs.influxdb: could not write any address`

`2021-01-08T21:44:35Z E! [outputs.influxdb] When writing to [http://127.0.0.1:8086]: Post "http://127.0.0.1:8086/write?db=mybbdd": dial tcp 127.0.0.1:8086: connect: connection refused`

.conf file:

urls = ["http://127.0.0.1:8086"]

  ## HTTP Basic Auth
    username = "admin"
    password = "admin123"

database = "mybbdd"

  ## HTTP User-Agent
   user_agent = "telegraf"

Thank you! Regards, and i appreciate any help.

PS: Sorry for my english xD

Hello @DeivdSarria,
Have you set up your bbdd database before trying to write to it?
What does your docker compose look like?
Have you tried using:

Can you resolved your problem? I need help to inderstand the diagram of telegraf with influxDB