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

[supervisor.homeassistant.core] No Home Assistant Core response, assuming a fatal startup error #5797

Open
Codelica opened this issue Apr 1, 2025 · 10 comments
Labels

Comments

@Codelica
Copy link

Codelica commented Apr 1, 2025

Describe the issue you are experiencing

Ever since the "new" backup system was released I haven't been able to "complete" a backup (auto or manual). While the supervisor logs seems to show the backup is complete, and I see the backup in the lists, the spinner never stops and I can't attempt another without restarting Home Assistant. It's as though Supervisor isn't able to message Home Assistant about being done (guess). It's happening on two independent HA installations I run.

The one error I see come through in the supervisor logs that seems suspect is:

2025-04-01 10:46:55.109 ERROR (MainThread) [supervisor.homeassistant.core] No Home Assistant Core response, assuming a fatal startup error

I've tried ha supervisor repair and a reboot, but that didn't seem to help.

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

Unfortunately I'm not sure. But seems to have started with the new backup system release. It's happening on two independent HA installations I run.

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

Seems suspect:

`2025-04-01 10:46:55.109 ERROR (MainThread) [supervisor.homeassistant.core] No Home Assistant Core response, assuming a fatal startup error`

Log of a backup:



2025-04-01 10:46:56.644 INFO (MainThread) [supervisor.backups.manager] Backup fd25ec75 starting stage addon_repositories
2025-04-01 10:46:56.644 INFO (MainThread) [supervisor.backups.manager] Creating new partial backup with slug fd25ec75
2025-04-01 10:46:56.647 INFO (MainThread) [supervisor.backups.manager] Backup fd25ec75 starting stage home_assistant
2025-04-01 10:46:56.649 INFO (MainThread) [supervisor.homeassistant.module] Backing up Home Assistant Core config folder
2025-04-01 10:46:59.429 INFO (MainThread) [supervisor.homeassistant.module] Backup Home Assistant Core config folder done
2025-04-01 10:46:59.431 INFO (MainThread) [supervisor.backups.manager] Backup fd25ec75 starting stage addons
2025-04-01 10:46:59.436 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on cb646a50_get
2025-04-01 10:46:59.446 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon cb646a50_get
2025-04-01 10:46:59.450 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_ssh
2025-04-01 10:46:59.459 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_ssh
2025-04-01 10:46:59.463 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on a0d7b954_vscode
2025-04-01 10:46:59.771 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon a0d7b954_vscode
2025-04-01 10:46:59.771 INFO (MainThread) [supervisor.backups.manager] Backup fd25ec75 starting stage folders
2025-04-01 10:46:59.772 INFO (SyncWorker_1) [supervisor.backups.backup] Backing up folder ssl
2025-04-01 10:46:59.773 INFO (SyncWorker_1) [supervisor.backups.backup] Backup folder ssl done
2025-04-01 10:46:59.775 INFO (MainThread) [supervisor.backups.manager] Backup fd25ec75 starting stage finishing_file
2025-04-01 10:46:59.778 INFO (MainThread) [supervisor.backups.manager] Creating partial backup with slug fd25ec75 completed

System information

System Information

version core-2025.3.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.13.2
os_name Linux
os_version 6.12.20-haos
arch x86_64
timezone America/Denver
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4994
Installed Version 2.0.5
Stage running
Available Repositories 1621
Downloaded Repositories 4
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 15.1
update_channel stable
supervisor_version supervisor-2025.03.4
agent_version 1.7.2
docker_version 28.0.4
disk_total 129.2 GB
disk_used 6.1 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization kvm
board ova
supervisor_api ok
version_api ok
installed_addons Get HACS (1.3.1), Terminal & SSH (9.16.0), Studio Code Server (5.18.4)
Dashboards
dashboards 2
resources 1
views 2
mode storage
Network Configuration
adapters lo (disabled), enp0s18 (enabled, default, auto), enp0s19 (disabled), hassio (disabled), docker0 (disabled), veth346978a (disabled), veth5ceea78 (disabled), vethca2a1cb (disabled), veth45e8975 (disabled), vetha7aa5ac (disabled), veth1faf06d (disabled), vethb90fd68 (disabled), veth7ffc3b5 (disabled)
ipv4_addresses lo (127.0.0.1/8), enp0s18 (192.168.2.6/24), enp0s19 (10.0.0.6/24), hassio (172.30.32.1/23), docker0 (172.30.232.1/23), veth346978a (), veth5ceea78 (), vethca2a1cb (), veth45e8975 (), vetha7aa5ac (), veth1faf06d (), vethb90fd68 (), veth7ffc3b5 ()
ipv6_addresses lo (::1/128), enp0s18 (fe80::6b0a:e05:a999:5f87/64), enp0s19 (fe80::b76:7e6d:ec0:8dac/64), hassio (fe80::283b:8aff:fef3:2061/64), docker0 (fe80::cae:b3ff:fe16:d95f/64), veth346978a (fe80::c0d4:eaff:feff:a3fd/64), veth5ceea78 (fe80::a484:faff:fec7:ead0/64), vethca2a1cb (fe80::c1a:2cff:fe46:a290/64), veth45e8975 (fe80::fc56:3cff:fe28:d892/64), vetha7aa5ac (fe80::4028:76ff:fea5:c17e/64), veth1faf06d (fe80::205c:62ff:febb:5ca8/64), vethb90fd68 (fe80::7424:3aff:fe82:a63c/64), veth7ffc3b5 (fe80::5c20:a7ff:fe41:2a21/64)
announce_addresses 192.168.2.6, fe80::6b0a:e05:a999:5f87
Recorder
oldest_recorder_run March 14, 2025 at 4:15 PM
current_recorder_run April 1, 2025 at 10:44 AM
estimated_db_size 21.73 MiB
database_engine sqlite
database_version 3.48.0

Supervisor diagnostics

config_entry-hassio-01J9YX3RFDMJHS79XEGRC06QVM.json

Additional information

All info here is from one of the two systems having the issue. It's a very simple installation compared to the other system, and I can experiment as needed on it.

@Codelica Codelica added the bug label Apr 1, 2025
@Codelica
Copy link
Author

Codelica commented Apr 1, 2025

So this comes down to having http.server_host set on my HAOS installs. While this "should only be used on a Home Assistant Core installation" per the docs, there doesn't seem to be any other way to control what interface/ip will host the UI.

I am setting it to a private interface/ip on a vlan which has all my applications that are proxied via NGINX. Ideally I'd like to set it to be that vlan IP and 172.30.32.1 which Supervisor uses to reach Core (per what I see viaha core info) but even http.server_host won't take multiple entries.

So it seems my only choice is to bind to 0.0.0.0 with HAOS unless there is some other route, of a different IP for Core can be set in some way?

@Pro100x3mal
Copy link

Pro100x3mal commented Apr 4, 2025

I have exactly the same problem for several versions in a row. Neither automatic nor manual backup works. There is a constant process of creating a backup copy until HA reboots. It does not create a copy either on the local device or in OneDrive.

Версия | core-2025.4.0
Тип установки | Home Assistant Supervised
Среда разработки | false
Supervisor | true
Docker | true
Пользователь | root
Виртуальное окружение | false
Версия Python | 3.13.2
Семейство операционных систем | Linux
Версия операционной системы | 6.6.74+rpt-rpi-2712
Архитектура ЦП | aarch64

Операционная система хоста | Debian GNU/Linux 12 (bookworm)
Канал обновлений | stable
Версия Supervisor | supervisor-2025.03.4
Версия агента | 1.6.0
Версия Docker | 28.0.1

My logs:

