Connection Reset Error 104
root2k opened this issue · 4 comments
The problem:
I´m using InfluxDB (Version 5.0.0) on my HA OS.
I have nothing changed since installation.
But a few days ago I got this error in the logs for the 1st time.
HA OS 11.2
InfluxDB 5.0.0
What version of Home Assistant Core has the issue?:
2023.12.3
What was the last working version of Home Assistant Core?:
I didn't recognized it.
What type of installation are you running?:
Home Assistant OS
Integration causing the issue:
InfluxDB
Diagnostics information:
2024-01-09 16:01:49.079 ERROR (SyncWorker_2) [homeassistant.components.influxdb] Cannot connect to InfluxDB due to '('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))'. Please check that the provided connection details (host, port, etc.) are correct and that your InfluxDB server is running and accessible. Retrying in 60 seconds.
YAML snippet:
influxdb:
username: !secret influxdb_user
password: !secret influxdb_password
tags:
source: HA
tags_attributes:
- friendly_name
default_measurement: state
exclude:
entities:
- zone.home
domains:
- persistent_notification
- person
include:
domains:
- sensor
- binary_sensor
- sun
- light
- cover
entities:
- weather.home
I noticed this afternoon that my HA processor usage is up around 80%.
I couldn't figure out first, until I have found out that the start is about same time when I updated this addon.
I have noticed similar logs in HA as well and then realised that the addon is running but the InfluxDB part stops regularly without any reason:
[23:05:27] INFO: InfluxDB stopped, restarting...
[23:05:28] INFO: Starting the InfluxDB...
[23:06:04] INFO: InfluxDB stopped, restarting...
[23:06:05] INFO: Starting the InfluxDB...
@root2k, I think @wernerhp faced a similar issue in this one:
I recognised the same InfluxDB is not starting because it runs out of memory (and swap).
To understand the issue better, I installed first the Glances addon:
https://github.com/hassio-addons/addon-glances
And when I fully recognised the issue being memory related, I have increased the swap size (by a lot) to 16Gb.
For that I followed these instructions:
https://community.home-assistant.io/t/how-to-increase-the-swap-file-size-on-home-assistant-os/272226
The only difference that I changed the 2G
to 16G
for a bigger swap file.
It has happened recently again, that Influx just stopped. As I did a HAOS update a week ago, the swap was back at the original 2GB, so it couldn't recover. It took me 3 days to realise, that something is going wrong again. Now I left the init script in the Terminal addon to keep the swap at 16GB.
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!