question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while backing up

See original GitHub issue

Hi, I have a problem with this and i don’t understand what is the problem.

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

Addon version: 0.105.2 Home Assistant Version: 2021.11.0 Supervisor Version: 2021.10.8 Supervisor Channel: stable Hassos Version: 6.6 Docker Version: 20.10.8 Architecture: amd64 Machine: qemux86-64 Date: 2021-11-04T17:37:54.640691+00:00 Timezone: Europe/Rome Failure Time: 2021-11-04T17:35:38.806911+00:00 Last Good Sync: 2021-11-04T17:35:37.872830+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 32] Broken pipe

Backups:

{
   "HomeAssistant": {
       "backups": 5,
       "retained": 0,
       "deletable": 5,
       "name": "HomeAssistant",
       "title": "Home Assistant",
       "latest": "2021-11-04T17:35:20Z",
       "max": 4,
       "enabled": true,
       "icon": "home-assistant",
       "ignored": 0,
       "size": "826.3 MB",
       "ignored_size": "0.0 B",
       "free_space": "109.8 GB"
   },
   "GoogleDrive": {
       "backups": 0,
       "retained": 0,
       "deletable": 0,
       "name": "GoogleDrive",
       "title": "Google Drive",
       "latest": null,
       "max": 4,
       "enabled": true,
       "icon": "google-drive",
       "ignored": 0,
       "size": "0.0 B",
       "ignored_size": "0.0 B",
       "free_space": "10.7 GB"
   }
}
Config:
{
   "Setting.SPECIFY_BACKUP_FOLDER": true,
   "Setting.SEND_ERROR_REPORTS": true
}
Addon Logs:
11-04 18:35:30 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271uOz9EGf4Gsz3GB5TCS6rb6fwiAO80ZIr%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-04 18:35:31 INFO [backup.drive.drivesource] Uploading 'Full Backup 2021-11-01 19:35:28' to Google Drive
11-04 18:35:31 DEBUG [backup.drive.driverequests] Attempting to resume a previously failed upload where we left off
11-04 18:35:31 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdvkGHM-xHWXur5s-JHibI_d_A6g_ePTx97JKC4cDylywQRi836ZJanrKKWlpjL9YcGv8MtYR2eLPuKCO44MNcW5UC3jcQ
11-04 18:35:31 DEBUG [backup.drive.driverequests] Resuming upload at byte 3145728 of 217538560
11-04 18:35:31 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
11-04 18:35:31 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdvkGHM-xHWXur5s-JHibI_d_A6g_ePTx97JKC4cDylywQRi836ZJanrKKWlpjL9YcGv8MtYR2eLPuKCO44MNcW5UC3jcQ
11-04 18:35:31 DEBUG [backup.drive.drivesource] Uploading Full Backup 2021-11-01 19:35:28 1.57%
11-04 18:35:31 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
11-04 18:35:31 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdvkGHM-xHWXur5s-JHibI_d_A6g_ePTx97JKC4cDylywQRi836ZJanrKKWlpjL9YcGv8MtYR2eLPuKCO44MNcW5UC3jcQ
11-04 18:35:31 ERROR [backup.model.coordinator] Google gave an unexpected response
11-04 18:35:31 INFO [backup.model.coordinator] I'll try again in 5(ish) minutes
11-04 18:35:37 INFO [backup.model.coordinator] Syncing Backups
11-04 18:35:37 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/supervisor/info
11-04 18:35:37 DEBUG [backup.ha.harequests] Making Hassio request: http://supervisor/backups
11-04 18:35:37 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/about?fields=storageQuota
11-04 18:35:38 INFO [backup.debugworker] Sending error report (see settings to disable)
11-04 18:35:38 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/drive/v3/files/?q=%271uOz9EGf4Gsz3GB5TCS6rb6fwiAO80ZIr%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-04 18:35:38 INFO [backup.drive.drivesource] Uploading 'Full Backup 2021-11-01 19:35:28' to Google Drive
11-04 18:35:38 DEBUG [backup.drive.driverequests] Attempting to resume a previously failed upload where we left off
11-04 18:35:38 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdvkGHM-xHWXur5s-JHibI_d_A6g_ePTx97JKC4cDylywQRi836ZJanrKKWlpjL9YcGv8MtYR2eLPuKCO44MNcW5UC3jcQ
11-04 18:35:38 DEBUG [backup.drive.driverequests] Resuming upload at byte 3670016 of 217538560
11-04 18:35:38 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
11-04 18:35:38 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdvkGHM-xHWXur5s-JHibI_d_A6g_ePTx97JKC4cDylywQRi836ZJanrKKWlpjL9YcGv8MtYR2eLPuKCO44MNcW5UC3jcQ
11-04 18:35:38 DEBUG [backup.drive.drivesource] Uploading Full Backup 2021-11-01 19:35:28 1.81%
11-04 18:35:38 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
11-04 18:35:38 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=ADPycdvkGHM-xHWXur5s-JHibI_d_A6g_ePTx97JKC4cDylywQRi836ZJanrKKWlpjL9YcGv8MtYR2eLPuKCO44MNcW5UC3jcQ
11-04 18:35:38 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 32] Broken pipe

11-04 18:35:38 INFO [backup.model.coordinator] I'll try again in 10(ish) minutes
11-04 18:35:48 INFO [backup.debugworker] Sending error report (see settings to disable)
Supervisor Logs:
21-11-04 18:35:20 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_nginx_proxy
21-11-04 18:35:20 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on a0d7b954_ssh
21-11-04 18:35:21 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon a0d7b954_ssh
21-11-04 18:35:21 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_samba
21-11-04 18:35:21 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_samba
21-11-04 18:35:21 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on a0d7b954_nut
21-11-04 18:35:21 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon a0d7b954_nut
21-11-04 18:35:21 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_deconz
21-11-04 18:35:21 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_deconz
21-11-04 18:35:21 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on a0d7b954_wireguard
21-11-04 18:35:21 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon a0d7b954_wireguard
21-11-04 18:35:30 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
21-11-04 18:35:30 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
21-11-04 18:35:31 INFO (MainThread) [supervisor.api.middleware.security] /backups/53725528/download access from cebe7a76_hassio_google_drive_backup
21-11-04 18:35:31 INFO (MainThread) [supervisor.api.backups] Downloading backup 53725528
21-11-04 18:35:31 INFO (MainThread) [supervisor.api.middleware.security] /backups/53725528/download access from cebe7a76_hassio_google_drive_backup
21-11-04 18:35:31 INFO (MainThread) [supervisor.api.backups] Downloading backup 53725528
21-11-04 18:35:37 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/info access from cebe7a76_hassio_google_drive_backup
21-11-04 18:35:37 INFO (MainThread) [supervisor.api.middleware.security] /backups access from cebe7a76_hassio_google_drive_backup
21-11-04 18:35:38 INFO (MainThread) [supervisor.api.middleware.security] /backups/53725528/download access from cebe7a76_hassio_google_drive_backup
21-11-04 18:35:38 INFO (MainThread) [supervisor.api.backups] Downloading backup 53725528
21-11-04 18:35:38 INFO (MainThread) [supervisor.api.middleware.security] /backups/53725528/download access from cebe7a76_hassio_google_drive_backup
21-11-04 18:35:38 INFO (MainThread) [supervisor.api.backups] Downloading backup 53725528
21-11-04 18:35:53 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup
21-11-04 18:35:54 INFO (MainThread) [supervisor.api.middleware.security] /core/logs access from cebe7a76_hassio_google_drive_backup
21-11-04 18:35:56 INFO (SyncWorker_3) [supervisor.docker.addon] Export image f4f71350/amd64-addon-ewelink_smart_home_slug to /data/tmp/tmpsh_v0nrb/image.tar
21-11-04 18:36:03 INFO (SyncWorker_3) [supervisor.docker.addon] Export image f4f71350/amd64-addon-ewelink_smart_home_slug done
21-11-04 18:36:04 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on f4f71350_ewelink_smart_home_slug
21-11-04 18:37:54 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup

Home Assistant Core Logs:
  warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(
/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.87'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
 warnings.warn(

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pimpalavistacommented, Nov 18, 2021

resolved: network adapter: mtu set to 9000 jumbo frames!

1reaction
sabeechencommented, Nov 5, 2021

This looks to me like simple connection problems, eg the addon is unable to keep a connection to Google Drive. From the logs its looking like its making some progress on the upload but fails when it attempts a larger chunk of the snapshot.

Are you trying to transfer over an unstable internet connection? The addon can handle occasional interruptions, but it needs to have a more-or-less reliable connection to transfer large files like this. After enough failures the addon will assume the problem is on Google’s side and start the transfer over from the beginning.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixed: Backup Encountered a Problem While Backing Up File
5 Solutions to the Backup Error · Fix 1. Check Your Network Connection · Fix 2. Set the VSS Status to Automatic ·...
Read more >
If you can't back up your iOS or iPadOS device to a computer ...
If a message says that your computer can't back up your device because an error occurred, check that you have the latest version...
Read more >
[Solved] iTunes Cannot Backup iPhone Because an Error ...
How to Fix iTunes Could Not Backup iPhone Because an Error Occurred · Restart your computer (Mac or PC) and iOS device (iPad,...
Read more >
Error while backing up Linux - Backup couldn't be completed ...
Error while backing up Linux - Backup couldn't be completed due to an error. First off, terrible error message to display.
Read more >
Fixed: How to Solve iPhone Backup Error Reading or Writing
Solution 1: Check iPhone to make it readable and writable · Solution 2: Make your computer be trusted again · Solution 3: Make...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found