2025-04-04 16:20:08.328 INFO (SyncWorker_3) [supervisor.docker.manager] Restarting homeassistant
2025-04-04 16:20:19.053 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
2025-04-04 16:20:21.868 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2025-04-04 16:20:21.916 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2025-04-04 16:21:47.212 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2025-04-04 16:21:47.212 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2025-04-04 16:21:47.212 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2025-04-04 16:21:47.440 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2025-04-04 16:21:47.441 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2025-04-04 16:21:47.441 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2025-04-04 16:21:47.445 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2025-04-04 16:21:47.445 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2025-04-04 16:21:47.445 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2025-04-04 16:21:47.446 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2025-04-04 16:21:47.447 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2025-04-04 16:21:47.447 INFO (MainThread) [supervisor.resolution.check] System checks complete
2025-04-04 16:21:47.447 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2025-04-04 16:21:47.514 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2025-04-04 16:21:47.514 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2025-04-04 16:21:47.515 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2025-04-04 16:23:20.804 ERROR (MainThread) [supervisor.homeassistant.core] No Home Assistant Core response, assuming a fatal startup error
2025-04-04 16:28:35.511 INFO (MainThread) [supervisor.store.git] Update add-on /data/addons/core repository from https://github.com/home-assistant/addons
2025-04-04 16:28:35.514 INFO (MainThread) [supervisor.store.git] Update add-on /data/addons/git/a0d7b954 repository from https://github.com/hassio-addons/repository
2025-04-04 16:28:35.515 INFO (MainThread) [supervisor.store.git] Update add-on /data/addons/git/5c53de3b repository from https://github.com/esphome/home-assistant-addon
2025-04-04 16:28:35.518 INFO (MainThread) [supervisor.store.git] Update add-on /data/addons/git/d5369777 repository from https://github.com/music-assistant/home-assistant-addon
2025-04-04 16:28:36.104 INFO (MainThread) [supervisor.backups.manager] Backup d14048fc starting stage addon_repositories
2025-04-04 16:28:36.104 INFO (MainThread) [supervisor.backups.manager] Creating new partial backup with slug d14048fc
2025-04-04 16:28:36.107 INFO (MainThread) [supervisor.backups.manager] Backup d14048fc starting stage home_assistant
2025-04-04 16:28:36.609 INFO (MainThread) [supervisor.homeassistant.module] Backing up Home Assistant Core config folder
2025-04-04 16:28:37.034 INFO (MainThread) [supervisor.store] Loading add-ons from store: 82 all - 0 new - 0 remove
2025-04-04 16:28:37.034 INFO (MainThread) [supervisor.store] Loading add-ons from store: 82 all - 0 new - 0 remove
2025-04-04 16:28:39.834 INFO (MainThread) [supervisor.homeassistant.module] Backup Home Assistant Core config folder done
2025-04-04 16:28:40.336 INFO (MainThread) [supervisor.backups.manager] Backup d14048fc starting stage addons
2025-04-04 16:28:40.339 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on core_configurator
2025-04-04 16:28:40.352 INFO (MainThread) [supervisor.addons.addon] Finish backup for addon core_configurator
2025-04-04 16:28:40.353 INFO (MainThread) [supervisor.backups.manager] Backup d14048fc starting stage folders
2025-04-04 16:28:40.353 INFO (SyncWorker_3) [supervisor.backups.backup] Backing up folder ssl
2025-04-04 16:28:40.354 INFO (SyncWorker_3) [supervisor.backups.backup] Backup folder ssl done
2025-04-04 16:28:40.356 INFO (SyncWorker_2) [supervisor.backups.backup] Backing up folder share
2025-04-04 16:28:40.357 INFO (SyncWorker_2) [supervisor.backups.backup] Backup folder share done
2025-04-04 16:28:40.358 INFO (MainThread) [supervisor.backups.manager] Backup d14048fc starting stage finishing_file
2025-04-04 16:28:40.359 INFO (MainThread) [supervisor.backups.manager] Creating partial backup with slug d14048fc completed
2025-04-04 16:28:40.359 INFO (MainThread) [supervisor.backups.manager] Creating partial backup with slug d14048fc completed

Image

@Codelica
Copy link
Author

Codelica commented Apr 4, 2025

I'm betting you have a similar situation. Are you setting http.server_host to limit where the Home Assistant UI/API runs?

You an see what IP and port Supervisor it trying to reach for core via ha core info where it shows ip_address and port. If the UI/API isn't running on that you'll get the errors we are seeing.

In the end I had to get rid of my http.server_host setting and just firewall things so that it's only exposed where it should be, as I couldn't find any way to give multiple address or change what Supervisor uses to reach Core.

@Pro100x3mal
Copy link

@Codelica I don't have HAOS. I have home assistant supervised.

@Codelica
Copy link
Author

Codelica commented Apr 4, 2025

Yes, I saw that. But the Supervisor container still needs to communicate with Core and is failing. Are you setting http.server_host ? If so I'm betting backups will "work" if you remove that.

@Pro100x3mal
Copy link

in my configuration.yaml:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 127.0.0.1
    - ::1
  ip_ban_enabled: true
  login_attempts_threshold: 5

@Codelica
Copy link
Author

Codelica commented Apr 4, 2025

Interesting. Doubtful Supervisor has been banned :) I guess it still may help to see what address it's trying to reach Core on via ha core info and then see if it's actually listening on that via something like netstat -plnt |grep :8123

@Pro100x3mal
Copy link

Pro100x3mal commented Apr 4, 2025

Indeed, I disabled ufw on my Raspberry Pi and the backup is created without problems. Before that, there were errors in the Host log:

2025-04-04 15:40:14.276 homeassistant kernel: [UFW BLOCK] IN=hassio OUT= MAC=xx:xx:xx:xxSRC=172.30.32.2 DST=172.30.32.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=46770 DF PROTO=TCP SPT=49710 DPT=8123 WINDOW=64240 RES=0x00 SYN URGP=0

But I don't want to disable the firewall. I wonder what I need to add to the http section in that case?:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 127.0.0.1
    - ::1
  ip_ban_enabled: true
  login_attempts_threshold: 5

@Pro100x3mal
Copy link

added sudo ufw allow 8123/tcp and everything works. But now I need to think about the security of this action, since I have a public IP and HA works behind a reverse proxy Nginx on RPi for remote access to HA. RPi in turn is in the local home network behind my router, on which port forwarding is configured.

@Pro100x3mal
Copy link

Solved the problem by adding the following rules:

sudo ufw allow in from 192.168.1.0/24
sudo ufw allow in from 172.30.32.0/24
sudo ufw allow in from fe80::/10

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