home-assistant / supervisor

:house_with_garden: Home Assistant Supervisor
https://home-assistant.io/hassio/
Apache License 2.0
1.76k stars 648 forks source link

Unable to fix Unsupported Job Conditions #3988

Closed bacco007 closed 1 year ago

bacco007 commented 2 years ago

Describe the issue you are experiencing

I've followed the instructions from https://www.home-assistant.io/more-info/unsupported/job_conditions but once the supervisor restarts the ignore_conditions setting for jobs returns to "healthy"

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 jobs info
ignore_conditions:
- healthy
➜  ~ ha jobs reset
Processing... Done.

Command completed successfully.
➜  ~ ha jobs info
ignore_conditions: []
➜  ~ ha supervisor restart
Command completed successfully.
➜  ~ ha jobs info
ignore_conditions:
- healthy

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

22-11-05 14:40:19 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
22-11-05 14:40:19 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
22-11-05 14:40:19 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
22-11-05 14:40:19 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
22-11-05 14:40:19 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
22-11-05 14:40:19 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
22-11-05 14:40:19 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
22-11-05 14:40:19 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
22-11-05 14:40:20 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running
22-11-05 14:40:20 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_IPV6_ERROR/ContextType.DNS_SERVER
22-11-05 14:40:20 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.NO_CURRENT_BACKUP/ContextType.SYSTEM
22-11-05 14:40:20 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
22-11-05 14:40:21 INFO (MainThread) [supervisor.api.middleware.security] /jobs/info access from a0d7b954_ssh
22-11-05 14:40:22 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
22-11-05 14:40:22 INFO (MainThread) [supervisor.resolution.check] System checks complete
22-11-05 14:40:22 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
22-11-05 14:40:23 INFO (SyncWorker_4) [supervisor.docker.addon] Starting Docker add-on ba22da74/amd64-addon-gosungrow with version 2.2.1
22-11-05 14:40:24 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-11-05 14:40:24 CRITICAL (MainThread) [supervisor.jobs] The following job conditions are ignored and will make the system unstable when they occur: {<JobCondition.HEALTHY: 'healthy'>}
22-11-05 14:40:24 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
22-11-05 14:40:24 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete

System Health information

System Information

version core-2022.11.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 5.15.74
arch x86_64
timezone Australia/Sydney
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4214 Installed Version | 1.28.3 Stage | running Available Repositories | 1245 Downloaded Repositories | 119
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | November 15, 2022 at 11:00 AM relayer_connected | true remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | false remote_server | ap-southeast-1-0.ui.nabu.casa can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 9.3 -- | -- update_channel | beta supervisor_version | supervisor-2022.10.2 agent_version | 1.4.1 docker_version | 20.10.18 disk_total | 93.8 GB disk_used | 44.7 GB healthy | true supported | failed to load: Unsupported board | ova supervisor_api | ok version_api | ok installed_addons | Mosquitto broker (6.1.3), Samba share (10.0.0), SSH & Web Terminal (12.1.1), Home Assistant Google Drive Backup (0.108.4), JupyterLab (0.9.1), MariaDB (2.5.1), Node-RED (13.5.1), Portainer (2.0.0), Glances (0.16.0), phpMyAdmin (0.8.1), WeatherFlow to MQTT (3.1.3), Eufy Security Add-on (0.9.4), RTSP Simple Server Add-on (v0.17.6), Zigbee2MQTT (1.28.2-1), ESPHome (2022.10.2), GoSungrow (2.2.1), Home Assistant Git Exporter (1.13.0), Shortumation (v0.7.6), File editor (5.4.1), MQTT Explorer (browser-1.0.1), EMQX (0.1.2)
Dashboards dashboards | 3 -- | -- resources | 56 views | 73 mode | storage
Recorder oldest_recorder_run | October 29, 2022 at 7:47 AM -- | -- current_recorder_run | November 5, 2022 at 12:20 PM estimated_db_size | 2858.45 MiB database_engine | mysql database_version | 10.6.8
Solcast PV Forecast can_reach_server | ok -- | -- remaining_requests | 46 rooftop_site_count | 1 polling_hours | 6 -> 20 and once at midnight
Spotify api_endpoint_reachable | ok -- | --

Supervisor diagnostics

No response

Additional information

Forum discussion: https://community.home-assistant.io/t/fixing-unsupported-error-protections-disabled/483462

raforo commented 2 years ago

I had same problem:

After a Fix appears "Unsupported system - Protections disabled" I've read and complied with [https://www.home-assistant.io/more-info/unsupported/job_conditions](https://github.com/home-assistant/home-assistant.io/issues/url] I've done the solution four times, I've also restarted the Raspberry Pi . I've previously deleted all container and software not supported, but the solution doesn't worked . It continue as unsupported by job conditions

~ ha jobs reset Processing... Done.

Command completed successfully. ~ ha supervisor restart Command completed successfully. ~ ha res info checks:

enabled: true slug: free_space enabled: true slug: dns_server enabled: true slug: backups enabled: true slug: core_security enabled: true slug: addon_pwned enabled: true slug: dns_server_ipv6 enabled: true slug: supervisor_trust enabled: true slug: network_interface_ipv4 issues: [] suggestions: [] unhealthy: [] unsupported: job_conditions ~ ha jobs info ignore_conditions:

Version Home Assistant 2022.11.1 Supervisor 2022.10.2 Operating System 9.2 Frontend 20221102.1 - latest

Additional information Supervisor Log

22-11-04 15:37:34 INFO (MainThread) [supervisor.hardware.monitor] Stopped Supervisor hardware monitor 22-11-04 15:37:34 INFO (MainThread) [supervisor.dbus.manager] Closed conection to system D-Bus. 22-11-04 15:37:34 INFO (MainThread) [supervisor.core] Supervisor is down - 100 22-11-04 15:37:34 INFO (MainThread) [main] Closing Supervisor [14:37:35] INFO: Supervisor restart after closing 22-11-04 14:37:38 INFO (MainThread) [main] Initializing Supervisor setup 22-11-04 14:37:39 INFO (MainThread) [supervisor.bootstrap] Initializing Supervisor Sentry 22-11-04 15:37:39 INFO (MainThread) [supervisor.bootstrap] Seting up coresys for machine: raspberrypi4-64 22-11-04 15:37:39 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attaching to Supervisor ghcr.io/home-assistant/aarch64-hassio-supervisor with version 2022.10.2 22-11-04 15:37:39 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token 22-11-04 15:37:39 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.INITIALIZE 22-11-04 15:37:39 WARNING (MainThread) [supervisor.resolution.evaluations.base] Found unsupported job conditions settings. (more-info: https://www.home-assistant.io/more-info/unsupported/job_conditions) 22-11-04 15:37:39 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete 22-11-04 15:37:39 INFO (MainThread) [main] Setting up Supervisor 22-11-04 15:37:39 INFO (MainThread) [supervisor.api] Starting API on 172.30.32.2 22-11-04 15:37:40 INFO (MainThread) [supervisor.hardware.monitor] Started Supervisor hardware monitor 22-11-04 15:37:40 INFO (MainThread) [supervisor.dbus.manager] Connected to system D-Bus. 22-11-04 15:37:40 INFO (MainThread) [supervisor.dbus.agent] Load dbus interface io.hass.os 22-11-04 15:37:40 INFO (MainThread) [supervisor.dbus.systemd] Load dbus interface org.freedesktop.systemd1 22-11-04 15:37:40 INFO (MainThread) [supervisor.dbus.logind] Load dbus interface org.freedesktop.login1 22-11-04 15:37:40 INFO (MainThread) [supervisor.dbus.hostname] Load dbus interface org.freedesktop.hostname1 22-11-04 15:37:40 INFO (MainThread) [supervisor.dbus.timedate] Load dbus interface org.freedesktop.timedate1 22-11-04 15:37:40 INFO (MainThread) [supervisor.dbus.network] Load dbus interface org.freedesktop.NetworkManager 22-11-04 15:37:40 INFO (MainThread) [supervisor.dbus.rauc] Load dbus interface de.pengutronix.rauc 22-11-04 15:37:40 INFO (MainThread) [supervisor.dbus.resolved] Load dbus interface org.freedesktop.resolve1 22-11-04 15:37:40 INFO (MainThread) [supervisor.host.services] Updating service information 22-11-04 15:37:40 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information 22-11-04 15:37:41 INFO (MainThread) [supervisor.host.network] Updating local network information 22-11-04 15:37:41 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'} 22-11-04 15:37:41 INFO (MainThread) [supervisor.docker.monitor] Started docker events monitor 22-11-04 15:37:41 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/aarch64-hassio-cli with version 2022.11.0 22-11-04 15:37:41 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/aarch64-hassio-dns with version 2022.04.1 22-11-04 15:37:41 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf 22-11-04 15:37:41 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json 22-11-04 15:37:42 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/raspberrypi4-64-homeassistant with version 2022.11.1

22-11-04 15:37:45 INFO (MainThread) [supervisor.backups.manager] Found 11 backup files 22-11-04 15:37:45 INFO (MainThread) [supervisor.discovery] Loaded 1 messages 22-11-04 15:37:45 INFO (MainThread) [supervisor.ingress] Loaded 52 ingress sessions 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.SETUP 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.check] System checks complete 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete 22-11-04 15:37:45 CRITICAL (MainThread) [supervisor.jobs] The following job conditions are ignored and will make the system unstable when they occur: {<JobCondition.HEALTHY: 'healthy'>} 22-11-04 15:37:45 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - CoreState.SETUP 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete 22-11-04 15:37:45 INFO (MainThread) [main] Running Supervisor 22-11-04 15:37:45 WARNING (MainThread) [supervisor.core] System running in a unsupported environment! 22-11-04 15:37:45 INFO (MainThread) [supervisor.os.manager] Rauc: B - marked slot kernel.1 as good 22-11-04 15:37:45 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' starting 0 add-ons 22-11-04 15:37:45 INFO (MainThread) [supervisor.core] Supervisor reboot detected 22-11-04 15:37:45 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled 22-11-04 15:37:45 INFO (MainThread) [supervisor.core] Supervisor is up and running 22-11-04 15:37:45 INFO (MainThread) [supervisor.host.info] Updating local host information 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAILED/ContextType.DNS_SERVER 22-11-04 15:37:45 INFO (MainThread) [supervisor.host.services] Updating service information 22-11-04 15:37:45 INFO (MainThread) [supervisor.host.network] Updating local network information 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.NO_CURRENT_BACKUP/ContextType.SYSTEM 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE 22-11-04 15:37:45 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON 22-11-04 15:37:45 INFO (MainThread) [supervisor.host.manager] Host information reload completed 22-11-04 15:37:46 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_IPV6_ERROR/ContextType.DNS_SERVER 22-11-04 15:37:46 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR 22-11-04 15:37:46 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.IPV4_CONNECTION_PROBLEM/ContextType.SYSTEM 22-11-04 15:37:46 INFO (MainThread) [supervisor.resolution.check] System checks complete 22-11-04 15:37:46 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING 22-11-04 15:37:48 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete 22-11-04 15:37:48 CRITICAL (MainThread) [supervisor.jobs] The following job conditions are ignored and will make the system unstable when they occur: {<JobCondition.HEALTHY: 'healthy'>} 22-11-04 15:37:48 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING 22-11-04 15:37:48 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete 22-11-04 15:37:49 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize 22-11-04 15:37:49 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered 22-11-04 15:37:49 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request running

BassMonkey commented 1 year ago

I am having the same issue. The config reset doesn't seem to be made persistent so it is recovered on restart. I also tried to just manually give the "ignore-conditions" array an empty String or "none" but it only allows to set conditions, not to remove them:

ubuntu@ubuntu-rpi-4-1:/usr/share/hassio$ ha jobs options --ignore-conditions none
Error: expected JobCondition or one of 'auto_update', 'free_space', 'haos', 'healthy', 'host_network', 'internet_host', 'internet_system', 'os_agent', 'plugins_updated', 'running', 'supervisor_updated' @ data['ignore_conditions'][0]. Got 'none'

Does anyone know where those values are read from upon startup so we can manually edit that file as a workaround?