Repository: sabeechen/hassio-google-drive-backup

Issue #652: An unexpected error occurred: 404, message='Not Found', url=URL('http://hassio/snapshots')
Created: 2022-07-06T19:21:57Z
Last night it was still syncing, today I have found a big red warning on the snapshots page. Restarting core or host not helped.
Description:
If you have anything else that could help explain what happened, click "Markdown" above and write it here.

Addon version: 0.102.0
Home Assistant Version: 2022.6.5
Supervisor Version: 2022.06.2
Supervisor Channel: stable
Hassos Version: 8.1
Docker Version: 20.10.14
Architecture: aarch64
Machine: raspberrypi4-64
Date: 2022-07-06T19:17:05.104645+00:00
Timezone: Europe/Budapest
Failure Time: 2022-07-06T19:10:26.965514+00:00
Last Good Sync: 2022-07-06T19:10:26.943948+00:00
Exception:

 addon/backup/model/coordinator.py:148 (_sync)
 addon/backup/model/model.py:136 (sync)
 addon/backup/model/model.py:221 (_syncSnapshots)
 addon/backup/ha/hasource.py:214 (get)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:102 (snapshots)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:207 (_getHassioData)
 addon/backup/ha/harequests.py:174 (_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",
       "latest": null,
       "size": "0.0 B"
   },
   "GoogleDrive": {
       "snapshots": 0,
       "retained": 0,
       "deletable": 0,
       "name": "GoogleDrive",
       "latest": null,
       "size": "0.0 B"
   }
}

Config:
{
   "Setting.MAX_SNAPSHOTS_IN_HASSIO": 8,
   "Setting.MAX_SNAPSHOTS_IN_GOOGLE_DRIVE": 8,
   "Setting.DAYS_BETWEEN_SNAPSHOTS": 1.0,
   "Setting.SNAPSHOT_TIME_OF_DAY": "02:00",
   "Setting.GENERATIONAL_DAYS": 2,
   "Setting.GENERATIONAL_WEEKS": 2,
   "Setting.GENERATIONAL_MONTHS": 2,
   "Setting.GENERATIONAL_YEARS": 1,
   "Setting.ENABLE_SNAPSHOT_STALE_SENSOR": false
}

Addon Logs:
07-06 21:00:05 DEBUG [backup.model.syncer] Sync requested by Coordinator
07-06 21:00:05 INFO [backup.model.coordinator] Syncing Snapshots
07-06 21:00:05 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
07-06 21:00:05 ERROR [backup.model.coordinator] 
 addon/backup/model/coordinator.py:148 (_sync)
 addon/backup/model/model.py:136 (sync)
 addon/backup/model/model.py:221 (_syncSnapshots)
 addon/backup/ha/hasource.py:214 (get)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:102 (snapshots)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:207 (_getHassioData)
 addon/backup/ha/harequests.py:174 (_validateHassioReply)
 /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

07-06 21:00:05 INFO [backup.model.coordinator] I'll try again in 20 seconds
07-06 21:00:25 DEBUG [backup.model.syncer] Sync requested by Coordinator
07-06 21:00:25 INFO [backup.model.coordinator] Syncing Snapshots
07-06 21:00:25 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
07-06 21:00:25 ERROR [backup.model.coordinator] 
 addon/backup/model/coordinator.py:148 (_sync)
 addon/backup/model/model.py:136 (sync)
 addon/backup/model/model.py:221 (_syncSnapshots)
 addon/backup/ha/hasource.py:214 (get)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:102 (snapshots)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:207 (_getHassioData)
 addon/backup/ha/harequests.py:174 (_validateHassioReply)
 /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

07-06 21:00:25 INFO [backup.model.coordinator] I'll try again in 40 seconds
07-06 21:01:05 DEBUG [backup.model.syncer] Sync requested by Coordinator
07-06 21:01:05 INFO [backup.model.coordinator] Syncing Snapshots
07-06 21:01:05 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
07-06 21:01:05 ERROR [backup.model.coordinator] 
 addon/backup/model/coordinator.py:148 (_sync)
 addon/backup/model/model.py:136 (sync)
 addon/backup/model/model.py:221 (_syncSnapshots)
 addon/backup/ha/hasource.py:214 (get)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:102 (snapshots)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:207 (_getHassioData)
 addon/backup/ha/harequests.py:174 (_validateHassioReply)
 /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

07-06 21:01:05 INFO [backup.model.coordinator] I'll try again in 1(ish) minutes
07-06 21:02:26 DEBUG [backup.model.syncer] Sync requested by Coordinator
07-06 21:02:26 INFO [backup.model.coordinator] Syncing Snapshots
07-06 21:02:26 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
07-06 21:02:26 ERROR [backup.model.coordinator] 
 addon/backup/model/coordinator.py:148 (_sync)
 addon/backup/model/model.py:136 (sync)
 addon/backup/model/model.py:221 (_syncSnapshots)
 addon/backup/ha/hasource.py:214 (get)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:102 (snapshots)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:207 (_getHassioData)
 addon/backup/ha/harequests.py:174 (_validateHassioReply)
 /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

07-06 21:02:26 INFO [backup.model.coordinator] I'll try again in 2(ish) minutes
07-06 21:05:06 DEBUG [backup.model.syncer] Sync requested by Coordinator
07-06 21:05:06 INFO [backup.model.coordinator] Syncing Snapshots
07-06 21:05:06 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
07-06 21:05:06 ERROR [backup.model.coordinator] 
 addon/backup/model/coordinator.py:148 (_sync)
 addon/backup/model/model.py:136 (sync)
 addon/backup/model/model.py:221 (_syncSnapshots)
 addon/backup/ha/hasource.py:214 (get)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:102 (snapshots)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:207 (_getHassioData)
 addon/backup/ha/harequests.py:174 (_validateHassioReply)
 /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

07-06 21:05:06 INFO [backup.model.coordinator] I'll try again in 5(ish) minutes
07-06 21:10:26 DEBUG [backup.model.syncer] Sync requested by Coordinator
07-06 21:10:26 INFO [backup.model.coordinator] Syncing Snapshots
07-06 21:10:26 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
07-06 21:10:26 ERROR [backup.model.coordinator] 
 addon/backup/model/coordinator.py:148 (_sync)
 addon/backup/model/model.py:136 (sync)
 addon/backup/model/model.py:221 (_syncSnapshots)
 addon/backup/ha/hasource.py:214 (get)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:102 (snapshots)
 addon/backup/ha/harequests.py:26 (wrap_and_call)
 addon/backup/ha/harequests.py:207 (_getHassioData)
 addon/backup/ha/harequests.py:174 (_validateHassioReply)
 /site-packages/aiohttp/client_reqrep.py:1000 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('http://hassio/snapshots')

07-06 21:10:26 INFO [backup.model.coordinator] I'll try again in 10(ish) minutes

