-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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 failed for onedrive.ea093e654287a17c: Backup operation failed #137467
Comments
Hey there @zweckj, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) onedrive documentation |
+1 |
Same here +1 But the file has been uploaded to onedrive. |
Same problem here. I have enabled debug log for more detail information:
|
Unfortunately the same problem here. |
Same error here. 2.42 and 2.43GB files in size for me from my tests. I also have it uploading copies to my Synology DSM NAS and Nabu Casa without issue. Only OneDrive is giving the error, but the files appear in OneDrive. |
So, I have a theory what's going on here: I think the backup metadata, which is stored in the file's My problem right now is, that my OneDrive is apparently behaving differently than yours and I'm not getting this error (and can put lots of information in the description). I would need someone who is having that issue and has some programming skills to run Python snippets for debugging. If you do, please get in touch with me, preferably on Discord.
those are not helping, please just like the original post instead. |
HI Logger: homeassistant.components.onedrive.backup Error during backup in async_upload_backup:, message {"error":{"code":"invalidRequest","message":"Parameter Exceeds Maximum Length","innerError":{"code":"parameterIsTooLong","date":"2025-02-06T04:55:29","request-id":"c0af1c2c-44d4-40ed-98d3-fb0384b561e7","client-request-id":"c0af1c2c-44d4-40ed-98d3-fb0384b561e7"}}} Logger: homeassistant.components.backup Upload failed for onedrive.893089a67d09968e: Backup operation failed BUT If i check Onedrive i see it |
What someone could try out in the meantime to help me narrow down the issue: Go to your OneDrive in a browser, open a backup file (or really any file), open the "Informations" pane from the right hand side and paste a long string into the "Description" field. Then close the item and check if the description has been saved successfully and/or shortened. The following string should be long enough:
|
@zweckj I have just tried with your test string and it doesn't get saved - in the browser console I see this 400 error A shorter string gets saved regularly, with a 200 response. |
@MacrosorcH Thanks, that seems to confirm my theory. Can you try to find out what appears to be the limit? I'd check power of 2 values (256, 512, 1024) first |
Can i also ask when i opened it obviously it get downloaded. |
unrelated, but backups will only be decrypted when downloaded through Home Assistant, unless you disable encryption completely in HA for that backup location (which will only affect future backups) |
@zweckj I have just tried and the limit seems to be 1024. With 1025 chars or longer I get a 400 error. Anything up to 1024 chars gets saved regularly (200 response). |
So it just need a slight tweak to fix the error being reported will this be an update in future ? |
Thank you very much! |
Is the description important for the backup to work properly? |
I have been able to add 1030 characters with no issue !! |
Trying to figure out where this limitation is coming from now. Are you maybe all using free OneDrives, or someone with a paid plan here? |
I have a paid private one drive with 1TB of storage. My limit is 1024. When this is saved and I add more characters, its getting cut. |
If you want I can try if onedrive for business has different limits. Have it at work and can try it out. |
Thanks, but that's irrelevant for now. Then it's not the paid thing. I just want to understand why some have this limitations and some don't... |
OK. There is also no description field in onedrive for business ^^ |
I am on a paid family plan Office 365 |
It gets cut off in box but if you copy and paste it still what you put in i tried 1030 characters. Pasted in everybox alwasy cutoff but if i copy back and check its all still there. The cut off is just so it fits in the box the ..... is to tell you more exsists aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaazzzzzz |
@thorrrr If you refresh the page, it will be cut off. It will only save what it had before if that was below the threshold. So as @MacrosorcH said you need to check the dev tools of your browser. |
Yes sorry i have just checked yes its 1024 |
personal free account - 1024 char. it'll stripped away the additional char once refreshed. |
same here, personal account 1024 char max |
Just tested on my OneDrive 1TB (part of Microsoft 365 Family, my account is the main user). When I try to set a description greater than 1024 characters it gives the 400 error as well. Just wondering why the description would need to be longer than 1024 characters. So checked the backup that didn't give an error. And it seems the description currently contains a list of all add-on names, slugs and lots of other data. And yes my HA install has 10 add-ons, so it makes the description longer.
|
I'm also on a Microsoft 365 Family plan, and the backup fails to upload. During the process, it spends a lot of time on the "Uploading to locations" step, and then it eventually just ends and says "Backup Up". But last successful backup shown is the previous backup (not the one that failed), and the files never make it to OneDrive.
|
Yeah, the issue has been found and @zweckj has posted a pull request to fix the issue. Probably going to be part of 2025.2.1 update. |
All kinds of things. HA version, which add-ons are in that backup and so on. You can actually see that in the last couple of lines of your debug logs.
If your files are not ending up on OneDrive that's a different issue than this one, because in this one the upload succeeds, but there's an error finishing the backup. If that's not the case for you open a new issue with debug logs attached. |
I've also got the same error "Parameter Exceeds Maximum Length" |
Same problem for me as well, paid family account, 400 error for too many characters. |
"Me too" is not adding any extra information, just like the original post instead. The issue has been identitfied and is hopefully fixed soon. |
@zweckj many thanks for your quick fix. |
The problem
Whenever I use the Automatic Backup option with everything included in my HA OS, it will eventually give an error that the Backup failed to upload to OneDrive. This problem was also there during the 2025.2.0b releases.
The file is actually uploaded and available in OneDrive and the file also seems to be complete as I can download it and extract the contents of it just fine.
My backups are around 3,3GB which might be causing the issue. If I don't include my PLEX Media Server Add-on it goes through just fine. But when I do a custom backup with just the PLEX Media Server enabled I get a backup that's around 2,3GB in size and uploads just fine to OneDrive as well.
What version of Home Assistant Core has the issue?
core-2025.2.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
OneDrive
Link to integration documentation on our website
https://www.home-assistant.io/integrations/onedrive/
Diagnostics information
home-assistant_onedrive_2025-02-05T20-48-01.551Z.log
Anything in the logs that might be useful for us?
Additional information
The text was updated successfully, but these errors were encountered: