Mayor problems: api.github.com

Mayor problems over here.

Noticing that HACS dissapears from sidebar. Then reappeared, then disappeared again.

2020-07-04 13:31:14 ERROR (MainThread) [backoff] Giving up call_api(...) after 5 tries (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:31:14 CRITICAL (MainThread) [hacs] [Cannot connect to host api.github.com:443 ssl:None [Try again]] - Could not load HACS!

Then alot of other errors to follow, all related to api.github.com
Integrations smhi, telldus etc is all effected.

2020-07-04 13:26:38 ERROR (MainThread) [homeassistant.components.updater] Error requesting Home Assistant update data: Cannot connect to host updater.home-assistant.io:443 ssl:None [Try again]
2020-07-04 13:28:36 ERROR (MainThread) [hacs] Could not set logging level to debug, logger is not enabled
2020-07-04 13:28:40 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall google.scan_for_calendars (c:e7f180d57eb04586b6b2cd32e9e3e98a)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/httplib2/__init__.py", line 1557, in _conn_request
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/httplib2/__init__.py", line 1305, in connect
    address_info = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM)
  File "/usr/local/lib/python3.7/socket.py", line 752, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1276, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1299, in _execute_service
    await self._hass.async_add_executor_job(handler.func, service_call)
  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/google/__init__.py", line 257, in _scan_for_calendars
    service = calendar_service.get()
  File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 349, in get
    "calendar", "v3", http=http, cache_discovery=False
  File "/usr/local/lib/python3.7/site-packages/oauth2client/_helpers.py", line 133, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery.py", line 229, in build
    requested_url, discovery_http, cache_discovery, cache)
  File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery.py", line 276, in _retrieve_discovery_doc
    resp, content = http.request(actual_url)
  File "/usr/local/lib/python3.7/site-packages/oauth2client/transport.py", line 175, in new_request
    redirections, connection_type)
  File "/usr/local/lib/python3.7/site-packages/oauth2client/transport.py", line 282, in request
    connection_type=connection_type)
  File "/usr/local/lib/python3.7/site-packages/httplib2/__init__.py", line 1994, in request
    cachekey,
  File "/usr/local/lib/python3.7/site-packages/httplib2/__init__.py", line 1651, in _request
    conn, request_uri, method, body, headers
  File "/usr/local/lib/python3.7/site-packages/httplib2/__init__.py", line 1564, in _conn_request
    raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
httplib2.ServerNotFoundError: Unable to find the server at www.googleapis.com
2020-07-04 13:28:40 ERROR (MainThread) [homeassistant.setup] Error during setup of component sonoff
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 967, in _create_direct_connection
    traces=traces), loop=self._loop)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 830, in _resolve_host
    self._resolver.resolve(host, port, family=self._family)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/resolver.py", line 30, in resolve
    host, port, type=socket.SOCK_STREAM, family=family)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 792, in getaddrinfo
    None, getaddr_func, host, port, family, type, proto, flags)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/socket.py", line 752, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 190, in _async_setup_component
    result = await asyncio.wait_for(task, SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/config/custom_components/sonoff/__init__.py", line 59, in async_setup
    config[CONF_PASSWORD]):
  File "/config/custom_components/sonoff/sonoff_main.py", line 111, in cloud_login
    return await self._cloud.login(username, password)
  File "/config/custom_components/sonoff/sonoff_cloud.py", line 172, in login
    resp = await self._send('login', 'api/user/login', payload)
  File "/config/custom_components/sonoff/sonoff_cloud.py", line 64, in _send
    headers=headers)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 483, in _request
    timeout=real_timeout
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 523, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 859, in _create_connection
    req, traces, timeout)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 971, in _create_direct_connection
    raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host eu-api.coolkit.cc:8080 ssl:None [Try again]
