sabeechen / hassio-google-drive-backup

Automatically create and sync Home Assistant backups into Google Drive
MIT License
3.21k stars 198 forks source link

Unable to Talk to the Home Assistant Supervisor #1099

Open slayer opened 1 week ago

slayer commented 1 week ago

Hey

I've got the issue Unable to Talk to the Home Assistant Supervisor on RPi5

I've installed addon via Detailed Install Instructions

image

Do you any ideas why?

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: Uninitialized Supervisor Version: Uninitialized Supervisor Channel: {supervisor_channel} Hassos Version: {hassos_version} Docker Version: {docker_version} Architecture: Uninitialized Machine: {machine} Date: 2024-11-12T19:16:59.350242+00:00 Timezone: Uninitialized Failure Time: 2024-11-12T19:16:33.353482+00:00 Last Good Sync: 2024-11-12T19:16:33.349172+00:00 Next Sync: 2024-11-12T21:16:33.353482+00:00 Next Backup: 2024-11-12T08:58:32.097030+00:00 Next Cache Warm: 2024-11-12T21:14:02.801171+00:00 Time Offset: 0.0

Exception:

  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:269 (_getHassioData)
  addon/backup/ha/harequests.py:225 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1059 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('http://supervisor/addons/self/info')
Whose handling caused:
  addon/backup/model/coordinator.py:198 (_sync)
  addon/backup/model/model.py:203 (sync)
  addon/backup/model/model.py:316 (_syncBackups)
  addon/backup/ha/hasource.py:273 (get)
  addon/backup/ha/hasource.py:412 (init)
  addon/backup/ha/hasource.py:457 (_refreshInfo)
  addon/backup/ha/hasource.py:420 (_refreshInfo)
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:143 (selfInfo)
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:147 (getAddonInfo)
  addon/backup/ha/harequests.py:41 (wrap_and_call)
backup.exceptions.exceptions.SupervisorPermissionError

Backups:

 {
    "HomeAssistant": {
        "backups": 0,
        "retained": 0,
        "deletable": 0,
        "name": "HomeAssistant",
        "title": "Home Assistant",
        "latest": null,
        "max": 7,
        "enabled": true,
        "icon": "home-assistant",
        "ignored": 0,
        "detail": "",
        "size": "0.0 B",
        "ignored_size": "0.0 B",
        "free_space": "439.8 GB"
    },
    "GoogleDrive": {
        "backups": 0,
        "retained": 0,
        "deletable": 0,
        "name": "GoogleDrive",
        "title": "Google Drive",
        "latest": null,
        "max": 15,
        "enabled": true,
        "icon": "google-drive",
        "ignored": 0,
        "detail": "xxxxxxxxxxxx@gmail.com",
        "size": "0.0 B",
        "ignored_size": "0.0 B",
        "free_space": "7.6 GB"
    }
}
Config:
 {
    "Setting.MAX_BACKUPS_IN_HA": 7,
    "Setting.MAX_BACKUPS_IN_GOOGLE_DRIVE": 15,
    "Setting.DAYS_BETWEEN_BACKUPS": 2.0
}
Addon Logs:
 11-12 19:45:27 ERROR [backup.model.coordinator] The supervisor is rejecting requests from the addon.  Please visit the web-UI for guidance
11-12 19:45:27 INFO [backup.model.coordinator] I'll try again in 2 hours
11-12 19:47:52 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 19:53:02 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 19:58:12 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:03:22 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:08:32 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:13:42 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:18:52 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:24:02 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:29:12 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:31:34 INFO [backup.model.coordinator] Syncing Backups
11-12 20:31:34 DEBUG [backup.ha.hasource] Failed to connect to supervisor
11-12 20:31:34 DEBUG [backup.ha.hasource] 
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:269 (_getHassioData)
  addon/backup/ha/harequests.py:225 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1059 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('http://supervisor/addons/self/info')
Whose handling caused:
  addon/backup/ha/hasource.py:420 (_refreshInfo)
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:143 (selfInfo)
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:147 (getAddonInfo)
  addon/backup/ha/harequests.py:41 (wrap_and_call)
backup.exceptions.exceptions.SupervisorPermissionError

11-12 20:31:34 ERROR [backup.model.coordinator] The supervisor is rejecting requests from the addon.  Please visit the web-UI for guidance
11-12 20:31:34 INFO [backup.model.coordinator] I'll try again in 2 hours
11-12 20:34:22 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:39:32 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:44:42 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:49:52 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 20:55:02 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 21:00:12 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 21:05:22 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 21:10:32 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 21:15:42 ERROR [backup.ha.haupdater] Trouble updating Home Assistant sensors.
11-12 21:16:33 INFO [backup.model.coordinator] Syncing Backups
11-12 21:16:33 DEBUG [backup.ha.hasource] Failed to connect to supervisor
11-12 21:16:33 DEBUG [backup.ha.hasource] 
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:269 (_getHassioData)
  addon/backup/ha/harequests.py:225 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1059 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('http://supervisor/addons/self/info')
Whose handling caused:
  addon/backup/ha/hasource.py:420 (_refreshInfo)
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:143 (selfInfo)
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:147 (getAddonInfo)
  addon/backup/ha/harequests.py:41 (wrap_and_call)
backup.exceptions.exceptions.SupervisorPermissionError

11-12 21:16:33 ERROR [backup.model.coordinator] The supervisor is rejecting requests from the addon.  Please visit the web-UI for guidance
11-12 21:16:33 INFO [backup.model.coordinator] I'll try again in 2 hours
Supervisor Logs:

  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:213 (getSuperLogs)
  /site-packages/aiohttp/client_reqrep.py:1059 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('http://supervisor/supervisor/logs')
Whose handling caused:
  addon/backup/debugworker.py:167 (buildBugReportData)
  addon/backup/ha/harequests.py:41 (wrap_and_call)
backup.exceptions.exceptions.SupervisorPermissionError
Home Assistant Core Logs:

  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:220 (getCoreLogs)
  /site-packages/aiohttp/client_reqrep.py:1059 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('http://supervisor/core/logs')
Whose handling caused:
  addon/backup/debugworker.py:171 (buildBugReportData)
  addon/backup/ha/harequests.py:41 (wrap_and_call)
backup.exceptions.exceptions.SupervisorPermissionError