sabeechen / hassio-google-drive-backup

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

Can't sync with Google Drive #236

Open NapalmCandy opened 4 years ago

NapalmCandy commented 4 years ago
Description:
It can't sync Snapshots with Google Drive, I tried to create a new Google Account but I have same problem. I saw that in the new Google Drive this add-on was able to create the folder for the backups but not any file.

Addon version: 0.101.2 Home Assistant Version: 0.114.3 Supervisor Version: None Supervisor Channel: stable Hassos Version: None Docker Version: None Architecture: armv7 Machine: None Date: 2020-08-25T17:30:51.213320+00:00 Timezone: Europe/Madrid Failure Time: 2020-08-25T17:25:40.792288+00:00 Last Good Sync: 2020-08-25T17:25:39.925138+00:00

Exception:

  addon/backup/model/coordinator.py:148 (_sync)
  addon/backup/model/model.py:133 (sync)
  addon/backup/model/model.py:216 (_syncSnapshots)
  addon/backup/drive/drivesource.py:87 (get)
  addon/backup/drive/driverequests.py:169 (query)
  addon/backup/drive/driverequests.py:330 (retryRequest)
  addon/backup/creds/driverequester.py:29 (request)
  addon/backup/tracing_session.py:20 (_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

Snapshots:

 {
    "HomeAssistant": {
        "snapshots": 7,
        "retained": 0,
        "deletable": 7,
        "name": "HomeAssistant",
        "latest": "2020-08-25T07:17:57Z",
        "size": "3.2 GB"
    },
    "GoogleDrive": {
        "snapshots": 0,
        "retained": 0,
        "deletable": 0,
        "name": "GoogleDrive",
        "latest": null,
        "size": "0.0 B"
    }
}
Config:
 {
    "Setting.MAX_SNAPSHOTS_IN_HASSIO": 7,
    "Setting.MAX_SNAPSHOTS_IN_GOOGLE_DRIVE": 30,
    "Setting.DAYS_BETWEEN_SNAPSHOTS": 1.0,
    "Setting.SNAPSHOT_TIME_OF_DAY": "09:00",
    "Setting.GENERATIONAL_DAYS": 7,
    "Setting.GENERATIONAL_WEEKS": 4,
    "Setting.GENERATIONAL_MONTHS": 12,
    "Setting.GENERATIONAL_YEARS": 1,
    "Setting.GENERATIONAL_DAY_OF_WEEK": "fri",
    "Setting.GENERATIONAL_DELETE_EARLY": true,
    "Setting.SEND_ERROR_REPORTS": true,
    "Setting.CONFIRM_MULTIPLE_DELETES": false,
    "Setting.IGNORE_IPV6_ADDRESSES": true
}
Addon Logs:
 08-25 17:25:37 DEBUG [backup.drive.driverequests] Sending 10485760 bytes to Google Drive
08-25 17:25:37 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUntZuD4ldXq5WGtCXCfhl4tjsEcsHTD64Y-VTDc0frX-Mpm83KSOhrKMFiL0Fh1wYF_OcvPIzY0qFTtcsTdMD0x1xIAoQ
08-25 17:25: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:265 (create)
  addon/backup/drive/driverequests.py:330 (retryRequest)
  addon/backup/creds/driverequester.py:29 (request)
  addon/backup/tracing_session.py:20 (_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-25 17:25:37 INFO [backup.model.coordinator] I'll try again in an hour
08-25 18:25:38 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-25 18:25:38 INFO [backup.model.coordinator] Syncing Snapshots
08-25 18:25:38 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-25 18:25:38 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
08-25 18:25:38 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-25 18:25:38 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-25 18:25:39 INFO [backup.drive.drivesource] Uploading 'Full Snapshot 2020-08-25 09:17:56' to Google Drive
08-25 18:25:39 DEBUG [backup.drive.driverequests] Attempting to resume a previosuly failed upload where we left off
08-25 18:25:39 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUntZuD4ldXq5WGtCXCfhl4tjsEcsHTD64Y-VTDc0frX-Mpm83KSOhrKMFiL0Fh1wYF_OcvPIzY0qFTtcsTdMD0x1xIAoQ
08-25 18:25:39 DEBUG [backup.drive.driverequests] Resuming upload at byte 29360128 of 530790400
08-25 18:25:39 DEBUG [backup.drive.driverequests] Sending 262144 bytes to Google Drive
08-25 18:25:39 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUntZuD4ldXq5WGtCXCfhl4tjsEcsHTD64Y-VTDc0frX-Mpm83KSOhrKMFiL0Fh1wYF_OcvPIzY0qFTtcsTdMD0x1xIAoQ
08-25 18:25:39 DEBUG [backup.drive.drivesource] Uploading Full Snapshot 2020-08-25 09:17:56 5.58%
08-25 18:25:39 DEBUG [backup.drive.driverequests] Sending 9437184 bytes to Google Drive
08-25 18:25:39 DEBUG [backup.drive.driverequests] Making Google Drive request: https://www.googleapis.com/upload/drive/v3/files/?uploadType=resumable&supportsAllDrives=true&upload_id=AAANsUntZuD4ldXq5WGtCXCfhl4tjsEcsHTD64Y-VTDc0frX-Mpm83KSOhrKMFiL0Fh1wYF_OcvPIzY0qFTtcsTdMD0x1xIAoQ
08-25 18:25:39 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:265 (create)
  addon/backup/drive/driverequests.py:330 (retryRequest)
  addon/backup/creds/driverequester.py:29 (request)
  addon/backup/tracing_session.py:20 (_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-25 18:25:39 INFO [backup.model.coordinator] I'll try again in an hour
08-25 19:25:39 DEBUG [backup.model.syncer] Sync requested by Coordinator
08-25 19:25:39 INFO [backup.model.coordinator] Syncing Snapshots
08-25 19:25:39 DEBUG [backup.ha.harequests] Making Hassio request: http://hassio/snapshots
08-25 19:25:39 DEBUG [backup.drive.driverequests] Requesting refreshed Google Drive credentials
08-25 19:25:40 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-25 19:25:40 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-25 19:25:40 ERROR [backup.model.coordinator] 
  addon/backup/model/coordinator.py:148 (_sync)
  addon/backup/model/model.py:133 (sync)
  addon/backup/model/model.py:216 (_syncSnapshots)
  addon/backup/drive/drivesource.py:87 (get)
  addon/backup/drive/driverequests.py:169 (query)
  addon/backup/drive/driverequests.py:330 (retryRequest)
  addon/backup/creds/driverequester.py:29 (request)
  addon/backup/tracing_session.py:20 (_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-25 19:25:40 INFO [backup.model.coordinator] I'll try again in an hour
08-25 19:25:50 INFO [backup.debugworker] Sending error report (see settings to disable)
Supervisor Logs:
 20-08-25 15:25:35 INFO (MainThread) [supervisor.api.security] /snapshots access from cebe7a76_hassio_google_drive_backup
20-08-25 15:25:36 INFO (MainThread) [supervisor.api.security] /snapshots/a59f4733/download access from cebe7a76_hassio_google_drive_backup
20-08-25 15:25:36 INFO (MainThread) [supervisor.api.snapshots] Download snapshot a59f4733
20-08-25 15:25:36 INFO (MainThread) [supervisor.api.security] /snapshots/a59f4733/download access from cebe7a76_hassio_google_drive_backup
20-08-25 15:25:36 INFO (MainThread) [supervisor.api.snapshots] Download snapshot a59f4733
20-08-25 15:40:30 INFO (MainThread) [supervisor.updater] Fetch update data from https://version.home-assistant.io/stable.json
20-08-25 15:41:49 INFO (MainThread) [supervisor.homeassistant] Updated Home Assistant API token
20-08-25 16:11:57 INFO (MainThread) [supervisor.homeassistant] Updated Home Assistant API token
20-08-25 16:25:38 INFO (MainThread) [supervisor.api.security] /snapshots access from cebe7a76_hassio_google_drive_backup
20-08-25 16:25:39 INFO (MainThread) [supervisor.api.security] /snapshots/a59f4733/download access from cebe7a76_hassio_google_drive_backup
20-08-25 16:25:39 INFO (MainThread) [supervisor.api.snapshots] Download snapshot a59f4733
20-08-25 16:25:39 INFO (MainThread) [supervisor.api.security] /snapshots/a59f4733/download access from cebe7a76_hassio_google_drive_backup
20-08-25 16:25:39 INFO (MainThread) [supervisor.api.snapshots] Download snapshot a59f4733
20-08-25 16:42:06 INFO (MainThread) [supervisor.homeassistant] Updated Home Assistant API token
20-08-25 17:12:13 INFO (MainThread) [supervisor.homeassistant] Updated Home Assistant API token
20-08-25 17:13:50 INFO (MainThread) [supervisor.host.info] Update local host information
20-08-25 17:13:50 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-08-25 17:13:51 INFO (MainThread) [supervisor.host.services] Update service information
20-08-25 17:13:51 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-08-25 17:13:51 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-08-25 17:13:51 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-08-25 17:13:51 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-08-25 17:25:39 INFO (MainThread) [supervisor.api.security] /snapshots access from cebe7a76_hassio_google_drive_backup
20-08-25 17:29:30 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
20-08-25 17:30:08 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
20-08-25 17:30:30 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
20-08-25 17:30:33 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
20-08-25 17:30:46 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
20-08-25 17:30:51 INFO (MainThread) [supervisor.api.security] /supervisor/logs access from cebe7a76_hassio_google_drive_backup
Home Assistant Core Logs:
 2020-08-25 19:29:19 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.239
2020-08-25 19:29:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.plug_158d00023ff4fc is taking over 10 seconds
2020-08-25 19:29:24 ERROR (SyncWorker_8) [xiaomi_gateway] Cannot connect to Gateway
2020-08-25 19:29:24 ERROR (SyncWorker_8) [xiaomi_gateway] No data in response from hub None
2020-08-25 19:29:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.115
2020-08-25 19:29:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.240
2020-08-25 19:29:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.239
2020-08-25 19:29:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.124
2020-08-25 19:29:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.90
2020-08-25 19:30:19 ERROR (MainThread) [frontend.js.latest.202008110] :0:0 Script error.
2020-08-25 19:30:19 ERROR (MainThread) [frontend.js.latest.202008110] :0:0 Script error.
2020-08-25 19:30:19 ERROR (MainThread) [frontend.js.latest.202008110] :0:0 Script error.
2020-08-25 19:30:19 ERROR (MainThread) [frontend.js.latest.202008110] :0:0 Script error.
2020-08-25 19:30:19 ERROR (MainThread) [frontend.js.latest.202008110] :0:0 Script error.
2020-08-25 19:30:19 ERROR (MainThread) [frontend.js.latest.202008110] :0:0 Script error.
2020-08-25 19:30:19 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.115
2020-08-25 19:30:19 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.239
2020-08-25 19:30:19 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.124
2020-08-25 19:30:19 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.240
2020-08-25 19:30:19 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.90
2020-08-25 19:30:21 ERROR (SyncWorker_51) [homeassistant.components.onvif] Fetch snapshot image failed from DS-2CD754FWD-EI, falling back to FFmpeg; ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer'))
2020-08-25 19:30:34 ERROR (MainThread) [frontend.js.latest.202008110] :0:0 Script error.
2020-08-25 19:30:42 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Error occurred while communicating with IPP server.
2020-08-25 19:30:42 WARNING (MainThread) [homeassistant.config_entries] Config entry for ipp not ready yet. Retrying in 80 seconds
2020-08-25 19:30:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.115
2020-08-25 19:30:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.240
2020-08-25 19:30:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.239
2020-08-25 19:30:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.90
2020-08-25 19:30:49 ERROR (MainThread) [homeassistant.components.xiaomi_miio.light] Got exception while fetching the state: Unable to discover the device 192.168.2.124
NapalmCandy commented 4 years ago

Please can you help me?

I have problems since some months ago

NapalmCandy commented 3 years ago

Please.... 😭

NapalmCandy commented 3 years ago

Hello?

Why are you ignoring me?