home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.37k stars 30.29k forks source link

HA Core Not Sending Data to InfluxDB after 2024.4.2 #115944

Open leacho73 opened 5 months ago

leacho73 commented 5 months ago

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

-

home-assistant[bot] commented 5 months ago

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)

Sch0field9 commented 5 months ago

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.

corbosman commented 5 months ago

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

neoowl commented 5 months ago

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

JPVO-1data commented 5 months ago

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

saladm2 commented 5 months ago

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

neoowl commented 5 months ago

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

klingon888 commented 5 months ago

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

edvc2331 commented 5 months ago

ha 2024.4.4 + influx 5.0.0 - no data

bdraco commented 5 months ago

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

petripeura commented 5 months ago

ha 2024.4.3 + influxdb 2.7.6 - OK

ha 2024.4.4 - NotOK supervisor 2024.04.0 haos 12.2

IncognitoCore commented 5 months ago

I'm having the same issue.

Core 2024.4.4 Supervisor 2024.04.0 InfluxDB v2.7.5

klingon888 commented 5 months ago

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".

zavi66 commented 5 months ago

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

corbosman commented 5 months ago

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.

IncognitoCore commented 5 months ago

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

klingon888 commented 5 months ago

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

hundehausen commented 5 months ago

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

edvc2331 commented 5 months ago

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

bdraco commented 5 months ago

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

bdraco commented 5 months ago

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

syrusfem commented 5 months ago

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!

fenty17 commented 5 months ago

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.

syrusfem commented 5 months ago

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.

klingon888 commented 5 months ago

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

image

saladm2 commented 4 months ago

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

hundehausen commented 3 months ago

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

Xtremefly commented 3 months ago

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.

BinaryDismay commented 3 months ago

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.

Xtremefly commented 3 months ago

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

MPoivre31 commented 2 months ago

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.

Really thanks my mate, it work !

ummarbhutta commented 1 month ago

Hi, I am facing the same issue after upgrade to HA Core 2024.8.2, I am using docker based installation, any help is really appreciated.

MrDynamo commented 1 month ago

Hi, I am facing the same issue after upgrade to HA Core 2024.8.2, I am using docker based installation, any help is really appreciated.

Same here. HA stopped sending to InfluxDB after upgrading to 2024.8.2 on 8/21/24. ha core rebuild in terminal fixed it.

rwhlhptr commented 1 day ago

Same here, too. Same error message after updating HA core. HA Core 2024.10.1 Supervisor 2024.10.0 Operating System 13.1

ha core rebuilddid fix it. I assume, it is not really dependent on the HA version but rather on the update process.

Any suggestions, what could be the root cause and why ha core rebuild can fix it?