Skip to content
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

History data polling (today metrics) throw errors at midnight #130

Open
4 tasks done
torbennehmer opened this issue Mar 29, 2024 · 3 comments
Open
4 tasks done

History data polling (today metrics) throw errors at midnight #130

torbennehmer opened this issue Mar 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@torbennehmer
Copy link
Owner

System Health details

follow up by maintainer

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

At midnight, there is a window of a few minutes, where get_db_data_timestamp throws errors for yet unknown reasons. Apparently, this can only be debugged at midnight, making this a pain to solve. 3.6.3 handles these errors gracefully, with the side effect that the daily data is updated a few minutes late. You'll therefore see the previous day's consumption until something like 5 minutes after midnight.

An additional grace period handling should be introduced for the first few minutes into the new day.

Reproduction steps

Just look at the logs at midnight. Examples can be found at

Debug logs

follow up by maintainer

Diagnostics dump

follow up by maintainer

@Phoenix-DH
Copy link

Phoenix-DH commented Mar 29, 2024

Will have a look.

@Phoenix-DH
Copy link

No error messages this night at my end!
Thanks.

@Phoenix-DH
Copy link

Phoenix-DH commented Mar 30, 2024

Oh what I just saw, no error, but warning:

Logger: custom_components.e3dc_rscp.coordinator
Source: custom_components/e3dc_rscp/coordinator.py:225
integration: E3DC Remote Storage Control Protocol (Git) (documentation, issues)
First occurred: 12:00:53 AM (2 occurrences)
Last logged: 12:02:03 AM

Failed to load daily stats, not updating data: Communication Failure: Failed to send data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants