sabeechen / hassio-google-drive-backup

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

Home Assistant Google Drive Backup error while backing up #1008

Closed Tonoppa closed 7 months ago

Tonoppa commented 7 months ago

Copy the info from the prev

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.3.3 Supervisor Version: 2024.03.1 Supervisor Channel: stable Hassos Version: 12.1 Docker Version: 24.0.7 Architecture: aarch64 Machine: raspberrypi4-64 Date: 2024-03-31T06:52:21.811483+00:00 Timezone: Europe/Helsinki Failure Time: 2024-03-31T06:50:40.567679+00:00 Last Good Sync: 2024-03-31T06:51:36.669547+00:00 Next Sync: 2024-03-31T08:50:40.567679+00:00 Next Backup: 2024-04-01T00:00:00+00:00 Next Cache Warm: 2024-03-31T08:48:52.876905+00:00 Time Offset: 0.0

Exception:

  addon/backup/model/coordinator.py:198 (_sync)
  addon/backup/model/model.py:250 (sync)
  addon/backup/drive/drivesource.py:205 (save)
  addon/backup/drive/driverequests.py:238 (create)
  addon/backup/drive/driverequests.py:394 (retryRequest)
  addon/backup/util/backoff.py:37 (backoff)
  addon/backup/drive/driverequests.py:388 (retryRequest)
  addon/backup/creds/driverequester.py:47 (request)
backup.exceptions.exceptions.GoogleRateLimitError

Backups:

 {
    "HomeAssistant": {
        "backups": 4,
        "retained": 0,
        "deletable": 4,
        "name": "HomeAssistant",
        "title": "Home Assistant",
        "latest": "2024-03-31T01:00:00Z",
        "max": 4,
        "enabled": true,
        "icon": "home-assistant",
        "ignored": 0,
        "detail": "",
        "size": "643.4 MB",
        "ignored_size": "0.0 B",
        "free_space": "103.7 GB"
    },
    "GoogleDrive": {
        "backups": 4,
        "retained": 0,
        "deletable": 4,
        "name": "GoogleDrive",
        "title": "Google Drive",
        "latest": "2024-03-30T01:00:00Z",
        "max": 4,
        "enabled": true,
        "icon": "google-drive",
        "ignored": 0,
        "detail": "tomilepisto@gmail.com",
        "size": "640.1 MB",
        "ignored_size": "0.0 B",
        "free_space": "1.9 TB"
    }
}
Config:
 {
    "Setting.DAYS_BETWEEN_BACKUPS": 1.0,
    "Setting.BACKUP_TIME_OF_DAY": "03:00",
    "Setting.SEND_ERROR_REPORTS": true
}
Addon Logs:
 03-31 09:03:29 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 2 seconds
03-31 09:03:31 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 4 seconds
03-31 09:03:35 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 8 seconds
03-31 09:03:43 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 16 seconds
03-31 09:03:59 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 32 seconds
03-31 09:04:31 ERROR [backup.model.coordinator] The addon has made too many requests to Google Drive, and will back off
03-31 09:04:31 INFO [backup.model.coordinator] I'll try again in 2 hours
03-31 09:04:32 DEBUG [backup.watcher] Checking backup source for changes...
03-31 09:49:37 INFO [backup.model.coordinator] Syncing Backups
03-31 09:49:38 INFO [backup.watcher] A backup directory file was modified, we'll check for new backups soon.
03-31 09:49:38 INFO [backup.drive.drivesource] Uploading 'Full Backup 2024-03-31 04:00:00' to Google Drive
03-31 09:49:38 DEBUG [backup.drive.driverequests] Attempting to resume a previously failed upload where we left off
03-31 09:49:38 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 2 seconds
03-31 09:49:40 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 4 seconds
03-31 09:49:44 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 8 seconds
03-31 09:49:48 DEBUG [backup.watcher] Checking backup source for changes...
03-31 09:49:52 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 16 seconds
03-31 09:50:08 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 32 seconds
03-31 09:50:40 ERROR [backup.model.coordinator] The addon has made too many requests to Google Drive, and will back off
03-31 09:50:40 INFO [backup.model.coordinator] I'll try again in 2 hours
03-31 09:51:36 INFO [backup.model.coordinator] Syncing Backups
03-31 09:51:37 INFO [backup.watcher] A backup directory file was modified, we'll check for new backups soon.
03-31 09:51:37 INFO [backup.drive.drivesource] Uploading 'Full Backup 2024-03-31 04:00:00' to Google Drive
03-31 09:51:37 DEBUG [backup.drive.driverequests] Attempting to resume a previously failed upload where we left off
03-31 09:51:37 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 2 seconds
03-31 09:51:39 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 4 seconds
03-31 09:51:43 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 8 seconds
03-31 09:51:47 DEBUG [backup.watcher] Checking backup source for changes...
03-31 09:51:51 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 16 seconds
03-31 09:52:07 ERROR [backup.drive.driverequests] The addon has made too many requests to Google Drive, and will back off: we'll retry in 32 seconds
Supervisor Logs:
 2024-03-31 09:18:37.466 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-03-31 09:18:37.467 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-03-31 09:18:37.467 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-03-31 09:18:37.661 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-03-31 09:18:37.661 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-03-31 09:18:37.662 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-03-31 09:19:08.154 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-03-31 09:49:08.480 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-03-31 09:49:17.126 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:49:17.131 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:49:17.137 INFO (MainThread) [supervisor.api.middleware.security] /mounts access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:49:17.142 INFO (MainThread) [supervisor.api.middleware.security] /addons access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:49:37.280 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:49:37.292 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:49:38.229 INFO (MainThread) [supervisor.api.middleware.security] /backups/40ac66e4/download access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:49:38.229 INFO (MainThread) [supervisor.api.backups] Downloading backup 40ac66e4
2024-03-31 09:49:48.684 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:49:48.693 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:51:08.334 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:51:08.340 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:51:08.346 INFO (MainThread) [supervisor.api.middleware.security] /mounts access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:51:08.352 INFO (MainThread) [supervisor.api.middleware.security] /addons access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:51:36.673 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:51:36.678 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:51:37.290 INFO (MainThread) [supervisor.api.middleware.security] /backups/40ac66e4/download access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:51:37.291 INFO (MainThread) [supervisor.api.backups] Downloading backup 40ac66e4
2024-03-31 09:51:47.650 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:51:47.658 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
2024-03-31 09:52:21.832 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup
Home Assistant Core Logs:
 2024-03-31 09:12:03.447 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:13:56.843 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:15:29.190 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:16:30.845 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:18:04.397 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:19:32.707 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:20:44.438 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:21:45.724 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:23:22.127 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:24:54.872 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:26:30.492 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:27:53.732 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:29:28.629 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:31:29.806 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:33:01.562 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:34:34.771 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:36:34.334 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:38:22.660 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:39:56.042 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:40:57.238 ERROR (MainThread) [aioshelly.rpc_device.wsrpc] 192.168.2.17: Pong not received, device is likely unresponsive; disconnecting
2024-03-31 09:41:07.292 ERROR (MainThread) [homeassistant.components.shelly] Error fetching shellypro3em-3ce90e6e9fc8 data: Device disconnected: DeviceConnectionError(DeviceConnectionError(TimeoutError()))
2024-03-31 09:41:30.804 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:43:05.159 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:44:35.316 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:46:07.635 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:47:41.771 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:49:17.085 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:50:24.947 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-03-31 09:52:02.272 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)

ious page here

Tonoppa commented 7 months ago

Now it works.