Supervisor Logs:
�[32m22-07-06 20:59:59 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING�[0m
�[32m22-07-06 20:59:59 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_IPV6_ERROR/ContextType.DNS_SERVER�[0m
�[32m22-07-06 20:59:59 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE�[0m
�[32m22-07-06 20:59:59 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM�[0m
�[32m22-07-06 20:59:59 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON�[0m
�[32m22-07-06 20:59:59 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAILED/ContextType.DNS_SERVER�[0m
�[32m22-07-06 20:59:59 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR�[0m
�[32m22-07-06 21:00:00 INFO (MainThread) [supervisor.resolution.check] System checks complete�[0m
�[32m22-07-06 21:00:00 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING�[0m
�[32m22-07-06 21:00:00 INFO (MainThread) [supervisor.host.services] Updating service information�[0m
�[32m22-07-06 21:00:00 INFO (MainThread) [supervisor.host.network] Updating local network information�[0m
�[32m22-07-06 21:00:01 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information�[0m
�[32m22-07-06 21:00:01 INFO (MainThread) [supervisor.host.manager] Host information reload completed�[0m
�[32m22-07-06 21:00:02 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete�[0m
�[32m22-07-06 21:00:02 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING�[0m
�[32m22-07-06 21:00:02 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete�[0m
�[32m22-07-06 21:00:04 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize�[0m
�[32m22-07-06 21:00:04 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_appdaemon�[0m
�[32m22-07-06 21:00:04 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running�[0m
�[32m22-07-06 21:00:05 INFO (MainThread) [supervisor.api.middleware.security] /snapshots access from cebe7a76_hassio_google_drive_backup�[0m
�[32m22-07-06 21:00:25 INFO (MainThread) [supervisor.api.middleware.security] /snapshots access from cebe7a76_hassio_google_drive_backup�[0m
�[32m22-07-06 21:01:05 INFO (MainThread) [supervisor.api.middleware.security] /snapshots access from cebe7a76_hassio_google_drive_backup�[0m
�[32m22-07-06 21:02:26 INFO (MainThread) [supervisor.api.middleware.security] /snapshots access from cebe7a76_hassio_google_drive_backup�[0m
�[32m22-07-06 21:05:06 INFO (MainThread) [supervisor.api.middleware.security] /snapshots access from cebe7a76_hassio_google_drive_backup�[0m
�[32m22-07-06 21:10:26 INFO (MainThread) [supervisor.api.middleware.security] /snapshots access from cebe7a76_hassio_google_drive_backup�[0m
�[33m22-07-06 21:15:24 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None�[0m
�[32m22-07-06 21:16:01 INFO (MainThread) [supervisor.backups.manager] Found 8 backup files�[0m
�[32m22-07-06 21:16:01 INFO (MainThread) [supervisor.backups.manager] Found 8 backup files�[0m
�[32m22-07-06 21:17:05 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup�[0m


Home Assistant Core Logs:
�[33m2022-07-06 20:47:01 WARNING (MainThread) [homeassistant.components.automation.esp_2_blue_led_automation] ESP 2 blue LED automation: Already running�[0m
�[33m2022-07-06 20:47:20 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for esp-nyitas @ 192.168.0.18: Error connecting to ('192.168.0.18', 6053): [Errno 113] Connect call failed ('192.168.0.18', 6053)�[0m
�[31m2022-07-06 20:57:12 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /backups - System is not ready with state: shutdown�[0m
�[31m2022-07-06 20:57:12 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /os/info - System is not ready with state: shutdown�[0m
�[31m2022-07-06 20:57:12 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /host/info - System is not ready with state: shutdown�[0m
s6-rc: info: service legacy-services: stopping
�[31m2022-07-06 20:57:20 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /host/reboot request Server disconnected�[0m
�[31m2022-07-06 20:57:20 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /host/reboot - �[0m
[18:57:22] INFO: �[32mHome Assistant Core finish process exit code 0�[0m
[18:57:22] INFO: �[32mHome Assistant Core service shutdown�[0m
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started
�[33m2022-07-06 20:59:42 WARNING (MainThread) [rflink.protocol] dropping invalid data: 20;01;MySensors=OFF;NO NRF24L01;�[0m
�[31m2022-07-06 20:59:44 ERROR (MainThread) [homeassistant.components.automation] Blueprint Motion-activated Light generated invalid automation with inputs OrderedDict([('motion_entity', 'bejÃ¡rat'), ('light_target', OrderedDict([('device_id', '5123b77dd46265b3b670977370ba8374')]))]): Entity bejÃ¡rat is neither a valid entity ID nor a valid UUID for dictionary value @ data['entity_id']. Got None�[0m
�[33m2022-07-06 20:59:47 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for esp-nyitas @ 192.168.0.18: Error connecting to ('192.168.0.18', 6053): [Errno 113] Connect call failed ('192.168.0.18', 6053)�[0m

Duplicate issue #668: An unexpected error occurred: 404, message='Not Found', url=URL('http://hassio/snapshots')
Created: 2022-07-14T01:06:58Z
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')

Closing comment (2022-07-17T13:13:46Z): Check my response here if you're still having trouble.
Duplicate #652