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

Unable to update supervisor (2024.12.3) receiving 400 bad request #5526

Closed
tunichgud opened this issue Jan 4, 2025 · 3 comments
Closed

Unable to update supervisor (2024.12.3) receiving 400 bad request #5526

tunichgud opened this issue Jan 4, 2025 · 3 comments
Labels

Comments

@tunichgud
Copy link

tunichgud commented Jan 4, 2025

Describe the issue you are experiencing

Hello everyone,

i am currently stuck on updating the ha supervisor from version 2024.12.1 to 2024.12.3 (stable).

the supervisor keeps failing on updating (see details below for error).

I found https://community.home-assistant.io/t/error-updating-home-assistant-supervisor-404-client-error/752604 but this looks different from my problem. Version mismatch and 404 instead of 400.

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Steps to reproduce the issue

➜  ~ ha su update --log-level Debug
DEBU[0000] Adding homedir to searchpath                  homedir=/root
INFO[0000] No configfile found                          
DEBU[0000] Debug flags                                   apiToken=2790e4acad68f8dc9c8634c99eab96702d441be464f258b9894bad9fa0173f9ccfa0daf8f486b71b42b9a9fc88d296068fe8f6bda1289731 cfgFile= endpoint=supervisor logLevel=Debug noProgress=false rawJSON=false
DEBU[0000] supervisor update                             args="[]"
DEBU[0000] [GenerateURI]                                 base=supervisor command=update section=supervisor
DEBU[0000] [GenerateURI] Result                          uri="http://supervisor/supervisor/update" url="http://supervisor/supervisor/update" url(string)="http://supervisor/supervisor/update"
⡿ Processing... DEBU[0016] Response                                      body="{\"result\":\"error\",\"message\":\"Update of Supervisor failed: Can't install ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3: 404 Client Error for http+docker://localhost/v1.47/images/ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3/json: Not Found (\\\"No such image: ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3\\\")\"}" fields.time=16.628360147s headers="map[Content-Length:[346] Content-Type:[application/json; charset=utf-8] Date:[Sat, 04 Jan 2025 20:27:07 GMT] Server:[Python/3.12 aiohttp/3.11.10]]" received-at="2025-01-04 21:27:07.065766232 +0100 CET m=+16.634151658" request="&{POST http://supervisor/supervisor/update HTTP/1.1 1 1 map[Accept:[application/json] Authorization:[Bearer 2790e4acad68f8dc9c8634c99eab96702d441be464f258b9894bad9fa0173f9ccfa0daf8f486b71b42b9a9fc88d296068fe8f6bda1289731] User-Agent:[go-resty/2.13.1 (https://github.com/go-resty/resty)]] <nil> 0x2a9c30 0 [] false supervisor map[] map[] <nil> map[]   <nil> <nil> <nil> 0x4000146040}" status="400 Bad Request" statuscode=400
Processing... Done.

Error: Update of Supervisor failed: Can't install ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3: 404 Client Error for http+docker://localhost/v1.47/images/ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3/json: Not Found ("No such image: ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3")

Anything in the Supervisor logs that might be useful for us?

2025-01-04 21:22:00.929 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2025-01-04 21:22:00.929 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2025-01-04 21:22:00.930 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2025-01-04 21:22:00.931 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2025-01-04 21:22:00.932 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2025-01-04 21:22:00.933 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2025-01-04 21:22:00.934 ERROR (MainThread) [supervisor.resolution.check] Error during processing trust: Another job is running for job group container_hassio_supervisor
2025-01-04 21:22:00.960 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2025-01-04 21:22:00.962 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2025-01-04 21:22:00.963 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2025-01-04 21:22:00.964 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2025-01-04 21:22:00.964 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2025-01-04 21:22:00.966 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2025-01-04 21:22:00.966 INFO (MainThread) [supervisor.resolution.check] System checks complete
2025-01-04 21:22:00.967 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2025-01-04 21:22:01.228 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2025-01-04 21:22:01.229 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2025-01-04 21:22:01.229 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2025-01-04 21:22:52.264 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3: 404 Client Error for http+docker://localhost/v1.47/images/ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3/json: Not Found ("No such image: ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3")
2025-01-04 21:22:52.293 CRITICAL (MainThread) [supervisor.supervisor] Update of Supervisor failed: Can't install ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3: 404 Client Error for http+docker://localhost/v1.47/images/ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3/json: Not Found ("No such image: ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3")
2025-01-04 21:23:14.544 WARNING (MainThread) [supervisor.jobs] 'AddonManager.install' blocked from execution, supervisor needs to be updated first
2025-01-04 21:23:18.568 INFO (MainThread) [supervisor.backups.manager] Found 38 backup files
2025-01-04 21:24:35.030 WARNING (MainThread) [supervisor.jobs] 'AddonManager.install' blocked from execution, supervisor needs to be updated first
2025-01-04 21:24:44.543 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2025-01-04 21:25:20.472 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from a0d7b954_ssh
2025-01-04 21:25:55.451 WARNING (MainThread) [supervisor.jobs] 'AddonManager.install' blocked from execution, supervisor needs to be updated first
2025-01-04 21:26:18.948 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/stats access from a0d7b954_ssh
2025-01-04 21:26:50.442 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/update access from a0d7b954_ssh
2025-01-04 21:26:50.444 INFO (MainThread) [supervisor.supervisor] Fetching AppArmor profile https://version.home-assistant.io/apparmor_stable.txt
2025-01-04 21:26:50.572 INFO (MainThread) [supervisor.host.apparmor] Adding/updating AppArmor profile: hassio-supervisor
2025-01-04 21:26:50.760 INFO (MainThread) [supervisor.supervisor] Update Supervisor to version 2024.12.3
2025-01-04 21:26:50.761 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/aarch64-hassio-supervisor with tag 2024.12.3.
2025-01-04 21:27:07.029 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3: 404 Client Error for http+docker://localhost/v1.47/images/ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3/json: Not Found ("No such image: ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3")
2025-01-04 21:27:07.057 CRITICAL (MainThread) [supervisor.supervisor] Update of Supervisor failed: Can't install ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3: 404 Client Error for http+docker://localhost/v1.47/images/ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3/json: Not Found ("No such image: ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3")

System Health information

System Information

version core-2024.12.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.13.0
os_name Linux
os_version 6.6.51-haos-raspi
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.1
Stage running
Available Repositories 1493
Downloaded Repositories 2
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 14.0
update_channel stable
supervisor_version supervisor-2024.12.0
agent_version 1.6.0
docker_version 27.2.0
disk_total 28.5 GB
disk_used 10.0 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Advanced SSH & Web Terminal (19.0.0), RPC Shutdown (2.5), deCONZ (7.0.0), Duck DNS (1.18.0), motionEye (0.21.0), Get HACS (1.3.1), File editor (5.8.0), Mosquitto broker (6.4.1)
Dashboards
dashboards 2
resources 0
views 0
mode storage
Recorder
oldest_recorder_run December 21, 2024 at 6:15 PM
current_recorder_run January 2, 2025 at 5:02 PM
estimated_db_size 356.30 MiB
database_engine sqlite
database_version 3.45.3

Supervisor diagnostics

config_entry-hassio-48a96f1cd960fb7089b0e3ff1c12ae7b.json

Additional information

If I were to look into my crystal ball, I'd say its connected to the python version, but i'm afraid of breaking things.

Since i found noone else complaining, it must be a weird issue with my setup.

DNS or network looks good to me (at least if supervisor isn't running within a container with different network settings):

➜  ~ wget ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3 
--2025-01-04 22:09:53--  http://ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3
Resolving ghcr.io (ghcr.io)... 140.82.121.33
Connecting to ghcr.io (ghcr.io)|140.82.121.33|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3 [following]
--2025-01-04 22:09:53--  https://ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3
Connecting to ghcr.io (ghcr.io)|140.82.121.33|:443... connected.
HTTP request sent, awaiting response... 303 See Other
Location: https://github.com/-/home-assistant/packages/container/package/aarch64-hassio-supervisor [following]
--2025-01-04 22:09:54--  https://github.com/-/home-assistant/packages/container/package/aarch64-hassio-supervisor
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/orgs/home-assistant/packages/container/package/aarch64-hassio-supervisor [following]
--2025-01-04 22:09:54--  https://github.com/orgs/home-assistant/packages/container/package/aarch64-hassio-supervisor
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/home-assistant/supervisor/pkgs/container/aarch64-hassio-supervisor [following]
--2025-01-04 22:09:54--  https://github.com/home-assistant/supervisor/pkgs/container/aarch64-hassio-supervisor
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'aarch64-hassio-supervisor:2024.12.3'

aarch64-hassio-supervisor:2024.12.3                                                 [ <=>                                                                                                                                                                                                  ] 199.08K  --.-KB/s    in 0.09s   

2025-01-04 22:09:55 (2.20 MB/s) - 'aarch64-hassio-supervisor:2024.12.3' saved [203855]

➜  ~ ping ghcr.io                                                    
PING ghcr.io (140.82.121.33): 56 data bytes
64 bytes from 140.82.121.33: seq=0 ttl=56 time=23.817 ms
64 bytes from 140.82.121.33: seq=1 ttl=56 time=19.337 ms
^C
--- ghcr.io ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 19.337/21.577/23.817 ms
@tunichgud tunichgud added the bug label Jan 4, 2025
@8OND007
Copy link

8OND007 commented Jan 5, 2025

same here, I can't update supervisor on a Pi4 (HASOS) no more. Currently at 2024.12.0 and want to update to 2024.12.3, but gettings always errors :

2025-01-05 17:18:08.252 INFO (MainThread) [supervisor.supervisor] Update Supervisor to version 2024.12.3
2025-01-05 17:18:08.254 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/aarch64-hassio-supervisor with tag 2024.12.3.
2025-01-05 18:23:16.245 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3: 404 Client Error for http+docker://localhost/v1.47/images/ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3/json: Not Found ("No such image: ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3")
2025-01-05 18:23:16.246 INFO (MainThread) [supervisor.resolution.module] Create new issue update_failed - supervisor / None
2025-01-05 18:23:16.246 CRITICAL (MainThread) [supervisor.supervisor] Update of Supervisor failed: Can't install ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3: 404 Client Error for http+docker://localhost/v1.47/images/ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3/json: Not Found ("No such image: ghcr.io/home-assistant/aarch64-hassio-supervisor:2024.12.3")

HA core also still at : 2024.12.0

@tunichgud
Copy link
Author

tunichgud commented Jan 6, 2025

I just found that i had some serious problems with the ext4 filesystem on my device. So serious that it caused my device to crash reporting data loss during startup.

Since i can't tell, if the problems origin of this issue is or is not connected to those filesystem problems, and since i now started with a fresh install on a new sd card and everythink looks fine, i'm not suffering anymore. Thanks anyway and 8OND007 i hope you're getting better soon also. :)

@8OND007
Copy link

8OND007 commented Jan 7, 2025

after a hard reboot and several tries to update the supervisor, it seems it is now on 2024.12.3 :-)
setup with a Pi4 and a usb stick to boot HA from seems very unstable and slow.
Problem fixed for now. On my other production system HA runs in ESXi on Intel hardware without any problem. So for me you can also close this issue.

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

No branches or pull requests

2 participants