I’m wondering if anyone here has encountered anything like this as I’m running out of ideas to resolve the issue below.
My logfiles are being spammed roughly every 12 seconds with the message:
Nov 06 18:24:43 hass hass: /srv/homeassistant/lib/python3.6/site-packages/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings Nov 06 18:24:43 hass hass: InsecureRequestWarning)
I have the tried setting the logger default to
critical. With logger set to
critical the only messages I’m seeing are these errors. I’ve attempted to nail down just these errors with the following
default: error logs: requests.packages.urllib3.connectionpool: critical py.warnings: critical homeassistant.components.device_tracker: critical
That doesn’t work either.
The error text leads to a link which suggests
pip install certifi as a solution, which I’ve confirmed is available in my deployed venv.
For the unifi component I’ve set
verify_ssl: false. My UniFi installation is utilizing self-signed certs from a local CA, so I’ve added my CA’s .crt to
usr/share/ca-certificates/extra and ran
sudo dpkg-reconfigure ca-certificates to import the CA. Testing access to the URL from the cli via
wget https://unifi.domain.net:8443 returns a successful certificate check.
The only solution I’ve found to stop it is to completely disable the UniFi component. There appears to be a bug report for this issue from 6 months ago that suggests the issue is now fixed, but I’ve only seen this starting in the last few weeks (had to delete old logs as I ran out of disk because of this issue, so I don’t have an exact start date).
My system is running Ubuntu
3.6.1, and UniFi