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

Upload not possible #261

Open
fdreckmann opened this issue Nov 26, 2024 · 23 comments
Open

Upload not possible #261

fdreckmann opened this issue Nov 26, 2024 · 23 comments
Labels

Comments

@fdreckmann
Copy link

11/26/2024 12:42:05 [10] Info: Anonymous Telemetry Disabled
11/26/2024 12:42:05 [10] Info: Backup interval configured to every 24 hours
11/26/2024 12:42:07 [11] Info: To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code MTYXJDY4 to authenticate.
11/26/2024 12:42:47 [14] Error: invalidRequest: Invalid request
11/26/2024 12:43:38 [14] Info: Creating new backup
11/26/2024 12:43:38 [14] Info: Starting full local backup
11/26/2024 12:45:17 [18] Info: Backup complete
11/26/2024 12:45:42 [23] Info: Uploading hass_backup_2024-11-26-12-43 (11/26/2024 12:43:38)
11/26/2024 12:45:42 [23] Info: Fetching Local Backup (Slug:dab6a954)
11/26/2024 12:46:04 [18] Info: Backup (dab6a954) fetched successfully
11/26/2024 12:46:13 [18] 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.Special.Item.DriveItemItemRequestBuilder.GetAsync(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 208 at hassio_onedrive_backup.Hass.BackupManager.UploadLocalBackupToOneDrive(Backup backup, Action2 progressCallback, Boolean updateHassEntityState) in /src/Hass/BackupManager.cs:line 394
11/26/2024 12:46:14 [25] Error: invalidRequest: Invalid request

Version: 2.3.6

@lavinir
Copy link
Owner

lavinir commented Dec 8, 2024

This is happening on 2.3.6 ?
Could you share the verbose logs please ?

@fdreckmann
Copy link
Author

Of course, Here the Log.
I have complete new Install, authentication and Backup in this Log.
logs-2.txt

@lavinir
Copy link
Owner

lavinir commented Dec 9, 2024

There are some error logs there I have no idea where they're coming from.
Could you share some more details about your setup ? (How you're running Home Assistant and the addon?)

Could you try to set the logging level to Verbose and send the logs again?

@fdreckmann
Copy link
Author

fdreckmann commented Dec 9, 2024 via email

@lavinir
Copy link
Owner

lavinir commented Dec 9, 2024

Could you please share the verbose logs ?

@fdreckmann
Copy link
Author

fdreckmann commented Dec 9, 2024 via email

@lavinir
Copy link
Owner

lavinir commented Dec 9, 2024

Go to the addon page (Settings -> Addons). You will have a Log tab on the right.
image

@fdreckmann
Copy link
Author

fdreckmann commented Dec 9, 2024 via email

@lavinir
Copy link
Owner

lavinir commented Dec 10, 2024

You need to change the log level in the settings tab inside the Addon UI to Verbose to see the additional logs..

@fdreckmann
Copy link
Author

fdreckmann commented Dec 10, 2024

Ah ok, Here the Log :)
logs-3.txt

Ignore the First lines.
Look at 10:45:00 time stamp

@lavinir
Copy link
Owner

lavinir commented Dec 10, 2024

Are you signed in? The logs are showing you aren't authenticated with OneDrive?
Could you confirm if you successfully logged in / are using a Microsoft Personal account ?

@fdreckmann
Copy link
Author

fdreckmann commented Dec 10, 2024 via email

@fdreckmann
Copy link
Author

fdreckmann commented Dec 10, 2024

this it was i do:
Screenshot 2024-12-10 135719
Screenshot 2024-12-10 135736
Screenshot 2024-12-10 135746
Screenshot 2024-12-10 135800
Screenshot 2024-12-10 135831
Screenshot 2024-12-10 135840
Screenshot 2024-12-10 135849
Screenshot 2024-12-10 135904

@lavinir
Copy link
Owner

lavinir commented Dec 10, 2024

After signing in you're still getting the log telling you to sign in ?
This is a personal (non business) account right ?

Has this ever worked in the past ? Could you try uninstalling completely and see what happens with a clean install of the addon?

@fdreckmann
Copy link
Author

fdreckmann commented Dec 10, 2024 via email

@lavinir
Copy link
Owner

lavinir commented Dec 11, 2024

Could there still be some artifacts from an older version on your system? The pop up with the changelog is showing 2.3.5 instead of 2.3.6

Do you have another account you can try on this device to see if there's a change? Or another Home Assistant installation to try the current account ?

@jaaphoenderdos
Copy link

Hi, I am experiencing exactly the same problem. Also the message that I am on version 2.3.5 while 2.3.6 is installed.

@lavinir
Copy link
Owner

lavinir commented Dec 15, 2024

Version 2.3.8 is out in the preview channel, contains some fixes and additional logging.
Could you please install that and update on if there's a change (if not there should be more info on the error in the logs)

@jaaphoenderdos
Copy link

jaaphoenderdos commented Dec 16, 2024

Installed 2.3.8/. No luck. See verbose logs

6449d918_hassio_onedrive_backup_2024-12-16T13-01-56.825Z.log

I've renamed the 'App Folder' in onedrive. No new folder is created when linking the account.

Edit: If i remove the old app folder form my onedrive. And cleanup all permissions a new folder is created. Named: Graph.
Stil no upload possible

@lavinir
Copy link
Owner

lavinir commented Dec 17, 2024

Those things are probably related. It's failing getting the 'App Folder' from onedrive, which should be the hassio-onedrive-backup

Could you try removing permissions from the app from your microsoft account completely and re-installing the addon (to clear any auth cache).

Also, this is a standard personal onedrive account ?

@jaaphoenderdos
Copy link

jaaphoenderdos commented Dec 17, 2024

Tried that before, and will try again.

Standard personal account with family subscription.

Edit: Here are the logs:
6449d918_hassio_onedrive_backup_2024-12-17T09-56-49.459Z.log

Removed the app permissions in microsoft. Removed the app from HA and all data. Opened a new private browser. Reinstalled the app. Reauthenticate. Graph folder is recreated. Same errors.

@lavinir
Copy link
Owner

lavinir commented Dec 22, 2024

Tried to do a little digging. There are other people reporting this issue with the OneDrive App Folder. I found an issue opened in their docs as well here

To be honest, until it's clear why this is happening I'm not currently sure what can be done from my end (unless I drop the app folder and just go for full read write permissions on OneDrive)

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants