-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgraded HASS to 2024.7 getting lots of error logs #349
Comments
same - its literally crashing my instance because of the amount of errors |
Yep, I had to roll back to last months release, bummer. |
I am away so I can not issue an update but try this. Edit the config/custom_components/cloud3/support/recorder_prefilter.py file. insert the following at line 122 before the line causing the error at line 123.
The code should line up with the |
unfortunately, I literally had to delete it within 30-60 seconds of booting up or it would crash my instance. Not sure why because I have it on a very powerful NUC. It would lock up and when I looked at the logs, it was throwing errors 3000+ times within seconds of booting up - I had several devices so maybe thats it. I'll wait for an official update before reinstalling - love the work! |
I’m actually in Switzerland on a trip and do not want to update HA while I’m away. That never ends well. The HA guys must have made some changes in 2024.7 that did something. That module injects code into the HA recorder module to be able to stop logging entity changes for the Event Log, info and other fields. |
The problem is The temporary fix is actually to add this line:
|
I am in Switzerland and cannot release an update to iCloud3 to fix this error. However, I have updated the code in GitHub. Download the support/recorder_prefilter.py file in the iCloud3 GitHub repository here and save it to the icloud3/support directory. (Look for ‘Raw’ in the menu bar above the code on the right. The Download icon is the 2nd icon to the right) |
@stickpin |
Thank you both! |
@cweakland i think, it makes sense to reopen this bug. For the time being, I've completely commented
I will see if I'll have some time today to debug it properly. |
By recorder, do you mean the "logbook"? If so, yes, my logbook is pretty empty. |
@stickpin The workaround you recommended brought my logbook back to life. |
Nope, but I am now :-) I linked a similar/same issue from another repo where I used recorder_history_prefilter. Interestingly, I'm not seeing the error in my logs and I'm running 3 integrations with it. Will investigate more. |
@gcobb321 wrote: Download the support/recorder_prefilter.py file in the iCloud3 GitHub repository here and save it to the icloud3/support directory. (Look for ‘Raw’ in the menu bar above the code on the right. The Download icon is the 2nd icon to the right) Restart HA. Thanks for the quick solution. It worked like a charm. Enjoy your trip! Cheers, |
Confirming replacing the file and restarting HA fixes the recorder issue. |
after applying the patch, this is the new error of fun. |
Ignore I it. This is a problem a few of us are working on. I’m in Switzerland right now and have not upgraded my R pi to 2024.7 since in away. |
Hello, i've got the same errors after Update to 2024.7.0 then i rolled back to 2024.6.4 and tried to update to 2024.7.1 but got the same errors:
any news? |
I am in Switzerland and cannot release an update to iCloud3 to fix this error. I also cannot access my RPi server. However, I have updated the code in GitHub.
This is a temporary fix until some updates are done. You may lose some HA log history until this is resolved. I am involved in some discussions on changes to HA that will handle this issue other than that, there is no more news. |
@gcobb321 will this home-assistant/core#121658 mean the whole icloud3 integration stop working if update to HA 2024.7.2? Or it will only stop storing data in recorder? |
yes, if you update to 2024.7.2 the icloud3 integration will not get loaded... i just restored to 2024.7.1 with the temporary fix mentioned above... |
@u20p17 thanks for your reply, I will just stay on 2024.6.4 then till Gary is back from vacation and had time to apply a permanent fix 👍 |
This only affects icloud3 correct? Or does it also break icloud3_v3? I haven’t updated to 2024.7.2 yet and am hesitant to now after seeing those release notes. |
iCloud3 inserts special code into the HA recorder that automatically excludes some text based iCloud3 sensors from the HA log database. HA release 3024.7 broke this and 2024.7.2 prevented iCloud3 from loading if it tried to do this injection. I am in Switzerland and cannot release an update to iCloud3 to fix this error. However, I have updated the code in GitHub.
The Event Log also adds a large item into the log and will generate a warning message in the Error Log. To stop the warning message and exclude this sensor from being added, add the following to the configuration.yaml file. It adds a manual exclude for sensor.
|
From how I understand it affects as well iCloud3 as iCloud3_V3 anyone correct me if I am wrong |
Both iCloud3 and iCloud3 _v3 |
Got it, I'll hold off on updating then until you get back. No rush, but when are you back just so we have a rough idea? |
In 3-days. I should have an update out by 7/15. It will disable the HA special patch with instructions until the issue is resolved. |
Sounds like we need to get Santa (Gary) some elves to release things when he's taking a break. |
My next trip is Lisbon to Cape Town on the west coast of Africa from 11/10 to 12/7. Hopefully the HA guys won’t break iCloud3 on the 2024.12 update. |
Must be nice to be retired :) |
Adding backreference to the hass community side of this: https://community.home-assistant.io/t/psa-2024-7-recorder-problems/746428 |
These look like they may be icloud3 related, I was hoping someone my be able help me resolve this. I did not see these prior to the upgrade. Here is the log in question from my homeassistant.log, I get one every few seconds.
2024-07-03 13:47:04.948 ERROR (MainThread) [homeassistant.core] Error running job: <Job listen * HassJobType.Callback <function Recorder.async_initialize.._event_listener at 0x7fc27ff76480>>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1559, in async_fire_internal
self._hass.async_run_hass_job(job, event)
File "/usr/src/homeassistant/homeassistant/core.py", line 938, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/components/recorder/core.py", line 330, in _event_listener
if entity_filter(entity_id):
^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/icloud3/support/recorder_prefilter.py", line 123, in entity_filter
return recorder_entity_filter(entity_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
The text was updated successfully, but these errors were encountered: