Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Important - Access Is Denied Error. Cannot grant Consent - Fixed in 2.3.5 #247

Closed
lavinir opened this issue Nov 17, 2024 · 93 comments
Closed

Comments

@lavinir
Copy link
Owner

lavinir commented Nov 17, 2024

Hello everyone,

There has been an explosion of issues on this topic in the recent couple of weeks that did not make sense to me and I hadn't noticed any changes as my instance was working fine but the amount of reported issues seemed too many to chalk up to specific edge cases.

Long story short, I took at look at my Microsoft App Registration and found this warning:
image

I will start working on making this happen and update here.

@lavinir
Copy link
Owner Author

lavinir commented Nov 17, 2024

Update: I've updated the App manifest so that I only works for Personal Accounts to mitigate this (It was set as multi-tenant as place holder to support Business accounts in the future).

For anyone experiencing this, I'd appreciate if you can confirm whether this starts working immediately or whether a reauthentication is needed.

@Jesibu
Copy link

Jesibu commented Nov 17, 2024

Hi Lavinir,

restarted add-on. Same issue. Can you explain how to reauthenticate? then I'll check again

@lavinir
Copy link
Owner Author

lavinir commented Nov 17, 2024

Thanks @Jesibu

Well that sucks if a restart isn't enough. Unless there is some kind of caching that's going on that might resolve itself after a period of time.

I know it's a bummer but are you willing to uninstall and reinstall to see if it works going through the consent process again now?

@MightyMaster
Copy link

Hi Lavinir,

thank you for your effort on this Topic.

I reinstalled the the AddON, but relogin seems not to be possible.
Protokoll says:
11/17/2024 15:07:35 [11] Info: Anonymous Telemetry Disabled
11/17/2024 15:07:35 [11] Info: Backup interval configured to every 24 hours
11/17/2024 15:07:36 [11] Warning: Token cache is empty

But the Login Banner did not come like.
Maybe i did something wrong.
image

Thank you
Basti

@Jesibu
Copy link

Jesibu commented Nov 17, 2024

  1. deleted the addon
  2. deleted permission from MS Account
  3. restarted HA
  4. installed add-on again

No authentication prompt showing up and stuck at init
image

11/17/2024 14:24:56 [15] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243
11/17/2024 14:24:56 [15] Error: accessDenied: Access denied
11/17/2024 14:29:57 [21] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243
11/17/2024 14:29:57 [21] Error: accessDenied: Access denied
11/17/2024 14:34:58 [25] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243
11/17/2024 14:34:58 [25] Error: accessDenied: Access denied
11/17/2024 14:39:59 [15] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243
11/17/2024 14:39:59 [15] Error: accessDenied: Access denied
11/17/2024 14:45:00 [15] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243
11/17/2024 14:45:00 [26] Error: accessDenied: Access denied
11/17/2024 14:50:00 [26] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243
11/17/2024 14:50:01 [36] Error: accessDenied: Access denied
11/17/2024 14:52:42 [4] Info: Anonymous Telemetry Disabled
11/17/2024 14:52:42 [4] Info: Backup interval configured to every 24 hours
11/17/2024 14:52:45 [6] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243
11/17/2024 14:52:45 [14] Error: accessDenied: Access denied
11/17/2024 14:53:04 [14] Error: accessDenied: Access denied
11/17/2024 14:53:12 [10] Error: accessDenied: Access denied
11/17/2024 14:54:23 [4] Info: Anonymous Telemetry Disabled
11/17/2024 14:54:23 [4] Info: Backup interval configured to every 24 hours
11/17/2024 14:54:29 [10] Info: Anonymous Telemetry Disabled
11/17/2024 14:54:29 [10] Info: Backup interval configured to every 24 hours
11/17/2024 14:54:31 [11] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243
11/17/2024 14:54:33 [14] Error: accessDenied: Access denied
11/17/2024 14:59:33 [25] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243
11/17/2024 14:59:33 [25] Error: accessDenied: Access denied
11/17/2024 15:01:12 [4] Info: Anonymous Telemetry Disabled
11/17/2024 15:01:12 [4] Info: Backup interval configured to every 24 hours
11/17/2024 15:01:15 [11] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243
11/17/2024 15:01:16 [14] Error: accessDenied: Access denied
11/17/2024 15:01:56 [16] Info: Uploading hass_backup_2024-11-17-14-18 (11/17/2024 14:18:17)
11/17/2024 15:01:56 [16] Info: Fetching Local Backup (Slug:d89c874e)
11/17/2024 15:01:57 [17] Info: Backup (d89c874e) fetched successfully
11/17/2024 15:02:05 [10] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   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.Me.Drive.DriveRequestBuilder.GetAsync(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 158
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 361
11/17/2024 15:02:09 [10] Error: accessDenied: Access denied
 [1] Info: No new settings file. Attempting to restore from legacy configuration
11/17/2024 15:04:18 [4] Info: Anonymous Telemetry Disabled
11/17/2024 15:04:18 [4] Info: Backup interval configured to every 24 hours
11/17/2024 15:04:18 [4] Warning: Token cache is empty
 [1] Info: No new settings file. Attempting to restore from legacy configuration
11/17/2024 15:11:05 [4] Info: Anonymous Telemetry Disabled
11/17/2024 15:11:05 [4] Info: Backup interval configured to every 24 hours
11/17/2024 15:11:05 [4] Warning: Token cache is empty```

@lavinir
Copy link
Owner Author

lavinir commented Nov 17, 2024

Yes, after changing the App to Personal Accounts only I wasn't able to authenticate myself.. Turns out I need to change the Endpoint for authentication . I will have to release a hotfix update to address this.

Will try to get it out in the next couple of days. Sorry for the inconvenience.

@Jesibu
Copy link

Jesibu commented Nov 17, 2024

no worries, take your time.

if there is something new to test, I'll can help.

@4homeassistant
Copy link

I did exactly the same as @Jesibu and got the same results. Thank you @lavinir 😊

@Daverover66
Copy link

I'm glad I checked here before doing anything else. I noticed there hadn't been a backup for 10 days. Tried a manual backup, which worked, but only locally. Tried restarting the addon, got:

11/17/2024 17:36:15 [24] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied 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, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken)
at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken) at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 243 11/17/2024 17:36:15 [24] Error: accessDenied: Access denied

Interestingly, in the addon itself, the Configuration tab is blank?

onedrive

@0BanZai0
Copy link

Great to have found this... I thought I did something stupid.
I'm having the same issues and I'm hoping for a fix soon :)

@lavinir
Copy link
Owner Author

lavinir commented Nov 17, 2024

Let me know if anyone is willing to test a fix before I roll it out to the main branch. I'll try to get one out tomorrow.
(It will require adding another instance of the repository pointed to a different branch)

@Jesibu
Copy link

Jesibu commented Nov 17, 2024

Just give me a hint and I'm in for testing

@githuber110
Copy link

Same here. My backup check automation notified me that backup hasn't been processed for a couple of days.
I'm happy to assist in case of any testing. I moved to HA 2024.11. today and doing a manual back with samba instead of being comfortable having my onedrive backups prepared automatically. Keep up the great work with this add-on!

@lavinir
Copy link
Owner Author

lavinir commented Nov 18, 2024

@Jesibu , @githuber110

Please try to add another repository to the addon store:
https://github.com/lavinir/hassio-onedrive-backup#preview

That should allow you to install version 2.3.2

Please let me know if everything is working / there are any issues.

@githuber110
Copy link

@Jesibu , @githuber110

Please try to add another repository to the addon store: https://github.com/lavinir/hassio-onedrive-backup#preview

That should allow you to install version 2.3.2

Please let me know if everything is working / there are any issues.

I was able to install it. It shows the link and code to authenticate. I was able to go through the MS authentication process, it finishes successfully, but in the add-on it still stays "Initializing" and "You are not logged in".
image

@Titou84240
Copy link

Same here with preview install :

image

@paulgrbr
Copy link

Logging does also not work I guess:
Bildschirmfoto 2024-11-18 um 16 50 50

@lavinir
Copy link
Owner Author

lavinir commented Nov 18, 2024

@Jesibu , @githuber110

Please try to add another repository to the addon store: https://github.com/lavinir/hassio-onedrive-backup#preview

That should allow you to install version 2.3.2

Please let me know if everything is working / there are any issues.

I was able to install it. It shows the link and code to authenticate. I was able to go through the MS authentication process, it finishes successfully, but in the add-on it still stays "Initializing" and "You are not logged in".
image

I'm not sure why (can't repro locally) but I needed to do this twice on my instance as well. Please complete the login a second time and see if it works then

@paulgrbr
Copy link

@Jesibu , @githuber110
Please try to add another repository to the addon store: https://github.com/lavinir/hassio-onedrive-backup#preview
That should allow you to install version 2.3.2
Please let me know if everything is working / there are any issues.

I was able to install it. It shows the link and code to authenticate. I was able to go through the MS authentication process, it finishes successfully, but in the add-on it still stays "Initializing" and "You are not logged in".
image

I'm not sure why (can't repro locally) but I needed to do this twice on my instance as well. Please complete the login a second time and see if it works then

Bildschirmfoto 2024-11-18 um 16 59 28

After logging in twice it works.

@Titou84240
Copy link

Don't for me unfortunatly , same problem not logged in and the error :

11/18/2024 16:02:49 [19] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:02:50 [22] Error: accessDenied: Access denied
11/18/2024 16:07:50 [26] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:07:51 [25] Error: accessDenied: Access denied
11/18/2024 16:12:52 [28] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:12:52 [33] Error: accessDenied: Access denied
11/18/2024 16:17:53 [38] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:17:53 [40] Error: accessDenied: Access denied
11/18/2024 16:22:53 [38] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:22:54 [38] Error: accessDenied: Access denied
11/18/2024 16:27:54 [58] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:27:55 [60] Error: accessDenied: Access denied
11/18/2024 16:32:55 [65] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:32:56 [64] Error: accessDenied: Access denied
11/18/2024 16:37:56 [69] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:37:57 [64] Error: accessDenied: Access denied
11/18/2024 16:42:57 [71] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:42:58 [77] Error: accessDenied: Access denied
11/18/2024 16:47:58 [88] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:47:59 [83] Error: accessDenied: Access denied
11/18/2024 16:52:59 [84] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:52:59 [83] Error: accessDenied: Access denied
11/18/2024 16:58:00 [74] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 16:58:01 [80] Error: accessDenied: Access denied
[1] Info: No new settings file. Attempting to restore from legacy configuration
11/18/2024 16:59:44 [11] Info: Anonymous Telemetry Disabled
11/18/2024 16:59:44 [11] Info: Backup interval configured to every 24 hours
11/18/2024 16:59:47 [4] Info: To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code HZL6SSMX to authenticate.
11/18/2024 17:00:16 [15] Info: To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code FSLTVFJK to authenticate.
11/18/2024 17:01:00 [24] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Graph.Me.Drive.DriveRequestBuilder.GetAsync(Action1 requestConfiguration, CancellationToken cancellationToken)
at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 17:01:01 [25] Error: accessDenied: Access denied

@Jesibu
Copy link

Jesibu commented Nov 18, 2024

now I had time to try.

  • uninstalled old version
  • added preview repo
  • installed add-on
  • login was showing up and logged in twice

Login not successful:


 [1] Info: No new settings file. Attempting to restore from legacy configuration
11/18/2024 17:24:55 [4] Info: Anonymous Telemetry Disabled
11/18/2024 17:24:55 [4] Info: Backup interval configured to every 24 hours
11/18/2024 17:24:58 [10] Info: To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code ***** to authenticate.
11/18/2024 17:25:47 [6] Info: To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code ***** to authenticate.
11/18/2024 17:26:37 [3] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 17:26:38 [10] Error: accessDenied: Access denied
 [1] Info: No new settings file. Attempting to restore from legacy configuration
11/18/2024 17:27:28 [4] Info: Anonymous Telemetry Disabled
11/18/2024 17:27:28 [4] Info: Backup interval configured to every 24 hours
11/18/2024 17:27:31 [11] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 17:27:32 [14] Error: accessDenied: Access denied

@paulgrbr
Copy link

now I had time to try.

  • uninstalled old version
  • added preview repo
  • installed add-on
  • login was showing up and logged in twice

Login not successful:


 [1] Info: No new settings file. Attempting to restore from legacy configuration
11/18/2024 17:24:55 [4] Info: Anonymous Telemetry Disabled
11/18/2024 17:24:55 [4] Info: Backup interval configured to every 24 hours
11/18/2024 17:24:58 [10] Info: To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code ***** to authenticate.
11/18/2024 17:25:47 [6] Info: To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code ***** to authenticate.
11/18/2024 17:26:37 [3] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 17:26:38 [10] Error: accessDenied: Access denied
 [1] Info: No new settings file. Attempting to restore from legacy configuration
11/18/2024 17:27:28 [4] Info: Anonymous Telemetry Disabled
11/18/2024 17:27:28 [4] Info: Backup interval configured to every 24 hours
11/18/2024 17:27:31 [11] Error: Error getting free space: Microsoft.Graph.Models.ODataErrors.ODataError: Access denied
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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.Me.Drive.DriveRequestBuilder.GetAsync(Action`1 requestConfiguration, CancellationToken cancellationToken)
   at hassio_onedrive_backup.Graph.GraphHelper.GetFreeSpaceInGB() in /src/Graph/GraphHelper.cs:line 257
11/18/2024 17:27:32 [14] Error: accessDenied: Access denied

Did you also delete the config while deleting the add-on? Had it checked and reinstalled it...

@Jesibu
Copy link

Jesibu commented Nov 18, 2024

Yes I checked the toggle to delete all data permanently

image

This is strange because the Storage check is not on the code any more. Maybe my uninstall is not working properly

@mikeynp
Copy link

mikeynp commented Nov 20, 2024

Same issues as others. Reinstalled the add-on v2.3.5, successfully authenticated with OneDrive using the code in the WebUI. I only have local backups and not able to upload to OneDrive (invalid request) along with errors about "unrecognized file found in backup folder", which only contain backups previously generated by the add-on.

Screenshot 2024-11-20 at 17 54 47

11/20/2024 17:50:54 [11] Info: Anonymous Telemetry Disabled
11/20/2024 17:50:54 [11] Info: Backup interval configured to every 24 hours
11/20/2024 17:50:54 [11] Info: Backups / Syncs will only run during these hours: 1,2
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-23-01-19.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-24-01-19.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-25-01-20.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-26-01-20.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-27-01-21.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-28-01-21.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-29-01-22.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-30-01-22.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-31-01-23.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-01-01-23.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-02-01-24.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-03-01-25.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-04-01-26.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-05-01-27.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-06-01-27.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-07-01-29.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-08-01-30.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-09-01-31.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-10-01-31.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-11-01-32.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-12-01-33.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-13-01-34.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-14-01-35.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-15-01-36.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-16-01-36.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-17-01-37.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-18-01-38.tar
11/20/2024 17:50:59 [6] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-19-01-39.tar
11/20/2024 17:50:59 [6] Info: Found 8 backups to upload.
11/20/2024 17:50:59 [6] Info: Uploading hass_backup_2024-11-20-17-50 (11/20/2024 17:50:07)
11/20/2024 17:50:59 [6] Info: Fetching Local Backup (Slug:9edfeabe)
11/20/2024 17:51:03 [4] Info: Backup (9edfeabe) fetched successfully
11/20/2024 17:51:04 [4] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 209
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 387
11/20/2024 17:51:05 [4] Info: Uploading hass_backup_2024-11-20-17-31 (11/20/2024 17:31:02)
11/20/2024 17:51:05 [4] Info: Fetching Local Backup (Slug:f9079e55)
11/20/2024 17:51:07 [10] Info: Backup (f9079e55) fetched successfully
11/20/2024 17:51:09 [10] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 209
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 387
11/20/2024 17:51:09 [10] Info: Uploading hass_backup_2024-11-19-01-39 (11/19/2024 01:39:01)
11/20/2024 17:51:09 [10] Info: Fetching Local Backup (Slug:d9ed1fbe)
11/20/2024 17:51:12 [14] Info: Backup (d9ed1fbe) fetched successfully
11/20/2024 17:51:14 [16] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 209
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 387
11/20/2024 17:51:14 [16] Info: Uploading hass_backup_2024-11-18-01-38 (11/18/2024 01:38:17)
11/20/2024 17:51:14 [16] Info: Fetching Local Backup (Slug:f169036e)
11/20/2024 17:51:16 [10] Info: Backup (f169036e) fetched successfully
11/20/2024 17:51:17 [4] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 209
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 387
11/20/2024 17:51:18 [4] Info: Uploading hass_backup_2024-11-17-01-37 (11/17/2024 01:37:34)
11/20/2024 17:51:18 [4] Info: Fetching Local Backup (Slug:ea47e41b)
11/20/2024 17:51:20 [16] Info: Backup (ea47e41b) fetched successfully
11/20/2024 17:51:22 [15] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 209
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 387
11/20/2024 17:51:22 [15] Info: Uploading hass_backup_2024-11-16-01-36 (11/16/2024 01:36:50)
11/20/2024 17:51:22 [15] Info: Fetching Local Backup (Slug:0433a4a5)
11/20/2024 17:51:25 [17] Info: Backup (0433a4a5) fetched successfully
11/20/2024 17:51:26 [17] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 209
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 387
11/20/2024 17:51:26 [17] Info: Uploading hass_backup_2024-11-15-01-36 (11/15/2024 01:36:06)
11/20/2024 17:51:26 [17] Info: Fetching Local Backup (Slug:53d11177)
11/20/2024 17:51:29 [16] Info: Backup (53d11177) fetched successfully
11/20/2024 17:51:31 [17] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 209
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 387
11/20/2024 17:51:31 [17] Info: Uploading hass_backup_2024-11-14-01-35 (11/14/2024 01:35:12)
11/20/2024 17:51:31 [17] Info: Fetching Local Backup (Slug:4587e52b)
11/20/2024 17:51:34 [4] Info: Backup (4587e52b) fetched successfully
11/20/2024 17:51:35 [4] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 276
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 387
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-23-01-19.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-24-01-19.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-25-01-20.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-26-01-20.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-27-01-21.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-28-01-21.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-29-01-22.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-30-01-22.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-31-01-23.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-01-01-23.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-02-01-24.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-03-01-25.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-04-01-26.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-05-01-27.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-06-01-27.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-07-01-29.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-08-01-30.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-09-01-31.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-10-01-31.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-11-01-32.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-12-01-33.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-13-01-34.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-14-01-35.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-15-01-36.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-16-01-36.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-17-01-37.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-18-01-38.tar
11/20/2024 17:51:37 [16] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-19-01-39.tar
11/20/2024 17:51:37 [16] Info: Reached Max Local Backups (7)
11/20/2024 17:51:37 [16] Info: Removing 1 local backups
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-23-01-19.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-24-01-19.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-25-01-20.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-26-01-20.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-27-01-21.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-28-01-21.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-29-01-22.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-30-01-22.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-31-01-23.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-01-01-23.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-02-01-24.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-03-01-25.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-04-01-26.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-05-01-27.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-06-01-27.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-07-01-29.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-08-01-30.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-09-01-31.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-10-01-31.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-11-01-32.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-12-01-33.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-13-01-34.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-14-01-35.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-15-01-36.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-16-01-36.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-17-01-37.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-18-01-38.tar
11/20/2024 17:51:40 [4] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-19-01-39.tar

@mrochette01
Copy link

Hello, I uninstalled and reinstalled. I have exactly the same result as mikeynp

@standbrot
Copy link

Hi the majority of the time i was lurking about this topic. Don't know if my input could help.

I've also updated the addon but didn't got an upload.
Then, I uninstalled the addon and switched the toggle to delete all data with it.
I deleted the permission in MS as well as the folder Apps in my OneDrive.
After reinstallation and successful logging in, I could see all my local backups but didn't get an upload.

Core 2024.11.2
Supervisor 2024.11.3
Operating System 13.2
Frontend 20241106.2

I've installed HA as a VM over Proxmox (AMD Mini PC).
I also have the Cloudflared Add On installed.

11/20/2024 19:30:04 [59] Verbose: Backup Description: {"Slug":"3ab13022","BackupDate":"2024-11-20T16:40:28.127448+01:00","InstanceName":null,"IsProtected":false,"Size":0.01,"BackupType":"partial","Addons":[],"Folders":[]}
11/20/2024 19:30:05 [66] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/5379B6709FC9707E/items/5379B6709FC9707E%21s6b71928c844d4fd7ba0199493e7e2f9d:/addon_de91e161_hassio_onedrive_backup_2.3.1.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u00223ab13022\u0022,\u0022BackupDate\u0022:\u00222024-11-20T16:40:28.127448\u002B01:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:0.01,\u0022BackupType\u0022:\u0022partial\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[]}"}}
11/20/2024 19:30:05 [59] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 276
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/20/2024 19:30:05 [59] Verbose: Backup size to upload: 0.05GB
11/20/2024 19:30:05 [59] Info: Uploading 2024-11-16 03:00:00 (11/16/2024 03:00:00)
11/20/2024 19:30:05 [59] Info: Fetching Local Backup (Slug:d53523e2)
11/20/2024 19:30:05 [66] Info: Backup (d53523e2) fetched successfully
11/20/2024 19:30:06 [66] Verbose: Backup Description: {"Slug":"d53523e2","BackupDate":"2024-11-16T03:00:00.34819+01:00","InstanceName":null,"IsProtected":false,"Size":46.92,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/20/2024 19:30:06 [66] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/5379B6709FC9707E/items/5379B6709FC9707E%21s6b71928c844d4fd7ba0199493e7e2f9d:/2024-11-16 03_00_00.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u0022d53523e2\u0022,\u0022BackupDate\u0022:\u00222024-11-16T03:00:00.34819\u002B01:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:46.92,\u0022BackupType\u0022:\u0022full\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[\u0022share\u0022,\u0022addons/local\u0022,\u0022ssl\u0022,\u0022media\u0022]}"}}
11/20/2024 19:30:06 [64] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 276
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/20/2024 19:30:06 [64] Verbose: Backup size to upload: 0.05GB
11/20/2024 19:30:06 [64] Info: Uploading 2024-11-15 03:00:00 (11/15/2024 03:00:00)
11/20/2024 19:30:06 [64] Info: Fetching Local Backup (Slug:56ec0ae8)
11/20/2024 19:30:06 [66] Info: Backup (56ec0ae8) fetched successfully
11/20/2024 19:30:06 [66] Verbose: Backup Description: {"Slug":"56ec0ae8","BackupDate":"2024-11-15T03:00:00.193301+01:00","InstanceName":null,"IsProtected":false,"Size":45.98,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/20/2024 19:30:07 [64] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/5379B6709FC9707E/items/5379B6709FC9707E%21s6b71928c844d4fd7ba0199493e7e2f9d:/2024-11-15 03_00_00.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u002256ec0ae8\u0022,\u0022BackupDate\u0022:\u00222024-11-15T03:00:00.193301\u002B01:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:45.98,\u0022BackupType\u0022:\u0022full\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[\u0022share\u0022,\u0022addons/local\u0022,\u0022ssl\u0022,\u0022media\u0022]}"}}
11/20/2024 19:30:07 [66] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 276
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/20/2024 19:30:07 [66] Verbose: Backup size to upload: 0.00GB
11/20/2024 19:30:07 [66] Info: Uploading addon_9074a9fa_cloudflared_5.2.0 (11/10/2024 06:29:06)
11/20/2024 19:30:07 [66] Info: Fetching Local Backup (Slug:d68e6ee6)
11/20/2024 19:30:07 [66] Info: Backup (d68e6ee6) fetched successfully
11/20/2024 19:30:07 [66] Verbose: Backup Description: {"Slug":"d68e6ee6","BackupDate":"2024-11-10T06:29:06.76539+01:00","InstanceName":null,"IsProtected":false,"Size":0.02,"BackupType":"partial","Addons":[],"Folders":[]}
11/20/2024 19:30:08 [62] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/5379B6709FC9707E/items/5379B6709FC9707E%21s6b71928c844d4fd7ba0199493e7e2f9d:/addon_9074a9fa_cloudflared_5.2.0.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u0022d68e6ee6\u0022,\u0022BackupDate\u0022:\u00222024-11-10T06:29:06.76539\u002B01:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:0.02,\u0022BackupType\u0022:\u0022partial\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[]}"}}
11/20/2024 19:30:08 [62] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 276
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/20/2024 19:30:08 [62] Verbose: Backup size to upload: 0.00GB
11/20/2024 19:30:08 [62] Info: Uploading addon_45df7312_zigbee2mqtt_1.40.2-1 (11/02/2024 11:13:45)
11/20/2024 19:30:08 [62] Info: Fetching Local Backup (Slug:96142ae0)
11/20/2024 19:30:08 [62] Info: Backup (96142ae0) fetched successfully
11/20/2024 19:30:08 [62] Verbose: Backup Description: {"Slug":"96142ae0","BackupDate":"2024-11-02T11:13:45.734153+01:00","InstanceName":null,"IsProtected":false,"Size":0.01,"BackupType":"partial","Addons":[],"Folders":[]}
11/20/2024 19:30:09 [66] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/5379B6709FC9707E/items/5379B6709FC9707E%21s6b71928c844d4fd7ba0199493e7e2f9d:/addon_45df7312_zigbee2mqtt_1.40.2-1.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u002296142ae0\u0022,\u0022BackupDate\u0022:\u00222024-11-02T11:13:45.734153\u002B01:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:0.01,\u0022BackupType\u0022:\u0022partial\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[]}"}}
11/20/2024 19:30:09 [62] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 276
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/20/2024 19:30:09 [62] Verbose: Backup size to upload: 0.00GB
11/20/2024 19:30:09 [62] Info: Uploading addon_9074a9fa_cloudflared_5.1.23 (11/01/2024 03:13:40)
11/20/2024 19:30:09 [62] Info: Fetching Local Backup (Slug:b60b454f)
11/20/2024 19:30:09 [62] Info: Backup (b60b454f) fetched successfully
11/20/2024 19:30:09 [62] Verbose: Backup Description: {"Slug":"b60b454f","BackupDate":"2024-11-01T03:13:40.41013+01:00","InstanceName":null,"IsProtected":false,"Size":0.02,"BackupType":"partial","Addons":[],"Folders":[]}
11/20/2024 19:30:09 [66] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/5379B6709FC9707E/items/5379B6709FC9707E%21s6b71928c844d4fd7ba0199493e7e2f9d:/addon_9074a9fa_cloudflared_5.1.23.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u0022b60b454f\u0022,\u0022BackupDate\u0022:\u00222024-11-01T03:13:40.41013\u002B01:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:0.02,\u0022BackupType\u0022:\u0022partial\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[]}"}}
11/20/2024 19:30:09 [66] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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)
11/20/2024 19:30:09 [66] Verbose: Backup size to upload: 0.00GB
11/20/2024 19:30:09 [66] Info: Uploading addon_9074a9fa_cloudflared_5.1.22 (10/28/2024 19:13:29)
11/20/2024 19:30:09 [66] Info: Fetching Local Backup (Slug:a3620589)
   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 276
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/20/2024 19:30:09 [66] Info: Backup (a3620589) fetched successfully
11/20/2024 19:30:09 [66] Verbose: Backup Description: {"Slug":"a3620589","BackupDate":"2024-10-28T19:13:29.618045+01:00","InstanceName":null,"IsProtected":false,"Size":0.02,"BackupType":"partial","Addons":[],"Folders":[]}
11/20/2024 19:30:10 [64] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/5379B6709FC9707E/items/5379B6709FC9707E%21s6b71928c844d4fd7ba0199493e7e2f9d:/addon_9074a9fa_cloudflared_5.1.22.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u0022a3620589\u0022,\u0022BackupDate\u0022:\u00222024-10-28T19:13:29.618045\u002B01:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:0.02,\u0022BackupType\u0022:\u0022partial\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[]}"}}
11/20/2024 19:30:10 [62] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 276
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/20/2024 19:30:10 [62] Verbose: Backup size to upload: 0.05GB
11/20/2024 19:30:10 [62] Info: Uploading 2024-10-26 03:00:00 (10/26/2024 03:00:00)
11/20/2024 19:30:10 [62] Info: Fetching Local Backup (Slug:a9553f65)
11/20/2024 19:30:10 [62] Info: Backup (a9553f65) fetched successfully
11/20/2024 19:30:10 [62] Verbose: Backup Description: {"Slug":"a9553f65","BackupDate":"2024-10-26T03:00:00.313795+02:00","InstanceName":null,"IsProtected":false,"Size":48.76,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/20/2024 19:30:11 [66] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/5379B6709FC9707E/items/5379B6709FC9707E%21s6b71928c844d4fd7ba0199493e7e2f9d:/2024-10-26 03_00_00.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u0022a9553f65\u0022,\u0022BackupDate\u0022:\u00222024-10-26T03:00:00.313795\u002B02:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:48.76,\u0022BackupType\u0022:\u0022full\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[\u0022share\u0022,\u0022addons/local\u0022,\u0022ssl\u0022,\u0022media\u0022]}"}}
11/20/2024 19:30:11 [64] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
   at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(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 276
   at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/ BackupManager.cs:line 425

@lavinir
Copy link
Owner Author

lavinir commented Nov 21, 2024

For the same upload issue you don't need to send the logs again.

For the "Unrecognized File" issue- Can you please send the Verbose logs with that error?
For anyone seeing issues with CPU usage - Likewise please send verbose logs during the time you see the high usage.

@mtdern
Copy link

mtdern commented Nov 21, 2024

as far as I can make out this is the same for every unrecognized backup the addon sees. to be fair: these are from the earlier version of the addon... so maybe it's due to that.
11/21/2024 08:14:43 [17] Verbose: hass_backup_2024-11-16-02-42.tar Description: {"Slug":"473fa399","BackupDate":"2024-11-16T02:42:05.894467+01:00","InstanceName":null,"IsProtected":false,"Size":447.04,"BackupType":"partial","Addons":[],"Folders":["addons/local","share","ssl"]}

the only addition from verbose logging during the failed upload is the following - apart from that its the already quoted error uploading backup:
11/21/2024 08:19:35 [29] Verbose: Backup Description: {"Slug":"e9921512","BackupDate":"2024-11-08T02:25:00.721539+01:00","InstanceName":null,"IsProtected":false,"Size":517.67,"BackupType":"partial","Addons":[],"Folders":["addons/local","share","ssl"]} 11/21/2024 08:19:35 [28] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/C1BDD659937C0EC1/items/C1BDD659937C0EC1%21139473:/hass_backup_2024-11-08-02-25.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u0022e9921512\u0022,\u0022BackupDate\u0022:\u00222024-11-08T02:25:00.721539\u002B01:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:517.67,\u0022BackupType\u0022:\u0022partial\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[\u0022addons/local\u0022,\u0022share\u0022,\u0022ssl\u0022]}"}}

regarding high CPU usage: it's not as bad for me (n100 machine, so maybe its that), but I can see average CPU usage and particularly the max spikes go up considerably as soon as the addon is running because it regularly re-tries uploading backups and goes through the errors multiple times before giving up (and then trying again later). during those cycles, which in my case run for a total of about 30s, CPU usage spikes to about 30%, bringing the long term average usage up 3% or so...

@JaVier-Lloret
Copy link

I have two computers with HA, one for general use and one for testing.
On the main computer I had to stop the plugin because the % CPU usage made it impossible to manage the rest.
On the other hand, on the test computer, it also tells me for all the backups stored in OneDrive "Warning: Unrecognized file found in backup folder: hass_backup_2024-11-17-03-00.tar". I have 23 backups and it doesn't manage to store the new one because when it gets to the last unrecognized file it starts again with the first one.
Before those messages from Warnig he told me:
11/21/2024 13:59:45 [57] Info: Uploading addon_5c53de3b_esphome_2024.10.3 (11/21/2024 13:41:22)
11/21/2024 13:59:45 [57] Info: Fetching Local Backup (Slug:836bdec9)
11/21/2024 13:59:45 [57] Info: Backup (836bdec9) fetched successfully
11/21/2024 13:59:46 [57] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425

Me I wish I could have contributed something that would lead us to a solution.

Thank you, Lavinir, for your time and good work.

@JaVier-Lloret
Copy link

I have emptied the onedrive folder.
and the log when trying to upload the resulting backup is:
11/21/2024 14:05:47 [17] Info: Uploading hass_backup_maqueta_2024-11-21-13-43 (11/21/2024 13:43:30)
11/21/2024 14:05:47 [17] Info: Fetching Local Backup (Slug:617ce421)
11/21/2024 14:05:47 [25] Info: Backup (617ce421) fetched successfully
11/21/2024 14:05:48 [43] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425

@mrochette01
Copy link

I also carried out the following maneuvers:
1 - Uninstall the apps and select the option to delete the settings
2 - Copying the contents of the OneDrive directory
3 - Deleting the contents of the OneDrive directory
4 - Restarting HA
5 - Installation of the apps and configuration

The situation is the same.

Thank you for everyone's collaboration without forgetting lavinir.

@lavinir
Copy link
Owner Author

lavinir commented Nov 21, 2024

Folks getting The Unrecognized file - Could you please check the Item Description in OneDrive? You can see it by clicking details on the file in the OneDrive portal:
image

For the folks with the upload error. While there is an open issue with the MS Graph SDK, I still want to try and dig deeper where I can. If anyone is comfortable with using a Rest Client (e.g. Insomnia or some other tool) and want to help debug this let me know. I tried sending sample bodies with that request with my on OneDrive and it comes back with a valid 200 so it's likely not the description (the request body). Best way to understand is to try and reproduce directly on an account that's experiencing issues.

@mikeynp
Copy link

mikeynp commented Nov 21, 2024

I'm getting the unrecognized file error and my file descriptions look like this in OneDrive:

Screenshot 2024-11-21 at 17 17 19

and the text is similar to your screenshot, but all XML escaped:

{"Slug":"36f430f3","BackupDate":"2024-10-23T01:19:22.954598+01:00","InstanceName":null,"IsProtected":false,"Size":447.7,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}

@lavinir
Copy link
Owner Author

lavinir commented Nov 21, 2024

@mikeynp , thanks that actually helps a lot.
It shouldn't be encoded there and makes sense this is causing a recognition failure.
Can you share the verbose logs before a file upload?
And also, what platform and OS are you on?

@mikeynp
Copy link

mikeynp commented Nov 21, 2024

@mikeynp , thanks that actually helps a lot. It shouldn't be encoded there and makes sense this is causing a recognition failure. Can you share the verbose logs before a file upload? And also, what platform and OS are you on?

Sure, happy to help. I'm running on a Raspberry Pi 4 (OS 12.4, Core 2024.11.2)

11/21/2024 19:46:07 [4] Info: Anonymous Telemetry Disabled
11/21/2024 19:46:07 [4] Info: Backup interval configured to every 24 hours
11/21/2024 19:46:07 [4] Info: Backups / Syncs will only run during these hours: 1,2
11/21/2024 19:46:08 [4] Verbose: Token Cache exists. Skipping Auth
11/21/2024 19:46:08 [4] Verbose: Checking backups
11/21/2024 19:46:08 [11] Verbose: Setting up Sync Loop
11/21/2024 19:46:08 [11] Verbose: File Sync Disabled...
11/21/2024 19:46:08 [4] Verbose: Refreshing existing backups...
11/21/2024 19:46:08 [4] Verbose: Backup Interval Completed.
11/21/2024 19:46:12 [11] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-23-01-19.tar
11/21/2024 19:46:12 [11] Verbose: hass_backup_2024-10-23-01-19.tar Description: {"Slug":"36f430f3","BackupDate":"2024-10-23T01:19:22.954598+01:00","InstanceName":null,"IsProtected":false,"Size":447.7,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/21/2024 19:46:12 [11] Warning: Unrecognized file found in backup folder : hass_backup_2024-10-24-01-19.tar
11/21/2024 19:46:12 [11] Verbose: hass_backup_2024-10-24-01-19.tar Description: {"Slug":"8925f4fe","BackupDate":"2024-10-24T01:19:45.177725+01:00","InstanceName":null,"IsProtected":false,"Size":448.86,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
...
... lots more similar lines for each file found
...
11/21/2024 19:46:12 [11] Warning: Unrecognized file found in backup folder : hass_backup_2024-11-19-01-39.tar
11/21/2024 19:46:12 [11] Verbose: hass_backup_2024-11-19-01-39.tar Description: {"Slug":"d9ed1fbe","BackupDate":"2024-11-19T01:39:01.951619+00:00","InstanceName":null,"IsProtected":false,"Size":452.94,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/21/2024 19:46:12 [11] Verbose: Last local backup Date: 11/20/2024 17:50:07
11/21/2024 19:46:12 [11] Verbose: Last online backup Date: None
11/21/2024 19:46:12 [11] Verbose: Not performing backup outside allowed times
11/21/2024 19:46:12 [11] Info: Found 7 backups to upload.
...
... now into the "invalid request" upload issues already seen from here on
...

@TurtlePoo
Copy link

Hi, new to the thread but I installed the latest test version and, although authentication worked, I'm still inland to sync to Onedrive.

I've tried uninstalling and reinstalling, deleting folders and permissions from onedrive and restarting HA in various combinations, but all to no avail.

11/21/2024 20:21:20 [6] Info: Uploading hass_backup_2024-11-17-03-45 (11/17/2024 03:45:26)
11/21/2024 20:21:20 [6] Info: Fetching Local Backup (Slug:4263b2f2)
11/21/2024 20:21:27 [15] Info: Backup (4263b2f2) fetched successfully
11/21/2024 20:21:29 [20] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 20:25:31 [23] Info: Found 6 backups to upload.
11/21/2024 20:25:31 [23] Info: Uploading hass_backup_2024-11-21-20-06 (11/21/2024 20:06:01)
11/21/2024 20:25:31 [23] Info: Fetching Local Backup (Slug:8da0273f)
11/21/2024 20:25:38 [27] Info: Backup (8da0273f) fetched successfully
11/21/2024 20:25:40 [25] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 20:25:41 [25] Info: Uploading hass_backup_2024-11-21-19-56 (11/21/2024 19:56:23)
11/21/2024 20:25:41 [25] Info: Fetching Local Backup (Slug:0fb4cb0d)
11/21/2024 20:25:47 [26] Info: Backup (0fb4cb0d) fetched successfully
11/21/2024 20:25:49 [26] Verbose: Backup Description: {"Slug":"0fb4cb0d","BackupDate":"2024-11-21T19:56:23.410408+00:00","InstanceName":null,"IsProtected":false,"Size":573.73,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/21/2024 20:25:50 [26] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/16DDF9F02B3FBEFE/items/16DDF9F02B3FBEFE%21s3872c2a11d634c55a4b916817fcc419d:/hass_backup_2024-11-21-19-56.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u00220fb4cb0d\u0022,\u0022BackupDate\u0022:\u00222024-11-21T19:56:23.410408\u002B00:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:573.73,\u0022BackupType\u0022:\u0022full\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[\u0022share\u0022,\u0022addons/local\u0022,\u0022ssl\u0022,\u0022media\u0022]}"}}
11/21/2024 20:25:50 [25] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 20:25:50 [25] Verbose: Backup size to upload: 0.57GB
11/21/2024 20:25:50 [25] Info: Uploading hass_backup_2024-11-20-17-25 (11/20/2024 17:25:23)
11/21/2024 20:25:50 [25] Info: Fetching Local Backup (Slug:67cda272)
11/21/2024 20:25:57 [27] Info: Backup (67cda272) fetched successfully
11/21/2024 20:25:58 [27] Verbose: Backup Description: {"Slug":"67cda272","BackupDate":"2024-11-20T17:25:23.455141+00:00","InstanceName":null,"IsProtected":false,"Size":569.74,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/21/2024 20:25:59 [25] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/16DDF9F02B3FBEFE/items/16DDF9F02B3FBEFE%21s3872c2a11d634c55a4b916817fcc419d:/hass_backup_2024-11-20-17-25.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u002267cda272\u0022,\u0022BackupDate\u0022:\u00222024-11-20T17:25:23.455141\u002B00:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:569.74,\u0022BackupType\u0022:\u0022full\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[\u0022share\u0022,\u0022addons/local\u0022,\u0022ssl\u0022,\u0022media\u0022]}"}}
11/21/2024 20:25:59 [25] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 20:25:59 [25] Verbose: Backup size to upload: 0.56GB
11/21/2024 20:25:59 [25] Info: Uploading hass_backup_2024-11-20-13-58 (11/20/2024 13:58:11)
11/21/2024 20:25:59 [25] Info: Fetching Local Backup (Slug:a00d7d77)
11/21/2024 20:26:05 [26] Info: Backup (a00d7d77) fetched successfully
11/21/2024 20:26:06 [24] Verbose: Backup size to upload: 0.57GB
11/21/2024 20:26:06 [24] Info: Uploading hass_backup_2024-11-21-20-06 (11/21/2024 20:06:01)
11/21/2024 20:26:06 [24] Info: Fetching Local Backup (Slug:8da0273f)
11/21/2024 20:26:07 [26] Verbose: Backup Description: {"Slug":"a00d7d77","BackupDate":"2024-11-20T13:58:11.608295+00:00","InstanceName":null,"IsProtected":false,"Size":564.64,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/21/2024 20:26:07 [26] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/16DDF9F02B3FBEFE/items/16DDF9F02B3FBEFE%21s3872c2a11d634c55a4b916817fcc419d:/hass_backup_2024-11-20-13-58.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u0022a00d7d77\u0022,\u0022BackupDate\u0022:\u00222024-11-20T13:58:11.608295\u002B00:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:564.64,\u0022BackupType\u0022:\u0022full\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[\u0022share\u0022,\u0022addons/local\u0022,\u0022ssl\u0022,\u0022media\u0022]}"}}
11/21/2024 20:26:07 [26] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 20:26:08 [26] Verbose: Backup size to upload: 0.56GB
11/21/2024 20:26:08 [26] Info: Uploading hass_backup_2024-11-20-13-17 (11/20/2024 13:17:45)
11/21/2024 20:26:08 [26] Info: Fetching Local Backup (Slug:47b86485)
11/21/2024 20:26:14 [27] Info: Backup (8da0273f) fetched successfully
11/21/2024 20:26:16 [27] Verbose: Backup Description: {"Slug":"8da0273f","BackupDate":"2024-11-21T20:06:01.655516+00:00","InstanceName":null,"IsProtected":false,"Size":574.26,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/21/2024 20:26:16 [23] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/16DDF9F02B3FBEFE/items/16DDF9F02B3FBEFE%21s3872c2a11d634c55a4b916817fcc419d:/hass_backup_2024-11-21-20-06.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u00228da0273f\u0022,\u0022BackupDate\u0022:\u00222024-11-21T20:06:01.655516\u002B00:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:574.26,\u0022BackupType\u0022:\u0022full\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[\u0022share\u0022,\u0022addons/local\u0022,\u0022ssl\u0022,\u0022media\u0022]}"}}
11/21/2024 20:26:17 [16] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 20:26:23 [26] Info: Backup (47b86485) fetched successfully
11/21/2024 20:26:25 [26] Verbose: Backup Description: {"Slug":"47b86485","BackupDate":"2024-11-20T13:17:45.239767+00:00","InstanceName":null,"IsProtected":false,"Size":563.74,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/21/2024 20:26:25 [26] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/16DDF9F02B3FBEFE/items/16DDF9F02B3FBEFE%21s3872c2a11d634c55a4b916817fcc419d:/hass_backup_2024-11-20-13-17.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u002247b86485\u0022,\u0022BackupDate\u0022:\u00222024-11-20T13:17:45.239767\u002B00:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:563.74,\u0022BackupType\u0022:\u0022full\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[\u0022share\u0022,\u0022addons/local\u0022,\u0022ssl\u0022,\u0022media\u0022]}"}}
11/21/2024 20:26:25 [26] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 20:26:26 [26] Verbose: Backup size to upload: 0.57GB
11/21/2024 20:26:26 [26] Info: Uploading hass_backup_2024-11-17-03-45 (11/17/2024 03:45:26)
11/21/2024 20:26:26 [26] Info: Fetching Local Backup (Slug:4263b2f2)
11/21/2024 20:26:32 [24] Info: Backup (4263b2f2) fetched successfully
11/21/2024 20:26:34 [24] Verbose: Backup Description: {"Slug":"4263b2f2","BackupDate":"2024-11-17T03:45:26.804479+00:00","InstanceName":null,"IsProtected":false,"Size":567.74,"BackupType":"full","Addons":[],"Folders":["share","addons/local","ssl","media"]}
11/21/2024 20:26:35 [27] Verbose: UploadSession Request: https://graph.microsoft.com/v1.0/drives/16DDF9F02B3FBEFE/items/16DDF9F02B3FBEFE%21s3872c2a11d634c55a4b916817fcc419d:/hass_backup_2024-11-17-03-45.tar:/createUploadSession. Body: {"item":{"description":"{\u0022Slug\u0022:\u00224263b2f2\u0022,\u0022BackupDate\u0022:\u00222024-11-17T03:45:26.804479\u002B00:00\u0022,\u0022InstanceName\u0022:null,\u0022IsProtected\u0022:false,\u0022Size\u0022:567.74,\u0022BackupType\u0022:\u0022full\u0022,\u0022Addons\u0022:[],\u0022Folders\u0022:[\u0022share\u0022,\u0022addons/local\u0022,\u0022ssl\u0022,\u0022media\u0022]}"}}
11/21/2024 20:26:35 [24] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 20:26:36 [26] Verbose: Ignoring 'External' backup: core_2024.10.1
11/21/2024 20:26:36 [26] Verbose: Ignoring 'External' backup: addon_de91e161_hassio_onedrive_backup_2.3.1

@z06Drew
Copy link

z06Drew commented Nov 21, 2024

I updated to the latest version, restarted HA and while I'm not getting the authentication error anymore, I'm still not having my backups uploaded to OneDrive.

11/21/2024 15:49:21 [38] Info: Found 10 backups to upload.
11/21/2024 15:49:21 [38] Info: Uploading OneDrive_Auto_Backup_2024-11-20-18-50 (11/20/2024 18:50:32)
11/21/2024 15:49:21 [38] Info: Fetching Local Backup (Slug:d4f4edc3)
11/21/2024 15:49:32 [25] Info: Backup (d4f4edc3) fetched successfully
11/21/2024 15:49:36 [25] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 15:49:36 [25] Info: Uploading OneDrive_Auto_Backup_2024-11-10-17-34 (11/10/2024 17:34:50)
11/21/2024 15:49:36 [25] Info: Fetching Local Backup (Slug:a5d9d885)
11/21/2024 15:49:46 [38] Info: Backup (a5d9d885) fetched successfully
11/21/2024 15:49:50 [42] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 15:49:50 [42] Info: Uploading OneDrive_Auto_Backup_2024-11-09-00-14 (11/09/2024 00:14:40)
11/21/2024 15:49:50 [42] Info: Fetching Local Backup (Slug:cff1bfb9)
11/21/2024 15:50:04 [25] Info: Backup (cff1bfb9) fetched successfully
11/21/2024 15:50:05 [16] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 15:50:06 [16] Info: Uploading OneDrive_Auto_Backup_2024-11-08-00-11 (11/08/2024 00:11:40)
11/21/2024 15:50:06 [16] Info: Fetching Local Backup (Slug:462a7c64)
11/21/2024 15:50:17 [24] Info: Backup (462a7c64) fetched successfully
11/21/2024 15:50:20 [24] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 15:50:20 [24] Info: Uploading OneDrive_Auto_Backup_2024-11-07-00-08 (11/07/2024 00:08:46)
11/21/2024 15:50:20 [24] Info: Fetching Local Backup (Slug:429e5ee4)
11/21/2024 15:50:31 [24] Info: Backup (429e5ee4) fetched successfully
11/21/2024 15:50:35 [31] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 15:50:35 [31] Info: Uploading OneDrive_Auto_Backup_2024-11-06-00-05 (11/06/2024 00:05:47)
11/21/2024 15:50:35 [31] Info: Fetching Local Backup (Slug:4a42ee61)
11/21/2024 15:50:50 [31] Info: Backup (4a42ee61) fetched successfully
11/21/2024 15:50:51 [38] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 15:50:51 [38] Info: Uploading OneDrive_Auto_Backup_2024-11-05-00-02 (11/05/2024 00:02:47)
11/21/2024 15:50:51 [38] Info: Fetching Local Backup (Slug:ecf22d1e)
11/21/2024 15:51:02 [38] Info: Backup (ecf22d1e) fetched successfully
11/21/2024 15:51:06 [25] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 15:51:06 [25] Info: Uploading OneDrive_Auto_Backup_2024-11-03-23-59 (11/03/2024 23:59:43)
11/21/2024 15:51:06 [25] Info: Fetching Local Backup (Slug:e46ed9b7)
11/21/2024 15:51:17 [31] Info: Backup (e46ed9b7) fetched successfully
11/21/2024 15:51:21 [38] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 15:51:21 [38] Info: Uploading OneDrive_Auto_Backup_2024-11-02-23-56 (11/02/2024 23:56:35)
11/21/2024 15:51:21 [38] Info: Fetching Local Backup (Slug:334c8819)
11/21/2024 15:51:32 [31] Info: Backup (334c8819) fetched successfully
11/21/2024 15:51:36 [25] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 15:51:37 [25] Info: Uploading OneDrive_Auto_Backup_2024-11-01-23-53 (11/01/2024 23:53:33)
11/21/2024 15:51:37 [25] Info: Fetching Local Backup (Slug:4cdd0995)
11/21/2024 15:51:51 [24] Info: Backup (4cdd0995) fetched successfully
11/21/2024 15:51:52 [24] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken) at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 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, Action2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425
11/21/2024 15:51:54 [16] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-10-30-23-47.tar
11/21/2024 15:51:54 [16] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-10-31-23-50.tar
11/21/2024 15:51:54 [16] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-01-23-53.tar
11/21/2024 15:51:54 [16] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-02-23-56.tar
11/21/2024 15:51:54 [16] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-03-23-59.tar
11/21/2024 15:51:54 [16] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-05-00-02.tar
11/21/2024 15:51:54 [16] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-06-00-05.tar
11/21/2024 15:51:54 [16] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-07-00-08.tar
11/21/2024 15:51:54 [16] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-08-00-11.tar
11/21/2024 15:51:54 [16] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-09-00-14.tar
11/21/2024 15:51:55 [38] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-10-30-23-47.tar
11/21/2024 15:51:55 [38] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-10-31-23-50.tar
11/21/2024 15:51:55 [38] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-01-23-53.tar
11/21/2024 15:51:55 [38] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-02-23-56.tar
11/21/2024 15:51:55 [38] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-03-23-59.tar
11/21/2024 15:51:55 [38] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-05-00-02.tar
11/21/2024 15:51:55 [38] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-06-00-05.tar
11/21/2024 15:51:55 [38] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-07-00-08.tar
11/21/2024 15:51:55 [38] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-08-00-11.tar
11/21/2024 15:51:55 [38] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-09-00-14.tar
11/21/2024 15:54:21 [26] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-10-30-23-47.tar
11/21/2024 15:54:21 [26] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-10-31-23-50.tar
11/21/2024 15:54:21 [26] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-01-23-53.tar
11/21/2024 15:54:21 [26] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-02-23-56.tar
11/21/2024 15:54:21 [26] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-03-23-59.tar
11/21/2024 15:54:21 [26] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-05-00-02.tar
11/21/2024 15:54:21 [26] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-06-00-05.tar
11/21/2024 15:54:21 [26] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-07-00-08.tar
11/21/2024 15:54:21 [26] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-08-00-11.tar
11/21/2024 15:54:21 [26] Warning: Unrecognized file found in backup folder : OneDrive_Auto_Backup_2024-11-09-00-14.tar

@lavinir
Copy link
Owner Author

lavinir commented Nov 22, 2024

Is anyone getting the upload error on an amd64 architecture ?

@SmilyHM
Copy link

SmilyHM commented Nov 22, 2024

Hi @lavinir,

I'm using a Dell Wyse 5070 ThinClient (generic-x86-64 / amd64) and can't upload to OneDrive. I guess this is what u mentioned, right?

11/22/2024 17:12:57 [63] Info: Found 1 backups to upload.
11/22/2024 17:12:57 [63] Info: Uploading x86_Live_2024-11-20-17-52 (11/20/2024 17:52:03)
11/22/2024 17:12:57 [63] Info: Fetching Local Backup (Slug:688f3a0e)
11/22/2024 17:13:59 [39] Info: Backup (688f3a0e) fetched successfully
11/22/2024 17:14:05 [16] Error: Error uploading backup: Microsoft.Graph.Models.ODataErrors.ODataError: Invalid request
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.ThrowIfFailedResponseAsync(HttpResponseMessage response, Dictionary`2 errorMapping, Activity activityForAttributes, CancellationToken cancellationToken)

at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 factory, Dictionary2 errorMapping, CancellationToken cancellationToken)

at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.SendAsync[ModelType](RequestInformation requestInfo, ParsableFactory1 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, Action`2 progressCallback, Boolean flatten, String description) in /src/Graph/GraphHelper.cs:line 276

at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action`2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 425

Kind regards,
Sascha

@lavinir
Copy link
Owner Author

lavinir commented Nov 24, 2024

If anyone is able to test a new version, 2.3.6 is in the preview channel.
I'm not sure this is the cause as I have not been able to reproduce the upload error myself but I stopped using the OneDrive file descriptions to store the metadata and instead am doing this locally now.

If you've had the upload issue and are able to test this version and update whether uploads are still failing, I'd appreciate it.

@G3Rn0t
Copy link

G3Rn0t commented Nov 24, 2024

tested the preview - looks promising so far. Files are getting uploaded.

@Titou84240
Copy link

Tested here also seems very good !

image

image

For information before OneDrive was stocking in Applications\HA and Now in Applications\Graph

@KennethS2022
Copy link

Just tested the preview version and it seems to have solved the upload problem. I'm running a Raspberry Pi 5 with HAOS. 👍

@SmilyHM
Copy link

SmilyHM commented Nov 24, 2024

Hi @lavinir,

just testet preview v2.3.6 (complete uninstall incl. config before + OneDrive authorization revoked) on amd64:

[1] Info: No new settings file. Attempting to restore from legacy configuration
11/24/2024 17:02:26 [6] Info: Anonymous Telemetry Disabled
11/24/2024 17:02:26 [6] Info: Backup interval configured to every 24 hours
11/24/2024 17:02:28 [14] Info: To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code XXXXXXXX to authenticate.
11/24/2024 17:03:08 [15] Warning: Unrecognized file found in backup folder : x86_Live_2024-11-01-04-29.tar
11/24/2024 17:03:08 [15] Warning: Unrecognized file found in backup folder : x86_Live_2024-11-03-04-31.tar
11/24/2024 17:03:08 [15] Warning: Unrecognized file found in backup folder : x86_Live_2024-11-07-18-54.tar
11/24/2024 17:03:08 [15] Warning: Unrecognized file found in backup folder : x86_Live_2024-11-22-19-17.tar
11/24/2024 17:03:08 [11] Info: Creating new backup
11/24/2024 17:03:08 [11] Info: Starting full local backup
11/24/2024 17:06:04 [11] Info: Backup complete
11/24/2024 17:06:04 [11] Info: Found 1 backups to upload.
11/24/2024 17:06:04 [11] Info: Uploading hass_backup_2024-11-24-17-03 (11/24/2024 17:03:08)
11/24/2024 17:06:04 [11] Info: Fetching Local Backup (Slug:8decfb03)
11/24/2024 17:07:12 [17] Info: Backup (8decfb03) fetched successfully
11/24/2024 17:07:17 [19] Info: Starting file upload. (Size:4983408640 bytes. Attempt: 1/3)
11/24/2024 17:53:32 [33] Info: Upload completed successfully

My late answer is caused in upload-time, which was rly long today (OneDrive showed 1 MB/s) vs UniFi says upload between 49 and 53 Mbps.

Long story short: It works fine. Stored in Apps/hassio-onedrive-backup --> no "Graph"-folder, but I haven'd deleted the hassio-onedrive-backup-folder before!

I've got the "Graph"-folder problem with my banking app at the moment, where the banking-folder ("Banking4") should be created. This seems to be a new problem wich occured at the same time the upload-problems.

@Titou84240: You could try to rename the folder from "Graph" to hassio-onedrive-backup. The folder-permissions should be unchanged so this could work.

Kind regards,
Sascha

@Titou84240
Copy link

Hi @lavinir,

just testet preview v2.3.6 (complete uninstall incl. config before + OneDrive authorization revoked) on amd64:

[1] Info: No new settings file. Attempting to restore from legacy configuration 11/24/2024 17:02:26 [6] Info: Anonymous Telemetry Disabled 11/24/2024 17:02:26 [6] Info: Backup interval configured to every 24 hours 11/24/2024 17:02:28 [14] Info: To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code XXXXXXXX to authenticate. 11/24/2024 17:03:08 [15] Warning: Unrecognized file found in backup folder : x86_Live_2024-11-01-04-29.tar 11/24/2024 17:03:08 [15] Warning: Unrecognized file found in backup folder : x86_Live_2024-11-03-04-31.tar 11/24/2024 17:03:08 [15] Warning: Unrecognized file found in backup folder : x86_Live_2024-11-07-18-54.tar 11/24/2024 17:03:08 [15] Warning: Unrecognized file found in backup folder : x86_Live_2024-11-22-19-17.tar 11/24/2024 17:03:08 [11] Info: Creating new backup 11/24/2024 17:03:08 [11] Info: Starting full local backup 11/24/2024 17:06:04 [11] Info: Backup complete 11/24/2024 17:06:04 [11] Info: Found 1 backups to upload. 11/24/2024 17:06:04 [11] Info: Uploading hass_backup_2024-11-24-17-03 (11/24/2024 17:03:08) 11/24/2024 17:06:04 [11] Info: Fetching Local Backup (Slug:8decfb03) 11/24/2024 17:07:12 [17] Info: Backup (8decfb03) fetched successfully 11/24/2024 17:07:17 [19] Info: Starting file upload. (Size:4983408640 bytes. Attempt: 1/3) 11/24/2024 17:53:32 [33] Info: Upload completed successfully

My late answer is caused in upload-time, which was rly long today (OneDrive showed 1 MB/s) vs UniFi says upload between 49 and 53 Mbps.

Long story short: It works fine. Stored in Apps/hassio-onedrive-backup --> no "Graph"-folder, but I haven'd deleted the hassio-onedrive-backup-folder before!

I've got the "Graph"-folder problem with my banking app at the moment, where the banking-folder ("Banking4") should be created. This seems to be a new problem wich occured at the same time the upload-problems.

@Titou84240: You could try to rename the folder from "Graph" to hassio-onedrive-backup. The folder-permissions should be unchanged so this could work.

Kind regards, Sascha

You were right ! tested it and it worked thanks :

image

image

Just one other question when i trigger a manual save , it don't upload it automatically to one drive is it normal behavior ?

@MightyMaster
Copy link

Tested it also. Just did an update of 2.5.3 to 2.6.3 without reinstalling it.
After starting the AddON, it starts to uploading existing Backups to OneDrive.

image

Files exist in the "Graph" Folder now
Thank you

@max-t-d
Copy link

max-t-d commented Nov 24, 2024

Uploads seem to be going through for me as well, thank you!
Backups arriving in the same folder as before.
I still get the unrecognized file thing for my old backups… but I don’t really care, that should sort itself out once I manually get rid of them.

Also fairly slow (2-3 MB/s), but I’d actually consider that a good thing, so the backup doesn’t hog bandwidth (in case I do actually want to use my connection at 3 am…).

@JaVier-Lloret
Copy link

Hello everyone.
In my test environment it seems to work with version 2.3.6 and uploads the new backups correctly, although they are only about 60MB.
In my production environment the backups are about 6100MB and at first it didn't seem to work. (you have to be patient).
The system has become slow, very slow, it hasn't given us access to the plugin control. On screen it tries to reconnect and finally tells me "Could not reconnect to the server. Reload the page to restore functionality".
After several attempts it has started uploading one of the three backups that are locally at about 4 MB/s. I don't know if this is slow or normal because I never noticed the speed before.
I'll keep it under observation and if I notice something abnormal I'll let you know.

Thanks lavinir.

@githuber110
Copy link

Upload works for me. My full backup is about 600mb and all 10 were uploaded on the first try.

OneDrive uploads are slow in general..

@lavinir
Copy link
Owner Author

lavinir commented Nov 25, 2024

2.3.6 is now on the main release channel. I'm closing this issue for now. If anyone is still experiencing issues you can open a new one.

@lavinir lavinir closed this as completed Nov 25, 2024
@lavinir lavinir unpinned this issue Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests