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

Couldn't Refresh Google Drive Credentials #1121

Open
VikeDragon opened this issue Dec 20, 2024 · 0 comments
Open

Couldn't Refresh Google Drive Credentials #1121

VikeDragon opened this issue Dec 20, 2024 · 0 comments

Comments

@VikeDragon
Copy link

Description:
If you have anything else that could help explain what happened, click "Markdown" above and write it here.

Addon version: 0.112.1
Home Assistant Version: 2024.12.4
Supervisor Version: 2024.12.0
Supervisor Channel: stable
Hassos Version: 14.1
Docker Version: 27.2.0
Architecture: amd64
Machine: qemux86-64
Date: 2024-12-20T17:27:53.146162+00:00
Timezone: Asia/Yekaterinburg
Failure Time: 2024-12-20T17:26:49.692785+00:00
Last Good Sync: 2024-12-20T17:26:49.641318+00:00
Next Sync: 2024-12-20T19:26:49.692785+00:00
Next Backup: 2024-12-22T06:13:36.243308+00:00
Next Cache Warm: 2261-07-11T05:49:22.372795+00:00
Time Offset: 0.0

Exception:

 addon/backup/model/coordinator.py:198 (_sync)
 addon/backup/model/model.py:203 (sync)
 addon/backup/model/model.py:316 (_syncBackups)
 addon/backup/drive/drivesource.py:121 (get)
 addon/backup/drive/drivesource.py:285 (getFolderId)
 addon/backup/drive/folderfinder.py:63 (get)
 addon/backup/drive/folderfinder.py:113 (_readFolderId)
 addon/backup/drive/folderfinder.py:154 (_verify)
 addon/backup/drive/driverequests.py:165 (get)
 addon/backup/drive/driverequests.py:376 (retryRequest)
 addon/backup/drive/driverequests.py:96 (_getHeaders)
 addon/backup/drive/driverequests.py:154 (getToken)
 addon/backup/creds/exchanger.py:81 (refresh)
 addon/backup/creds/exchanger.py:150 (_refresh_default)
backup.exceptions.exceptions.CredRefreshMyError: Couldn't communicate with habackup.io

Backups:

