sabeechen / hassio-google-drive-backup

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

Since I changed my default backup location to my NAS I always get this error #1094

Open ghost opened 1 month ago

ghost commented 1 month ago
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.10.2 Supervisor Version: 2024.10.0 Supervisor Channel: stable Hassos Version: 13.1 Docker Version: 26.1.4 Architecture: amd64 Machine: qemux86-64 Date: 2024-10-14T07:11:49.525589+00:00 Timezone: Europe/Berlin Failure Time: 2024-10-14T07:11:34.221135+00:00 Last Good Sync: 2024-10-14T07:11:33.115352+00:00 Next Sync: 2024-10-14T09:11:34.221135+00:00 Next Backup: 2024-10-13T13:22:44.626621+00:00 Next Cache Warm: 2024-10-14T09:11:01.818690+00:00 Time Offset: 0.0

Exception:

  addon/backup/ha/harequests.py:105 (delete)
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:280 (_sendHassioData)
  addon/backup/ha/harequests.py:225 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1059 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('http://supervisor/backups/4aaa031e')
Whose handling caused:
  addon/backup/model/coordinator.py:198 (_sync)
  addon/backup/model/model.py:210 (sync)
  addon/backup/model/model.py:382 (_purge)
  addon/backup/model/model.py:280 (deleteBackup)
  addon/backup/ha/hasource.py:355 (delete)
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:111 (delete)
backup.exceptions.exceptions.HomeAssistantDeleteError

Backups:

 {
    "HomeAssistant": {
        "backups": 5,
        "retained": 0,
        "deletable": 5,
        "name": "HomeAssistant",
        "title": "Home Assistant",
        "latest": "2024-10-10T00:00:00Z",
        "max": 4,
        "enabled": true,
        "icon": "home-assistant",
        "ignored": 6,
        "detail": "",
        "size": "10.6 GB",
        "ignored_size": "575.1 MB"
    },
    "GoogleDrive": {
        "backups": 1,
        "retained": 0,
        "deletable": 1,
        "name": "GoogleDrive",
        "title": "Google Drive",
        "latest": "2024-10-10T00:00:00Z",
        "max": 1,
        "enabled": true,
        "icon": "google-drive",
        "ignored": 0,
        "detail": "jonaskruse1999@gmail.com",
        "size": "2.1 GB",
        "ignored_size": "0.0 B",
        "free_space": "34.1 GB"
    }
}
Config:
 {
    "Setting.MAX_BACKUPS_IN_GOOGLE_DRIVE": 1,
    "Setting.DAYS_BETWEEN_BACKUPS": 1.0,
    "Setting.IGNORE_OTHER_BACKUPS": true,
    "Setting.DELETE_IGNORED_AFTER_DAYS": 31.0,
    "Setting.BACKUP_TIME_OF_DAY": "02:00",
    "Setting.BACKUP_STORAGE": "NAS",
    "Setting.SEND_ERROR_REPORTS": true,
    "Setting.CONFIRM_MULTIPLE_DELETES": false
}
Addon Logs:
 10-14 04:03:22 INFO [backup.model.coordinator] Syncing Backups
10-14 04:03:22 INFO [backup.ha.hasource] Deleting 'Full Backup 2024-10-02 02:00:00' from Home Assistant
10-14 04:03:22 ERROR [backup.model.coordinator] Home Assistant refused to delete the backup.
10-14 04:03:22 INFO [backup.model.coordinator] I'll try again in 2 hours
10-14 05:49:57 DEBUG [backup.model.destinationprecache] Preemptively retrieving and caching info from the backup destination to avoid peak demand
10-14 05:49:57 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
10-14 06:03:23 DEBUG [backup.model.syncer] Sync requested by Coordinator
10-14 06:03:23 INFO [backup.model.coordinator] Syncing Backups
10-14 06:03:23 INFO [backup.ha.hasource] Deleting 'Full Backup 2024-10-02 02:00:00' from Home Assistant
10-14 06:03:23 ERROR [backup.model.coordinator] Home Assistant refused to delete the backup.
10-14 06:03:23 INFO [backup.model.coordinator] I'll try again in 2 hours
10-14 08:00:58 DEBUG [backup.model.destinationprecache] Preemptively retrieving and caching info from the backup destination to avoid peak demand
10-14 08:00:58 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
10-14 08:03:23 DEBUG [backup.model.syncer] Sync requested by Coordinator
10-14 08:03:23 INFO [backup.model.coordinator] Syncing Backups
10-14 08:03:23 INFO [backup.ha.hasource] Deleting 'Full Backup 2024-10-02 02:00:00' from Home Assistant
10-14 08:03:23 ERROR [backup.model.coordinator] Home Assistant refused to delete the backup.
10-14 08:03:23 INFO [backup.model.coordinator] I'll try again in 2 hours
10-14 09:04:46 INFO [backup.ha.hasource] Deleting 'Full Backup 2024-10-02 02:00:00' from Home Assistant
10-14 09:04:46 ERROR [backup.ui.uiserver] Error serving POST http://papaha.kronask.cc/deleteSnapshot
10-14 09:04:46 ERROR [backup.ui.uiserver] 
  addon/backup/ha/harequests.py:105 (delete)
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:280 (_sendHassioData)
  addon/backup/ha/harequests.py:225 (_validateHassioReply)
  /site-packages/aiohttp/client_reqrep.py:1059 (raise_for_status)
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('http://supervisor/backups/4aaa031e')
Whose handling caused:
  addon/backup/ui/uiserver.py:801 (error_middleware)
  addon/backup/ui/uiserver.py:305 (deleteSnapshot)
  addon/backup/model/coordinator.py:295 (delete)
  addon/backup/model/coordinator.py:353 (_withSoftLock)
  addon/backup/model/coordinator.py:304 (_delete)
  addon/backup/ha/hasource.py:355 (delete)
  addon/backup/ha/harequests.py:34 (wrap_and_call)
  addon/backup/ha/harequests.py:111 (delete)
backup.exceptions.exceptions.HomeAssistantDeleteError

10-14 09:05:16 INFO [backup.watcher] A backup directory file was modified, we'll check for new backups soon.
10-14 09:05:31 DEBUG [backup.watcher] Checking backup source for changes...
10-14 09:05:44 INFO [backup.watcher] A backup directory file was modified, we'll check for new backups soon.
10-14 09:05:55 DEBUG [backup.watcher] Checking backup source for changes...
10-14 09:11:33 INFO [backup.model.coordinator] Syncing Backups
10-14 09:11:33 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
10-14 09:11:34 INFO [backup.ha.hasource] Deleting 'Full Backup 2024-10-02 02:00:00' from Home Assistant
10-14 09:11:34 ERROR [backup.model.coordinator] Home Assistant refused to delete the backup.
10-14 09:11:34 INFO [backup.model.coordinator] I'll try again in 2 hours
Supervisor Logs:
 2024-10-14 09:05:31.381 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-10-14 09:05:31.385 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
2024-10-14 09:05:31.430 INFO (MainThread) [supervisor.api.middleware.security] /backups/4aaa031e/info access from cebe7a76_hassio_google_drive_backup
2024-10-14 09:05:44.899 INFO (MainThread) [supervisor.backups.manager] Found 11 backup files
2024-10-14 09:05:45.035 INFO (MainThread) [supervisor.backups.manager] Found 11 backup files
2024-10-14 09:05:55.504 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-10-14 09:05:55.510 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
2024-10-14 09:11:29.347 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-10-14 09:11:29.348 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-10-14 09:11:29.458 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-10-14 09:11:29.458 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-10-14 09:11:29.466 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-10-14 09:11:29.467 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-10-14 09:11:29.467 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-10-14 09:11:29.468 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-10-14 09:11:29.468 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2024-10-14 09:11:29.468 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-10-14 09:11:29.468 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2024-10-14 09:11:29.469 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-10-14 09:11:29.469 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-10-14 09:11:29.469 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-10-14 09:11:29.649 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-10-14 09:11:29.650 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-10-14 09:11:29.650 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-10-14 09:11:33.117 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
2024-10-14 09:11:33.121 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
2024-10-14 09:11:34.204 INFO (MainThread) [supervisor.api.middleware.security] /backups/4aaa031e access from cebe7a76_hassio_google_drive_backup
2024-10-14 09:11:34.218 ERROR (MainThread) [supervisor.backups.manager] Can't remove backup 4aaa031e: [Errno 13] Permission denied: '/data/mounts/NAS/4aaa031e.tar'
2024-10-14 09:11:49.530 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup
Home Assistant Core Logs:
 2024-10-14 09:04:28.479 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:04:58.481 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:05:28.481 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:05:58.481 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:06:28.485 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:06:58.485 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:07:28.486 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:07:58.488 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:08:28.489 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:08:58.491 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:09:28.491 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:09:58.493 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:10:28.494 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:10:58.496 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp
cat: can't open '/sys/class/thermal/thermal_zone0/temp': No such file or directory
2024-10-14 09:11:28.496 ERROR (MainThread) [homeassistant.components.command_line.utils] Command failed (with return code 1): cat /sys/class/thermal/thermal_zone0/temp