Trouble with html5 and iOS notifications (homeassistant cant talk on port 443?)

Hello everyone. So I am trying to set up notifications on my browser through HTML5, and on my phone through the iOS app. Now I have gone through the proper setup process for each component. Whenever I send a test notification to each using the developer tools. I receive constant errors (see below for each). Also when looking in my logs, I see a repeating notification from the cloud service saying that it is having trouble as well (see below as well). Does anyone have any suggestions at all because I am completely lost at this point.

My install: Hass.io running in Ubuntu 17.04 on an HP G42 Laptop
Addons: Configurator, Samba. SSH, DuckDNS

HTML error:
2018-06-17 22:10:09 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall notify.html5: message=<homeassistant.helpers.template.Template object at 0xb202520c>>
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/urllib3/connection.py”, line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File “/usr/lib/python3.6/site-packages/urllib3/util/connection.py”, line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/lib/python3.6/socket.py”, line 745, 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/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 601, in urlopen
chunked=chunked)
File “/usr/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 346, in _make_request
self._validate_conn(conn)
File “/usr/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 850, in _validate_conn
conn.connect()
File “/usr/lib/python3.6/site-packages/urllib3/connection.py”, line 284, in connect
conn = self._new_conn()
File “/usr/lib/python3.6/site-packages/urllib3/connection.py”, line 150, in _new_conn
self, “Failed to establish a new connection: %s” % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb244ca8c>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/requests/adapters.py”, line 440, in send
timeout=timeout
File “/usr/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/lib/python3.6/site-packages/urllib3/util/retry.py”, line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘android.googleapis.com’, port=443): Max retries exceeded with url: /gcm/send (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb244ca8c>: Failed to establish a new connection: [Errno -3] Try again’,))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/core.py”, line 1007, in _event_to_service_call
await service_handler.func(service_call)
File “/usr/lib/python3.6/site-packages/homeassistant/components/notify/init.py”, line 137, in async_notify_message
yield from notify_service.async_send_message(**kwargs)
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/notify/html5.py”, line 413, in send_message
json.dumps(payload), gcm_key=gcm_key, ttl=‘86400’
File “/usr/lib/python3.6/site-packages/pywebpush/init.py”, line 301, in send
timeout=timeout)
File “/usr/lib/python3.6/site-packages/requests/api.py”, line 112, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/usr/lib/python3.6/site-packages/requests/api.py”, line 58, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/lib/python3.6/site-packages/requests/sessions.py”, line 508, in request
resp = self.send(prep, **send_kwargs)
File “/usr/lib/python3.6/site-packages/requests/sessions.py”, line 618, in send
r = adapter.send(request, **kwargs)
File “/usr/lib/python3.6/site-packages/requests/adapters.py”, line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘android.googleapis.com’, port=443): Max retries exceeded with url: /gcm/send (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb244ca8c>: Failed to establish a new connection: [Errno -3] Try again’,))

iOS error:
2018-06-17 21:41:25 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall notify.notify: message=<homeassistant.helpers.template.Template object at 0xb245278c>, title=<homeassistant.helpers.template.Template object at 0xb2452bec>>
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/urllib3/connection.py”, line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File “/usr/lib/python3.6/site-packages/urllib3/util/connection.py”, line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/lib/python3.6/socket.py”, line 745, 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/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 601, in urlopen
chunked=chunked)
File “/usr/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 346, in _make_request
self._validate_conn(conn)
File “/usr/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 850, in _validate_conn
conn.connect()
File “/usr/lib/python3.6/site-packages/urllib3/connection.py”, line 284, in connect
conn = self._new_conn()
File “/usr/lib/python3.6/site-packages/urllib3/connection.py”, line 150, in _new_conn
self, “Failed to establish a new connection: %s” % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0xb20a5bec>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/requests/adapters.py”, line 440, in send
timeout=timeout
File “/usr/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/lib/python3.6/site-packages/urllib3/util/retry.py”, line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘ios-push.home-assistant.io’, port=443): Max retries exceeded with url: /push (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb20a5bec>: Failed to establish a new connection: [Errno -3] Try again’,))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/core.py”, line 1007, in _event_to_service_call
await service_handler.func(service_call)
File “/usr/lib/python3.6/site-packages/homeassistant/components/notify/init.py”, line 137, in async_notify_message
yield from notify_service.async_send_message(**kwargs)
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/homeassistant/components/notify/ios.py”, line 94, in send_message
req = requests.post(PUSH_URL, json=data, timeout=10)
File “/usr/lib/python3.6/site-packages/requests/api.py”, line 112, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/usr/lib/python3.6/site-packages/requests/api.py”, line 58, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/lib/python3.6/site-packages/requests/sessions.py”, line 508, in request
resp = self.send(prep, **send_kwargs)
File “/usr/lib/python3.6/site-packages/requests/sessions.py”, line 618, in send
r = adapter.send(request, **kwargs)
File “/usr/lib/python3.6/site-packages/requests/adapters.py”, line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘ios-push.home-assistant.io’, port=443): Max retries exceeded with url: /push (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb20a5bec>: Failed to establish a new connection: [Errno -3] Try again’,))

Cloud error:
2018-06-17 21:41:33 ERROR (MainThread) [homeassistant.components.cloud] Error fetching Cognito keyset: Cannot connect to host cognito-idp.us-east-1.amazonaws.com:443 ssl:None [Try again]

Is your ISP blocking any incoming ports, particularly port 443?

Nope I just checked and my ISP does not block port 443. I also have duckDNS/my router configured to forward port 443 to my instance of home assistant automatically. So I am not sure what the issue is here still.

Ok so I just fixed this issue by reinstalling Ubuntu and updating it to 18.04 and this has fixed all of my issues. I do not know what was wrong in my previous install but something was clearly blocking communication through that port. If you are having this issue I highly recommend that you reinstall your OS and reload Hassio from a snapshot