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

Backup download failing after 5 minutes #134715

Closed
Armadill0 opened this issue Jan 4, 2025 · 4 comments · Fixed by #134961
Closed

Backup download failing after 5 minutes #134715

Armadill0 opened this issue Jan 4, 2025 · 4 comments · Fixed by #134961

Comments

@Armadill0
Copy link

Armadill0 commented Jan 4, 2025

The problem

Hello and thank you so much for this amazing backup feature! I really enjoy the simplicity and the default encryption. I directly configured it to store 7 days of backups automatically on my NAS via CIFS and additionally to Home Assistant cloud.

Unfortunately there seems to be an issue when I am trying to download the saved archive from the cloud. I get a link like this:
http://homeassistant.instance.local/api/backup/download/xxxxxxx?agent_id=cloud.cloud&authSig=XXXXXXXXXXXXXX

The downloads starts as well. But after exactly 5 minutes the download stops and I only receive a 401 Unauthorized when trying to resume. I guess this is because the token is being invalidated.
I guess the download itself receives the same unauthorized error. Unfortunately my Vivaldi only describes it as a network error.

The download would normally take roughly ~8 minutes because it's 4.5GB big and I am downloading with 10MB/s.

I guess the authentication token is being invalidated too early and I can't finish the download. Would be great if you could fix that.

Btw the download worked when retrieving it from the NAS. But as this can go with 120MB/s it's finishes before this 5 minutes timeout.

What version of Home Assistant Core has the issue?

core-2025.1.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

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

@Armadill0 Armadill0 changed the title Backup download failling after 5 minutes Backup download failing after 5 minutes Jan 4, 2025
@home-assistant
Copy link

home-assistant bot commented Jan 5, 2025

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)

@home-assistant
Copy link

home-assistant bot commented Jan 5, 2025

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

Code owner commands

Code owners of cloud 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 cloud 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)


cloud documentation
cloud source
(message by IssueLinks)

@MartinHjelmare
Copy link
Member

The default timeout of 5 minutes needs to be increased here:

resp = await self._cloud.websession.get(details["url"])

Side note: The whole call should move to the client library in the future.

@ludeeus
Copy link
Member

ludeeus commented Jan 6, 2025

As a workaround, you can download it from https://account.nabucasa.com/

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

Successfully merging a pull request may close this issue.

4 participants