{
   "HomeAssistant": {
       "backups": 4,
       "retained": 0,
       "deletable": 4,
       "name": "HomeAssistant",
       "title": "Home Assistant",
       "latest": "2024-12-19T06:13:36Z",
       "max": 4,
       "enabled": true,
       "icon": "home-assistant",
       "ignored": 46,
       "detail": "",
       "size": "17.8 GB",
       "ignored_size": "1.6 GB"
   },
   "GoogleDrive": {
       "backups": 3,
       "retained": 0,
       "deletable": 3,
       "name": "GoogleDrive",
       "title": "Google Drive",
       "latest": "2024-12-19T06:13:36Z",
       "max": 3,
       "enabled": true,
       "icon": "google-drive",
       "ignored": 0,
       "detail": "[email protected]",
       "size": "13.4 GB",
       "ignored_size": "0.0 B",
       "free_space": "1.3 GB"
   }
}
Config:
{
   "Setting.MAX_BACKUPS_IN_GOOGLE_DRIVE": 3,
   "Setting.DELETE_IGNORED_AFTER_DAYS": 60.0,
   "Setting.DELETE_BEFORE_NEW_BACKUP": true,
   "Setting.BACKUP_STORAGE": "Synology",
   "Setting.EXCLUDE_FOLDERS": "media",
   "Setting.EXCLUDE_HA_DATABASE": true
}
Addon Logs:
12-20 17:40:13 WARNING [backup.creds.exchanger] Unable to reach habackup.io, trying alternate server(s)...
12-20 17:40:13 ERROR [backup.creds.exchanger] Unable to refresh credentials with Google Drive
12-20 17:40:13 ERROR [backup.model.coordinator] Couldn't refresh Google Drive credentials because: Couldn't communicate with habackup.io
12-20 17:40:13 INFO [backup.model.coordinator] I'll try again in 2 hours
12-20 19:40:14 DEBUG [backup.model.syncer] Sync requested by Coordinator
12-20 19:40:14 INFO [backup.model.coordinator] Syncing Backups
12-20 19:40:14 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
12-20 19:40:14 WARNING [backup.creds.exchanger] Unable to reach token2.habackup.io, trying alternate server(s)...
12-20 19:40:14 WARNING [backup.creds.exchanger] Unable to reach token1.habackup.io, trying alternate server(s)...
12-20 19:40:14 WARNING [backup.creds.exchanger] Unable to reach habackup.io, trying alternate server(s)...
12-20 19:40:14 ERROR [backup.creds.exchanger] Unable to refresh credentials with Google Drive
12-20 19:40:14 ERROR [backup.model.coordinator] Couldn't refresh Google Drive credentials because: Couldn't communicate with habackup.io
12-20 19:40:14 INFO [backup.model.coordinator] I'll try again in 2 hours
12-20 21:40:14 DEBUG [backup.model.syncer] Sync requested by Coordinator
12-20 21:40:14 INFO [backup.model.coordinator] Syncing Backups
12-20 21:40:14 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
12-20 21:40:14 WARNING [backup.creds.exchanger] Unable to reach token2.habackup.io, trying alternate server(s)...
12-20 21:40:14 WARNING [backup.creds.exchanger] Unable to reach token1.habackup.io, trying alternate server(s)...
12-20 21:40:14 WARNING [backup.creds.exchanger] Unable to reach habackup.io, trying alternate server(s)...
12-20 21:40:14 ERROR [backup.creds.exchanger] Unable to refresh credentials with Google Drive
12-20 21:40:14 ERROR [backup.model.coordinator] Couldn't refresh Google Drive credentials because: Couldn't communicate with habackup.io
12-20 21:40:14 INFO [backup.model.coordinator] I'll try again in 2 hours
12-20 22:26:49 INFO [backup.model.coordinator] Syncing Backups
12-20 22:26:49 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
12-20 22:26:49 WARNING [backup.creds.exchanger] Unable to reach token2.habackup.io, trying alternate server(s)...
12-20 22:26:49 WARNING [backup.creds.exchanger] Unable to reach token1.habackup.io, trying alternate server(s)...
12-20 22:26:49 WARNING [backup.creds.exchanger] Unable to reach habackup.io, trying alternate server(s)...
12-20 22:26:49 ERROR [backup.creds.exchanger] Unable to refresh credentials with Google Drive
12-20 22:26:49 ERROR [backup.model.coordinator] Couldn't refresh Google Drive credentials because: Couldn't communicate with habackup.io
12-20 22:26:49 INFO [backup.model.coordinator] I'll try again in 2 hours
Supervisor Logs:
�[32m2024-12-20 20:55:20.181 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token�[0m
�[32m2024-12-20 21:00:08.396 INFO (MainThread) [supervisor.backups.manager] Freeze starting stage home_assistant�[0m
�[32m2024-12-20 21:00:08.397 INFO (MainThread) [supervisor.backups.manager] Freeze starting stage addons�[0m
�[32m2024-12-20 21:00:09.541 INFO (MainThread) [supervisor.backups.manager] Thaw starting stage home_assistant�[0m
�[32m2024-12-20 21:00:09.543 INFO (MainThread) [supervisor.backups.manager] Thaw starting stage addons�[0m
�[32m2024-12-20 21:25:24.145 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token�[0m
�[32m2024-12-20 21:40:14.653 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup�[0m
�[32m2024-12-20 21:40:14.678 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup�[0m
�[32m2024-12-20 21:52:27.794 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running�[0m
�[32m2024-12-20 21:52:27.794 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system�[0m
�[32m2024-12-20 21:52:27.794 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server�[0m
�[32m2024-12-20 21:52:28.265 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system�[0m
�[32m2024-12-20 21:52:28.265 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor�[0m
�[32m2024-12-20 21:52:28.281 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system�[0m
�[32m2024-12-20 21:52:28.281 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server�[0m
�[32m2024-12-20 21:52:28.281 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon�[0m
�[32m2024-12-20 21:52:28.281 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system�[0m
�[32m2024-12-20 21:52:28.281 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core�[0m
�[32m2024-12-20 21:52:28.281 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system�[0m
�[32m2024-12-20 21:52:28.282 INFO (MainThread) [supervisor.resolution.check] System checks complete�[0m
�[32m2024-12-20 21:52:28.282 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running�[0m
�[32m2024-12-20 21:52:28.677 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete�[0m
�[32m2024-12-20 21:52:28.678 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running�[0m
�[32m2024-12-20 21:52:28.678 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete�[0m
�[32m2024-12-20 21:55:29.026 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token�[0m
�[32m2024-12-20 22:25:31.485 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token�[0m
�[32m2024-12-20 22:26:49.643 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup�[0m
�[32m2024-12-20 22:26:49.649 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup�[0m
�[32m2024-12-20 22:27:53.158 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup�[0m

Home Assistant Core Logs:
    self.build_stream(obj, stream, **contextkw)
   ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.13/site-packages/construct/core.py", line 348, in build_stream
   self._build(obj, stream, context, "(building)")
   ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.13/site-packages/construct/core.py", line 2144, in _build
   buildret = sc._build(subobj, stream, context, path)
 File "/usr/local/lib/python3.13/site-packages/construct/core.py", line 2657, in _build
   return self.subcon._build(obj, stream, context, path)
          ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.13/site-packages/construct/core.py", line 4616, in _build
   buildret = self.subcon._build(value, stream, context, path)
 File "/usr/local/lib/python3.13/site-packages/construct/core.py", line 2144, in _build
   buildret = sc._build(subobj, stream, context, path)
 File "/usr/local/lib/python3.13/site-packages/construct/core.py", line 2657, in _build
   return self.subcon._build(obj, stream, context, path)
          ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.13/site-packages/construct/core.py", line 708, in _build
   buildret = self.subcon._build(obj2, stream, context, path)
 File "/usr/local/lib/python3.13/site-packages/construct/core.py", line 2938, in _build
   return self.subcon._build(obj, stream, context, path)
          ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.13/site-packages/construct/core.py", line 1051, in _build
   raise FormatFieldError("struct %r error during building, given value %r" % (self.fmtstr, obj), path=path)
construct.core.FormatFieldError: Error in path (building) -> header -> ts
struct '>L' error during building, given value 4294967296�[0m
�[31m2024-12-20 22:27:49.257 ERROR (MainThread) [custom_components.xiaomi_miot.core.device.dmaker.fan.p23] Got MiioException while fetching the state: Unable to discover the device 10.31.1.52, mapping: {'dm_service.speed_level': {'siid': 8, 'piid': 1}, 'dm_service.symmetrical_swing': {'siid': 8, 'piid': 2}, 'dm_service.left_angle': {'siid': 8, 'piid': 3}, 'dm_service.right_angle': {'siid': 8, 'piid': 4}, 'dm_service.off_delay_time': {'siid': 8, 'piid': 5}, 'indicator_light.on': {'siid': 9, 'piid': 1}, 'alarm': {'siid': 7, 'piid': 1}, 'fan.on': {'siid': 5, 'piid': 1}, 'fan.fan_level': {'siid': 5, 'piid': 2}, 'fan.horizontal_swing': {'siid': 5, 'piid': 3}, 'fan.mode': {'siid': 5, 'piid': 4}, 'environment.relative_humidity': {'siid': 4, 'piid': 1}, 'environment.temperature': {'siid': 4, 'piid': 7}, 'physical_controls_locked': {'siid': 3, 'piid': 1}, 'heater.on': {'siid': 2, 'piid': 1}, 'heater.fault': {'siid': 2, 'piid': 2}, 'heater.mode': {'siid': 2, 'piid': 4}, 'heater.target_temperature': {'siid': 2, 'piid': 5}, 'heater.heating': {'siid': 2, 'piid': 6}}, max_properties: 10/19�[0m
�[31m2024-12-20 22:27:51.119 ERROR (MainThread) [custom_components.xiaomi_miot.core.device.uvfive.dryer.panda] Got MiioException while fetching the state: Unable to discover the device 10.31.0.243, mapping: {'physical_controls_locked': {'siid': 5, 'piid': 1}, 'indicator_light.on': {'siid': 4, 'piid': 1}, 'alarm': {'siid': 3, 'piid': 1}, 'clothes_dryer.fault': {'siid': 2, 'piid': 1}, 'clothes_dryer.on': {'siid': 2, 'piid': 2}, 'clothes_dryer.status': {'siid': 2, 'piid': 3}, 'clothes_dryer.mode': {'siid': 2, 'piid': 4}, 'clothes_dryer.left_time': {'siid': 2, 'piid': 5}, 'clothes_dryer.drying_time': {'siid': 2, 'piid': 6}}, max_properties: 9/9�[0m
�[31m2024-12-20 22:27:51.626 ERROR (MainThread) [custom_components.aqara_gateway.core.gateway] Can not connecto the mqtt of the gateway (10.31.1.143)!�[0m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant