Closed tetele closed 1 month ago
You can try quering the backups API directly from your browser console, see what kind of responses you get. Seems like maybe one or more of these commands is returning "unknown_error" from the supervisor.
Should return nothing (I think)
document.getElementsByTagName("home-assistant")[0].hass.callWS({type: "supervisor/api", endpoint: "/backups/reload", method: "post"})
Should return a list of backups
document.getElementsByTagName("home-assistant")[0].hass.callWS({type: "supervisor/api", endpoint: "/backups", method: "get"})
document.getElementsByTagName("home-assistant")[0].hass.callWS({type: "supervisor/api", endpoint: "/backups/reload", method: "post"})
Promise {<pending>}[[Prototype]]: Promise[[PromiseState]]: "pending"[[PromiseResult]]: undefined
connection.js:45 Uncaught (in promise) {code: 'unknown_error', message: ''}
(anonymous) @ connection.js:45
_handleMessage @ connection.js:15
Show 2 more frames
Show less
document.getElementsByTagName("home-assistant")[0].hass.callWS({type: "supervisor/api", endpoint: "/backups", method: "get"})
Promise {<pending>}[[Prototype]]: Promise[[PromiseState]]: "fulfilled"[[PromiseResult]]: Objectbackups: (215) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, …][[Prototype]]: Object
Does that help?
It doesn't help me personally, but it tells me that an error is coming from the supervisor, not from the frontend. So I would suggest to try posting your question on that github instead.
For some reason the reload backups operation returns unknown_error, they would have to track that down.
Seems like maybe a common issue:
Cool, thanks for the help!
Given that it seems like only the reload operation fails, but we're still able to successfully fetch a (maybe incomplete?) list of backups, it does seem like maybe the frontend could do something more helpful than just crap out and show nothing (maybe it can display the list of known backups and a warning bar or something), but I don't have a supervisor development setup to test anything :\
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Checklist
Describe the issue you are experiencing
I have been careless with pruning and a large number of daily backups have accumulated on my network storage (200+ backups, totaling ~46GB). When I access https://my.home-assistant.io/redirect/supervisor_snapshots/ apart from the fact that I get an incorrect message stating there are no backups, the list never gets populated and I find an error in the console
Describe the behavior you expected
Leaving aside a potential loading animation, telling me that the backups are not available yet, I'd like to eventually see my 200 backups so that I can delete the ones which are not used.
Steps to reproduce the issue
What version of Home Assistant Core has the issue?
2024.7.3
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Chrome 126.0.6478.127
Which operating system are you using to run this browser?
MS Win 11
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
Additional information
No response