I’ve just updated to 0.101.0. Restarted HA and noticed Stale state is false. Clicking on the gui shows only a blank page. Log suggest it is running with no errors, however.
My next backup is 6 hours from now. Let’s see if it will execute.
I’ve just updated to 0.101.0. Restarted HA and noticed Stale state is false. Clicking on the gui shows only a blank page. Log suggest it is running with no errors, however.
My next backup is 6 hours from now. Let’s see if it will execute.
That looks correct so far. With this update, the “Snapshot Stale” sensor has started publishing its “device class” as “problem”, so now it should show up in the UI with that little triangle and exclamation point icon. In the past this has caused some confusion for people, since its not immediately clear from how the UI looks that Snapshot Stale == False means everything is working right. If this upsets anyone, you can turn that sensor off in the settings (you’ll need to restart HA to make it disappear).
You got a coffee. Thanks for the absolutely great add-on!
Actually, I’m mistaken. Someone pointed out to me in a recent bug that sensors with the device_class: problem
are supposed to have the states “on/off” rather than “true/false”, which is why its rendering strangely.
Unforntunately, changing this will likely break those who have created automations based on the current
behavior. Not changing will mean it remains broken for everyone. Not a great situation.
Hi all,
Will there be a possibility to turn off the MariandB Add-On before the backup will backup that add-on?
Everywhere you read that a snapshot that has been restored the dB won’t work. Because it was still running at the moment of backup.
When you turn off the dB and backup then it seems ok.
It is more a problem of restoring. You restore a database while the running HA instance is still writing to it.
I did some restores on a clear HA install, no add-ons installed. Only the Google Backup to get the snapshot from Google Drive. After restoring everything HA was not able to connect to the dB at all
Because you can only restore a backup from within the UI. At that moment HA is running and writing to the db.
So how to solve this? haha
Hi All,
Did a backup but some of the Add-Ons are 1 or 2kb in size. In past my backups went +500MB now they are less then 100MB
I know there was already a question about it, but don’t know where in the threat it was asked.
Can someone tell me what to do?
I already removed the add-ons and reinstall them, didn’t work
{
"slug": "MY SLUG NOT SHOWN",
"name": "Full Snapshot 2020-08-18 07:51:24 ",
"date": "2020-08-18T05:51:24.783162+00:00",
"type": "full",
"repositories": [
"https://github.com/hassio-addons/repository",
"https://github.com/sabeechen/hassio-google-drive-backup",
"https://github.com/Limych/hassio-addons"
],
"homeassistant": {
"ssl": true,
"audio_input": null,
"wait_boot": 600,
"watchdog": true,
"audio_output": null,
"boot": true,
"port": 8123,
"version": "0.114.1",
"image": "homeassistant/raspberrypi4-homeassistant",
"refresh_token": "MY TOKEN NOR SHOWN"
},
"addons": [
{
"slug": "a0d7b954_adguard",
"name": "AdGuard Home",
"version": "2.5.0",
"size": 4.65
},
{
"slug": "core_letsencrypt",
"name": "Let's Encrypt",
"version": "4.10.0",
"size": 0.02
},
{
"slug": "core_mosquitto",
"name": "Mosquitto broker",
"version": "5.1",
"size": 0.08
},
{
"slug": "a0d7b954_zwave2mqtt",
"name": "Z-Wave to MQTT",
"version": "0.7.0",
"size": 0.03
},
{
"slug": "core_mariadb",
"name": "MariaDB",
"version": "2.2.1",
"size": 50.85
},
{
"slug": "core_configurator",
"name": "File editor",
"version": "5.0.0",
"size": 0.0
},
{
"slug": "core_check_config",
"name": "Check Home Assistant configuration",
"version": "3.4.0",
"size": 0.0
},
{
"slug": "a0d7b954_ftp",
"name": "FTP",
"version": "3.3.2",
"size": 0.0
},
{
"slug": "a0d7b954_portainer",
"name": "Portainer",
"version": "1.2.1",
"size": 0.02
},
{
"slug": "a0d7b954_phpmyadmin",
"name": "phpMyAdmin",
"version": "0.1.3",
"size": 0.0
},
{
"slug": "cebe7a76_hassio_google_drive_backup",
"name": "Home Assistant Google Drive Backup",
"version": "0.101.1",
"size": 0.0
}
],
"folders": [
"homeassistant",
"addons/local",
"ssl",
"share"
]
}
I have a problem with that add-on, it works for a time, but then stop. Some times it solve rebooting router and home assistant, but the last 2 months do not work in any moment.
This is the error.
sync_problem Error while backing up
The add-on got the error below while trying to sync your snapshots. Some transient errors are expected (eg an upload could fail if the internet is down) but if this persist for more than a few minutes your snapshots won't get backed up and the information you see on this page may be stale. If you file an issue on GitHub with the link below, it could be helpful to provide the logs downloaded from the "Download Logs" link below
An unexpected error occurred: [Errno 104] Connection reset by peer
arrow_drop_down View Exception Details
addon/backup/model/coordinator.py:148 (_sync)
addon/backup/model/model.py:162 (sync)
addon/backup/drive/drivesource.py:148 (save)
addon/backup/drive/driverequests.py:257 (create)
addon/backup/drive/driverequests.py:322 (retryRequest)
addon/backup/creds/driverequester.py:29 (request)
/site-packages/aiohttp/client.py:504 (_request)
/site-packages/aiohttp/client_reqrep.py:847 (start)
/site-packages/aiohttp/streams.py:591 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
and this is the log
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory modified event
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory changed
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory modified event
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory changed
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory modified event
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory changed
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory modified event
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory changed
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory modified event
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory changed
08-20 09:38:54 DEBUG [backup.worker.watcher] Backup directory modified event
08-20 09:38:54 INFO [backup.ha.hasource] Snapshot finished
08-20 09:38:54 DEBUG [backup.model.syncer] Sync requested by HomeAssistant
08-20 09:38:54 INFO [backup.model.coordinator] Syncing Snapshots
08-20 09:38:54 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-20 09:38:54 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots/07eb9e64/info
08-20 09:38:54 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1vw_hGqY7Lv-CUmOmuIipiyMgVPS4wiX1/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-20 09:38:55 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271vw_hGqY7Lv-CUmOmuIipiyMgVPS4wiX1%27+in+parents&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-20 09:38:55 INFO [backup.drive.drivesource] Uploading 'Full Snapshot 2020-08-20 09:32:32' to Google Drive
08-20 09:38:55 DEBUG [backup.drive.driverequests] Starting a new upload session with Google Drive
08-20 09:38:55 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true
08-20 09:38:57 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
08-20 09:38:57 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 09:38:58 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-20 09:32:32 0.06%
08-20 09:38:58 DEBUG [backup.drive.driverequests] Sending 9699328 bytes to Google Drive
08-20 09:38:58 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 09:38:59 ERROR [backup.model.coordinator]
addon/backup/model/coordinator.py:148 (_sync)
addon/backup/model/model.py:162 (sync)
addon/backup/drive/drivesource.py:148 (save)
addon/backup/drive/driverequests.py:257 (create)
addon/backup/drive/driverequests.py:322 (retryRequest)
addon/backup/creds/driverequester.py:29 (request)
/site-packages/aiohttp/client.py:504 (_request)
/site-packages/aiohttp/client_reqrep.py:847 (start)
/site-packages/aiohttp/streams.py:591 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
08-20 09:38:59 INFO [backup.model.coordinator] I'll try again in an hour
08-20 09:38:59 INFO [backup.worker.watcher] Backup directory changed
08-20 09:38:59 DEBUG [backup.model.syncer] Sync requested by Backup Directory Watcher
08-20 09:38:59 INFO [backup.model.coordinator] Syncing Snapshots
08-20 09:38:59 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-20 09:38:59 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271vw_hGqY7Lv-CUmOmuIipiyMgVPS4wiX1%27+in+parents&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-20 09:39:00 INFO [backup.drive.drivesource] Uploading 'Full Snapshot 2020-08-20 09:32:32' to Google Drive
08-20 09:39:00 DEBUG [backup.drive.driverequests] Attempting to resume a previosuly failed upload where we left off
08-20 09:39:00 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 09:39:00 DEBUG [backup.drive.driverequests] Resuming upload at byte 262144 of 474163200
08-20 09:39:00 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
08-20 09:39:00 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 09:39:02 ERROR [backup.drive.driverequests] Google Drive returned an internal error (HTTP: 5XX): we'll retry in 2 seconds
08-20 09:39:04 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 09:39:04 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-20 09:32:32 0.11%
08-20 09:39:04 DEBUG [backup.drive.driverequests] Sending 524288 bytes to Google Drive
08-20 09:39:04 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 09:39:04 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-20 09:32:32 0.22%
08-20 09:39:05 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
08-20 09:39:05 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 09:39:05 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-20 09:32:32 2.43%
08-20 09:39:06 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
08-20 09:39:06 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 09:39:06 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-20 09:32:32 4.64%
08-20 09:39:06 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
08-20 09:39:06 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 09:39:06 ERROR [backup.model.coordinator]
addon/backup/model/coordinator.py:148 (_sync)
addon/backup/model/model.py:162 (sync)
addon/backup/drive/drivesource.py:148 (save)
addon/backup/drive/driverequests.py:257 (create)
addon/backup/drive/driverequests.py:322 (retryRequest)
addon/backup/creds/driverequester.py:29 (request)
/site-packages/aiohttp/client.py:504 (_request)
/site-packages/aiohttp/client_reqrep.py:847 (start)
/site-packages/aiohttp/streams.py:591 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
08-20 09:39:06 INFO [backup.model.coordinator] I'll try again in an hour
08-20 10:39:07 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-20 10:39:07 INFO [backup.model.coordinator] Syncing Snapshots
08-20 10:39:07 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-20 10:39:07 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
08-20 10:39:07 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1vw_hGqY7Lv-CUmOmuIipiyMgVPS4wiX1/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-20 10:39:07 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271vw_hGqY7Lv-CUmOmuIipiyMgVPS4wiX1%27+in+parents&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-20 10:39:08 INFO [backup.drive.drivesource] Uploading 'Full Snapshot 2020-08-20 09:32:32' to Google Drive
08-20 10:39:08 DEBUG [backup.drive.driverequests] Attempting to resume a previosuly failed upload where we left off
08-20 10:39:08 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 10:39:08 DEBUG [backup.drive.driverequests] Resuming upload at byte 22020096 of 474163200
08-20 10:39:08 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
08-20 10:39:08 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 10:39:08 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-20 09:32:32 4.70%
08-20 10:39:08 DEBUG [backup.drive.driverequests] Sending 8912896 bytes to Google Drive
08-20 10:39:08 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 10:39:08 ERROR [backup.model.coordinator]
addon/backup/model/coordinator.py:148 (_sync)
addon/backup/model/model.py:162 (sync)
addon/backup/drive/drivesource.py:148 (save)
addon/backup/drive/driverequests.py:257 (create)
addon/backup/drive/driverequests.py:322 (retryRequest)
addon/backup/creds/driverequester.py:29 (request)
/site-packages/aiohttp/client.py:504 (_request)
/site-packages/aiohttp/client_reqrep.py:847 (start)
/site-packages/aiohttp/streams.py:591 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
08-20 10:39:08 INFO [backup.model.coordinator] I'll try again in an hour
08-20 11:39:09 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-20 11:39:09 INFO [backup.model.coordinator] Syncing Snapshots
08-20 11:39:09 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-20 11:39:09 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
08-20 11:39:09 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1vw_hGqY7Lv-CUmOmuIipiyMgVPS4wiX1/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-20 11:39:09 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271vw_hGqY7Lv-CUmOmuIipiyMgVPS4wiX1%27+in+parents&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-20 11:39:10 INFO [backup.drive.drivesource] Uploading 'Full Snapshot 2020-08-20 09:32:32' to Google Drive
08-20 11:39:10 DEBUG [backup.drive.driverequests] Attempting to resume a previosuly failed upload where we left off
08-20 11:39:10 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 11:39:11 DEBUG [backup.drive.driverequests] Resuming upload at byte 22282240 of 474163200
08-20 11:39:11 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
08-20 11:39:11 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 11:39:21 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-20 09:32:32 4.75%
08-20 11:39:21 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
08-20 11:39:21 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 11:39:22 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-20 09:32:32 4.81%
08-20 11:39:22 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
08-20 11:39:22 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUlmbekjx1luuu-AFZN_SuTX6do0hLBjs7bErYsKHsSv2Qa3guxUpyc_7sQYDq9om1gPGwzyKEd63TLRUBonfe-_3KWk6g
08-20 11:39:22 ERROR [backup.model.coordinator]
addon/backup/model/coordinator.py:148 (_sync)
addon/backup/model/model.py:162 (sync)
addon/backup/drive/drivesource.py:148 (save)
addon/backup/drive/driverequests.py:257 (create)
addon/backup/drive/driverequests.py:322 (retryRequest)
addon/backup/creds/driverequester.py:29 (request)
/site-packages/aiohttp/client.py:504 (_request)
/site-packages/aiohttp/client_reqrep.py:847 (start)
/site-packages/aiohttp/streams.py:591 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
08-20 11:39:22 INFO [backup.model.coordinator] I'll try again in an hour
08-20 12:28:39 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/addons/self/info
08-20 12:28:39 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/info
08-20 12:28:39 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/homeassistant/info
08-20 12:28:39 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/supervisor/info
08-20 12:28:40 INFO [backup.ha.hasource] Requesting a new snapshot
08-20 12:28:40 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots/new/full
Thats a pretty curious problem, you’re getting a lot of different errors from Google Drive. Its rare, but sometimes this can happen if there are problems on Google’s end with your specific account. Could you try reauthorizing the addon with a different (preferrably just created) Google account? Eg go to “Actions” -> “Reauthorize” in the addon and sign in with a new account. I know that isn’t what you’d probably want to do long-term, but it will confirm if the problem is on Google’s end.
Google Drive had server issues the other day… was it that?
Hi,
I created a new google drive account and synced it.
I have, I think, the same error.
Error while backing up
The add-on got the error below while trying to sync your snapshots. Some transient errors are expected (eg an upload could fail if the internet is down) but if this persist for more than a few minutes your snapshots won't get backed up and the information you see on this page may be stale. If you file an issue on GitHub with the link below, it could be helpful to provide the logs downloaded from the "Download Logs" link below
An unexpected error occurred: [Errno 104] Connection reset by peer
arrow_drop_down View Exception Details
addon/backup/model/coordinator.py:148 (_sync)
addon/backup/model/model.py:162 (sync)
addon/backup/drive/drivesource.py:148 (save)
addon/backup/drive/driverequests.py:257 (create)
addon/backup/drive/driverequests.py:322 (retryRequest)
addon/backup/creds/driverequester.py:29 (request)
/site-packages/aiohttp/client.py:504 (_request)
/site-packages/aiohttp/client_reqrep.py:847 (start)
/site-packages/aiohttp/streams.py:591 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
FIND SIMILAR ISSUES
FILE THIS ISSUE ON GITHUB
DOWNLOAD LOGS
The log:
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:11 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:16 INFO [backup.worker.watcher] Backup directory changed
08-24 09:31:22 DEBUG [backup.model.syncer] Sync requested by Backup Directory Watcher
08-24 09:31:22 INFO [backup.model.coordinator] Syncing Snapshots
08-24 09:31:22 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-24 09:31:22 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:22 DEBUG [backup.worker.watcher] Backup directory was written to, we'll reload snapshots from Home Assistant soon
08-24 09:31:22 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:22 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:22 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:23 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:23 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:23 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:23 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:23 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1X9XYq80ph-zJEt5_y9NAkmQ2884653rt/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-24 09:31:23 DEBUG [backup.worker.watcher] Backup directory changed
08-24 09:31:23 DEBUG [backup.worker.watcher] Backup directory modified event
08-24 09:31:23 INFO [backup.ha.hasource] Snapshot finished
08-24 09:35:23 ERROR [backup.model.coordinator] Timed out while trying to reach Google Drive
08-24 09:35:23 INFO [backup.model.coordinator] I'll try again in an hour
08-24 09:35:24 INFO [backup.debugworker] Sending error report (see settings to disable)
08-24 09:35:24 DEBUG [backup.model.syncer] Sync requested by HomeAssistant
08-24 09:35:24 INFO [backup.worker.watcher] Backup directory changed
08-24 09:35:24 DEBUG [backup.model.syncer] Sync requested by Backup Directory Watcher
08-24 09:35:24 INFO [backup.model.coordinator] Syncing Snapshots
08-24 09:35:24 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-24 09:35:24 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots/8ce7c020/info
08-24 09:35:24 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1X9XYq80ph-zJEt5_y9NAkmQ2884653rt/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-24 09:35:24 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271X9XYq80ph-zJEt5_y9NAkmQ2884653rt%27+in+parents&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-24 09:35:25 INFO [backup.drive.drivesource] Uploading 'Full Snapshot 2020-08-24 09:24:19' to Google Drive
08-24 09:35:25 DEBUG [backup.drive.driverequests] Starting a new upload session with Google Drive
08-24 09:35:25 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true
08-24 09:35:25 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
08-24 09:35:25 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUl8xURsMBjZB0W54Ee53q6edL9bkAziBmGfgMPi-b27YJLUxMGqtKpzvqcPUIj9vzIkSFCK3HqlFsjI20ldGwk
08-24 09:35:25 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-24 09:24:19 0.05%
08-24 09:35:25 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
08-24 09:35:25 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUl8xURsMBjZB0W54Ee53q6edL9bkAziBmGfgMPi-b27YJLUxMGqtKpzvqcPUIj9vzIkSFCK3HqlFsjI20ldGwk
08-24 09:35:26 ERROR [backup.model.coordinator]
addon/backup/model/coordinator.py:148 (_sync)
addon/backup/model/model.py:162 (sync)
addon/backup/drive/drivesource.py:148 (save)
addon/backup/drive/driverequests.py:257 (create)
addon/backup/drive/driverequests.py:322 (retryRequest)
addon/backup/creds/driverequester.py:29 (request)
/site-packages/aiohttp/client.py:504 (_request)
/site-packages/aiohttp/client_reqrep.py:847 (start)
/site-packages/aiohttp/streams.py:591 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
08-24 09:35:26 INFO [backup.model.coordinator] I'll try again in an hour
08-24 09:35:34 INFO [backup.debugworker] Sending error report (see settings to disable)
08-24 10:35:26 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-24 10:35:26 INFO [backup.model.coordinator] Syncing Snapshots
08-24 10:35:26 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-24 10:35:26 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
08-24 10:35:27 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1X9XYq80ph-zJEt5_y9NAkmQ2884653rt/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-24 10:35:27 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271X9XYq80ph-zJEt5_y9NAkmQ2884653rt%27+in+parents&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-24 10:35:28 INFO [backup.drive.drivesource] Uploading 'Full Snapshot 2020-08-24 09:24:19' to Google Drive
08-24 10:35:28 DEBUG [backup.drive.driverequests] Attempting to resume a previosuly failed upload where we left off
08-24 10:35:28 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUl8xURsMBjZB0W54Ee53q6edL9bkAziBmGfgMPi-b27YJLUxMGqtKpzvqcPUIj9vzIkSFCK3HqlFsjI20ldGwk
08-24 10:35:28 DEBUG [backup.drive.driverequests] Resuming upload at byte 786432 of 510842880
08-24 10:35:28 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
08-24 10:35:28 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUl8xURsMBjZB0W54Ee53q6edL9bkAziBmGfgMPi-b27YJLUxMGqtKpzvqcPUIj9vzIkSFCK3HqlFsjI20ldGwk
08-24 10:35:28 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-24 09:24:19 0.21%
08-24 10:35:28 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
08-24 10:35:28 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUl8xURsMBjZB0W54Ee53q6edL9bkAziBmGfgMPi-b27YJLUxMGqtKpzvqcPUIj9vzIkSFCK3HqlFsjI20ldGwk
08-24 10:35:28 ERROR [backup.model.coordinator]
addon/backup/model/coordinator.py:148 (_sync)
addon/backup/model/model.py:162 (sync)
addon/backup/drive/drivesource.py:148 (save)
addon/backup/drive/driverequests.py:257 (create)
addon/backup/drive/driverequests.py:322 (retryRequest)
addon/backup/creds/driverequester.py:29 (request)
/site-packages/aiohttp/client.py:504 (_request)
/site-packages/aiohttp/client_reqrep.py:847 (start)
/site-packages/aiohttp/streams.py:591 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
08-24 10:35:28 INFO [backup.model.coordinator] I'll try again in an hour
08-24 11:27:14 INFO [backup.drive.drivesource] Saving new Google Drive credentials
08-24 11:27:14 DEBUG [backup.model.syncer] Sync requested by GoogleDrive
08-24 11:27:14 INFO [backup.model.coordinator] Syncing Snapshots
08-24 11:27:14 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-24 11:27:14 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1X9XYq80ph-zJEt5_y9NAkmQ2884653rt/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-24 11:27:15 INFO [backup.drive.folderfinder] Provided snapshot folder 1X9XYq80ph-zJEt5_y9NAkmQ2884653rt is gone
08-24 11:27:15 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=mimeType%3D%27application%2Fvnd.google-apps.folder%27&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-24 11:27:15 ERROR [backup.model.coordinator] Please visit drive.google.com to activate your Google Drive account.
08-24 11:27:15 INFO [backup.model.coordinator] I'll try again in an hour
08-24 11:27:21 INFO [backup.debugworker] Sending error report (see settings to disable)
08-24 11:27:31 INFO [backup.model.coordinator] Syncing Snapshots
08-24 11:27:31 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-24 11:27:31 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1X9XYq80ph-zJEt5_y9NAkmQ2884653rt/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-24 11:27:31 INFO [backup.drive.folderfinder] Provided snapshot folder 1X9XYq80ph-zJEt5_y9NAkmQ2884653rt is gone
08-24 11:27:31 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=mimeType%3D%27application%2Fvnd.google-apps.folder%27&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-24 11:27:31 ERROR [backup.model.coordinator] Please visit drive.google.com to activate your Google Drive account.
08-24 11:27:31 INFO [backup.model.coordinator] I'll try again in an hour
08-24 11:27:34 INFO [backup.model.coordinator] Syncing Snapshots
08-24 11:27:34 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-24 11:27:34 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1X9XYq80ph-zJEt5_y9NAkmQ2884653rt/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-24 11:27:34 INFO [backup.drive.folderfinder] Provided snapshot folder 1X9XYq80ph-zJEt5_y9NAkmQ2884653rt is gone
08-24 11:27:34 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=mimeType%3D%27application%2Fvnd.google-apps.folder%27&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-24 11:27:35 ERROR [backup.model.coordinator] Please visit drive.google.com to activate your Google Drive account.
08-24 11:27:35 INFO [backup.model.coordinator] I'll try again in an hour
08-24 11:28:07 INFO [backup.model.coordinator] Syncing Snapshots
08-24 11:28:07 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-24 11:28:07 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1X9XYq80ph-zJEt5_y9NAkmQ2884653rt/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-24 11:28:08 INFO [backup.drive.folderfinder] Provided snapshot folder 1X9XYq80ph-zJEt5_y9NAkmQ2884653rt is gone
08-24 11:28:08 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=mimeType%3D%27application%2Fvnd.google-apps.folder%27&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-24 11:28:08 INFO [backup.drive.folderfinder] Creating folder "Home Assistant Snapshots" in "My Drive"
08-24 11:28:08 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?supportsAllDrives=true
08-24 11:28:08 INFO [backup.drive.folderfinder] Saving snapshot folder: 1B87UHoCNrQWZRRe8pDco1ZcIpOixNXJw
08-24 11:28:08 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271B87UHoCNrQWZRRe8pDco1ZcIpOixNXJw%27+in+parents&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-24 11:28:09 INFO [backup.drive.drivesource] Uploading 'Full Snapshot 2020-08-24 09:24:19' to Google Drive
08-24 11:28:09 DEBUG [backup.drive.driverequests] Starting a new upload session with Google Drive
08-24 11:28:09 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true
08-24 11:28:09 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
08-24 11:28:09 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUkDWRGjtn4o6FLPdVEYgZCPgHI3aRF8kOS_PuDOKzszLnYCI5TVdPwnASBM-8dTLcvcdwn0Ho9NzM7O8xGSe54
08-24 11:28:09 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-24 09:24:19 0.05%
08-24 11:28:09 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
08-24 11:28:09 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUkDWRGjtn4o6FLPdVEYgZCPgHI3aRF8kOS_PuDOKzszLnYCI5TVdPwnASBM-8dTLcvcdwn0Ho9NzM7O8xGSe54
08-24 11:28:10 ERROR [backup.model.coordinator]
addon/backup/model/coordinator.py:148 (_sync)
addon/backup/model/model.py:162 (sync)
addon/backup/drive/drivesource.py:148 (save)
addon/backup/drive/driverequests.py:257 (create)
addon/backup/drive/driverequests.py:322 (retryRequest)
addon/backup/creds/driverequester.py:29 (request)
/site-packages/aiohttp/client.py:504 (_request)
/site-packages/aiohttp/client_reqrep.py:847 (start)
/site-packages/aiohttp/streams.py:591 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
08-24 11:28:10 INFO [backup.model.coordinator] I'll try again in an hour
08-24 11:28:11 INFO [backup.debugworker] Sending error report (see settings to disable)
08-24 11:37:35 INFO [backup.model.coordinator] Syncing Snapshots
08-24 11:37:35 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-24 11:37:35 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1B87UHoCNrQWZRRe8pDco1ZcIpOixNXJw/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents&supportsAllDrives=true
08-24 11:37:36 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271B87UHoCNrQWZRRe8pDco1ZcIpOixNXJw%27+in+parents&fields=nextPageToken%2Cfiles%28id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%29&pageSize=100&supportsAllDrives=true&includeItemsFromAllDrives=true&corpora=allDrives
08-24 11:37:36 INFO [backup.drive.drivesource] Uploading 'Full Snapshot 2020-08-24 09:24:19' to Google Drive
08-24 11:37:36 DEBUG [backup.drive.driverequests] Attempting to resume a previosuly failed upload where we left off
08-24 11:37:36 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUkDWRGjtn4o6FLPdVEYgZCPgHI3aRF8kOS_PuDOKzszLnYCI5TVdPwnASBM-8dTLcvcdwn0Ho9NzM7O8xGSe54
08-24 11:37:36 DEBUG [backup.drive.driverequests] Resuming upload at byte 1835008 of 510842880
08-24 11:37:36 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
08-24 11:37:36 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUkDWRGjtn4o6FLPdVEYgZCPgHI3aRF8kOS_PuDOKzszLnYCI5TVdPwnASBM-8dTLcvcdwn0Ho9NzM7O8xGSe54
08-24 11:37:36 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-24 09:24:19 0.41%
08-24 11:37:36 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
08-24 11:37:36 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUkDWRGjtn4o6FLPdVEYgZCPgHI3aRF8kOS_PuDOKzszLnYCI5TVdPwnASBM-8dTLcvcdwn0Ho9NzM7O8xGSe54
08-24 11:37:37 ERROR [backup.model.coordinator]
addon/backup/model/coordinator.py:148 (_sync)
addon/backup/model/model.py:162 (sync)
addon/backup/drive/drivesource.py:148 (save)
addon/backup/drive/driverequests.py:257 (create)
addon/backup/drive/driverequests.py:322 (retryRequest)
addon/backup/creds/driverequester.py:29 (request)
/site-packages/aiohttp/client.py:504 (_request)
/site-packages/aiohttp/client_reqrep.py:847 (start)
/site-packages/aiohttp/streams.py:591 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
08-24 11:37:37 INFO [backup.model.coordinator] I'll try again in an hour
I have had an issue with my HA installation and decided to start from scratch and use one of the recent backups but it has been imposible,
I have tried with all of available backups, with full and parcial recovery, and it shows the following errors:
20-08-23 12:34:27 INFO (MainThread) [supervisor.snapshots] Partial-Restore 0484ba1f start
20-08-23 12:34:39 INFO (SyncWorker_4) [supervisor.docker.interface] Stop homeassistant application
20-08-23 12:35:40 ERROR (MainThread) [supervisor.snapshots] Restore 0484ba1f error
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/snapshots/__init__.py", line 299, in do_restore_partial
snapshot.restore_homeassistant()
File "/usr/src/supervisor/supervisor/snapshots/snapshot.py", line 463, in restore_homeassistant
self.sys_homeassistant.refresh_token = self._decrypt_data(
File "/usr/src/supervisor/supervisor/snapshots/snapshot.py", line 208, in _decrypt_data
data = padder.update(decrypt.update(b64decode(data))) + padder.finalize()
File "/usr/local/lib/python3.8/site-packages/cryptography/hazmat/primitives/padding.py", line 145, in finalize
result = _byte_unpadding_check(
File "/usr/local/lib/python3.8/site-packages/cryptography/hazmat/primitives/padding.py", line 89, in _byte_unpadding_check
raise ValueError("Invalid padding bytes.")
ValueError: Invalid padding bytes.
If I try to recover one addon, it says
20-08-23 12:17:00 INFO (MainThread) [supervisor.snapshots] Partial-Restore 77cae4e6 start
20-08-23 12:17:08 INFO (MainThread) [supervisor.snapshots] Restore 77cae4e6 run Repositories
20-08-23 12:17:09 INFO (MainThread) [supervisor.store] Load add-ons from store: 74 all - 0 new - 0 remove
20-08-23 12:17:09 INFO (MainThread) [supervisor.snapshots] Restore 77cae4e6 old add-ons
20-08-23 12:17:09 ERROR (MainThread) [supervisor.addons.addon] Can't read tarfile <supervisor.utils.tar.SecureTarFile object at 0xb0e47208>: not a gzip file
20-08-23 12:17:09 ERROR (MainThread) [supervisor.snapshots.snapshot] Can't restore snapshot for 15ef4d2f_esphome
20-08-23 12:17:09 INFO (MainThread) [supervisor.snapshots] Partial-Restore 77cae4e6 done
What am I doing wrong? Any idea? I am really worried not being able to recover it
This isn’t an issue with the Add-on (this just moves the backup files to Google Drive) - it is an issue with the HA backup/restore. Open a new thread. Try a partial restore.
In order to be able to start recovery, I need to use this password (the password I used in the addon configuration menu):
"!secret pwd_snapshot"
If I use the right password stored in the secret.yaml, supervisor says the password is incorrect.
I think this is the way it is explained in the settings menu:
Password
When set, creates snapshots protected by a password. This password will be required by Home Assistant when restoring the snapshot. Leave blank to require no password. You can specify a password from your secrets.yaml by using the syntax “!secret your_secret_key”.
If I try to partially recover, only selecting HA (Home Assistant 0.112.4) it works and the log says:
20-08-25 11:55:23 INFO (MainThread) [supervisor.snapshots] Partial-Restore 4b8c5ba7 start
20-08-25 11:55:30 INFO (MainThread) [supervisor.snapshots] Restore 4b8c5ba7 run Home-Assistant
20-08-25 11:55:30 INFO (MainThread) [supervisor.snapshots] Restore 4b8c5ba7 wait for Home-Assistant
20-08-25 11:55:30 INFO (MainThread) [supervisor.homeassistant] Update Home Assistant to version 0.112.4
20-08-25 11:55:30 INFO (SyncWorker_2) [supervisor.docker.interface] Update image homeassistant/raspberrypi4-homeassistant:0.114.3 to homeassistant/raspberrypi4-homeassistant:0.112.4
20-08-25 11:55:30 INFO (SyncWorker_2) [supervisor.docker.interface] Pull image homeassistant/raspberrypi4-homeassistant tag 0.112.4.
And if I try to recover Home Assistant configuration folder:
20-08-25 11:59:33 INFO (MainThread) [supervisor.snapshots] Partial-Restore 4b8c5ba7 start
20-08-25 11:59:44 INFO (SyncWorker_2) [supervisor.docker.interface] Stop homeassistant application
20-08-25 12:00:45 ERROR (MainThread) [supervisor.snapshots] Restore 4b8c5ba7 error
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/snapshots/__init__.py", line 299, in do_restore_partial
snapshot.restore_homeassistant()
File "/usr/src/supervisor/supervisor/snapshots/snapshot.py", line 463, in restore_homeassistant
self.sys_homeassistant.refresh_token = self._decrypt_data(
File "/usr/src/supervisor/supervisor/snapshots/snapshot.py", line 208, in _decrypt_data
data = padder.update(decrypt.update(b64decode(data))) + padder.finalize()
File "/usr/local/lib/python3.8/site-packages/cryptography/hazmat/primitives/padding.py", line 145, in finalize
result = _byte_unpadding_check(
File "/usr/local/lib/python3.8/site-packages/cryptography/hazmat/primitives/padding.py", line 89, in _byte_unpadding_check
raise ValueError("Invalid padding bytes.")
ValueError: Invalid padding bytes.
Please use the issue on GitHub for status updates about this recovery error, the back-and-forth over issues on this forum thread gets kind of spammy for people’s inboxes.
My Hass died and I’m trying to restore but when tell Google to authorize, I get an error: 401 Not authorized.
I’d appreciate any suggestions.
Cheers, Richard