sabeechen / hassio-google-drive-backup

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

Snapshot not backing up Home Assistant #704

Closed ddavis1086 closed 2 years ago

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

Addon version: 0.104.3 Home Assistant Version: 2022.8.7 Supervisor Version: 2022.08.5 Supervisor Channel: stable Hassos Version: 8.5 Docker Version: 20.10.14 Architecture: aarch64 Machine: odroid-n2 Date: 2022-08-29T19:30:23.898858+00:00 Timezone: America/Chicago Failure Time: 2022-08-29T18:51:26.501715+00:00 Last Good Sync: 2022-08-29T18:51:26.494834+00:00

Exception:

  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:167 (sync)
  addon/backup/model/model.py:261 (_syncSnapshots)
  addon/backup/ha/hasource.py:246 (get)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:108 (snapshots)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:221 (_getHassioData)
  addon/backup/ha/harequests.py:181 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

Snapshots:

 {
    "HomeAssistant": {
        "snapshots": 0,
        "retained": 0,
        "deletable": 0,
        "name": "HomeAssistant",
        "title": "Home Assistant",
        "latest": null,
        "max": 2,
        "enabled": true,
        "icon": "home-assistant",
        "ignored": 0,
        "size": "0.0 B",
        "ignored_size": "0.0 B",
        "free_space": "97.6 GB"
    },
    "GoogleDrive": {
        "snapshots": 0,
        "retained": 0,
        "deletable": 0,
        "name": "GoogleDrive",
        "title": "Google Drive",
        "latest": null,
        "max": 2,
        "enabled": true,
        "icon": "google-drive",
        "ignored": 0,
        "size": "0.0 B",
        "ignored_size": "0.0 B"
    }
}
Config:
 {
    "Setting.MAX_SNAPSHOTS_IN_HASSIO": 2,
    "Setting.MAX_SNAPSHOTS_IN_GOOGLE_DRIVE": 2,
    "Setting.DAYS_BETWEEN_SNAPSHOTS": 2.0
}
Addon Logs:
 08-29 11:31:25 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-29 11:31:25 INFO [backup.model.coordinator] Syncing Snapshots
08-29 11:31:25 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-29 11:31:25 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:167 (sync)
  addon/backup/model/model.py:261 (_syncSnapshots)
  addon/backup/ha/hasource.py:246 (get)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:108 (snapshots)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:221 (_getHassioData)
  addon/backup/ha/harequests.py:181 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

08-29 11:31:25 INFO [backup.model.coordinator] I'll try again in 5(ish) minutes
08-29 11:36:45 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-29 11:36:45 INFO [backup.model.coordinator] Syncing Snapshots
08-29 11:36:45 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-29 11:36:45 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:167 (sync)
  addon/backup/model/model.py:261 (_syncSnapshots)
  addon/backup/ha/hasource.py:246 (get)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:108 (snapshots)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:221 (_getHassioData)
  addon/backup/ha/harequests.py:181 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

08-29 11:36:45 INFO [backup.model.coordinator] I'll try again in 10(ish) minutes
08-29 11:47:25 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-29 11:47:25 INFO [backup.model.coordinator] Syncing Snapshots
08-29 11:47:25 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-29 11:47:25 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:167 (sync)
  addon/backup/model/model.py:261 (_syncSnapshots)
  addon/backup/ha/hasource.py:246 (get)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:108 (snapshots)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:221 (_getHassioData)
  addon/backup/ha/harequests.py:181 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

08-29 11:47:25 INFO [backup.model.coordinator] I'll try again in 21(ish) minutes
08-29 12:08:45 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-29 12:08:45 INFO [backup.model.coordinator] Syncing Snapshots
08-29 12:08:45 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-29 12:08:45 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:167 (sync)
  addon/backup/model/model.py:261 (_syncSnapshots)
  addon/backup/ha/hasource.py:246 (get)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:108 (snapshots)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:221 (_getHassioData)
  addon/backup/ha/harequests.py:181 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

08-29 12:08:45 INFO [backup.model.coordinator] I'll try again in 42(ish) minutes
08-29 12:51:26 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-29 12:51:26 INFO [backup.model.coordinator] Syncing Snapshots
08-29 12:51:26 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-29 12:51:26 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:167 (sync)
  addon/backup/model/model.py:261 (_syncSnapshots)
  addon/backup/ha/hasource.py:246 (get)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:108 (snapshots)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:221 (_getHassioData)
  addon/backup/ha/harequests.py:181 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

08-29 12:51:26 INFO [backup.model.coordinator] I'll try again in an hour
08-29 13:51:26 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-29 13:51:26 INFO [backup.model.coordinator] Syncing Snapshots
08-29 13:51:26 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-29 13:51:26 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:167 (sync)
  addon/backup/model/model.py:261 (_syncSnapshots)
  addon/backup/ha/hasource.py:246 (get)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:108 (snapshots)
  addon/backup/ha/harequests.py:28 (wrap_and_call)
  addon/backup/ha/harequests.py:221 (_getHassioData)
  addon/backup/ha/harequests.py:181 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

08-29 13:51:26 INFO [backup.model.coordinator] I'll try again in an hour
Supervisor Logs:
 22-08-29 13:26:17 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
22-08-29 13:32:57 INFO (MainThread) [supervisor.host.info] Updating local host information
22-08-29 13:32:57 INFO (MainThread) [supervisor.host.services] Updating service information
22-08-29 13:32:57 INFO (MainThread) [supervisor.host.network] Updating local network information
22-08-29 13:32:58 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
22-08-29 13:32:58 INFO (MainThread) [supervisor.host.manager] Host information reload completed
22-08-29 13:51:26 INFO (MainThread) [supervisor.api.middleware.security] /snapshots access from cebe7a76_hassio_google_drive_backup
22-08-29 13:55:43 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAILED/ContextType.DNS_SERVER
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_IPV6_ERROR/ContextType.DNS_SERVER
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.check] System checks complete
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
22-08-29 14:25:00 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
22-08-29 14:25:46 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
22-08-29 14:26:17 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/hassio repository
22-08-29 14:26:17 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
22-08-29 14:26:17 INFO (MainThread) [supervisor.store.git] Update add-on http://github.com/danmed/TasmoBackupV1 repository
22-08-29 14:26:17 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
22-08-29 14:26:17 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
22-08-29 14:26:19 INFO (MainThread) [supervisor.store] Loading add-ons from store: 70 all - 0 new - 0 remove
22-08-29 14:26:19 INFO (MainThread) [supervisor.store] Loading add-ons from store: 70 all - 0 new - 0 remove
22-08-29 14:30:23 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup
Home Assistant Core Logs:
   File "/usr/local/lib/python3.10/site-packages/reolink/camera_api.py", line 496, in get_settings
    response = await self.send(body)
  File "/usr/local/lib/python3.10/site-packages/reolink/camera_api.py", line 1652, in send
    if not await self.login():
  File "/usr/local/lib/python3.10/site-packages/reolink/camera_api.py", line 845, in login
    response = await self.send(body, param)
  File "/usr/local/lib/python3.10/site-packages/reolink/camera_api.py", line 1696, in send
    async with session.post(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 535, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 542, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 907, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1206, in _create_direct_connection
    raise last_exc
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection
    raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 192.168.151.200:80 ssl:default [Connect call failed ('192.168.151.200', 80)]
2022-08-29 11:26:06.363 WARNING (MainThread) [homeassistant.components.homekit] The bridge Home Assistant Bridge has entity media_player.55c9. For best performance, and to prevent unexpected unavailability, create and pair a separate HomeKit instance in accessory mode for this entity
2022-08-29 11:26:06.403 WARNING (MainThread) [homeassistant.components.homekit] The bridge Home Assistant Bridge has entity camera.kodak_cam. For best performance, and to prevent unexpected unavailability, create and pair a separate HomeKit instance in accessory mode for this entity
2022-08-29 11:26:10.962 WARNING (MainThread) [homeassistant.components.number] Entity None (<class 'custom_components.mass.number.CrossfadeDurationEntity'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom integration author.
2022-08-29 11:26:10.983 WARNING (MainThread) [homeassistant.components.number] Entity None (<class 'custom_components.mass.number.VolumeNormalizationTargetEntity'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom integration author.
2022-08-29 11:26:15.392 WARNING (MainThread) [homeassistant.components.homekit] The bridge Home Assistant Bridge has entity media_player.55c9. For best performance, and to prevent unexpected unavailability, create and pair a separate HomeKit instance in accessory mode for this entity
2022-08-29 14:05:45.427 ERROR (MainThread) [homeassistant.components.nws] Error requesting NWS forecast station KNGP data: 500, message='Internal Server Error', url=URL('https://api.weather.gov/gridpoints/CRP/113,27/forecast')
keithr59 commented 2 years ago

You need to update the add-on to the latest version.

See https://github.com/sabeechen/hassio-google-drive-backup/issues/652#issuecomment-1177943877

sabeechen commented 2 years ago

Thanks @keithr59 Duplicate #652