Jump to content

Confirmed problem in Harmony NS ver 2.4.1


gviliunas

Recommended Posts

Sorry JimBo,

I upgraded upon reading the github release notes. I missed your warning in this forum not to do so. Now I get this repeating pattern as the NS tries to start:

 

2020-04-16 06:30:11,227 Controller polyinterface      ERROR    HarmonyHub:l_error: Hub:h01d576d121ad4:Living Room Harmony Hub:check_client: Client startup thread dead?, Please send log package to developer.  status = init..
2020-04-16 06:30:11,228 Controller polyinterface      INFO     HarmonyHub:l_info: Hub:h01d576d121ad4:Living Room Harmony Hub:_set_st: setDriver(ST,0)
2020-04-16 06:30:11,228 Controller polyinterface      INFO     polyinterface:reportDriver: Updating Driver h01d576d121ad4 - ST: 0, uom: 2
2020-04-16 06:30:11,231 Thread-5   polyinterface      INFO     HarmonyHub:l_info: Hub:h01d576d121ad4:Living Room Harmony Hub:get_client: Initializing PyHarmony Client
2020-04-16 06:30:11,232 Controller polyinterface      INFO     HarmonyController:l_info: HarmonyController:heartbeat: hb=1
2020-04-16 06:30:11,360 Thread-5   polyinterface      INFO     HarmonyHub:l_info: Hub:h01d576d121ad4:Living Room Harmony Hub:get_client: PyHarmony client= <pyharmony.client.HarmonyClient object at 0x802b19a50>
2020-04-16 06:30:11,361 Thread-5   polyinterface      INFO     HarmonyHub:l_info: Hub:h01d576d121ad4:Living Room Harmony Hub:_set_st: setDriver(ST,1)
2020-04-16 06:30:11,362 Thread-5   polyinterface      INFO     polyinterface:reportDriver: Updating Driver h01d576d121ad4 - ST: 1, uom: 2
2020-04-16 06:30:11,364 Thread-5   polyinterface      INFO     HarmonyHub:l_info: Hub:h01d576d121ad4:Living Room Harmony Hub:init_activities_and_devices: start
2020-04-16 06:30:11,366 Thread-5   polyinterface      ERROR    polyinterface:write: Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/var/polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 205, in _get_client
    self.init_activities_and_devices()
  File "/var/polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 333, in init_activities_and_devices
    if a['id'] != '-1' and self.address in a['hub']:
KeyError: 'hub'

 

Log package is attached.

Thank you for all of your hard work!!

 

 

 

HarmonyHub_logs_2020-4-16_062854.zip

Link to comment
Share on other sites

Looks like user polyglot does not have permission to write your config files so it failed:

020-04-16 06:22:46,052 NodeServer polyinterface      ERROR    harmony_hub_funcs:write_config_file: harmony_hub_funcs:write_config_file: failed to write config/config.yaml: [Errno 13] Permission denied: 'config/config.yaml'

Probably because you were one of the first to install this on your Polisy and manually pulled those over, so login to your Polisy and run this to open the permissions

chmod -R ga+w /var/polyglot/nodeservers/HarmonyHub/config

Then wait for 2.4.2 to be released in about 10 minutes, install that version and restart the nodeserver.

Link to comment
Share on other sites

@JimboI am having an issue upgrading to 2.4.2.  I had to uninstall since I could not get it the node server start with a simple upgrade.  I see the controller in the ISY but it will not find any nodes (activities).  I see write profile failed as a profile status sometimes, other times it says installed or not sure.  Here is the log error I am seeing.  Log package sttached.  Thank you for any help!

 

2020-04-17 08:40:38,602 Thread-1 polyinterface DEBUG HarmonyController:l_debug: HarmonyController:add_hub: address=h889a9beb2e0e1 name='Master Bedroom' host=192.168.1.254 port=5222 2020-04-17 08:40:38,603 Thread-1 polyinterface ERROR polyinterface:write: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyController.py", line 356, in _discover self.add_hubs() File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyController.py", line 370, in add_hubs self.add_hub(hub['address'], hub['name'], hub['host'], hub['port']) File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyController.py", line 364, in add_hub self.addNode(HarmonyHub(self, address, name, host, port, watch=self.watch_mode, discover=discover)) File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 60, in __init__ self.harmony_config = self.parent.harmony_config['info'] TypeError: 'NoneType' object is not subscriptable

HarmonyHub_logs_4-17-2020_84646_AM.zip

Link to comment
Share on other sites

23 minutes ago, btreinders said:

@JimboI am having an issue upgrading to 2.4.2.  I had to uninstall since I could not get it the node server start with a simple upgrade.  I see the controller in the ISY but it will not find any nodes (activities).  Here is the log error I am seeing.  Log package sttached.  Thank you for any help!

 

2020-04-17 08:40:38,602 Thread-1 polyinterface DEBUG HarmonyController:l_debug: HarmonyController:add_hub: address=h889a9beb2e0e1 name='Master Bedroom' host=192.168.1.254 port=5222 2020-04-17 08:40:38,603 Thread-1 polyinterface ERROR polyinterface:write: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/usr/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyController.py", line 356, in _discover self.add_hubs() File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyController.py", line 370, in add_hubs self.add_hub(hub['address'], hub['name'], hub['host'], hub['port']) File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyController.py", line 364, in add_hub self.addNode(HarmonyHub(self, address, name, host, port, watch=self.watch_mode, discover=discover)) File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 60, in __init__ self.harmony_config = self.parent.harmony_config['info'] TypeError: 'NoneType' object is not subscriptable

HarmonyHub_logs_4-17-2020_84646_AM.zip 36.62 kB · 0 downloads

Did you enable xmpp for all of your hubs in your Harmony app?

Link to comment
Share on other sites

Yes, only have 1 and it is enabled.  It was working before the update to 2.4.2.  I only updated because I was having trouble when the Hub got a new IP by accident with some networking changes I was doing.  It does see the activities in the log but gets that error soon after.

Link to comment
Share on other sites

Yes, looks like a different error in the new code that was added to track hub uuid's changing. I will look into it:

2020-04-17 08:02:07,132 Thread-1   polyinterface      DEBUG    write_profile:write_profile: write_profile:   Device: Master Bedroom TV  Id: 52751033
2020-04-17 08:02:07,133 Thread-1   polyinterface      DEBUG    write_profile:write_profile: []
2020-04-17 08:02:07,137 Thread-1   polyinterface      DEBUG    write_profile:write_profile:   Adding as new function 0
2020-04-17 08:02:07,137 Thread-1   polyinterface      ERROR    HarmonyController:l_error: HarmonyController:build_profile: write_profile failed: name 'cnt' is not defined

 

Link to comment
Share on other sites

Archived

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


×
×
  • Create New...