sabeechen / hassio-google-drive-backup

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

There was no free space avl, which i achieve by deleting old backus and proceed backup, it take longer then usual its more then 40 minutes with below alert #610

Closed Mr-Bena closed 2 years ago

Mr-Bena commented 2 years ago

Copy the info from the previous page here

Description:
If you have anything else that could help explain what happened, click "Markdown" above and write it here.

Addon version: 0.106.2 Home Assistant Version: 2022.4.7 Supervisor Version: 2022.05.0 Supervisor Channel: stable Hassos Version: 7.6 Docker Version: 20.10.9 Architecture: aarch64 Machine: raspberrypi3-64 Date: 2022-05-12T17:58:03.480172+00:00 Timezone: Europe/Prague Failure Time: 2022-05-12T17:55:33.449021+00:00 Last Good Sync: 2022-05-12T17:55:32.315017+00:00

Exception:

  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:224 (sync)
  addon/backup/util/data_cache.py:97 (saveIfDirty)
  addon/backup/util/data_cache.py:69 (save)
OSError: [Errno 28] No space left on device

Backups:

 {
    "HomeAssistant": {
        "backups": 2,
        "retained": 0,
        "deletable": 2,
        "name": "HomeAssistant",
        "title": "Home Assistant",
        "latest": "2022-05-12T17:26:23Z",
        "max": 4,
        "enabled": true,
        "icon": "home-assistant",
        "ignored": 0,
        "size": "823.1 MB",
        "ignored_size": "0.0 B",
        "free_space": "0.0 B"
    },
    "GoogleDrive": {
        "backups": 1,
        "retained": 0,
        "deletable": 1,
        "name": "GoogleDrive",
        "title": "Google Drive",
        "latest": "2022-04-29T08:21:12Z",
        "max": 4,
        "enabled": true,
        "icon": "google-drive",
        "ignored": 0,
        "size": "823.2 MB",
        "ignored_size": "0.0 B",
        "free_space": "5.9 GB"
    }
}
Config:
 {
    "Setting.DAYS_BETWEEN_BACKUPS": 7.0,
    "Setting.DELETE_BEFORE_NEW_BACKUP": true
}
Addon Logs:
 05-12 19:50:49 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%2716oB3p-uEBPldjEBN3T4vmdRLqhTX8Ncz%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
05-12 19:50:49 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:224 (sync)
  addon/backup/util/data_cache.py:97 (saveIfDirty)
  addon/backup/util/data_cache.py:69 (save)
OSError: [Errno 28] No space left on device

05-12 19:50:49 INFO [backup.model.coordinator] I'll try again in 40 seconds
05-12 19:51:29 DEBUG [backup.model.syncer] Sync requested by Coordinator
05-12 19:51:29 INFO [backup.model.coordinator] Syncing Backups
05-12 19:51:29 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/supervisor/info
05-12 19:51:29 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups
05-12 19:51:29 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/16oB3p-uEBPldjEBN3T4vmdRLqhTX8Ncz/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%2CdriveId&supportsAllDrives=true
05-12 19:51:30 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/about?fields=storageQuota
05-12 19:51:30 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%2716oB3p-uEBPldjEBN3T4vmdRLqhTX8Ncz%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
05-12 19:51:30 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:224 (sync)
  addon/backup/util/data_cache.py:97 (saveIfDirty)
  addon/backup/util/data_cache.py:69 (save)
OSError: [Errno 28] No space left on device

05-12 19:51:30 INFO [backup.model.coordinator] I'll try again in 1(ish) minutes
05-12 19:52:51 DEBUG [backup.model.syncer] Sync requested by Coordinator
05-12 19:52:51 INFO [backup.model.coordinator] Syncing Backups
05-12 19:52:51 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/supervisor/info
05-12 19:52:51 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups
05-12 19:52:51 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/16oB3p-uEBPldjEBN3T4vmdRLqhTX8Ncz/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%2CdriveId&supportsAllDrives=true
05-12 19:52:51 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/about?fields=storageQuota
05-12 19:52:51 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%2716oB3p-uEBPldjEBN3T4vmdRLqhTX8Ncz%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
05-12 19:52:52 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:224 (sync)
  addon/backup/util/data_cache.py:97 (saveIfDirty)
  addon/backup/util/data_cache.py:69 (save)
OSError: [Errno 28] No space left on device

05-12 19:52:52 INFO [backup.model.coordinator] I'll try again in 2(ish) minutes
05-12 19:55:32 DEBUG [backup.model.syncer] Sync requested by Coordinator
05-12 19:55:32 INFO [backup.model.coordinator] Syncing Backups
05-12 19:55:32 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/supervisor/info
05-12 19:55:32 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups
05-12 19:55:32 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/16oB3p-uEBPldjEBN3T4vmdRLqhTX8Ncz/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%2CdriveId&supportsAllDrives=true
05-12 19:55:32 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/about?fields=storageQuota
05-12 19:55:33 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%2716oB3p-uEBPldjEBN3T4vmdRLqhTX8Ncz%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
05-12 19:55:33 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:176 (_sync)
  addon/backup/model/model.py:224 (sync)
  addon/backup/util/data_cache.py:97 (saveIfDirty)
  addon/backup/util/data_cache.py:69 (save)
OSError: [Errno 28] No space left on device

05-12 19:55:33 INFO [backup.model.coordinator] I'll try again in 5(ish) minutes
Supervisor Logs:
Home Assistant Core Logs:
sabeechen commented 2 years ago

Your Home Assistant machine is out of space. The addon can not work with a full hard drive and you should expect that everything else in Home Assistant is going to start breaking soon as well. I would recommend deleting all of the backups you keep locally to free up space and figure out whats using up your Hard Drive. The backups themselves are taking up less than 1GB.

sabeechen commented 2 years ago

I'm closing this issue for now but if there is any other way you think I can help please feel free to reopen it and let me know.