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

Setup failed after updating to 2024.4.1 #5009

Closed
tbrasser opened this issue Apr 10, 2024 · 2 comments · Fixed by #5011
Closed

Setup failed after updating to 2024.4.1 #5009

tbrasser opened this issue Apr 10, 2024 · 2 comments · Fixed by #5011
Labels

Comments

@tbrasser
Copy link

tbrasser commented Apr 10, 2024

Describe the issue you are experiencing

After updating to the latest release a critical repair shows up.

System is currently unhealthy because setup failed to complete. There are a number of reasons this can occur, use the link to learn more and how to fix this.

Kritiek - 10-4-2024

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

  1. Update to latest super>isor

...

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

copying src/cffi/_shimmed_dist_utils.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/lock.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/cffi_opcode.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/vengine_cpy.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/backend_ctypes.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/verifier.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/vengine_gen.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/pkgconfig.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/commontypes.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/error.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/ffiplatform.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/setuptools_ext.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/__init__.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/api.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/model.py -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/_cffi_include.h -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/parse_c_type.h -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/_embedding.h -> build/lib.linux-x86_64-cpython-38/cffi
    copying src/cffi/_cffi_errors.h -> build/lib.linux-x86_64-cpython-38/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-x86_64-cpython-38
    creating build/temp.linux-x86_64-cpython-38/src
    creating build/temp.linux-x86_64-cpython-38/src/c
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.8 -c src/c/_cffi_backend.c -o build/temp.linux-x86_64-cpython-38/src/c/_cffi_backend.o
  
        No working compiler found, or bogus compiler options passed to
        the compiler from Python's standard "distutils" module.  See
        the error messages above.  Likely, the problem is not related
        to CFFI but generic to the setup.py of any Python package that
        tries to compile C code.  (Hints: on OS/X 10.8, for errors about
        -mno-fused-madd see http://stackoverflow.com/questions/22313407/
        Otherwise, see https://wiki.python.org/moin/CompLangPython or
        the IRC channel #python on irc.libera.chat.)
  
        Trying to continue anyway.  If you are trying to install CFFI from
        a build done in a different context, you can ignore this warning.
  
    error: command 'gcc' failed: No such file or directory
    ----------------------------------------
    ERROR: Failed building wheel for cffi
  Failed to build cffi
  ERROR: Could not build wheels for cffi which use PEP 517 and cannot be installed directly
  WARNING: You are using pip version 20.2.4; however, version 24.0 is available.
  You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
  ----------------------------------------
[0m
[91mERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-j4azop09/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools 'cffi>=1.12.0' Check the logs for full command output.
[0m
[91mWARNING: You are using pip version 20.2.4; however, version 24.0 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
[0m
 ---> Removed intermediate container c1a91a1d4e5b
[0m
[31m2024-04-10 18:01:33.461 CRITICAL (MainThread) [supervisor.core] Fatal error happening on load Task <coroutine object AddonManager.load at 0x7fe134d39840>: [0m
[32m2024-04-10 18:01:33.470 INFO (MainThread) [supervisor.backups.manager] Found 171 backup files[0m
[32m2024-04-10 18:01:33.570 INFO (MainThread) [supervisor.discovery] Loaded 12 messages[0m
[32m2024-04-10 18:01:33.570 INFO (MainThread) [supervisor.ingress] Loaded 6 ingress sessions[0m
[32m2024-04-10 18:01:33.570 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state setup[0m
[32m2024-04-10 18:01:33.570 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system[0m
[32m2024-04-10 18:01:33.571 INFO (MainThread) [supervisor.resolution.check] System checks complete[0m
[32m2024-04-10 18:01:33.571 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state setup[0m
[32m2024-04-10 18:01:33.571 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete[0m
[32m2024-04-10 18:01:33.571 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not healthy - setup[0m
[32m2024-04-10 18:01:33.571 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state setup[0m
[32m2024-04-10 18:01:33.571 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete[0m
[32m2024-04-10 18:01:33.571 INFO (MainThread) [__main__] Running Supervisor[0m
[31m2024-04-10 18:01:33.572 CRITICAL (MainThread) [supervisor.core] System is running in an unhealthy state and needs manual intervention![0m
[32m2024-04-10 18:01:33.575 INFO (MainThread) [supervisor.os.manager] Rauc: A - marked slot kernel.0 as good[0m
[32m2024-04-10 18:01:33.581 INFO (MainThread) [supervisor.addons.manager] Phase 'initialize' starting 0 add-ons[0m
[32m2024-04-10 18:01:33.581 INFO (MainThread) [supervisor.core] Supervisor reboot detected[0m
[32m2024-04-10 18:01:33.581 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled[0m
[32m2024-04-10 18:01:33.581 INFO (MainThread) [supervisor.core] Supervisor is up and running[0m
[32m2024-04-10 18:01:33.581 INFO (MainThread) [supervisor.host.info] Updating local host information[0m
[32m2024-04-10 18:01:33.582 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running[0m
[32m2024-04-10 18:01:33.582 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system[0m
[32m2024-04-10 18:01:33.582 INFO (MainThread) [supervisor.resolution.module] Create new suggestion create_full_backup - system / None[0m
[32m2024-04-10 18:01:33.582 INFO (MainThread) [supervisor.resolution.module] Create new issue no_current_backup - system / None[0m
[32m2024-04-10 18:01:33.582 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system[0m
[32m2024-04-10 18:01:33.582 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system[0m
[32m2024-04-10 18:01:33.582 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server[0m
[32m2024-04-10 18:01:33.586 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token[0m
[32m2024-04-10 18:01:33.592 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core[0m
[32m2024-04-10 18:01:33.592 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system[0m
[32m2024-04-10 18:01:33.592 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor[0m
[32m2024-04-10 18:01:33.593 INFO (MainThread) [supervisor.host.services] Updating service information[0m
[32m2024-04-10 18:01:33.595 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server[0m
[32m2024-04-10 18:01:33.597 INFO (MainThread) [supervisor.host.network] Updating local network information[0m
[32m2024-04-10 18:01:33.604 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon[0m
[32m2024-04-10 18:01:33.683 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information[0m
[32m2024-04-10 18:01:33.687 INFO (MainThread) [supervisor.host.manager] Host information reload completed[0m
[32m2024-04-10 18:01:33.736 INFO (MainThread) [supervisor.homeassistant.secrets] Request secret github_token[0m
[32m2024-04-10 18:01:33.806 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system[0m
[32m2024-04-10 18:01:33.806 INFO (MainThread) [supervisor.resolution.check] System checks complete[0m
[32m2024-04-10 18:01:33.806 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running[0m
[32m2024-04-10 18:01:33.876 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete[0m
[32m2024-04-10 18:01:33.876 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not healthy - setup[0m
[32m2024-04-10 18:01:33.958 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize[0m
[32m2024-04-10 18:01:33.959 INFO (MainThread) [supervisor.api.proxy] WebSocket access from d5369777_music_assistant_beta[0m
[32m2024-04-10 18:01:33.963 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running[0m
[32m2024-04-10 18:04:52.168 INFO (MainThread) [supervisor.homeassistant.secrets] Request secret github_token[0m

System Health information

System Information

version core-2024.4.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.25-haos
arch x86_64
timezone Europe/Amsterdam
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1488
Downloaded Repositories 109
HACS Data ok
Home Assistant Cloud
logged_in true
subscription_expiration 14 november 2024 om 01:00
relayer_connected true
relayer_region eu-central-1
remote_enabled false
remote_connected false
alexa_enabled true
google_enabled true
remote_server eu-central-1-11.ui.nabu.casa
certificate_status ready
instance_id e88a2afa97a14d5bbd05e41009ff7d10
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 12.2.rc2
update_channel beta
supervisor_version supervisor-2024.04.1
agent_version 1.6.0
docker_version 25.0.5
disk_total 439.4 GB
disk_used 349.5 GB
healthy failed to load: Unhealthy
supported true
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Mosquitto broker (6.4.0), Terminal & SSH (9.10.0), UniFi Network Application (3.0.4), AppDaemon (0.16.4), Z-Wave JS (0.4.5), Ring-MQTT with Video Streaming (5.6.3), Studio Code Server (5.15.0), PS5 MQTT (1.3.3), Grocy (0.21.0), Squeezelite (0.0.18), Whisper (2.0.0), Piper (1.5.0), OpenThread Border Router (2.5.1), Asterisk (4.2.0), gpt4free (1.0.2), JupyterLab (dev), Icecast (0.1.0), Cloudflared (5.1.7), ESPHome (beta) (2024.4.0b1), openWakeWord (1.10.0), porcupine1 (1.2.0), Assist Microphone (2.2.3), AdGuard Home (5.0.6), SQLite Web (4.1.2), Music Assistant BETA (2.0.0b133), ZigStar TI CC2652P/P7 FW Flasher (0.4.0), vosk (1.6.0), snowboy (1.2.1), Zigbee2MQTT (1.36.1-1), File editor (5.8.0), Frigate (Full Access) (0.13.2), Matter Server (5.5.1), Nginx Proxy Manager (1.0.1), Zigbee2MQTT Edge (edge)
Dashboards
dashboards 3
resources 39
views 29
mode yaml
Recorder
oldest_recorder_run 31 maart 2024 om 09:43
current_recorder_run 10 april 2024 om 16:43
estimated_db_size 1774.85 MiB
database_engine sqlite
database_version 3.44.2

Supervisor diagnostics

config_entry-hassio-701e720a60002ceda5a22cfa5b21226a.json

Additional information

Tried ha supervisor restart but that didn't make it go away. Not attempted a reboot yet because things seem to be running fine and not sure if the system would come back up.

@tbrasser tbrasser added the bug label Apr 10, 2024
@mdegat01
Copy link
Contributor

Hm so it looks like Supervisor tried to start an addon you had marked as "start on boot". There was no image available for that addon and it didn't link one in its config so supervisor tried to build it and building it failed.

There is a bug here. Supervisor didn't used to attempt to build images on load like this, it would just skip over that addon. I will make sure Supervisor skips over that addon without failing setup.

That being said, you should probably check out what is going on with whatever addon that is. It's clearly not working if an image can't be built for it successfully.

@tbrasser
Copy link
Author

Was an old local one I never start anymore. Removing it fixed the issue.

Thanks for the quick reply!

@github-actions github-actions bot locked and limited conversation to collaborators May 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants