Influxdb Database host is not accessible due to '('Connection aborted.'

Hi,
I installed Influxdb, within Hass.io.
I configured Influxdb, making a DB (“home_assistant”) and user with password.
In configuration.yaml, I added:

influxdb:
  host: localhost
  port: 8086
  database: home_assistant
  username: **********
  password: *********
  max_retries: 3
  default_measurement: state

But not work…in home page I see:

Invalid config

The following components and platforms could not be set up:

    influxdb

Please check your config.

and in log file I see:

Database host is not accessible due to '('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))', please check your entries in the configuration file (host, port, etc.) and verify that the database exists and is READ/WRITE

How I can to solve ?

ok.
Solved !
I needed to set in “configuration” menu -> “InfluxDB connection” (within influxdb webapp menu) username and password…
So, now work !

Wich username and password did you enter there?