Error loading Pushover after upgrade to 2022.12.0
The problem
see traceback
What version of Home Assistant Core has the issue?
core-2022.12.0
What was the last working version of Home Assistant Core?
core-2022.11.5
What type of installation are you running?
Home Assistant Core
Integration causing the issue
pushover
Link to integration documentation on our website
https://www.home-assistant.io/integrations/pushover/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2022-12-08 07:04:50.677 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry danmarotta for pushover
Traceback (most recent call last):
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.9/socket.py", line 953, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/urllib3/connection.py", line 358, in connect
conn = self._new_conn()
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a693e18b0>: Failed to establish a new connection: [Errno -2] Name or service
not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.pushover.net', port=443): Max retries exceeded with url: /1/users/validate.json (Caused by NewConnectio
nError('<urllib3.connection.HTTPSConnection object at 0x7f9a693e18b0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/homeassistant/config_entries.py", line 372, in async_setup
result = await component.async_setup_entry(hass, self)
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/homeassistant/components/pushover/__init__.py", line 34, in async_setup_entry
await hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/pushover_complete/pushover_api.py", line 239, in validate
return self._generic_post('users/validate.json', payload=payload)
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/pushover_complete/pushover_api.py", line 81, in _generic_post
resp = post(
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/srv/homeassistant_3.9/lib/python3.9/site-packages/requests/adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.pushover.net', port=443): Max retries exceeded with url: /1/users/validate.json (Caused by NewConnec
tionError('<urllib3.connection.HTTPSConnection object at 0x7f9a693e18b0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Additional information
running HA with python3.9 on ubuntu 18.04 on intel nuc
Hey there @engrbm87, mind taking a look at this issue as it has been labeled with an integration (pushover) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of pushover can trigger bot actions by commenting:
-
@home-assistant closeCloses the issue. -
@home-assistant rename Awesome new titleChange the title of the issue. -
@home-assistant reopenReopen the issue. -
@home-assistant unassign pushoverRemoves the current integration label and assignees on the issue, add the integration domain after the command.
(message by CodeOwnersMention)
pushover documentation pushover source (message by IssueLinks)
I can confirm that I'm getting the same error after updating to 2022.12.7
Home Assistant 2022.12.7 Supervisor 2022.11.2 Operating System 9.4 Frontend 20221213.1 - latest
Disabling / re-enabling the addon seems to have fixed it. Maybe Pushover was temporarily not available at the moment the addon was initializing
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.