home-assistant / addons

:heavy_plus_sign: Docker add-ons for Home Assistant
https://home-assistant.io/hassio/
Apache License 2.0
1.55k stars 1.5k forks source link

Fatal error while loading config #2373

Closed pattyland closed 2 years ago

pattyland commented 2 years ago

Describe the issue you are experiencing

The Addon fails while loading config

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Which add-on are you reporting an issue with?

Check Home Assistant configuration

What is the version of the add-on?

3.9.0

Steps to reproduce the issue

  1. Start addon
  2. be sad
  3. ...

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

No response

Anything in the add-on logs that might be useful for us?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[22:30:02] INFO: Don't worry, this temporary installation is not overwriting your current one.
[22:30:02] INFO: Installing Home Assistant: stable...
[22:30:02] INFO: Please be patient, this might take a few minutes...
[22:31:16] INFO: Installed Home Assistant 2022.2.0
[22:31:16] INFO: Making a copy of your configuration for checking...
[22:31:19] INFO: Checking your configuration against this version...
[22:35:07] ERROR: The configuration check did not pass!
[22:35:07] ERROR: See the output below for more details.
[22:35:07] INFO: The full output has been written to /share/check_config.txt
Testing configuration at /tmp/config
INFO:homeassistant.helpers.storage:Migrating core.device_registry storage from 1.2 to 1.3
INFO:homeassistant.helpers.storage:Migrating core.entity_registry storage from 1.4 to 1.5
WARNING:homeassistant.components.statistics.sensor:The configuration parameter 'state_characteristic' will become mandatory in a future release of the statistics integration. Please add 'state_characteristic: mean' to the configuration of sensor 'Bathroom Humidity Stats' to keep the current behavior. Read the documentation for further details: https://www.home-assistant.io/integrations/statistics/
Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'
Failed config
  General Errors: 
    - [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'

Successful config (partial)
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Additional information

No response

tasranson commented 2 years ago

I got this exact error as well running check config against 2022.2.1 on HAOS currently at 2021.12.10. Not sure what to do next. Is this a check config problem or is a config problem on my system preventing upgrade to 2022.2.1. I did try the upgrade earlier, but it did not take. Just seemed to stall and back out with no errors I could easily find.

raptr55 commented 2 years ago

Same here with checking the 2022.2.2 version

[07:37:21] ERROR: The configuration check did not pass! [07:37:21] ERROR: See the output below for more details. Testing configuration at /tmp/config INFO:homeassistant.helpers.storage:Migrating core.device_registry storage from 1.2 to 1.3 INFO:homeassistant.helpers.storage:Migrating core.entity_registry storage from 1.4 to 1.5 Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA' Failed config General Errors:

tasranson commented 2 years ago

I did find that 2022.2.1 installed eventually. It took a really long time for it to do my backup (and it was hard to tell it was still doing this and had not just given up - the best clue was trying to do another backup myself manually and the system telling me this could not be done because it was in a freeze state. Eventually after a few hours the update was complete.

tuneman19 commented 2 years ago

Had the same problem. After a manual full backup i could install 2022.2.2. no problem.

viktak commented 2 years ago

Same issue here..

jetijeti commented 2 years ago

same here

viktak commented 2 years ago

Happening with the latest version (2022.2.3) too.

cnovicktx commented 2 years ago

similar issue here when running the Check Home Assistant Configuration 3.9.0:

`<cut`` for brevity> INFO:homeassistant.util.package:Attempting install of paho-mqtt==1.6.1 INFO:homeassistant.util.package:Attempting install of numpy==1.21.4 INFO:homeassistant.util.package:Attempting install of restrictedpython==5.2 INFO:homeassistant.util.package:Attempting install of pyenvisalink==4.3 Failed config General Errors:

davis1m commented 2 years ago

Happening with the latest version (2022.2.5) too.

ludditus-RPI commented 2 years ago

Same thing, checking 2021.11.4 against 2022.2.5.

Beastest13 commented 2 years ago

You need just update multidict package to 6 version.

viktak commented 2 years ago

.. aaand how would you do that? It is in a docker container, which I prefer to keep official... and the regular updates (of home assistant) should take care of)

rschuiling commented 2 years ago

@MartinHjelmare You marked this issue with the label 'addon: check_config'. But are you sure this is just an issue with the add-on, not with HAOS or Core? Seems to me the Check Config addon is just doing it's job of pointing out issues, and is doing a fine job here :-)

According to @Beastest13:

You need just update multidict package to 6 version.

Could this issue perhaps be brought under the attention of someone who can fix that for us?

MartinHjelmare commented 2 years ago

I haven't triaged this issue. I have just marked it with that label to identify which add-on was used.

Beastest13 commented 2 years ago

.. aaand how would you do that? It is in a docker container, which I prefer to keep official... and the regular updates (of home assistant) should take care of)

pip install --upgrade multidict

viktak commented 2 years ago

pip install --upgrade multidict

Tried this, and got this error:

Collecting multidict
  Downloading multidict-6.0.2.tar.gz (50 kB)
     |████████████████████████████████| 50 kB 953 kB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: multidict
  Building wheel for multidict (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpmf3t02j2
       cwd: /tmp/pip-install-qrbp_en7/multidict
  Complete output (22 lines):
  *********************
  * Accelerated build *
  *********************
  running bdist_wheel
  running build
  running build_py
  running egg_info
  writing multidict.egg-info/PKG-INFO
  writing dependency_links to multidict.egg-info/dependency_links.txt
  writing top-level names to multidict.egg-info/top_level.txt
  reading manifest file 'multidict.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files found matching 'multidict/_multidict.html'
  warning: no previously-included files found matching 'multidict/*.so'
  warning: no previously-included files found matching 'multidict/*.pyd'
  warning: no previously-included files found matching 'multidict/*.pyd'
  no previously-included directories found matching 'docs/_build'
  adding license file 'LICENSE'
  running build_ext
  building 'multidict._multidict' extension
  error: command 'gcc' failed: No such file or directory
  ----------------------------------------
  ERROR: Failed building wheel for multidict
Failed to build multidict
ERROR: Could not build wheels for multidict which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 20.2.4; however, version 22.0.3 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
bash-5.1#
krahabb commented 2 years ago

could use pip3 install --upgrade multidict. I'm really unaware of all of the python environment settings but I guess you should use pip3 to comply with python3 (somewhat) In my rush to make ha 2022.x running on my (old?) raspbian buster it made the final trick. I had to go over the full distro update to bullseye since I was really getting mad with all of the missing dependencies.

Daneish commented 2 years ago

After updating to Check Home Assistant Configuration v3.10.0 (merged in #2385) the errors reported above and in #2377 still remain for me.

Error message: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'

I'm running: Check Home Assistant Configuration: 3.10.0 HA Core: 2022.2.8 (I also had the issue on 2022.2.7) HA OS: 7.4

Is anyone else still experiencing this issue after updating to v3.10?

I'm new to reporting feedback and wasn't sure where the best place to post this, should this issue be re-opened, or would it be better for me to raise a new one?

Albertowue commented 2 years ago

Same for me, last night I updated check_config to 3.10 and try the conf for Home Assistant 2022-02-07 but the error is the same as before.

viktak commented 2 years ago

Same here...

Akisame-AI commented 2 years ago

I just upgraded from a pi 3 to a pi 4 booting from an SSD last weekend using the latest pre-compiled image. When checking "check home assistant configuration" for the update from core-2022.2.6 to core-2022.2.8 I got the same error:

[15:43:13] ERROR: The configuration check did not pass!
[15:43:13] ERROR: See the output below for more details.
Testing configuration at /tmp/config
Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'
Failed config
  General Errors: 
    - [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'

Successful config (partial)

So I decided to upgrade multidict using the following method:

docker exec -it homeassistant /bin/bash
apk add build-base
apk add python-dev
pip3 install --upgrade multidict

(build-base is required for gcc and python-dev is required for the required python.h file.)

Which didn't work. Then I tried to do the same with the python outside of the docker (and I added a symbolic link to make sure the path was correct for the python outside of the home assistant docker as well) and that didn't work either... So at this point I don't know what is going on. Is it working in the wrong docker or something?? Because I am 100% sure that '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA' exists. Both inside as outside the home assistant docker.

So as a last ditch effort I tried rebooting one last time to see if that would fix it but it didn't so I don't know anymore.

Kisty commented 2 years ago

My apologies. I wasn't sure how to test the update that upgraded the HA base images and was one of the suggestions in the past and so I hoped it worked. Apparently not.

Think this needs reopening @frenck

Daneish commented 2 years ago

My apologies. I wasn't sure how to test the update that upgraded the HA base images and was one of the suggestions and so I hoped it worked. Apparently not.

Think this needs reopening @frenck

No worries, I appreciate your work regardless! Does it appear that this is just a bug in the Add-on, or is it reporting a genuine issue?

viktak commented 2 years ago

Happening in 2022.2.9..

cfdresearch commented 2 years ago

Hi, 2022.2.9, supervisor installation, same for me:

Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA' Failed config General Errors:

Successful config (partial)

newbyp commented 2 years ago

And me

INFO:homeassistant.helpers.storage:Migrating core.device_registry storage from 1.2 to 1.3 INFO:homeassistant.helpers.storage:Migrating core.entity_registry storage from 1.4 to 1.5 Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA' Failed config General Errors:

Kisty commented 2 years ago

What hardware are you all running? Raspberry Pis, ODroid, single board computers?

Akisame-AI commented 2 years ago

What hardware are you all running? Raspberry Pis, ODroid, single board computers?

Raspberry pi 4, booting from an ssd I am running core-2022.2.6 on OS version 5.10.92-v8 with HA OS 7.4. Docker version 20.10.9 Python version 3.9.7

newbyp commented 2 years ago

I’m using a pi 3B+

System Health

version core-2021.12.10
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.92-v7
arch armv7l
timezone Europe/London
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | 17 March 2022, 00:00 relayer_connected | true remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | true remote_server | eu-west-2-1.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 7.4 -- | -- update_channel | stable supervisor_version | supervisor-2022.01.1 docker_version | 20.10.9 disk_total | 113.7 GB disk_used | 14.4 GB healthy | true supported | true board | rpi3 supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.3.0), Samba share (9.5.1), Node-RED (11.0.3), flicd (2.0.3), Check Home Assistant configuration (3.10.0), File editor (5.3.3), Home Assistant Google Drive Backup (0.105.2), FTP (4.4.1)
Lovelace dashboards | 1 -- | -- resources | 0 views | 12 mode | storage
112gabrielgn commented 2 years ago

I have the same problem [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA' Failed config

Intel nuc i3

cfdresearch commented 2 years ago

What hardware are you all running? Raspberry Pis, ODroid, single board computers?

Raspi 4B+, SSD 128 Gb.

System Health

version core-2022.2.9
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.15.21-v7l+
arch armv7l
timezone Europe/Moscow
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 4853 Installed Version | 1.22.0 Stage | running Available Repositories | 978 Downloaded Repositories | 25
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | March 13, 2022, 03:00 relayer_connected | true remote_enabled | true remote_connected | true alexa_enabled | false google_enabled | false remote_server | eu-central-1-3.ui.nabu.casa can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Raspbian GNU/Linux 10 (buster) -- | -- update_channel | stable supervisor_version | supervisor-2022.01.1 docker_version | 20.10.12 disk_total | 117.1 GB disk_used | 11.3 GB healthy | true supported | failed to load: Unsupported supervisor_api | ok version_api | ok installed_addons | File editor (5.3.3), MariaDB (2.4.0), Mosquitto broker (6.0.1), Zigbee2mqtt (1.23.0-1), Home Assistant Google Drive Backup (0.105.2), Samba share (9.5.1), Check Home Assistant configuration (3.10.0), ESPHome (2022.2.3), RPC Shutdown (2.2), Git pull (7.13.1), ZeroTier One (0.12.2), Grafana (7.4.1), Node-RED (11.0.3)
Lovelace dashboards | 2 -- | -- resources | 12 views | 10 mode | yaml
alpharesearch commented 2 years ago

[14:18:12] ERROR: The configuration check did not pass! [14:18:12] ERROR: See the output below for more details. Testing configuration at /tmp/config INFO:homeassistant.helpers.storage:Migrating core.device_registry storage from 1.2 to 1.3 INFO:homeassistant.helpers.storage:Migrating core.entity_registry storage from 1.4 to 1.5 Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA' Failed config General Errors:

System Health

version core-2021.12.10
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.4.79-v7l+
arch armv7l
timezone America/New_York
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 5000 Installed Version | 1.19.3 Stage | running Available Repositories | 977 Downloaded Repositories | 6
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 | Raspbian GNU/Linux 10 (buster) -- | -- update_channel | stable supervisor_version | supervisor-2022.01.1 docker_version | 20.10.1 disk_total | 469.2 GB disk_used | 34.0 GB healthy | true supported | failed to load: Unsupported supervisor_api | ok version_api | ok installed_addons | SQLite Web (3.2.1), chrony (2.2.2), Mosquitto broker (6.0.1), File editor (5.3.3), NGINX Home Assistant SSL proxy (3.1.1), Node-RED (11.0.3), Glances (0.14.2), Home Assistant Google Drive Backup (0.105.2), PicoTTS (1.0-2), Grafana (7.4.1), Terminal & SSH (9.3.0), Let's Encrypt (4.12.0), DSS VoIP Notifier (3.5.9), MariaDB (2.4.0), Network UPS Tools (0.9.1), AdGuard Home (4.4.4), Vaultwarden (Bitwarden) (0.15.0), RPC Shutdown (2.2), Z-Wave JS (0.1.54), TasmoAdmin (0.16.0), Samba share (9.3.0), ADT Pulse MQTT (2.4.0), InfluxDB (4.3.0), Check Home Assistant configuration (3.10.0)
Lovelace dashboards | 2 -- | -- resources | 2 views | 11 mode | storage
Daneish commented 2 years ago

What hardware are you all running? Raspberry Pis, ODroid, single board computers?

I’m running Raspberry Pi 4B 4GB + SSD.

viktak commented 2 years ago

System Health

version core-2022.2.9
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.0-11-amd64
arch x86_64
timezone Europe/Athens
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 5000 Installed Version | 1.22.0 Stage | running Available Repositories | 997 Downloaded Repositories | 30
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 | Debian GNU/Linux 11 (bullseye) -- | -- update_channel | stable supervisor_version | supervisor-2022.01.1 docker_version | 20.10.12 disk_total | 227.3 GB disk_used | 15.2 GB healthy | true supported | failed to load: Unsupported supervisor_api | ok version_api | ok installed_addons | Z-Wave JS (0.1.54), Check Home Assistant configuration (3.10.0), Node-RED (11.0.3)
Lovelace dashboards | 4 -- | -- resources | 18 views | 20 mode | yaml
Spotify api_endpoint_reachable | ok -- | --
tasranson commented 2 years ago

Raspberry Pi 4 8GB.

Kind Regards,

Tas Ranson m +61 400 223 502

From: Daneish @.> Sent: Monday, 21 February 2022 15:11 To: home-assistant/addons @.> Cc: tasranson @.>; Comment @.> Subject: Re: [home-assistant/addons] Fatal error while loading config (Issue #2373)

What hardware are you all running? Raspberry Pis, ODroid, single board computers?

I'm running Raspberry Pi 4B 4GB + SSD.

- Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhome-assistant%2Faddons%2Fissues%2F2373%23issuecomment-1046468522&data=04%7C01%7C%7C1f43a6ad5bb1434c377f08d9f4f45b19%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637810152600448013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=1wUpJihhW7d9LzLZ1fyCqr7SSQzsAycR34MAVieuda8%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARSOECP6UDYKZKDTYE7HFYTU4G65VANCNFSM5NQDM5SQ&data=04%7C01%7C%7C1f43a6ad5bb1434c377f08d9f4f45b19%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637810152600448013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6d4oBCI7ZVux75Op%2FAVi%2FT%2BGBC6qaufCmXZMDQpMf1A%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C1f43a6ad5bb1434c377f08d9f4f45b19%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637810152600448013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=T2hnkFQZ3eJ2DU8GNM0KIc3EgbM34Uq1Y24FV3AZ9QQ%3D&reserved=0 or Androidhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7C1f43a6ad5bb1434c377f08d9f4f45b19%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637810152600448013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=wuJtVX0%2BHVnHDI9WU%2BiJtkS2QMr7kP9HRB%2Bw8HGi6xs%3D&reserved=0. You are receiving this because you commented.Message ID: @.**@.>>

thechad0351 commented 2 years ago

Same issue, running in a VM on Linux (ex office PC i5-4570)

INFO:homeassistant.util.package:Attempting install of colorlog==6.6.0 Testing configuration at /tmp/config INFO:homeassistant.helpers.storage:Migrating core.device_registry storage from 1.1 to 1.3 INFO:homeassistant.helpers.storage:Migrating core.entity_registry storage from 1.1 to 1.5 INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.4.27 INFO:homeassistant.util.package:Attempting install of bellows==0.29.0 INFO:homeassistant.util.package:Attempting install of zha-quirks==0.0.66 INFO:homeassistant.util.package:Attempting install of zigpy-deconz==0.14.0 Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA' Failed config General Errors: 

Kisty commented 2 years ago

OK. I think the common denominator is using a Zigbee USB stick or hardware addon. Is that right? I'm using a CC2531 flashed with Zigbee2mqtt firmware

viktak commented 2 years ago

True, I do use the following stick: EZSP = Silicon Labs EmberZNet protocol: Elelabs, HUSBZB-1, Telegesis by ZHA

Akisame-AI commented 2 years ago

I am not using one and I got the same error. (Using a fresh installation with only duck dns, TFA and alexa media player via HACS on a pi 4 via ssd)

tasranson commented 2 years ago

Could be, I have a zigbee USB stick too.

Kind Regards,

Tas Ranson m +61 400 223 502

From: Timothy Kist @.> Sent: Tuesday, 22 February 2022 19:22 To: home-assistant/addons @.> Cc: tasranson @.>; Comment @.> Subject: Re: [home-assistant/addons] Fatal error while loading config (Issue #2373)

OK. I think the common denominator is using a Zigbee USB stick or hardware addon. Is that right? I'm using a CC2531 flashed with Zigbee2mqtt firmware

- Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhome-assistant%2Faddons%2Fissues%2F2373%23issuecomment-1047559590&data=04%7C01%7C%7Cd65f0cc1f8de4af5145608d9f5e08974%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637811167006614280%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=sZh3LHteJkxoR39WrgrrBXYc0cOt95EFsxbbApWw%2B68%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FARSOECKZT46Q2SB33VREQZDU4NFBRANCNFSM5NQDM5SQ&data=04%7C01%7C%7Cd65f0cc1f8de4af5145608d9f5e08974%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637811167006614280%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=LoNgsXpKTQcBu5eHuWYBug6ziiv02zw0Ik35q3Jy3f0%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7Cd65f0cc1f8de4af5145608d9f5e08974%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637811167006614280%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=0X3mIeayTYIOvVIdoNMgEuDn%2Fjo8SHpMF%2BJUHImOnoA%3D&reserved=0 or Androidhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7Cd65f0cc1f8de4af5145608d9f5e08974%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637811167006614280%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=WczfgF8OgqwVADw1ckp9d5dhCk%2F0qmIsGiyRBuJkO4I%3D&reserved=0. You are receiving this because you commented.Message ID: @.**@.>>

Kisty commented 2 years ago

@Akisame-AI

I am not using one and I got the same error. (Using a fresh installation with only duck dns, TFA and alexa media player via HACS on a pi 4 via ssd)

Strange, though I think there's an integration that's requiring multidict 6.0.0+ but it can't install it. Do you have similar logs you can post?

newbyp commented 2 years ago

OK. I think the common denominator is using a Zigbee USB stick or hardware addon. Is that right? I'm using a CC2531 flashed with Zigbee2mqtt firmware

I’m not using Zigbee, I do use Broadlink.

cfdresearch commented 2 years ago

@Akisame-AI

I am not using one and I got the same error. (Using a fresh installation with only duck dns, TFA and alexa media player via HACS on a pi 4 via ssd)

Strange, though I think there's an integration that's requiring multidict 6.0.0+ but it can't install it. Do you have similar logs you can post?

Hi. Firstly, using a zigbee USB stick. Second - did a manual update of the multidict (via pip3 install --upgrade multidict in docker) and then: xxx@yyy:~ $ docker exec -it homeassistant /bin/bash bash-5.1# ls -la /usr/local/lib/python3.9/site-packages/ | grep multi drwxr-xr-x 3 root root 4096 Feb 19 14:47 multidict drwxr-xr-x 2 root root 4096 Feb 19 14:47 multidict-6.0.2.dist-info

and at the same time with Check Home Assistant configuration:

` [12:49:53] ERROR: The configuration check did not pass! [12:49:53] ERROR: See the output below for more details. Testing configuration at /tmp/config Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA' Failed config General Errors:

Daneish commented 2 years ago

OK. I think the common denominator is using a Zigbee USB stick or hardware addon. Is that right? I'm using a CC2531 flashed with Zigbee2mqtt firmware

I’m not running any Zigbee sticks, but I am running a USB SSD, if that’s what you meant by hardware add on?

Kisty commented 2 years ago

Thanks all

@cfdresearch That's expected I think because there's a dependency constraint meaning that homeassistant can't install multidict>=6.0.0. Can you do a ha core check after redoing the manual multidict upgrade on the homeassistant container and post the logs?

Kisty commented 2 years ago

@Daneish strange. Can you post the /share/check_config.txt file after running Check config addon? You can access the file from either Samba or SSH addon.

Akisame-AI commented 2 years ago

@Akisame-AI

I am not using one and I got the same error. (Using a fresh installation with only duck dns, TFA and alexa media player via HACS on a pi 4 via ssd)

Strange, though I think there's an integration that's requiring multidict 6.0.0+ but it can't install it. Do you have similar logs you can post?

I have manually installed multidict-6.0.2 in both the docker as well as outside the docker. To do that I had to install both build-base and Python3-dev in order to compile it. (and create a symbolic link outside the docker so the path would be correct outside of the docker) However....Now that I am looking back into the terminal....It seems everything outside of the docker has been reset... But only outside of the docker. The build-base, python3-dev and multidic-6.0.2.dist-info is still there inside the docker. Weird.

Anyway, I have multidict-6.0.2 installed as shown below: image But when I run Check Home Assistant configuration I still get the following:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[11:12:02] INFO: Don't worry, this temporary installation is not overwriting your current one.
[11:12:02] INFO: Installing Home Assistant: stable...
[11:12:02] INFO: Please be patient, this might take a few minutes...
[11:13:40] INFO: Installed Home Assistant 2022.2.9
[11:13:40] INFO: Making a copy of your configuration for checking...
[11:13:41] INFO: Checking your configuration against this version...
[11:17:11] ERROR: The configuration check did not pass!
[11:17:11] ERROR: See the output below for more details.
Testing configuration at /tmp/config
Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'
Failed config
  General Errors: 
    - [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'

Successful config (partial)
[11:17:11] INFO: The full output has been written to /share/check_config.txt
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Thanks all

@cfdresearch That's expected I think because there's a dependency constraint meaning that homeassistant can't install multidict>=6.0.0. Can you do a ha core check after redoing the manual multidict upgrade on the homeassistant container and post the logs?

Running ha core check I get the following:

~ ha core check
Processing... Done.

Command completed successfully.

The logs only have following new entries:

Logger: homeassistant.components.homeassistant
Source: components/homeassistant/__init__.py:70
Integration: Home Assistant Core Integration (documentation, issues)
First occurred: February 17, 2022, 5:37:52 PM (195 occurrences)
Last logged: 11:18:45 AM

The service homeassistant.turn_off cannot be called without a target

Logger: asyncio
Source: /usr/local/lib/python3.9/asyncio/selector_events.py:911
First occurred: February 19, 2022, 1:25:16 PM (100 occurrences)
Last logged: 11:22:05 AM

socket.send() raised exception.

The first one is due to an automation where I have an empty turn_off event Supervisor log:

22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.PLUGIN
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.CORE
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.check] System checks complete
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
22-02-22 11:17:33 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
22-02-22 11:19:23 INFO (MainThread) [supervisor.api.middleware.security] /core/check access from a0d7b954_ssh
22-02-22 11:19:23 INFO (SyncWorker_1) [supervisor.docker] Runing command 'python3 -m homeassistant -c /config --script check_config' on ghcr.io/home-assistant/raspberrypi4-64-homeassistant
22-02-22 11:21:46 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant config is valid
22-02-22 11:22:02 ERROR (MainThread) [supervisor.api.ingress] Ingress error: [Errno 104] Connection reset by peer
22-02-22 11:24:45 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token

Core logs has nothing interesting.

/share/check_config.txt

INFO:homeassistant.util.package:Attempting install of colorlog==6.6.0
Testing configuration at /tmp/config
INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.7.0
INFO:homeassistant.util.package:Attempting install of wakeonlan==2.0.1
INFO:homeassistant.util.package:Attempting install of mutagen==1.45.1
INFO:homeassistant.util.package:Attempting install of gTTS==2.2.3
INFO:homeassistant.util.package:Attempting install of hass-nabucasa==0.52.0
INFO:homeassistant.util.package:Attempting install of scapy==2.4.5
INFO:homeassistant.util.package:Attempting install of aiodiscover==1.4.7
INFO:homeassistant.util.package:Attempting install of home-assistant-frontend==20220203.1
INFO:homeassistant.util.package:Attempting install of PyNaCl==1.4.0
INFO:homeassistant.util.package:Attempting install of emoji==1.6.3
INFO:homeassistant.util.package:Attempting install of zeroconf==0.38.3
INFO:homeassistant.util.package:Attempting install of pyudev==0.22.0
INFO:homeassistant.util.package:Attempting install of pyserial==3.5
INFO:homeassistant.util.package:Attempting install of async-upnp-client==0.23.4
INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.4.27
INFO:homeassistant.util.package:Attempting install of pillow==9.0.1
INFO:homeassistant.util.package:Attempting install of PyTurboJPEG==1.6.5
Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'
Failed config
  General Errors: 
    - [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA'

Successful config (partial)

Ooh and my system info for good measure: Running on a pi 4 with usb SSD

System Health

version core-2022.2.6
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.92-v8
arch aarch64
timezone Europe/Amsterdam
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 5000 Installed Version | 1.22.0 Stage | running Available Repositories | 1061 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 7.4 -- | -- update_channel | stable supervisor_version | supervisor-2022.01.1 docker_version | 20.10.9 disk_total | 237.7 GB disk_used | 16.5 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | Let's Encrypt (4.12.0), Duck DNS (1.14.0), Samba share (9.5.1), SSH & Web Terminal (10.0.2), File editor (5.3.3), Dnsmasq (1.4.4), Studio Code Server (4.1.0), ESPHome (2022.2.4), Home Panel (2.3.3), Check Home Assistant configuration (3.10.0)
Lovelace dashboards | 1 -- | -- resources | 1 views | 5 mode | storage
newbyp commented 2 years ago

Here is my log for a comparison

INFO:homeassistant.util.package:Attempting install of colorlog==6.6.0 Testing configuration at /tmp/config INFO:homeassistant.helpers.storage:Migrating core.device_registry storage from 1.2 to 1.3 INFO:homeassistant.helpers.storage:Migrating core.entity_registry storage from 1.4 to 1.5 INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.4.27 INFO:homeassistant.util.package:Attempting install of ring_doorbell==0.7.2 INFO:homeassistant.util.package:Attempting install of ha-ffmpeg==3.0.2 INFO:homeassistant.util.package:Attempting install of scapy==2.4.5 INFO:homeassistant.util.package:Attempting install of aiodiscover==1.4.7 INFO:homeassistant.util.package:Attempting install of broadlink==0.18.0 INFO:homeassistant.util.package:Attempting install of home-assistant-frontend==20220203.1 INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.7.0 INFO:homeassistant.util.package:Attempting install of pillow==9.0.1 INFO:homeassistant.util.package:Attempting install of PyTurboJPEG==1.6.5 INFO:homeassistant.util.package:Attempting install of netdisco==3.0.0 INFO:homeassistant.util.package:Attempting install of mutagen==1.45.1 INFO:homeassistant.util.package:Attempting install of gTTS==2.2.3 Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA' Failed config General Errors: 

Daneish commented 2 years ago

@Daneish strange. Can you post the /share/check_config.txt file after running Check config addon? You can access the file from either Samba or SSH addon.

`1st INFO:homeassistant.util.package:Attempting install of colorlog==6.6.0 Testing configuration at /tmp/config INFO:homeassistant.util.package:Attempting install of spotipy==2.19.0 INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.7.0 INFO:homeassistant.util.package:Attempting install of zeroconf==0.38.3 INFO:homeassistant.util.package:Attempting install of aiofiles==0.6.0 INFO:homeassistant.util.package:Attempting install of numpy==1.21.4 INFO:homeassistant.util.package:Attempting install of paho-mqtt==1.6.1 INFO:homeassistant.util.package:Attempting install of croniter==1.0.6 INFO:homeassistant.util.package:Attempting install of mutagen==1.45.1 INFO:homeassistant.util.package:Attempting install of gTTS==2.2.3 Fatal error while loading config: [Errno 2] No such file or directory: '/usr/local/lib/python3.9/site-packages/multidict-6.0.2.dist-info/METADATA' Failed config General Errors: 

Edit: That one was from a few days ago, but ran it again and got the same result, failing after gTTS, which I also notice is the same as @newbyp above (but that could just be coincidence).

Kisty commented 2 years ago

Have tested my config with 2022.03.0b1 and it's all fixed :)