2020-07-04 13:28:40 WARNING (SyncWorker_11) [tellduslive] Failed request: HTTPSConnectionPool(host='pa-api.telldus.com', port=443): Max retries exceeded with url: /json/clients/list (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6f5454b0>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:28:41 ERROR (MainThread) [homeassistant.components.mqtt] Failed to connect to MQTT server due to exception: [Errno -3] Try again
2020-07-04 13:28:42 ERROR (SyncWorker_6) [homeassistant.components.rest.sensor] Error fetching data: https://s3.amazonaws.com/hassio-version/stable.json failed with HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /hassio-version/stable.json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6e3c4c90>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:28:42 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet. Retrying in 30 seconds.
2020-07-04 13:28:43 ERROR (MainThread) [homeassistant.components.weather] smhi: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 967, in _create_direct_connection
    traces=traces), loop=self._loop)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 830, in _resolve_host
    self._resolver.resolve(host, port, family=self._family)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/resolver.py", line 30, in resolve
    host, port, type=socket.SOCK_STREAM, family=family)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 792, in getaddrinfo
    None, getaddr_func, host, port, family, type, proto, flags)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/socket.py", line 752, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 319, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
    await self.async_update()
  File "/usr/src/homeassistant/homeassistant/components/smhi/weather.py", line 104, in async_update
    self._forecasts = await self.get_weather_forecast()
  File "/usr/src/homeassistant/homeassistant/components/smhi/weather.py", line 121, in get_weather_forecast
    return await self._smhi_api.async_get_forecast()
  File "/usr/local/lib/python3.7/site-packages/smhi/smhi_lib.py", line 276, in async_get_forecast
    self._longitude, self._latitude
  File "/usr/local/lib/python3.7/site-packages/smhi/smhi_lib.py", line 233, in async_get_forecast_api
    async with self.session.get(api_url) as response:
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 1012, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 483, in _request
    timeout=real_timeout
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 523, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 859, in _create_connection
    req, traces, timeout)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/connector.py", line 971, in _create_direct_connection
    raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host opendata-download-metfcst.smhi.se:443 ssl:None [Try again]
