hacs/integration

Could not save ZIP file

Closed this issue · 4 comments

jfroy commented

System Health details

System Information

version core-2025.9.4
installation_type Home Assistant OS
dev false
hassio true
docker true
container_arch aarch64
user root
virtualenv false
python_version 3.13.7
os_name Linux
os_version 6.12.34-haos-raspi
arch aarch64
timezone America/Los_Angeles
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4969
Installed Version 2.0.5
Stage running
Available Repositories 2258
Downloaded Repositories 19
Solcast Solar
can_reach_server ok
Home Assistant Cloud
logged_in true
subscription_expiration November 7, 2025 at 16:00
relayer_connected true
relayer_region us-east-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
cloud_ice_servers_enabled true
remote_server us-east-1-8.ui.nabu.casa
certificate_status ready
instance_id 15e5d10fbe1d4bb0b3a8716991873cfc
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 16.2
update_channel stable
supervisor_version supervisor-2025.09.0
agent_version 1.7.2
docker_version 28.3.3
disk_total 938.9 GB
disk_used 12.9 GB
nameservers 10.1.0.1, 2600:1700:9da3:8210::1
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board yellow
supervisor_api ok
version_api ok
installed_addons Matter Server (8.1.1), Mosquitto broker (6.5.2), Tailscale (0.26.1), Studio Code Server (5.19.3), Terminal & SSH (9.20.1), Cloudflared (5.3.9), OpenThread Border Router (2.13.0), Music Assistant Server (2.6.0), SQLite Web (4.4.0), Get HACS (1.3.1)
Dashboards
dashboards 4
resources 5
views 3
mode storage
Network Configuration
adapters lo (disabled), end0 (enabled, default, auto), docker0 (disabled), hassio (disabled), tailscale0 (disabled), veth2ee7eaf (disabled), veth61418fd (disabled), vethbbda109 (disabled), vethfefa9df (disabled), veth9312dc6 (disabled), vethd33066b (disabled), vethd2c282a (disabled), vethd31258f (disabled), vethd7050b1 (disabled), wpan0 (disabled), vethdfb6c39 (disabled), veth659700c (disabled)
ipv4_addresses lo (127.0.0.1/8), end0 (10.1.0.4/16), docker0 (172.30.232.1/23), hassio (172.30.32.1/23), tailscale0 (100.111.212.93/32), veth2ee7eaf (), veth61418fd (), vethbbda109 (), vethfefa9df (), veth9312dc6 (), vethd33066b (), vethd2c282a (), vethd31258f (), vethd7050b1 (), wpan0 (), vethdfb6c39 (), veth659700c ()
ipv6_addresses lo (::1/128), end0 (2600:1700:9da3:8210:f198:5f1:662:75bb/64, fe80::9106:f4dc:5fbf:3cf/64), docker0 (fe80::887e:ffff:fe6e:b877/64), hassio (fe80::5cb9:9aff:fefa:62f5/64), tailscale0 (fd7a:115c:a1e0::5c01:d465/128, fe80::420d:78e4:b71e:b4ac/64), veth2ee7eaf (fe80::fc48:7fff:fec9:6207/64), veth61418fd (fe80::f8ab:61ff:fe4b:a690/64), vethbbda109 (fe80::c437:b1ff:feed:2862/64), vethfefa9df (fe80::54c6:34ff:fec6:0/64), veth9312dc6 (fe80::6c0e:5bff:fed5:38a7/64), vethd33066b (fe80::c43c:41ff:fe7c:83ce/64), vethd2c282a (fe80::b490:baff:fedf:2a99/64), vethd31258f (fe80::609f:d5ff:fed5:7ebe/64), vethd7050b1 (fe80::b41f:ccff:fe89:d39a/64), wpan0 (fdb3:9c74:92d5:0:6c65:3032:b78:df85/64, fd9b:178a:922a:b56b:0:ff:fe00:e800/64, fd9b:178a:922a:b56b:5003:21fa:7b5b:7132/64, fe80::185f:78aa:4d20:7c14/64), vethdfb6c39 (fe80::6401:e4ff:fea2:d437/64), veth659700c (fe80::a0ef:ff:fe62:573f/64)
announce_addresses 10.1.0.4, 2600:1700:9da3:8210:f198:5f1:662:75bb, fe80::9106:f4dc:5fbf:3cf
Recorder
oldest_recorder_run September 15, 2025 at 07:17
current_recorder_run September 27, 2025 at 12:03
estimated_db_size 1912.56 MiB
database_engine sqlite
database_version 3.48.0

Checklist

  • I'm running the newest version of HACS https://github.com/hacs/integration/releases/latest
  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • I have read https://hacs.xyz/docs/help/issues/
  • This issue is related to the backend (integration part) of HACS.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This is a bug and not a feature request.
  • This issue is not a duplicate issue of currently open or issues pending release.

Describe the issue

For a specific integration I am trying to install, selecting a specific version to install, HACS fails to save the ZIP file.

�[36m2025-09-27 12:08:22.097 DEBUG (MainThread) [custom_components.hacs] <Integration SpanPanel/span> Version to install: 1.2.6RC1�[0m
�[32m2025-09-27 12:08:22.097 INFO (MainThread) [custom_components.hacs] <Integration SpanPanel/span> Downloading repository archive�[0m
�[36m2025-09-27 12:08:22.098 DEBUG (MainThread) [custom_components.hacs] Trying to download https://github.com/SpanPanel/span/archive/refs/tags/1.2.6RC1.zip�[0m
�[31m2025-09-27 12:08:22.706 ERROR (MainThread) [custom_components.hacs] Could not write data to /tmp/tmp195v9wy6/custom_components/span_panel - [Errno 2] No such file or directory: '/tmp/tmp195v9wy6/custom_components/span_panel'�[0m
�[31m2025-09-27 12:08:22.706 ERROR (MainThread) [custom_components.hacs] Could not save ZIP file
Traceback (most recent call last):
  File "/config/custom_components/hacs/repositories/base.py", line 631, in download_content
    await self.download_repository_zip()
  File "/config/custom_components/hacs/repositories/base.py", line 683, in download_repository_zip
    raise HacsException("Could not save ZIP file")
custom_components.hacs.exceptions.HacsException: Could not save ZIP file�[0m

I can download that URL with curl directly.

Reproduction steps

  1. Try to install the span integration version 1.2.6rc1 from the store.

home-assistant_2025-09-27T19-10-42.613Z.log

Debug logs

Attached logs as file, too large for github.

Diagnostics dump

config_entry-hacs-01JQVQ757YW6YVSASECRXJ434X.json

This is a filesystem issue; try rebooting your host.

jfroy commented

I have done so a few times. It continues to reproduce, but only for that integration, and only when fetching a specific release zip. So I am not convinced this is a filesystem problem. Assuming the Terminal add-on runs in the same container as the HACS integration, then there is a /tmp mounted. tmp195v9wy6 looks like a randomly-generated tmp path and I imagine HACS does mkdir it, so maybe the log is a red-erring and something else fails that then leads to that error.

It is not the same filesystem.

HACS uses different approaches for downloads.

You might need to rebuild your core container.

jfroy commented

Hum. I can running on a Yellow with HAOS. I've never manually edited the core container. I wonder what has gone wrong. I presumably can make a full backup and reinstall.

Though I imagine /tmp ought to be a tmpfs mounted by the supervisor/container engine. It's not going to be part of the core container image.