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

automatic backup feature #23411

Closed
Anto79-ops opened this issue Dec 23, 2024 · 3 comments
Closed

automatic backup feature #23411

Anto79-ops opened this issue Dec 23, 2024 · 3 comments
Milestone

Comments

@Anto79-ops
Copy link

The problem

hello!

I setup the automatic backup feature on 2025.1.0b0 (thanks for adding this!), and selected my settings and saved. It created a backup immediately, however, when checking the backup page, it shows that I have no automatic backups, but there is 1 listed. Does this mean it just didn't run for the first time on its own or perhaps a bug:

image

FYI, I originaly setup the backup locations to all possible locations, 3 local and 1 Nabu Casa cloud. However, the backup is 13.1 GB and it failed to upload to Nabu Casa, so I checked off Nabu Casa:

image

just in case those logs are here:

Logger: homeassistant.components.backup
Source: components/cloud/backup.py:173
integration: Backup (documentation, issues)
First occurred: 10:30:20 AM (1 occurrences)
Last logged: 10:30:20 AM

Error during backup upload - Failed to get upload details
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/cloud/backup.py", line 164, in async_upload_backup
    details = await async_files_upload_details(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/hass_nabucasa/cloud_api.py", line 75, in check_token
    return await func(cloud, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/hass_nabucasa/cloud_api.py", line 280, in async_files_upload_details
    resp.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1161, in raise_for_status
    raise ClientResponseError(
    ...<5 lines>...
    )
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url='https://servicehandlers.nabucasa.com/files/upload_details'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/cloud/backup.py", line 173, in async_upload_backup
    raise BackupAgentError("Failed to get upload details") from err
homeassistant.components.backup.agent.BackupAgentError: Failed to get upload details

and

Logger: hass_nabucasa.cloud_api
Source: components/cloud/backup.py:164
First occurred: 10:30:20 AM (1 occurrences)
Last logged: 10:30:20 AM

Fetched https://servicehandlers.nabucasa.com/files/upload_details (400) NC-SH-FH-03 (b82da7663383417582fcb09aee097af3)

re-triggering the automatic backup with Nabu Casa clound option disabled, removes that error message on top and its a sucess:

image

What version of Home Assistant Core has the issue?

2025.1.0b0

What was the last working version of Home Assistant Core?

n/a new feature

What type of installation are you running?

Home Assistant OS

Integration causing the issue

backup

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (backup) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of backup can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign backup Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


backup documentation
backup source
(message by IssueLinks)

@piitaya piitaya transferred this issue from home-assistant/core Dec 23, 2024
@piitaya
Copy link
Member

piitaya commented Dec 23, 2024

Moved it to frontend as it’s a frontend issue.

@piitaya piitaya added this to the 2025.1 milestone Dec 23, 2024
@bramkragten
Copy link
Member

Fixed in #23430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants