Repository: sabeechen/hassio-google-drive-backup

Issue #466: Backups page won't load
Created: 2021-09-08T07:51:03Z
Backups are created, but the front end remains on "Waiting for backups to load". I assume small bug introduced while renaming from snapshots to backups?
Gear button to go to settings page also does not work.

Duplicate issue #477: It dont take backup
Created: 2021-09-12T20:02:08Z
My plugin is saying:
Waiting for backups to load. If you don't see this go away soon, make sure the add-on is still running. Info on this page may be stale until then.
it has not taken backup since 9 August.i have restarted the plugin and home assistant, without it working. both plugin and HA are latest version hope you can help :)
Description:
If you have anything else that could help explain what happened, click "Markdown" above and write it here.

Addon version: 0.105.1
Home Assistant Version: 2021.9.6
Supervisor Version: 2021.09.0
Supervisor Channel: stable
Hassos Version: 6.3
Docker Version: 20.10.7
Architecture: aarch64
Machine: raspberrypi4-64
Date: 2021-09-12T19:56:40.870029+00:00
Timezone: Europe/Copenhagen
Failure Time: Never
Last Good Sync: 2021-09-12T19:20:00.644803+00:00
Exception:
No error could be identified automatically.

Backups:
{
   "HomeAssistant": {
       "backups": 20,
       "retained": 0,
       "deletable": 20,
       "name": "HomeAssistant",
       "title": "Home Assistant",
       "latest": "2021-09-12T18:12:01Z",
       "max": 20,
       "enabled": true,
       "icon": "home-assistant",
       "ignored": 0,
       "size": "4.1 GB",
       "ignored_size": "0.0 B",
       "free_space": "99.1 GB"
   },
   "GoogleDrive": {
       "backups": 20,
       "retained": 0,
       "deletable": 20,
       "name": "GoogleDrive",
       "title": "Google Drive",
       "latest": "2021-09-12T18:12:01Z",
       "max": 20,
       "enabled": true,
       "icon": "google-drive",
       "ignored": 0,
       "size": "4.1 GB",
       "ignored_size": "0.0 B",
       "free_space": "8.0 GB"
   }
}

Config:
{
   "Setting.MAX_BACKUPS_IN_HA": 20,
   "Setting.MAX_BACKUPS_IN_GOOGLE_DRIVE": 20,
   "Setting.DAYS_BETWEEN_BACKUPS": 1.0,
   "Setting.BACKUP_TIME_OF_DAY": "01:09",
   "Setting.CALL_BACKUP_SNAPSHOT": true,
   "Setting.GENERATIONAL_DAYS": 2,
   "Setting.GENERATIONAL_WEEKS": 2,
   "Setting.GENERATIONAL_MONTHS": 2,
   "Setting.SEND_ERROR_REPORTS": true,
   "Setting.CONFIRM_MULTIPLE_DELETES": false
}

Addon Logs:
09-12 20:19:58 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/63daa9d9/info
09-12 20:19:58 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/fe5d5804/info
09-12 20:19:58 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/e5073b9e/info
09-12 20:19:58 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/0e85ffbc/info
09-12 20:19:58 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/53ca5204/info
09-12 20:19:58 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/850234c2/info
09-12 20:19:58 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/21817c23/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/9c5e0d45/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/371828c4/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/c2f2e254/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/d93f4f21/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/51f7354b/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/6be9b24f/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/bd31fb84/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/89fcf94b/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/5e29a2cc/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/6584a3f3/info
09-12 20:19:59 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups/48729ac8/info
09-12 20:19:59 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
09-12 20:19:59 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1Hs_Xmz90gKoGjGSKTXTg5ZZRYg6L5G-o/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%2CdriveId&supportsAllDrives=true
09-12 20:19:59 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/about?fields=storageQuota
09-12 20:19:59 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271Hs_Xmz90gKoGjGSKTXTg5ZZRYg6L5G-o%27+in+parents&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%2CdriveId%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
09-12 21:20:00 DEBUG [backup.model.syncer] Sync requested by Coordinator
09-12 21:20:00 INFO [backup.model.coordinator] Syncing Backups
09-12 21:20:00 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/supervisor/info
09-12 21:20:00 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups
09-12 21:20:00 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
09-12 21:20:01 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1Hs_Xmz90gKoGjGSKTXTg5ZZRYg6L5G-o/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%2CdriveId&supportsAllDrives=true
09-12 21:20:01 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/about?fields=storageQuota
09-12 21:20:01 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271Hs_Xmz90gKoGjGSKTXTg5ZZRYg6L5G-o%27+in+parents&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%2CdriveId%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives

Supervisor Logs:
�[33m21-09-12 20:46:45 WARNING (MainThread) [supervisor.addons.validate] Add-on config 'snapshot' is deprecated, 'backup' should be used instead. Please report this to the maintainer of UniFi Controller�[0m
�[32m21-09-12 20:46:45 INFO (MainThread) [supervisor.store] Loading add-ons from store: 64 all - 0 new - 0 remove�[0m
�[32m21-09-12 20:46:45 INFO (MainThread) [supervisor.store] Loading add-ons from store: 64 all - 0 new - 0 remove�[0m
�[32m21-09-12 20:52:45 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token�[0m
�[32m21-09-12 20:56:06 INFO (MainThread) [supervisor.host.info] Updating local host information�[0m
�[32m21-09-12 20:56:07 INFO (MainThread) [supervisor.host.services] Updating service information�[0m
�[32m21-09-12 20:56:07 INFO (MainThread) [supervisor.host.network] Updating local network information�[0m
�[32m21-09-12 20:56:10 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information�[0m
�[32m21-09-12 20:56:10 INFO (MainThread) [supervisor.host.manager] Host information reload completed�[0m
�[32m21-09-12 21:20:00 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup�[0m
�[32m21-09-12 21:20:00 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup�[0m
�[32m21-09-12 21:22:45 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token�[0m
�[32m21-09-12 21:41:03 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING�[0m
�[32m21-09-12 21:41:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE�[0m
�[32m21-09-12 21:41:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.PLUGIN�[0m
�[32m21-09-12 21:41:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.CORE�[0m
�[32m21-09-12 21:41:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR�[0m
�[32m21-09-12 21:41:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON�[0m
�[33m21-09-12 21:41:03 WARNING (MainThread) [supervisor.addons.options] Option 'interface' does not exist in the schema for Samba share (core_samba)�[0m
�[33m21-09-12 21:41:03 WARNING (MainThread) [supervisor.addons.options] Option 'anonymous' does not exist in the schema for Mosquitto broker (core_mosquitto)�[0m
�[32m21-09-12 21:41:03 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM�[0m
�[32m21-09-12 21:41:03 INFO (MainThread) [supervisor.resolution.check] System checks complete�[0m
�[32m21-09-12 21:41:03 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING�[0m
�[32m21-09-12 21:41:04 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete�[0m
�[32m21-09-12 21:41:04 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING�[0m
�[32m21-09-12 21:41:04 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete�[0m
�[32m21-09-12 21:52:46 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token�[0m
�[33m21-09-12 21:55:54 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None�[0m
�[32m21-09-12 21:56:40 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup�[0m


Home Assistant Core Logs:
�[32m2021-09-12 21:50:57 INFO (SyncWorker_3) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/magiske.michael%40gmail.com/events?orderBy=startTime&singleEvents=true&maxResults=100&timeMin=2021-09-12T21%3A50%3A57.294675%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:50:57 INFO (SyncWorker_15) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:50:57 INFO (SyncWorker_15) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/v4hov631esvftfuakha5sodfeg%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&timeMin=2021-09-12T21%3A50%3A57.621683%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:50:57 INFO (SyncWorker_4) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:50:57 INFO (SyncWorker_4) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/7575ddno0m1rtfnigj1oris9u8%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&timeMin=2021-09-12T21%3A50%3A57.907200%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:50:58 INFO (SyncWorker_10) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:50:58 INFO (SyncWorker_10) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/j1ivbhfgcbt1eg9qh4od10fpao%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&timeMin=2021-09-12T21%3A50%3A58.235227%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:50:58 INFO (SyncWorker_1) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:50:58 INFO (SyncWorker_1) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/csaboic5sdj0bucp6cse4rrksg%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&timeMin=2021-09-12T21%3A50%3A58.538584%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:50:58 INFO (SyncWorker_17) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:50:58 INFO (SyncWorker_17) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/u0clqbq2tlm6l70t7krcelvoi0%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&timeMin=2021-09-12T21%3A50%3A58.814040%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:50:59 INFO (SyncWorker_17) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:50:59 INFO (SyncWorker_17) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/a5ujrr9t8ug85sl4ljn5to52dg%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&timeMin=2021-09-12T21%3A50%3A59.169873%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:50:59 INFO (SyncWorker_14) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:50:59 INFO (SyncWorker_14) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/a2771l7njd238veo6g0l5l5poo%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&timeMin=2021-09-12T21%3A50%3A59.454756%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:50:59 INFO (SyncWorker_18) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:50:59 INFO (SyncWorker_18) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/a2771l7njd238veo6g0l5l5poo%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&q=Skoleferie&timeMin=2021-09-12T21%3A50%3A59.720799%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:50:59 INFO (SyncWorker_6) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:51:00 INFO (SyncWorker_6) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/a2771l7njd238veo6g0l5l5poo%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&q=F%C3%A6lles+ferie&timeMin=2021-09-12T21%3A51%3A00.040064%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:51:00 INFO (SyncWorker_15) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:51:00 INFO (SyncWorker_15) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/a2771l7njd238veo6g0l5l5poo%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&q=G%C3%A6st&timeMin=2021-09-12T21%3A51%3A00.286235%2B02%3A00&alt=json�[0m
�[32m2021-09-12 21:51:00 INFO (SyncWorker_4) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest�[0m
�[32m2021-09-12 21:51:00 INFO (SyncWorker_4) [googleapiclient.discovery] URL being requested: GET https://www.googleapis.com/calendar/v3/calendars/a2771l7njd238veo6g0l5l5poo%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&maxResults=100&q=Diverse%3A+&timeMin=2021-09-12T21%3A51%3A00.518406%2B02%3A00&alt=json�[0m
�[33m2021-09-12 21:52:12 WARNING (MainThread) [homeassistant.components.onvif] Couldn't connect to camera 'Kamera stuen', but will retry later. Error: All connection attempts failed�[0m
�[33m2021-09-12 21:53:36 WARNING (MainThread) [homeassistant.components.onvif] Couldn't connect to camera 'Kamera stuen', but will retry later. Error: All connection attempts failed�[0m
�[32m2021-09-12 21:54:21 INFO (SyncWorker_10) [homeassistant.components.proximity] Tobias: proximity calculation complete�[0m
�[31m2021-09-12 21:54:54 ERROR (MainThread) [frontend.js.latest.202108300] https://zh1hpydengtm7jt4dnoznadyjheme71g.ui.nabu.casa/lovelace/hjem:0:0 Uncaught �[0m
�[33m2021-09-12 21:55:00 WARNING (MainThread) [homeassistant.components.onvif] Couldn't connect to camera 'Kamera stuen', but will retry later. Error: All connection attempts failed�[0m
�[33m2021-09-12 21:56:24 WARNING (MainThread) [homeassistant.components.onvif] Couldn't connect to camera 'Kamera stuen', but will retry later. Error: All connection attempts failed�[0m

Closing comment (2021-09-16T18:45:36Z): The addon is still running properly in the background, this is purely an issue in the Web-UI.
I'm working on trying to fix this but I'm somewhat stifled in my ability to make progress on it.  Workarounds for it are listed here, though if anyone reading this and seeing the issue is willing and capable of gathering the information I posted here instead it would be of great help to me.
Duplicate #466