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

Configuration validation (Check Config) takes longer than usual (some minutes) #26023

Closed
Guyohms opened this issue Aug 17, 2019 · 15 comments
Closed

Comments

@Guyohms
Copy link

Guyohms commented Aug 17, 2019

Home Assistant release with the issue:
0.97.1

Last working Home Assistant release (if known):
Maybe a few releases back

Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io on RPI3B+

Component/platform:
https://www.home-assistant.io/docs/tools/check_config/

Description of problem:
Since a few days I observed that the configuration validation (from the server control page) takes a lot more time that it used to.

It takes 2-3 minutes to finish when before it took 10 seconds at most.
it’s irritating when you want to test new configs…

I tried to restart/reboot a few times and nothing changed.
There’s nothing in the logs at the time I do a config check.

EDIT: The restart of Home Assistant is also impacted by this and takes more time than before.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):


Additional information:
Some other users are experiencing this issue as seen here:
https://community.home-assistant.io/t/configuration-validation-takes-longer-than-usual-some-minutes/132279

@earth08
Copy link

earth08 commented Aug 17, 2019

I am facing same problem with 0.97.2 on rpi3b+.

@aptonline
Copy link

aptonline commented Aug 17, 2019

Same issue here with Home Assistant 0.97.2 in docker.

@Guyohms
Copy link
Author

Guyohms commented Aug 18, 2019

Restarting Home Assistant takes a lot longer than before too.

It might be related to the same issue because I think that the check config is called when restarting. Correct me if I'm wrong.

@earth08
Copy link

earth08 commented Aug 19, 2019

@torquedelight
You r correct
Restart takes place after checking config
So both will take same time

@LordBoos
Copy link
Contributor

I've noticed this too. It takes minutes to restart or check configuration now. Before it was 10-20 seconds on my tinker board s.

@Guyohms Guyohms changed the title Configuration validation takes longer than usual (some minutes) Configuration validation (Check Config) takes longer than usual (some minutes) Aug 21, 2019
@earth08
Copy link

earth08 commented Aug 23, 2019

Have we all installed alexa_media custom addon?

@narfel
Copy link

narfel commented Aug 23, 2019

I don't have alexa_media custom installed and have the same problem. For what it's worth i do have the hue_emulation component running.

@Guyohms
Copy link
Author

Guyohms commented Aug 23, 2019

For my part, here's what I have:

Custom components:

  • Breaking changes
  • HACS
  • Raspberry Pi Power Supply Checker

Integrations:

  • MQTT
  • HACS
  • ESPHome

I don't think Hass.io add-ons can play a role in this so I haven't listed them.

@kellerza
Copy link
Member

Can you please try the following test & report back:

  • go to server control & select check_config
  • time & wait for completion
  • immediately run it again & time

Thx

@narfel
Copy link

narfel commented Aug 23, 2019

I get 1:39 min and mins 1:21 min for the second time. Probably at the same time in my log this shows up (can't tell if related, my log gets flooded with messages from #24728):

(SyncWorker_2) [homeassistant.util.package] Attempting install of integrationhelper==0.2.1
(SyncWorker_5) [homeassistant.util.package] Attempting install of integrationhelper==0.2.2

@kellerza
Copy link
Member

Thanks, I got a significant shorter time the second click around and wondered if it was pip/dependency related. Yours seems like it could be a pip version conflict for integrationhelper

@Guyohms
Copy link
Author

Guyohms commented Aug 23, 2019

I get similar results to @narfel :

  • 1st run: 1:29
  • 2nd run: 1:32

And I also have this in the log that I thought unrelated at first:

(SyncWorker_9) [homeassistant.util.package] Attempting install of integrationhelper==0.2.1
(SyncWorker_7) [homeassistant.util.package] Attempting install of integrationhelper==0.2.2
(SyncWorker_14) [homeassistant.util.package] Attempting install of integrationhelper==0.2.1
(SyncWorker_6) [homeassistant.util.package] Attempting install of integrationhelper==0.2.2

@narfel
Copy link

narfel commented Aug 24, 2019

Didn't expect anything to change, but just for the record installing integrationhelper with

pip3 install integrationhelper

via the terminal addon does not change anything. I have a feeling it is the same problem as #18651 was.

@kellerza
Copy link
Member

@narfel luckily we don;t develop software based on feelings

For @TorqueDelight and @narfel at least the reason config_checker is slow is custom addons, I guess this is the reason for people in this thread. If you are not using custom addons and experiencing this, please feel free to open another issue.

@jdesai61
Copy link

jdesai61 commented Dec 8, 2020

In my case, the ha-wyzesense component was the culprit. Removing it fixed config check taking 2+ minutes. However, I am still not sure why "ha core check" takes considerably longer (30+ seconds) than UI (Configuration -> Server Control -> CHECK CONFIGURATION). The UI takes less than ten seconds. Using HASSIO OS on RPI3 - and hass version (0.118.5)

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

No branches or pull requests

7 participants