hassio-onedrive-backup
hassio-onedrive-backup copied to clipboard
Upload doesnt work at all
Hassio is in Proxmox. OneDrive account as a part of Microsoft. Family plan. 1TB free
05/08/2024 11:37:26 [29] Info: Uploading 7.05 (05/07/2024 21:20:00) 05/08/2024 11:37:26 [29] Info: Fetching Local Backup (Slug:f0e613c7) 05/08/2024 11:37:27 [27] Info: Backup (f0e613c7) fetched successfully 05/08/2024 11:37:31 [27] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 228
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/08/2024 11:37:33 [26] Info: Reached Max Local Backups (2) 05/08/2024 11:37:33 [26] Info: Removing 1 local backups 05/08/2024 11:42:24 [28] Info: Found 1 backups to upload. 05/08/2024 11:42:24 [28] Info: Uploading hass_backup_2024-05-08-11-34 (05/08/2024 11:34:04) 05/08/2024 11:42:24 [28] Info: Fetching Local Backup (Slug:f11b8d2a) 05/08/2024 11:42:24 [33] Info: Backup (f11b8d2a) fetched successfully 05/08/2024 11:42:26 [28] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 228
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/08/2024 11:43:37 [32] Info: Uploading hass_backup_2024-05-08-11-34 (05/08/2024 11:34:04) 05/08/2024 11:43:37 [32] Info: Fetching Local Backup (Slug:f11b8d2a) 05/08/2024 11:43:37 [34] Info: Backup (f11b8d2a) fetched successfully 05/08/2024 11:43:38 [34] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 228
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/08/2024 11:46:46 [43] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 228
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 399 05/08/2024 11:47:27 [48] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 228
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 399 05/08/2024 11:47:37 [15] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 [1] Info: No new settings file. Attempting to restore from legacy configuration 05/08/2024 11:49:09 [4] Info: Anonymous Telemetry Disabled 05/08/2024 11:49:09 [4] Info: Backup interval configured to every 24 hours 05/08/2024 11:49:09 [4] Warning: Token cache is empty 05/08/2024 11:49:11 [12] Info: To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code L3QP6EH6J to authenticate. 05/08/2024 11:51:30 [18] Info: Found 1 backups to upload. 05/08/2024 11:51:30 [18] Info: Uploading hass_backup_2024-05-08-11-34 (05/08/2024 11:34:04) 05/08/2024 11:51:30 [18] Info: Fetching Local Backup (Slug:f11b8d2a) 05/08/2024 11:51:30 [13] Info: Backup (f11b8d2a) fetched successfully 05/08/2024 11:51:32 [13] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/08/2024 11:52:00 [17] Info: Uploading hass_backup_2024-05-08-11-34 (05/08/2024 11:34:04) 05/08/2024 11:52:00 [17] Info: Fetching Local Backup (Slug:f11b8d2a) 05/08/2024 11:52:00 [18] Info: Backup (f11b8d2a) fetched successfully 05/08/2024 11:52:01 [18] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/08/2024 11:56:31 [25] Info: Found 1 backups to upload. 05/08/2024 11:56:31 [16] Info: Uploading hass_backup_2024-05-08-11-34 (05/08/2024 11:34:04) 05/08/2024 11:56:31 [16] Info: Fetching Local Backup (Slug:f11b8d2a) 05/08/2024 11:56:31 [22] Info: Backup (f11b8d2a) fetched successfully 05/08/2024 11:56:32 [22] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/08/2024 11:56:59 [27] Info: Uploading hass_backup_2024-05-08-11-34 (05/08/2024 11:34:04) 05/08/2024 11:56:59 [27] Info: Fetching Local Backup (Slug:f11b8d2a) 05/08/2024 11:56:59 [22] Info: Backup (f11b8d2a) fetched successfully 05/08/2024 11:57:01 [17] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361
What backup is it trying to upload ? Was it one created outside the addon ? The log in the beginning is showing the backup name as 7.05.
What backup is it trying to upload ? Was it one created outside the addon ? The log in the beginning is showing the backup name as 7.05.
it was backup after HA restore. Plugin can generate new backups (which he did overnight) but can't upload them to my one drive.
'Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/09/2024 08:26:20 [11] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/09/2024 08:31:20 [24] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/09/2024 08:36:21 [31] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/09/2024 08:41:23 [32] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/09/2024 08:46:24 [36] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/09/2024 08:48:33 [43] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at '
Could you change the Log Level to "Verbose" and send the following lines before upload:
- "Uploading {BACKUPNAME} {BACKUPDATE}"
- Backup Description: {DESCRIPTION}
The first one should be visible at "Info" level. Second one is only visible on "Verbose".
'Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361
05/09/2024 12:22:13 [17] Verbose: Backup size to upload: 0.23GB
05/09/2024 12:22:13 [17] Info: Uploading hass_backup_2024-05-09-08-51 (05/09/2024 08:51:59)
05/09/2024 12:22:13 [17] Info: Fetching Local Backup (Slug:9da86b3e)
05/09/2024 12:22:13 [17] Info: Backup (9da86b3e) fetched successfully
05/09/2024 12:22:13 [17] Verbose: Backup Description: {"Slug":"9da86b3e","BackupDate":"2024-05-09T08:51:59.384608+01:00","InstanceName":null,"IsProtected":false,"Size":229.25,"BackupType":"partial","Addons":[],"Folders":["addons/local","share"]}
05/09/2024 12:22:15 [13] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory
1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory
1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action
1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action
2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361'
and for full backup:
Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361
05/09/2024 12:30:45 [22] Verbose: Backup size to upload: 0.22GB
05/09/2024 12:30:45 [22] Info: Uploading hass_backup_2024-05-08-11-34 (05/08/2024 11:34:04)
05/09/2024 12:30:45 [22] Info: Fetching Local Backup (Slug:f11b8d2a)
05/09/2024 12:30:46 [23] Info: Backup (f11b8d2a) fetched successfully
05/09/2024 12:30:46 [23] Verbose: Backup Description: {"Slug":"f11b8d2a","BackupDate":"2024-05-08T11:34:04.674463+01:00","InstanceName":null,"IsProtected":false,"Size":216.28,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
05/09/2024 12:30:47 [19] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory
1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory
1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action
1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action
2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361
05/09/2024 12:31:16 [19] Verbose: File Sync Disabled...
Hello,
I have the same issue here. But i installed the addoon today. I had never bevore this addon installed.
My verbose log looks like the same:
05/18/2024 19:28:46 [25] Info: Found 1 backups to upload. 05/18/2024 19:28:46 [25] Verbose: Backup size to upload: 2.24GB 05/18/2024 19:28:46 [25] Info: Uploading HA_backup_2024-05-18-19-08 (05/18/2024 19:08:32) 05/18/2024 19:28:46 [25] Info: Fetching Local Backup (Slug:ebbf8ba4) 05/18/2024 19:28:57 [14] Info: Backup (ebbf8ba4) fetched successfully 05/18/2024 19:29:11 [14] Verbose: Backup Description: {"Slug":"ebbf8ba4","BackupDate":"2024-05-18T19:08:32.184796+02:00","InstanceName":null,"IsProtected":true,"Size":2238.91,"BackupType":"partial","Addons":[],"Folders":["addons/local","ssl"]} 05/18/2024 19:29:11 [27] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/18/2024 19:29:12 [14] Verbose: Evaluating Online Generational Backups 05/18/2024 19:29:12 [14] Verbose: Found 0 OneDrive backups that can be removed (Generational Rules)
The Addon creates two folders on my onedrive. Apps Apps/Graph But the folders are empty i hope it helps
Thank You, regards Denis
Hello,
I have the same issue here. But i installed the addoon today. I had never bevore this addon installed.
My verbose log looks like the same:
05/18/2024 19:28:46 [25] Info: Found 1 backups to upload. 05/18/2024 19:28:46 [25] Verbose: Backup size to upload: 2.24GB 05/18/2024 19:28:46 [25] Info: Uploading HA_backup_2024-05-18-19-08 (05/18/2024 19:08:32) 05/18/2024 19:28:46 [25] Info: Fetching Local Backup (Slug:ebbf8ba4) 05/18/2024 19:28:57 [14] Info: Backup (ebbf8ba4) fetched successfully 05/18/2024 19:29:11 [14] Verbose: Backup Description: {"Slug":"ebbf8ba4","BackupDate":"2024-05-18T19:08:32.184796+02:00","InstanceName":null,"IsProtected":true,"Size":2238.91,"BackupType":"partial","Addons":[],"Folders":["addons/local","ssl"]} 05/18/2024 19:29:11 [27] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361 05/18/2024 19:29:12 [14] Verbose: Evaluating Online Generational Backups 05/18/2024 19:29:12 [14] Verbose: Found 0 OneDrive backups that can be removed (Generational Rules)
The Addon creates two folders on my onedrive. Apps Apps/Graph But the folders are empty i hope it helps
Thank You, regards Denis
I gave up this add on. Looks like the developer doesn't have any plan to fix it.
I have plans to fix any / every issue with the addon not functioning properly. Just been very busy with work last few weeks. Also, this seems like an underlying error in the Microsoft graph libraries with unfortunately, a non informative error making it pretty hard to diagnose. I have attempted to reproduce this on some theories but haven't been successful thus far.
@d3nis798 - The folders in your OneDrive do not look right. You should have Apps/hassio-onedrive-backup Graph is not something this addon is creating. Do you not see the onedrive backup folder under Apps ?
I have plans to fix any / every issue with the addon not functioning properly. Just been very busy with work last few weeks. Also, this seems like an underlying error in the Microsoft graph libraries with unfortunately, a non informative error making it pretty hard to diagnose. I have attempted to reproduce this on some theories but haven't been successful thus far.
@d3nis798 - The folders in your OneDrive do not look right. You should have Apps/hassio-onedrive-backup Graph is not something this addon is creating. Do you not see the onedrive backup folder under Apps ?
No I have only this 2 folders. I do not have created the folder graph this is also created by this addon. I have deleted the main „Apps“ folder and restart the addon then it crates both folders.
Have exactly the same problem:
05/28/2024 20:15:59 [11] Verbose: Backup size to upload: 0.99GB
05/28/2024 20:15:59 [11] Info: Uploading hass_backup_2024-05-28-19-53 (05/28/2024 19:53:17)
05/28/2024 20:15:59 [11] Info: Fetching Local Backup (Slug:1ff47869)
05/28/2024 20:16:00 [11] Info: Backup (1ff47869) fetched successfully
05/28/2024 20:16:00 [11] Verbose: Backup Description: {"Slug":"1ff47869","BackupDate":"2024-05-28T19:53:17.958757+02:00","InstanceName":null,"IsProtected":false,"Size":994.15,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
05/28/2024 20:16:01 [6] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory
1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory
1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action
1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action
2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361
On onedrive new folder Apps with Graph (created during add-on startup)
same here. no uploads possible.fresh install.
So @T030288 , @wimpie007 - For both of you the only folders you see in your OneDrive under the Apps folder is "Graph" ? Are these regular Personal OneDrive accounts ?
So @T030288 , @wimpie007 - For both of you the only folders you see in your OneDrive under the Apps folder is "Graph" ? Are these regular Personal OneDrive accounts ?
for my OneDrive on Family Plan it looks like this:
I have Family Plan to.
My folder: (inside the Graph folder are no files and diretories)
identical situation here.
Graph folder is empty.
personal account.
Something does not add up. The folder name that should be created for Personal accounts is automatically created using the application name. Could you please go to the app permissions in your MS account here
Fine hassio-onedrive-backup in the list and look at the details:
Should look like this:
Please share what you see there.
@lavinir it looks like yours (only in dutch ;) )
hassio-onedrive-backup can create, delete,... files.
Thanks, I was mostly interested in the first permission noting that the access is to the "app's folder" Let's try one more thing and if it still does not create the appropriate folder I think the next step is to open an Issue with Microsoft's Graph SDK.
Would you try disabling the app permissions (Delen Stoppen :)) and then reauthenticating in the addon. Then see if the correct folder is created. If not I'll move to open an issue but will probably need your help with some of the details.
Tried it, but same error06/04/2024 20:13:08 [10] Info: To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code xxxxxxxx to authenticate.
06/04/2024 20:15:14 [16] Info: Found 1 backups to upload.
06/04/2024 20:15:14 [16] Info: Uploading hass_backup_2024-06-02-22-37 (06/02/2024 22:37:12)
06/04/2024 20:15:14 [16] Info: Fetching Local Backup (Slug:495eeeb2)
06/04/2024 20:15:14 [16] Info: Backup (495eeeb2) fetched successfully
06/04/2024 20:15:17 [17] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory
1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory
1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action
1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action
2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361
And the folders in OneDrive under /apps remained the same ? Just Graph ? Could you please try one more thing - Turn on File Sync for some folder. Can contain just a small file. I want to see what happens when it tries to upload that.
I will try to open an Issue with the MS Graph SDK and see what traction I can get there.
Sorry. I opened a topic in the discussions section before I found thiss issue. Please close or delete.
Same behaviour here: I am always geting an error trying to upload to OneDrive.
Log:
06/11/2024 13:28:06 [43] Info: Found 1 backups to upload.
06/11/2024 13:28:06 [43] Info: Uploading hass_backup_2024-06-10-17-23 (06/10/2024 17:23:15)
06/11/2024 13:28:06 [43] Info: Fetching Local Backup (Slug:e58633ca)
06/11/2024 13:28:06 [45] Info: Backup (e58633ca) fetched successfully
06/11/2024 13:28:09 [45] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary`2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory`1 factory, Dictionary`2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory`1 factory, Dictionary`2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action`1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action`2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 228
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 399
I've checked in my microsoft account that hassio-onedrive-backup hast got full access to my OneDrive user folder.
I am on a family plan with 1TB of space. Contend of off Apps folder is just an empty Graph folder.
Any ideas?
@lavinir i dont quit understand what you mean by "Could you please try one more thing - Turn on File Sync for some folder. Can contain just a small file. I want to see what happens when it tries to upload that." Creating a file in Apps and graph dir didnt help either (except for a warning in the log that there is an unknown file, so it can read the content for sure)
I'm also experiencing the same issue it looks like. My logs look pretty similar to the above but I'll put them in here in case it's helpful at all.
06/21/2024 06:43:29 [19] Info: Found 2 backups to upload. 06/21/2024 06:43:29 [19] Verbose: Backup size to upload: 0.01GB 06/21/2024 06:43:29 [19] Info: Uploading hass_backup_2024-06-21-06-35 (06/21/2024 06:35:08) 06/21/2024 06:43:29 [19] Info: Fetching Local Backup (Slug:8da8dd68) 06/21/2024 06:43:29 [12] Info: Backup (8da8dd68) fetched successfully 06/21/2024 06:43:29 [12] Verbose: Backup Description: {"Slug":"8da8dd68","BackupDate":"2024-06-21T06:35:08.379207-05:00","InstanceName":null,"IsProtected":false,"Size":9.76,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]} 06/21/2024 06:43:30 [12] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponse(HttpResponseMessage response, Dictionary
2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary
2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Drives.Item.Items.Item.CreateUploadSession.CreateUploadSessionRequestBuilder.PostAsync(CreateUploadSessionPostRequestBody body, Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.UploadFileAsync(String filePath, DateTime date, String instanceName, TransferSpeedHelper transferSpeedHelper, String destinationFileName, Action
2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 161
at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361
Same here, hassio-onedrive-backup folder not created, Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request in logs.
@wimpie007 - I mean, i just want to make sure if uploads are working at all or if this is just the backups that are failing. The addon has the ability to sync files to OneDrive (outside of Backups). I'm interested to see if files can be uploaded at all. You can enable this in the addon settings and select a local path to sync. You can just add a single file there and let it sync.
Regardless, I went ahead and opened a bug on the Graph SDK repo. Will update on progress as it comes.
@lavinir . It seems that @wimpie007 doesn't know how to follow your request. And to be honest, I am not sure if I understood it right. I am willing to help if you give exact instructions what has to be done.
I understood it like that:
- Use the Home Asisstant file editor to create a folder parallel to the backup folder. I created a folder /test
- Create a file inside this folder. I created a file "file_24_07_31.txt" an put some random text inside
- Enter the newly created folder to the app in Settings - File Sync Path I entered /test in the file sync path field.
But now I can not see this file in the app anywhere. How do I triger the upload to OneDrive?
BTW: Inside my backup folders are just cryptical named .tar files. the filenames shown in the app can not be found there. Am I searching in the wrong folder?
@ronald-winter - I'm tracking an issue with the MS Graph repo. Could you maybe help with some information - Could you share the Backup Name you are using and the Instance Name (if any)
Hi there,I'm using the default backup name, hass_backup (all lower case), followed by date and time. For example: hass_backup_2024-08-05-12-57No instance name.Mit freundlichen Grüßen,Ronald Winter-------- Ursprüngliche Nachricht --------Von: lavinir @.>Datum: Mo., 5. Aug. 2024, 14:58An: lavinir/hassio-onedrive-backup @.>Cc: ronald-winter @.>, Mention @.>Betreff: Re: [lavinir/hassio-onedrive-backup] Upload doesnt work at all (Issue #209) @ronald-winter - I'm tracking an issue with the MS Graph repo. Could you maybe help with some information - Could you share the Backup Name you are using and the Instance Name (if any)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Hi, This topic seems to address a very similar issue https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2335
/Michael