Jump to content

HarmonyHub NodeServer won't stay connected


carealtor

Recommended Posts

Do you reserve the IP addresses for your hubs so they don't ever change?  Also, make sure xmpp is still enabled for each in the Harmony App.

2019-09-05 19:03:39,759 [Thread-74 ] [ERROR] Failed to connect to 192.168.1.80:5222 after 5 tries
2019-09-05 19:03:55,087 [Thread-72 ] [ERROR] Failed to connect to 192.168.1.103:5222 after 5 tries

The eventually causes the nodeserver to crash with a bug I will need to look into.  https://github.com/jimboca/udi-harmony-poly/issues/21

Link to comment
Share on other sites

Also, some are ok, some are not.  You have all these:

2019-09-05 07:11:40,349 [NodeServer] [DEBUG] HarmonyController:add_hub: address=h4587ee21c8fde name='Treadmill Room' host=192.168.1.103 port=5222 update=False
2019-09-05 07:11:40,350 [NodeServer] [DEBUG] HarmonyController:add_hub: address=h572b95b3e3c96 name='Master Bedroom' host=192.168.1.92 port=5222 update=False
2019-09-05 07:11:40,352 [NodeServer] [DEBUG] HarmonyController:add_hub: address=hc171e24439cef name='Office' host=192.168.1.94 port=5222 update=False
2019-09-05 07:11:40,354 [NodeServer] [DEBUG] HarmonyController:add_hub: address=hec01766606911 name='Patio' host=192.168.1.112 port=5222 update=False
2019-09-05 07:11:40,355 [NodeServer] [DEBUG] HarmonyController:add_hub: address=hbe0caaad82dcb name='Family Room' host=192.168.1.80 port=5222 update=False

But only the two are having issues.

Link to comment
Share on other sites

2 hours ago, carealtor said:

Is it by design that the NodeServer disconnects when it runs into such problems?  

Nope.  As I mentioned: This eventually causes the nodeserver to crash with a bug I will need to look into.  https://github.com/jimboca/udi-harmony-poly/issues/21

I have reproduced this error on my system and in the process if debugging, it actually looks like an issue in the polyglot python library, but not positive yet.

Link to comment
Share on other sites

Gotcha.

Just thinking out loud...   I'm not adverse to modifying files if I could fix my address problems by doing so.  Would it be possible to put the correct hub addresses somewhere in the Polyglot files and correct my problem?  I'm not knowledgeable enough about Polyglot or the HarmonyHub NodeServer to know where to go, but if knew what file specifically to look at, I might be able to fix my issue.

Link to comment
Share on other sites

The fix is in the Polyglot python library for the crash, I have submitted a fix but will take some time to push out a new release.

The ~/.polyglot/nodeservers/HarmonyHub/hubs.json contains the IP addresses.  But can't you just set them back to what they were and reserve them on your router so they never change again?

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      36.5k
    • Total Posts
      367.6k
×
×
  • Create New...