Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 99036

Cert_expiry: Network unreachable

$
0
0

@guice wrote:

I’m getting Network Unreachable, but no idea why.

Configuration is:

sensor:
  - platform: cert_expiry
    host: {myhostname.com}
    port: 2087

I have verified the homeassistant docker container can successfully curl to {myhostname.com}:2087

How can I get more logging as to what’s happening? I have, but it’s not showing anything extra:

logger:
  logs:
    homeassistant.components.cert_expiry: debug
    homeassistant.components.sensor: debug

The only error I’m getting is:

2020-05-24 11:56:53 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up cert_expiry platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/src/homeassistant/homeassistant/components/cert_expiry/sensor.py", line 68, in async_setup_entry
    days = await get_cert_time_to_expiry(hass, hostname, port)
  File "/usr/src/homeassistant/homeassistant/components/cert_expiry/helper.py", line 29, in get_cert_time_to_expiry
    cert = await hass.async_add_executor_job(get_cert, hostname, port)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/cert_expiry/helper.py", line 19, in get_cert
    with socket.create_connection(address, timeout=TIMEOUT) as sock:
  File "/usr/local/lib/python3.7/socket.py", line 728, in create_connection
    raise err
  File "/usr/local/lib/python3.7/socket.py", line 716, in create_connection
    sock.connect(sa)
OSError: [Errno 101] Network unreachable

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>