2020-07-04 13:28:43 ERROR (SyncWorker_13) [homeassistant.components.google.calendar] Unable to connect to Google
2020-07-04 13:28:43 INFO (MainThread) [backoff] Backing off call_api(...) for 1.0s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:28:45 WARNING (SyncWorker_16) [tellduslive] Failed request: HTTPSConnectionPool(host='pa-api.telldus.com', port=443): Max retries exceeded with url: /json/devices/list?supportedMethods=915&includeIgnored=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6d09eb50>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:28:47 WARNING (MainThread) [homeassistant.components.calendar] Setup of calendar platform google is taking over 10 seconds.
2020-07-04 13:28:48 ERROR (SyncWorker_9) [homeassistant.components.google.calendar] Unable to connect to Google
2020-07-04 13:28:49 INFO (MainThread) [backoff] Backing off call_api(...) for 1.8s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:28:50 WARNING (SyncWorker_16) [tellduslive] Failed request: HTTPSConnectionPool(host='pa-api.telldus.com', port=443): Max retries exceeded with url: /json/sensors/list?includeValues=1&includeScale=1&includeIgnored=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6d5c4170>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:28:50 WARNING (MainThread) [homeassistant.components.tellduslive] Failed request
2020-07-04 13:28:53 ERROR (SyncWorker_10) [homeassistant.components.google.calendar] Unable to connect to Google
2020-07-04 13:28:56 INFO (MainThread) [backoff] Backing off call_api(...) for 0.6s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:28:58 ERROR (SyncWorker_19) [homeassistant.components.google.calendar] Unable to connect to Google
2020-07-04 13:29:02 INFO (MainThread) [backoff] Backing off call_api(...) for 2.5s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:29:03 ERROR (SyncWorker_13) [homeassistant.components.google.calendar] Unable to connect to Google
2020-07-04 13:29:08 ERROR (SyncWorker_7) [homeassistant.components.google.calendar] Unable to connect to Google
2020-07-04 13:29:09 ERROR (MainThread) [backoff] Giving up call_api(...) after 5 tries (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:29:15 INFO (MainThread) [backoff] Backing off call_api(...) for 0.9s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:29:21 INFO (MainThread) [backoff] Backing off call_api(...) for 1.5s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:29:27 INFO (MainThread) [backoff] Backing off call_api(...) for 0.3s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:29:32 INFO (MainThread) [backoff] Backing off call_api(...) for 6.8s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:29:44 ERROR (MainThread) [backoff] Giving up call_api(...) after 5 tries (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:29:44 CRITICAL (MainThread) [hacs] [Cannot connect to host api.github.com:443 ssl:None [Try again]] - Could not load HACS!
2020-07-04 13:29:44 WARNING (MainThread) [homeassistant.config_entries] Config entry for hacs not ready yet. Retrying in 5 seconds.
2020-07-04 13:30:02 ERROR (MainThread) [hacs] Could not set logging level to debug, logger is not enabled
2020-07-04 13:30:07 WARNING (SyncWorker_0) [tellduslive] Failed request: HTTPSConnectionPool(host='pa-api.telldus.com', port=443): Max retries exceeded with url: /json/devices/list?supportedMethods=915&includeIgnored=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6bc4a0f0>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:30:07 ERROR (SyncWorker_6) [homeassistant.components.rest.sensor] Error fetching data: https://s3.amazonaws.com/hassio-version/stable.json failed with HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /hassio-version/stable.json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6bd3fd10>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:30:09 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet. Retrying in 60 seconds.
2020-07-04 13:30:09 INFO (MainThread) [backoff] Backing off call_api(...) for 0.5s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:30:13 WARNING (SyncWorker_0) [tellduslive] Failed request: HTTPSConnectionPool(host='pa-api.telldus.com', port=443): Max retries exceeded with url: /json/sensors/list?includeValues=1&includeScale=1&includeIgnored=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6fdee0d0>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:30:13 WARNING (MainThread) [homeassistant.components.tellduslive] Failed request
2020-07-04 13:30:15 INFO (MainThread) [backoff] Backing off call_api(...) for 1.8s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:30:22 INFO (MainThread) [backoff] Backing off call_api(...) for 1.3s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:30:28 INFO (MainThread) [backoff] Backing off call_api(...) for 6.8s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:30:34 WARNING (SyncWorker_12) [tellduslive] Failed request: HTTPSConnectionPool(host='pa-api.telldus.com', port=443): Max retries exceeded with url: /json/devices/list?supportedMethods=915&includeIgnored=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6ece4390>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:30:39 WARNING (SyncWorker_12) [tellduslive] Failed request: HTTPSConnectionPool(host='pa-api.telldus.com', port=443): Max retries exceeded with url: /json/sensors/list?includeValues=1&includeScale=1&includeIgnored=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x695a6790>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:30:39 WARNING (MainThread) [homeassistant.components.tellduslive] Failed request
2020-07-04 13:30:40 ERROR (MainThread) [backoff] Giving up call_api(...) after 5 tries (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:30:45 INFO (MainThread) [backoff] Backing off call_api(...) for 0.6s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:30:51 INFO (MainThread) [backoff] Backing off call_api(...) for 0.8s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:30:57 INFO (MainThread) [backoff] Backing off call_api(...) for 2.3s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:31:00 WARNING (SyncWorker_4) [tellduslive] Failed request: HTTPSConnectionPool(host='pa-api.telldus.com', port=443): Max retries exceeded with url: /json/devices/list?supportedMethods=915&includeIgnored=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6fdfe9b0>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:31:04 INFO (MainThread) [backoff] Backing off call_api(...) for 4.8s (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])
2020-07-04 13:31:05 WARNING (SyncWorker_4) [tellduslive] Failed request: HTTPSConnectionPool(host='pa-api.telldus.com', port=443): Max retries exceeded with url: /json/sensors/list?includeValues=1&includeScale=1&includeIgnored=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x6c4481f0>: Failed to establish a new connection: [Errno -3] Try again'))
2020-07-04 13:31:05 WARNING (MainThread) [homeassistant.components.tellduslive] Failed request
2020-07-04 13:31:14 ERROR (MainThread) [backoff] Giving up call_api(...) after 5 tries (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.github.com:443 ssl:None [Try again])

Problem sorted!

I dont know the reason to the problem that any access from addons, updater, Hacs etc couldnt connect to api.github etc but the solution…

The Solution was a stop of Hassio and removed powercable. A complete shutdown! Restarted and voila. Its working again.