hassio-google-drive-backup: Connection reset by peer when trying to sync backups
Hi I am running the HA supervisor in docker on a raspberry pi 4. I have an issue with the Home Assistant Google Drive Backup addon, when I am trying to sync with google drive I am getting this error “An unexpected error occurred: [Errno 104] Connection reset by peer”. I got the same error many times when I tried to add the repo for the “Home Assistant Community Addons”, but somehow I managed to add that repo (idk how, but I did). So I think this error is not related to the addon but somehow to the HA. I have to mention that this error doesn’t appear every time, sometimes the backups are uploading without any issue. Does anyone know how to solve this or encountered it before?
Addon version: 0.105.2
Home Assistant Version: 2021.11.1
Supervisor Version: 2021.10.8
Supervisor Channel: stable
Hassos Version: None
Docker Version: 20.10.10
Architecture: armv7
Machine: raspberrypi4
Date: 2021-11-14T17:41:31.218102+00:00
Timezone: Europe/Bucharest
Failure Time: 2021-11-14T17:35:12.014321+00:00
Last Good Sync: 2021-11-14T17:35:10.412932+00:00
Exception:
addon/backup/model/coordinator.py:176 (_sync)
addon/backup/model/model.py:204 (sync)
addon/backup/drive/drivesource.py:179 (save)
addon/backup/drive/driverequests.py:280 (create)
addon/backup/drive/driverequests.py:349 (retryRequest)
addon/backup/creds/driverequester.py:30 (request)
addon/backup/tracing_session.py:35 (_request)
/site-packages/aiohttp/client.py:544 (_request)
/site-packages/aiohttp/client_reqrep.py:890 (start)
/site-packages/aiohttp/streams.py:604 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
Backups:
{
"HomeAssistant": {
"backups": 4,
"retained": 0,
"deletable": 4,
"name": "HomeAssistant",
"title": "Home Assistant",
"latest": "2021-11-14T17:15:35Z",
"max": 4,
"enabled": true,
"icon": "home-assistant",
"ignored": 0,
"size": "13.1 MB",
"ignored_size": "0.0 B",
"free_space": "197.1 GB"
},
"GoogleDrive": {
"backups": 4,
"retained": 0,
"deletable": 4,
"name": "GoogleDrive",
"title": "Google Drive",
"latest": "2021-11-13T19:58:24Z",
"max": 4,
"enabled": true,
"icon": "google-drive",
"ignored": 0,
"size": "6.4 MB",
"ignored_size": "0.0 B",
"free_space": "13.3 GB"
}
}
Config:
{}
Addon Logs:
11-14 19:26:28 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/supervisor/info
11-14 19:26:28 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups
11-14 19:26:28 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1FrWwGsGDZ7zqr7HpSG3N0d8CykU88OIf/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%2CdriveId&supportsAllDrives=true
11-14 19:26:28 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/about?fields=storageQuota
11-14 19:26:28 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271FrWwGsGDZ7zqr7HpSG3N0d8CykU88OIf%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
11-14 19:26:29 INFO [backup.drive.drivesource] Uploading 'Integrated all Philips bulbs and Mi Switches' to Google Drive
11-14 19:26:29 DEBUG [backup.drive.driverequests] Attempting to resume a previously failed upload where we left off
11-14 19:26:29 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdsmSKkDBo4MlrwkDCqQgaW0RyCHsJvaOwLoSC6CXjIl_44NRFUhCQHQKECD8lDzXrW7oo7pLHHEv43m0cTMfbQ
11-14 19:26:29 DEBUG [backup.drive.driverequests] Resuming upload at byte 5767168 of 8151040
11-14 19:26:29 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
11-14 19:26:29 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdsmSKkDBo4MlrwkDCqQgaW0RyCHsJvaOwLoSC6CXjIl_44NRFUhCQHQKECD8lDzXrW7oo7pLHHEv43m0cTMfbQ
11-14 19:26:29 ERROR [backup.model.coordinator]
addon/backup/model/coordinator.py:176 (_sync)
addon/backup/model/model.py:204 (sync)
addon/backup/drive/drivesource.py:179 (save)
addon/backup/drive/driverequests.py:280 (create)
addon/backup/drive/driverequests.py:349 (retryRequest)
addon/backup/creds/driverequester.py:30 (request)
addon/backup/tracing_session.py:35 (_request)
/site-packages/aiohttp/client.py:544 (_request)
/site-packages/aiohttp/client_reqrep.py:890 (start)
/site-packages/aiohttp/streams.py:604 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
11-14 19:26:29 INFO [backup.model.coordinator] I'll try again in an hour
11-14 19:35:10 INFO [backup.model.coordinator] Syncing Backups
11-14 19:35:10 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/supervisor/info
11-14 19:35:10 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups
11-14 19:35:10 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/1FrWwGsGDZ7zqr7HpSG3N0d8CykU88OIf/?fields=id%2Cname%2CappProperties%2Csize%2Ctrashed%2CmimeType%2CmodifiedTime%2Ccapabilities%2Cparents%2CdriveId&supportsAllDrives=true
11-14 19:35:10 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/about?fields=storageQuota
11-14 19:35:11 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271FrWwGsGDZ7zqr7HpSG3N0d8CykU88OIf%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
11-14 19:35:11 INFO [backup.drive.drivesource] Uploading 'Integrated all Philips bulbs and Mi Switches' to Google Drive
11-14 19:35:11 DEBUG [backup.drive.driverequests] Attempting to resume a previously failed upload where we left off
11-14 19:35:11 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdsmSKkDBo4MlrwkDCqQgaW0RyCHsJvaOwLoSC6CXjIl_44NRFUhCQHQKECD8lDzXrW7oo7pLHHEv43m0cTMfbQ
11-14 19:35:11 DEBUG [backup.drive.driverequests] Resuming upload at byte 5767168 of 8151040
11-14 19:35:11 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
11-14 19:35:11 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdsmSKkDBo4MlrwkDCqQgaW0RyCHsJvaOwLoSC6CXjIl_44NRFUhCQHQKECD8lDzXrW7oo7pLHHEv43m0cTMfbQ
11-14 19:35:11 DEBUG [backup.drive.drivesource] Uploading Integrated all Philips bulbs and Mi Switches 73.97%
11-14 19:35:11 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
11-14 19:35:11 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdsmSKkDBo4MlrwkDCqQgaW0RyCHsJvaOwLoSC6CXjIl_44NRFUhCQHQKECD8lDzXrW7oo7pLHHEv43m0cTMfbQ
11-14 19:35:12 ERROR [backup.model.coordinator]
addon/backup/model/coordinator.py:176 (_sync)
addon/backup/model/model.py:204 (sync)
addon/backup/drive/drivesource.py:179 (save)
addon/backup/drive/driverequests.py:280 (create)
addon/backup/drive/driverequests.py:349 (retryRequest)
addon/backup/creds/driverequester.py:30 (request)
addon/backup/tracing_session.py:35 (_request)
/site-packages/aiohttp/client.py:544 (_request)
/site-packages/aiohttp/client_reqrep.py:890 (start)
/site-packages/aiohttp/streams.py:604 (read)
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
11-14 19:35:12 INFO [backup.model.coordinator] I'll try again in an hour
Supervisor Logs:
[32m21-11-14 19:21:45 INFO (MainThread) [supervisor.api.backups] Downloading backup cf7ffd5a[0m
[32m21-11-14 19:22:05 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:22:05 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:22:06 INFO (MainThread) [supervisor.api.middleware.security] /backups/cf7ffd5a/download access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:22:06 INFO (MainThread) [supervisor.api.backups] Downloading backup cf7ffd5a[0m
[32m21-11-14 19:22:06 INFO (MainThread) [supervisor.api.middleware.security] /backups/cf7ffd5a/download access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:22:06 INFO (MainThread) [supervisor.api.backups] Downloading backup cf7ffd5a[0m
[32m21-11-14 19:24:19 INFO (MainThread) [supervisor.ingress] Update Ingress as panel for cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:25:17 INFO (MainThread) [supervisor.backups.manager] Found 4 backup files[0m
[32m21-11-14 19:25:17 INFO (MainThread) [supervisor.backups.manager] Found 4 backup files[0m
[32m21-11-14 19:26:28 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:26:28 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:26:29 INFO (MainThread) [supervisor.api.middleware.security] /backups/cf7ffd5a/download access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:26:29 INFO (MainThread) [supervisor.api.backups] Downloading backup cf7ffd5a[0m
[32m21-11-14 19:26:29 INFO (MainThread) [supervisor.api.middleware.security] /backups/cf7ffd5a/download access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:26:29 INFO (MainThread) [supervisor.api.backups] Downloading backup cf7ffd5a[0m
[32m21-11-14 19:26:32 INFO (MainThread) [supervisor.api.middleware.security] /addons/a0d7b954_ssh/icon access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:26:32 INFO (MainThread) [supervisor.api.middleware.security] /addons/cebe7a76_hassio_google_drive_backup/icon access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:27:55 INFO (MainThread) [supervisor.backups.manager] Found 4 backup files[0m
[32m21-11-14 19:27:55 INFO (MainThread) [supervisor.backups.manager] Found 4 backup files[0m
[32m21-11-14 19:35:10 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:35:10 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:35:11 INFO (MainThread) [supervisor.api.middleware.security] /backups/cf7ffd5a/download access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:35:11 INFO (MainThread) [supervisor.api.backups] Downloading backup cf7ffd5a[0m
[32m21-11-14 19:35:11 INFO (MainThread) [supervisor.api.middleware.security] /backups/cf7ffd5a/download access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:35:11 INFO (MainThread) [supervisor.api.backups] Downloading backup cf7ffd5a[0m
[32m21-11-14 19:36:32 INFO (MainThread) [supervisor.api.middleware.security] /addons/cebe7a76_hassio_google_drive_backup/icon access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:36:32 INFO (MainThread) [supervisor.api.middleware.security] /addons/a0d7b954_ssh/icon access from cebe7a76_hassio_google_drive_backup[0m
[32m21-11-14 19:41:31 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup[0m
Home Assistant Core Logs:
[36m2021-11-13 21:52:58 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x9A73:1:0x0500]: Updated alarm state: 1[0m
[36m2021-11-13 21:52:58 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x9a73>, ep: 1, profile: 0x0104, cluster_id: 0x0406, data: b'18050a00001801'[0m
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[finish] process exit code 0
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
page here
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (5 by maintainers)
@lpheglund You’re seeing a different issue, not the ssl error originally reported. Its likely caused by an unstable internet connection or network hardware that has trouble with large packets. Others have resolved this in the past by lowering the option “Maximum Drive Upload Chunk Size” near the bottom of the addon’s setting page under “Uncommon Options”. I’d start with the minimum (256kb), which will make backups slow, and then increase it so long as you don’t run into problems.