sabeechen / hassio-google-drive-backup

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

Pending Backup Bug? #1064

Open Kf637 opened 3 months ago

Kf637 commented 3 months ago
Description:

It always shows one pending backup 24/7, even after rebooting. Not sure why it was happening as it can upload backups, also tried to re-authenticate. Any one who has the same problem? It's more like a visual bug as it does not seem to affect the automatic backup, upload and download of backups. image image

Addon version: 0.112.1 Home Assistant Version: 2024.7.4 Supervisor Version: 2024.06.2 Supervisor Channel: stable Hassos Version: 12.4 Docker Version: 26.1.4 Architecture: amd64 Machine: qemux86-64 Date: 2024-08-01T21:33:56.825820+00:00 Timezone: Europe/Berlin Failure Time: Never Last Good Sync: 2024-08-01T20:34:19.277091+00:00 Next Sync: 2024-08-01T22:17:49.292631+00:00 Next Backup: 2024-08-02T10:00:00+00:00 Next Cache Warm: 2024-08-01T22:07:14.257371+00:00 Time Offset: 0.0

Exception:
 No error could be identified automatically.

Backups:

 {
    "HomeAssistant": {
        "backups": 1,
        "retained": 0,
        "deletable": 1,
        "name": "HomeAssistant",
        "title": "Home Assistant",
        "latest": "2024-08-01T10:00:00Z",
        "max": 2,
        "enabled": true,
        "icon": "home-assistant",
        "ignored": 1,
        "detail": "",
        "size": "0.0 B",
        "ignored_size": "20.5 kB",
        "free_space": "21.8 GB"
    },
    "GoogleDrive": {
        "backups": 10,
        "retained": 0,
        "deletable": 10,
        "name": "GoogleDrive",
        "title": "Google Drive",
        "latest": "2024-08-01T10:00:00Z",
        "max": 10,
        "enabled": true,
        "icon": "google-drive",
        "ignored": 0,
        "detail": "Google Account Email",
        "size": "514.1 MB",
        "ignored_size": "0.0 B",
        "free_space": "7.0 GB"
    }
}
Config:
 {
    "Setting.MAX_BACKUPS_IN_HA": 2,
    "Setting.MAX_BACKUPS_IN_GOOGLE_DRIVE": 10,
    "Setting.DAYS_BETWEEN_BACKUPS": 1.0,
    "Setting.DELETE_BEFORE_NEW_BACKUP": true,
    "Setting.BACKUP_NAME": "REDACTED",
    "Setting.BACKUP_TIME_OF_DAY": "12:00",
    "Setting.BACKUP_PASSWORD": "REDACTED",
    "Setting.DELETE_AFTER_UPLOAD": true
}
Addon Logs:
 08-01 12:00:09 DEBUG [backup.drive.driverequests] Sending 10 MB to Google Drive
08-01 12:00:10 DEBUG [backup.drive.drivesource] Uploading Full Backup 2024-08-01 12:00:00 | HA ver: 2024.7.4, Hassos ver: 12.4, SV Ver: 2024.06.2 | Encrypted, password in 1Password (personal) 66.06%
08-01 12:00:10 DEBUG [backup.drive.driverequests] Sending 10 MB to Google Drive
08-01 12:00:11 DEBUG [backup.drive.drivesource] Uploading Full Backup 2024-08-01 12:00:00 | HA ver: 2024.7.4, Hassos ver: 12.4, SV Ver: 2024.06.2 | Encrypted, password in 1Password (personal) 85.06%
08-01 12:00:11 DEBUG [backup.drive.driverequests] Sending 7.857421875 MB to Google Drive
08-01 12:00:13 DEBUG [backup.drive.drivesource] Uploading Full Backup 2024-08-01 12:00:00 | HA ver: 2024.7.4, Hassos ver: 12.4, SV Ver: 2024.06.2 | Encrypted, password in 1Password (personal) 100.00%
08-01 12:00:14 INFO [backup.ha.hasource] Deleting 'Full Backup 2024-08-01 12:00:00 | HA ver: 2024.7.4, Hassos ver: 12.4, SV Ver: 2024.06.2 | Encrypted, password in 1Password (personal)' from Home Assistant
08-01 12:00:14 DEBUG [backup.model.syncer] Sync requested by HomeAssistant
08-01 12:00:14 INFO [backup.model.coordinator] Syncing Backups
08-01 12:00:24 DEBUG [backup.watcher] Checking backup source for changes...
08-01 14:07:46 DEBUG [backup.model.destinationprecache] Preemptively retrieving and caching info from the backup destination to avoid peak demand
08-01 14:07:46 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
08-01 14:20:02 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-01 14:20:02 INFO [backup.model.coordinator] Syncing Backups
08-01 15:46:50 DEBUG [backup.model.destinationprecache] Preemptively retrieving and caching info from the backup destination to avoid peak demand
08-01 15:46:50 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
08-01 15:51:57 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-01 15:51:57 INFO [backup.model.coordinator] Syncing Backups
08-01 18:39:57 DEBUG [backup.model.destinationprecache] Preemptively retrieving and caching info from the backup destination to avoid peak demand
08-01 18:39:57 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
08-01 18:48:21 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-01 18:48:21 INFO [backup.model.coordinator] Syncing Backups
08-01 20:24:02 DEBUG [backup.model.destinationprecache] Preemptively retrieving and caching info from the backup destination to avoid peak demand
08-01 20:24:02 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
08-01 20:31:32 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-01 20:31:32 INFO [backup.model.coordinator] Syncing Backups
08-01 22:32:09 DEBUG [backup.model.destinationprecache] Preemptively retrieving and caching info from the backup destination to avoid peak demand
08-01 22:32:09 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
08-01 22:34:19 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-01 22:34:19 INFO [backup.model.coordinator] Syncing Backups
Supervisor Logs:
 2024-08-01 22:23:39.355 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-08-01 22:23:39.355 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-08-01 22:23:39.422 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-08-01 22:23:39.423 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-08-01 22:23:39.423 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-08-01 22:24:56.972 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-08-01 22:34:19.279 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-08-01 22:34:19.282 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
2024-08-01 22:54:58.083 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-08-01 23:23:39.429 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-08-01 23:23:39.429 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-08-01 23:23:39.500 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-08-01 23:23:39.500 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-08-01 23:23:39.505 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-08-01 23:23:39.506 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-08-01 23:23:39.506 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-08-01 23:23:39.506 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-08-01 23:23:39.507 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-08-01 23:23:39.507 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2024-08-01 23:23:39.507 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-08-01 23:23:39.508 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-08-01 23:23:39.508 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-08-01 23:23:39.572 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-08-01 23:23:39.572 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-08-01 23:23:39.572 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-08-01 23:24:36.921 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
2024-08-01 23:24:58.648 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-08-01 23:33:40.084 ERROR (MainThread) [supervisor.api.ingress] Stream error with http://172.30.32.1:63748/: Cannot write to closing transport
2024-08-01 23:33:56.831 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup
Home Assistant Core Logs: