core icon indicating copy to clipboard operation
core copied to clipboard

HA Core Not Sending Data to InfluxDB after 2024.4.2

Open leacho73 opened this issue 10 months ago • 34 comments

The problem

I have noticed that since the release of HA 2024.4.3 onwards - there is no data being sent to remote InfluxDB instances. This is confirmed by rolling back to 2024.4.2, where the data starts to be recorded once again.

No entries in the logs show any kind of failure.

What version of Home Assistant Core has the issue?

2024.4.3 upwards

What was the last working version of Home Assistant Core?

2024.4.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

InfluxDB

Link to integration documentation on our website

https://www.home-assistant.io/integrations/influxdb/

Diagnostics information

No response

Example YAML snippet

`influxdb:
  api_version: 2
  ssl: false
  host: <ip redacted>
  port: 8086
  token: <redacted>
  organization: <16 digit code>
  bucket: homeassistant
  tags:
    source: HA
  tags_attributes:
    - friendly_name
  include:
    domains:
      - sensor
      - binary_sensor
      - sun`

Anything in the logs that might be useful for us?

-

Additional information

leacho73 avatar Apr 22 '24 06:04 leacho73

Hey there @mdegat01, mind taking a look at this issue as it has been labeled with an integration (influxdb) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of influxdb can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign influxdb Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


influxdb documentation influxdb source (message by IssueLinks)

home-assistant[bot] avatar Apr 22 '24 06:04 home-assistant[bot]

I ran into the same issue. token has read and write access. I also created a full access token, which didn't solve the error.

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.

Sch0field9 avatar Apr 22 '24 08:04 Sch0field9

Same problem, I have no more data coming into influxdb from HA after 2024.4.2

corbosman avatar Apr 22 '24 08:04 corbosman

Here also the very same problem after the update with HA 2404.4.3 and influx2

neoowl avatar Apr 23 '24 15:04 neoowl

I have the same problem with HA 2404.4.3 and influxDB v2.7.6

JPVO-1data avatar Apr 23 '24 15:04 JPVO-1data

Same issue for me - in HA logs for influxdb2 I'm getting 'file system is read-only' . Reverting back to 2024.4.2 fixed it for me

saladm2 avatar Apr 23 '24 22:04 saladm2

I updatet this morning to HA 2024.4.4 and the problem seems to be fixed, influx is getting data from HA.

neoowl avatar Apr 24 '24 07:04 neoowl

I'm already on 2024.4.4 but still same issue. InfluxDB v2.7.6. No data posted since I upgraded yesterday.

klingon888 avatar Apr 24 '24 23:04 klingon888

ha 2024.4.4 + influx 5.0.0 - no data

edvc2331 avatar Apr 25 '24 13:04 edvc2331

There was a supervisor issue for Cannot connect to InfluxDB due to '[Errno 30] Read-only file system'

Try updating supervisor, and restarting the host

bdraco avatar Apr 25 '24 18:04 bdraco

ha 2024.4.3 + influxdb 2.7.6 - OK

ha 2024.4.4 - NotOK supervisor 2024.04.0 haos 12.2

petripeura avatar Apr 27 '24 18:04 petripeura

I'm having the same issue.

Core 2024.4.4 Supervisor 2024.04.0 InfluxDB v2.7.5

IncognitoCore avatar Apr 28 '24 23:04 IncognitoCore

this is my first time posting a HA issue and i do not wish or mean to be rude but are these postings just to notify the development team of issues and no responses are to be expected? Typically I see responses from developers whenever issues are posted. But so far, no updates except continued postings of more users having issue with the latest update. Would be nice to at least get an acknowledgement of "yup, this is an issue and will be fixed in next release etc".

klingon888 avatar Apr 29 '24 17:04 klingon888

Downgrading the version helps with the problem and works without any problems. Enter this on the terminal in the Home Assistant: ha core update --version 2024.4.2

zavi66 avatar Apr 29 '24 20:04 zavi66

Yeah I downgraded to 2024.4.2 until homeassistant can fix this important integration. It's pretty much the only way if you want longterm graphs of..anything.

corbosman avatar Apr 29 '24 20:04 corbosman

Just upgraded to core 2024.5.0 and I'm no longer experiencing this issue.

IncognitoCore avatar May 02 '24 00:05 IncognitoCore

Still not working, all latest versions with InfluxDB v2.7.6. Rolling back to HAOS 12.1 works with Core 2024.5.0. The moment I upgrade to HAOS 12.2, influxdb stops getting updates. Be nice if the developer comes out and clarifies at this point what combinations work.

image

klingon888 avatar May 02 '24 16:05 klingon888

Still not working with InfluxDB v2.7.6 and Home Assistant Core 2024.5.1

hundehausen avatar May 05 '24 10:05 hundehausen

maybe something to do with influx v1 (username/password) and v2 (organisation/token) auth?

edvc2331 avatar May 05 '24 11:05 edvc2331

https://github.com/home-assistant/supervisor/issues/4996

bdraco avatar May 05 '24 14:05 bdraco

https://github.com/home-assistant/operating-system/issues/3282

bdraco avatar May 05 '24 14:05 bdraco

I read all the treads on this problem but i can't find a solution for connection homeassistant to a remote influxdb docker image located on a different server. There is some pointer to recreate the docker image of influxdb (on an external , separate server ) that avoid the read only problem? Thanks!

syrusfem avatar May 06 '24 05:05 syrusfem

I read all the treads on this problem but i can't find a solution for connection homeassistant to a remote influxdb docker image located on a different server. There is some pointer to recreate the docker image of influxdb (on an external , separate server ) that avoid the read only problem?

Thanks!

Plenty of guides on setting up InfluxDB in docker. My instance is on a separate machine so although I was worried about this issue, I wasn't affected. Unless you permanently want to move your db elsewhere, you might be better off waiting for fix instead of the hassle of migrating.

fenty17 avatar May 06 '24 15:05 fenty17

my old influxdb instance is on a separate server, the upgrade of docker on that server caused the problem with homeassistant (and i can't roll back the update ) , i have no risk of losing db data even if i recreate the docker but i can't figure how to solve the read only problem of homeassistant accessing that docker. I have read various guides but can't figure bymyself how to solve the read only error. But if there is no other way i'll wait for a fix.

syrusfem avatar May 07 '24 04:05 syrusfem

Many versions later and still not working with latest. Is the developer still working on this integration or is it dead?

image

klingon888 avatar May 08 '24 15:05 klingon888

I'm no longer having this issue after I updated to Core version 2024.5.5 and OS version 12.3

saladm2 avatar Jun 04 '24 08:06 saladm2

I still have this issue with HA 2024.6.4 running in docker compose with influxdb:2

hundehausen avatar Jun 22 '24 13:06 hundehausen

I have installed the HA Version 2024.6.4 and HA OS 12.0. In this case the recording to influxdb 2 works. If i update the HA OS to the newest (12.4), the recording to influxdb 2 doesn´t work.

Xtremefly avatar Jun 26 '24 20:06 Xtremefly

I encountered the same error mentioned earlier, '[Errno 30] Read-only file system'. My system had been running without issues until the last update. To resolve this, I rebuilt the HA core.

My setup includes Home Assistant running on a NUC and InfluxDB V2 on a Proxmox LXC.

To rebuild the HA core, run the following command in the HA terminal:

ha core rebuild

I hope this helps someone.

BinaryDismay avatar Jun 27 '24 10:06 BinaryDismay

After the command "ha core rebuild" it works with the latest HA OS and HA Version. Thanks for your tip.

Xtremefly avatar Jun 27 '24 16:06 Xtremefly