Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to host core-zwave-js:3000 #63670

Closed
CyanAutomation opened this issue Jan 8, 2022 · 5 comments
Closed

Cannot connect to host core-zwave-js:3000 #63670

CyanAutomation opened this issue Jan 8, 2022 · 5 comments

Comments

@CyanAutomation
Copy link

The problem

Getting a strange error in the logs about secure connections internally, using the Z-wave JS integration.

What version of Home Assistant Core has the issue?

core-2021.12.8

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

zwave_js

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zwave_js/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.zwave_js
Source: components/zwave_js/__init__.py:468 
Integration: Z-Wave JS (documentation, issues) 
First occurred: 7 January 2022, 19:39:46 (3 occurrences) 
Last logged: 7 January 2022, 23:12:07

Failed to connect: Cannot connect to host core-zwave-js:3000 ssl:default [Connect call failed ('172.30.33.2', 3000)]

FURTHER LOG
Logger: homeassistant.components.websocket_api.http.connection
Source: components/zwave_js/api.py:1376 
Integration: Home Assistant WebSocket API (documentation, issues) 
First occurred: 7 January 2022, 19:39:46 (1 occurrences) 
Last logged: 7 January 2022, 19:39:46

[547488774944] Error handling message: Unknown error
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/zwave_js_server/client.py", line 79, in async_send_command
    return await future
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/api.py", line 290, in async_handle_failed_command_func
    await orig_func(hass, connection, msg, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/api.py", line 248, in async_get_entry_func
    await orig_func(hass, connection, msg, entry, client)
  File "/usr/src/homeassistant/homeassistant/components/zwave_js/api.py", line 1376, in websocket_heal_node
    result = await controller.async_heal_node(node_id)
  File "/usr/local/lib/python3.9/site-packages/zwave_js_server/model/controller.py", line 632, in async_heal_node
    data = await self.client.async_send_command(
  File "/usr/local/lib/python3.9/site-packages/zwave_js_server/client.py", line 81, in async_send_command
    self._result_futures.pop(message_id)
KeyError: '68da060bd3fd4976801fcf35aef4f1f9'

Additional information

I’ve noticed this error when trying to add Ring contact senses into Home Assistant

@probot-home-assistant
Copy link

Hey there @home-assistant/z-wave, mind taking a look at this issue as it has been labeled with an integration (zwave_js) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)


zwave_js documentation
zwave_js source
(message by IssueLinks)

@rexave
Copy link

rexave commented Jan 8, 2022

same problem here, it might be the upgrade to HAOS 7.1 that caused the issue.
i temporarly fixed the problem by exposing the container port 3000 in the zwavejs add-on config and changed entry of zwave-js in .storage\core.config_entries from "url": "ws://core-zwave-js:3000", to "url": "ws://localhost:3000",
after a change of configuration, it went back to core-zwave-js and it works again ...

@Undefined82
Copy link

Hi,

I have the same problem too. @rexave, I have been trying to execute your solution but I think I need more instructions on how to expose container port 3000. Once I edited the core.config_entries, the integration has an error msg that it is not able to connect to localhost:3000.

Thanks in advance.

@rexave
Copy link

rexave commented Jan 10, 2022 via email

@Undefined82
Copy link

Hi @rexave,

Thanks for the details. I managed to re-start the Add-On. I did have to delete my old ZWAVE-JS integration before re-adding it back. I had to re-setup the namings of my devices although they are all connected. Hope this does not happen often.

@github-actions github-actions bot added the stale label Feb 10, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants