-
Notifications
You must be signed in to change notification settings - Fork 13
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
Comments
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. |
Hi Lavinir, restarted add-on. Same issue. Can you explain how to reauthenticate? then I'll check again |
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? |
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. |
no worries, take your time. if there is something new to test, I'll can help. |
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:
Interestingly, in the addon itself, the Configuration tab is blank? |
Great to have found this... I thought I did something stupid. |
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. |
Just give me a hint and I'm in for testing |
Same here. My backup check automation notified me that backup hasn't been processed for a couple of days. |
Please try to add another repository to the addon store: 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". |
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 |
After logging in twice it works. |
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 |
now I had time to try.
Login not successful:
|
Did you also delete the config while deleting the add-on? Had it checked and reinstalled it... |
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.
|
Hello, I uninstalled and reinstalled. I have exactly the same result as mikeynp |
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. Core 2024.11.2 I've installed HA as a VM over Proxmox (AMD Mini PC).
|
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? |
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. the only addition from verbose logging during the failed upload is the following - apart from that its the already quoted error uploading backup: 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... |
I have two computers with HA, one for general use and one for testing. Me I wish I could have contributed something that would lead us to a solution. Thank you, Lavinir, for your time and good work. |
I have emptied the onedrive folder. |
I also carried out the following maneuvers: The situation is the same. Thank you for everyone's collaboration without forgetting lavinir. |
I'm getting the unrecognized file error and my file descriptions look like this in OneDrive: and the text is similar to your screenshot, but all XML escaped:
|
@mikeynp , thanks that actually helps a lot. |
Sure, happy to help. I'm running on a Raspberry Pi 4 (OS 12.4, Core 2024.11.2)
|
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) |
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. |
Is anyone getting the upload error on an amd64 architecture ? |
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?
Kind regards, |
If anyone is able to test a new version, 2.3.6 is in the preview channel. 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. |
tested the preview - looks promising so far. Files are getting uploaded. |
Just tested the preview version and it seems to have solved the upload problem. I'm running a Raspberry Pi 5 with HAOS. 👍 |
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 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, |
You were right ! tested it and it worked thanks : Just one other question when i trigger a manual save , it don't upload it automatically to one drive is it normal behavior ? |
Uploads seem to be going through for me as well, thank you! 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…). |
Hello everyone. Thanks lavinir. |
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.. |
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. |
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:
I will start working on making this happen and update here.
The text was updated successfully, but these errors were encountered: