Closed firstof9 closed 3 months ago
FYI, I tested this change locally and it doesn't fix it.
in regards to discussion, not sure what a problem is there. it does not "spam", its called only when dataset is deleted, so it will get removed from HA.
so from what I was told, async_remove should be called only from main thread. that means removal of obsolete datasets wont be possible right now.
Hi all. I'm having a pretty similar problem after update
Este error se originó a partir de una integración personalizada.
I'll paste the error in the logs:
Registrador: custom_components.truenas.coordinator
Fuente: helpers/update_coordinator.py:315
integración: TrueNAS (documentación, problemas)
Ocurrió por primera vez: 4 de mayo de 2024, 02:11:41 (2653 ocurrencias)
Último inicio de sesión: 13:28:20
Unexpected error fetching TrueNAS data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/truenas/coordinator.py", line 96, in _async_update_data
await self.hass.async_add_executor_job(self.get_systemstats)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/truenas/coordinator.py", line 427, in get_systemstats
max(tmp_graph[i]["aggregations"]["mean"].values()), 2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: max() iterable argument is empty
any Ideas? the integration worked great in the past.
Thanks for the help
This is not a similar error, but try using the 1.3b2
release.
Hi all. I'm having a pretty similar problem after update
Este error se originó a partir de una integración personalizada.
I'll paste the error in the logs:
Registrador: custom_components.truenas.coordinator Fuente: helpers/update_coordinator.py:315 integración: TrueNAS (documentación, problemas) Ocurrió por primera vez: 4 de mayo de 2024, 02:11:41 (2653 ocurrencias) Último inicio de sesión: 13:28:20 Unexpected error fetching TrueNAS data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/truenas/coordinator.py", line 96, in _async_update_data await self.hass.async_add_executor_job(self.get_systemstats) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/truenas/coordinator.py", line 427, in get_systemstats max(tmp_graph[i]["aggregations"]["mean"].values()), 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: max() iterable argument is empty
any Ideas? the integration worked great in the past.
Thanks for the help
not, that is not related at all. My guess would be that truenas is having issue with its stats database. If not, you can open new issue for it and add debugs.
This is not a similar error, but try using the
1.3b2
release.
I was using that release. The problem was solved after rolling back to 1.2.5. I've no idea what it was
The problem was solved after rolling back to 1.2.5. I've no idea what it was
What version of TrueNAS?
The problem was solved after rolling back to 1.2.5. I've no idea what it was
What version of TrueNAS?
That was the issue. I had TrueNAS-SCALE-23.10.1.XX (I don't remember the exact version.) I updated to TrueNAS-SCALE-23.10.2 and now it's working with 1.3b2.
Thanks for the support!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Fix in 1.3b2
Describe the issue
Integration fails to update entities.
How to reproduce the issue
Setup integration and wait for an update coordinator call.
Expected behavior
No errors when updating entities.
Screenshots
Software versions
Diagnostics data
Traceback/Error logs
Additional context
https://github.com/tomaae/homeassistant-truenas/blob/4234ed7cfeefc793a054318e882f7fd1e141e529/custom_components/truenas/coordinator.py#L899
Should use the following call: