core icon indicating copy to clipboard operation
core copied to clipboard

Failed to update drive state

Open Mariusthvdb opened this issue 8 months ago • 5 comments

The problem

as title, not much else to go on, besides seeing this happening regularly recently

What version of Home Assistant Core has the issue?

2025.4.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Onedrive

Link to integration documentation on our website

https://www.home-assistant.io/integrations/onedrive

Diagnostics information

config_entry-onedrive-01JJVRCAGMD9KMCAJ20MHVYQD5.json

Example YAML snippet


Anything in the logs that might be useful for us?

xLogger: homeassistant.components.onedrive.coordinator
Bron: helpers/update_coordinator.py:412
integratie: OneDrive (documentatie, problemen)
Eerst voorgekomen: 14:38:17 (1 gebeurtenissen)
Laatst gelogd: 14:38:17

Error fetching onedrive data: Failed to update drive state

Additional information

nothing obvious in the frontend

Image

Mariusthvdb avatar Apr 15 '25 14:04 Mariusthvdb

Hey there @zweckj, mind taking a look at this issue as it has been labeled with an integration (onedrive) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of onedrive 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 onedrive 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)


onedrive documentation onedrive source (message by IssueLinks)

home-assistant[bot] avatar Apr 15 '25 14:04 home-assistant[bot]

Anything in the debug log?

zweckj avatar Apr 15 '25 14:04 zweckj

sorry I had not set debug yet... enabled right now, so hopefully there will be something if it re-occurs

Mariusthvdb avatar Apr 16 '25 15:04 Mariusthvdb

I have the same issue regularly. There is not much in the integration log:

2025-06-13 23:37:07.512 DEBUG (MainThread) [homeassistant.components.onedrive.coordinator] Finished fetching onedrive data in 0.291 seconds (success: True)
2025-06-13 23:42:07.451 DEBUG (MainThread) [homeassistant.components.onedrive.coordinator] Finished fetching onedrive data in 0.231 seconds (success: True)
2025-06-13 23:47:07.519 DEBUG (MainThread) [homeassistant.components.onedrive.coordinator] Finished fetching onedrive data in 0.299 seconds (success: True)
2025-06-13 23:52:08.837 ERROR (MainThread) [homeassistant.components.onedrive.coordinator] Error fetching onedrive data: Failed to update drive state
2025-06-13 23:52:08.838 DEBUG (MainThread) [homeassistant.components.onedrive.coordinator] Finished fetching onedrive data in 1.618 seconds (success: False)
2025-06-13 23:57:08.530 INFO (MainThread) [homeassistant.components.onedrive.coordinator] Fetching onedrive data recovered
2025-06-13 23:57:08.530 DEBUG (MainThread) [homeassistant.components.onedrive.coordinator] Finished fetching onedrive data in 0.310 seconds (success: True)
2025-06-14 00:02:08.503 DEBUG (MainThread) [homeassistant.components.onedrive.coordinator] Finished fetching onedrive data in 0.283 seconds (success: True)
2025-06-14 00:07:09.295 DEBUG (MainThread) [homeassistant.components.onedrive.coordinator] Finished fetching onedrive data in 1.075 seconds (success: True)
2025-06-14 00:12:10.771 ERROR (MainThread) [homeassistant.components.onedrive.coordinator] Error fetching onedrive data: Failed to update drive state
2025-06-14 00:12:10.771 DEBUG (MainThread) [homeassistant.components.onedrive.coordinator] Finished fetching onedrive data in 1.552 seconds (success: False)
2025-06-14 00:17:10.445 INFO (MainThread) [homeassistant.components.onedrive.coordinator] Fetching onedrive data recovered
2025-06-14 00:17:10.446 DEBUG (MainThread) [homeassistant.components.onedrive.coordinator] Finished fetching onedrive data in 0.226 seconds (success: True)
2025-06-14 00:22:11.860 DEBUG (MainThread) [homeassistant.components.onedrive.coordinator] Finished fetching onedrive data in 1.641 seconds (success: True)

ChristophHoltmann avatar Jun 13 '25 22:06 ChristophHoltmann

No idea what's going on, I'll add some more debug logging.

zweckj avatar Jun 15 '25 19:06 zweckj

@zweckj I cannot add my comment to #146907 as it is closed, but you are missing a parameter to the log function (or the %s should be removed)

Passific avatar Jun 17 '25 13:06 Passific

@zweckj I cannot add my comment to #146907 as it is closed, but you are missing a parameter to the log function (or the %s should be removed)

🙈 good catch

zweckj avatar Jun 17 '25 13:06 zweckj

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.