Hi all,
I suspect that I’m missing something easy, but I just can’t find it.
I’m trying to write to an InfluxDB2 instance that is installed on the same machine as my Home Assistant installation, but I can’t write data to it.
I have Grafana installed in HA, and Grafana is connecting happily to InfluxDB2 using the same token, port, address and organization.
My setup used to work, but stopped working sometime in Jan. I’m struggling a bit to keep Debian12 updates and my Home Assistant updates synced.
Home Assistant log entry:
> Logger: homeassistant.components.influxdb
> Source: components/influxdb/__init__.py:587
> integration: InfluxDB (documentation, issues)
> First occurred: 22:27:45 (1 occurrences)
> Last logged: 22:27:45
>
> Cannot connect to InfluxDB due to '[Errno 30] Read-only file system'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible.
Output of sudo journalctl -u influxdb.service -f
> Mar 15 22:08:39 nico-debian influxd-systemd-start.sh[8460]: ts=2024-03-15T20:08:39.556732Z lvl=info msg=Unauthorized log_id=0nxvQrzG000 error="token required"
> Mar 15 22:19:14 nico-debian influxd-systemd-start.sh[8460]: ts=2024-03-15T20:19:14.496315Z lvl=info msg="Retention policy deletion check (start)" log_id=0nxvQrzG000 service=retention op_name=retention_delete_check op_event=start
> Mar 15 22:19:14 nico-debian influxd-systemd-start.sh[8460]: ts=2024-03-15T20:19:14.496638Z lvl=info msg="Retention policy deletion check (end)" log_id=0nxvQrzG000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0.342ms
> Mar 15 22:22:49 nico-debian influxd-systemd-start.sh[8460]: ts=2024-03-15T20:22:49.852025Z lvl=info msg=Unauthorized log_id=0nxvQrzG000 error="token required"
yaml config:
> #influxDB settings
> influxdb:
> api_version: 2
> ssl: false
> host: 10.0.1.220
> port: 8086
> token: w-3Q5r28PwWAWkB0B28102jGGpeWm9e7GpN8abmP2ZP06iLsEppymlvEjiNhCfJ1KmbJmo0uAAioaxvoAVNITA==
> organization: cf3dba69d1a1d368
> bucket: home_assistant
> tags:
> source: HA
> tags_attributes:
> - friendly_name
> - device_class
> default_measurement: units
> include:
> # domains:
> # - sensor
> entities:
> - sensor.battery_soc
> - sensor.ac_loads
> - sensor.solar_yield
> - sensor.ac_grid
> - sensor.battery_power
System details:
> Debian12
> Home assistant via Docker installation
> InfluxDB running on the same machine
> Everything updated to the latest (I added the InfluxDB repository to APT)