StangManD Posted May 23, 2022 Posted May 23, 2022 Hello, I would like to install this on my Polisy running the latest release. Every time I to go install this to my next available slot, it throws this error and does not install. Please help. Thank you Error: Node server object missing uuid
asbril Posted May 23, 2022 Posted May 23, 2022 Holidays Google is a great Node server, but in my case it does not work in PG3. While all the necessary nodes show in the PG3 Dashboard, the nodes only "populate" in the Administrative Console once after installation. Then afterwards the niodes remain empty in the Administrative Console. I noticed an authentification issue in the Node server's log. I have removed and installed the PG3 version several times with same outcome. I don't know whether your issue is related, but I have reverted to the PG2 version, hoping that my issue will be resolved in an update.
StangManD Posted May 26, 2022 Author Posted May 26, 2022 Hi Asbril, thank you for your reply and input. How exactly did you remove it? I can't tell if something did install or not but it doesn't show in the administrative console. Additionally, how do I install the PG2 version? I tried from the PG2 store and it failed there too but it was some generic error and didnt' ask me what slot I wanted to install like PG3 does. Thank you in advance for your assistance.
asbril Posted May 26, 2022 Posted May 26, 2022 (edited) How exactly did you remove it? In the PG3 Dashboard, enter the Node server and click on Delete. It will (should) delete the Node server both from PG3 and from the Administrative Console. Usually I restart Polyglot and the Administrative Console, but this may not be necessary. how do I install the PG2 version? Go to the Node server Store, Install the Node server. Then go to the (PG2) Dashboard, enter the Node server, Configuration and click on the message asking you to authenticate. I strongly suggest to use "Open link in new tab" (I use Chrome) when clicking on this message. The link will lead you to select the appropriate Google account if you have more than one. You accept the options then given to you, copy the Authetication code, and paste it in the Node server configuration. Either immediately, or after restarting the Node server, the configuration will show your Google calendar(s). Copy each "Configured Calendars" by "Adding Value" in "Calendar Name". Then click on Save, After restarting the Administrative Console the various calendars will show up in the Administrative Console with each 2 nodes "Today" and "Tomorrow". In my Google calendar, I created several sub calendars like "cleaning lady", "trip", which will then be added in the Node server as "Configured Calendars" and show up in the Administrative Console with their respective nodes. This allows me to create programs using (depending on purpose) either the "Tomorrow" or "Today" node of the specific calendar. Remember that this Node server requires that an event is a "All Day" event in the Google calendar, meaning that the Node server will not read an event at a specific time, but of course you can set your desired time in the ISY program that you may create. Let me know if this helpful or if you need more specific guidance. Edited May 26, 2022 by asbril 2
asbril Posted May 26, 2022 Posted May 26, 2022 Has anyone succeeded in adding and using the Google Holidays Node server in PG3 ? In my case the nodes appear in the Administrative Console the first time after adding the Node server, but the next time I open the Administrative Console the nodes are empty in the Administrative Console. I wonder whether it is just @StangManD and me having issues with the Holidays Google PG3 version or whether @firstone may need to adjust something.
StangManD Posted May 26, 2022 Author Posted May 26, 2022 (edited) Okay, so I think that's it then. My install is aborting, it's not installing anything at all... no nodes appear in PG2 or PG3. In reviewing the log in closer detail, it just aborts the install and never actually installs because there is no UUID defined. To me, this makes sense... I feel theres some random key gen that is not occurring or just some plain line of text missing from the install config for this. You can see it in the log that it's just an empty field, so I have a feeling with mine, it's just aborting the install, so is never installed. @firstone needs to look at the installer... the subject is the exact error I get. I can of course send more to @firstone if needed however that's the error and to me isolates the issue. I tried to install it in PG2 for kicks and I get some other non-descript error and it never asks me what slot I would like it installed in, so also I believe that is just aborting the install and nothing is actually occurring. Thank you for the workaround instructions though, if this is updated and there's still a workaround needed, this is perfect... thank you. In my case, there is no node server present on my PG2 or PG3 dashboard or in the administrative console. Edited May 26, 2022 by StangManD
bpwwer Posted May 26, 2022 Posted May 26, 2022 I did the port of this node server from PG2 to PG3 so it's possible I broke something when I did the port. I don't use Google Calendars so I'm not sure I can thoroughly test it myself. I have no issues installing it. The error "Node server object missing uuid" is not in any of the PG3 code. It also doesn't make any sense because object names can't have spaces so there isn't any objects in PG3 named "Node server". I don't doubt that you're getting an error, but with that information I'm not able to do anything to debug it. PG3 logs showing when you try to install it would help.
StangManD Posted May 26, 2022 Author Posted May 26, 2022 Understood and appreciate the response. I can share the whole block of code from the log if you would prefer. Should I send that to you directly somehow or post here? I don’t know if posting would reveal any encryption keys or anything so hesitant to post the whole block publicly.
bpwwer Posted May 26, 2022 Posted May 26, 2022 you can send it directly via a PM here. Ideally, just download the PG3 log and attach that to PM. Also, before you do that, can you verify what version of PG3 your are running?
StangManD Posted May 26, 2022 Author Posted May 26, 2022 Well, good news I guess and false alarm (sorry!), I decided before grabbing the log I'd try one more thing... rebooting the Polisy all together with and seeing if it worked since this seemed like an anomaly. Well, it worked. When I clicked on install in the store this time, the window had all fields populated towards the bottom, and actually showed me the available locations ONLY this time which is also different than before... evidently my system needed a reboot. Sorry for the confusion, I already have it up and running and no errors... it's already integrated into my programs and I appreciate your code, help, and responsiveness. Sorry for the trouble and thank you!
asbril Posted May 29, 2022 Posted May 29, 2022 (edited) I deleted and re-installed the PG3 Holidays Google Node server on IoP, but this time in a different slot..... and now it seems to be working fine. Edited May 29, 2022 by asbril
asbril Posted June 2, 2022 Posted June 2, 2022 (edited) @bpwwer If not mistaken you ported Holidays Google to PG3. As mentioned many times, I like this ns very much but have had some issues. Currently I have the PG2 Node server on my ISY, with a number of related programs and I have the PG3 Node server on IoP, currently without any related programs. This morning I notited that in the IoP Administrative Console the Holidays Google nodes show Today May 26 and Tomorrow May 27. Of course today it is June 2. I restarted both the PG3 Node server and Polyglot, but still the same problem. I noticed in the Node server's log an authentication error : 2022-06-02 08:55:06,820 Command udi_interface.interface INFO interface:stop: Disconnecting from MQTT... localhost:1888 2022-06-02 08:55:06,822 Command udi_interface.interface INFO interface:_disconnect: MQTT Graceful disconnection. 2022-06-02 08:55:18,448 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2022-06-02 08:55:18,796 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.46 Starting... 2022-06-02 08:55:18,822 MainThread udi_interface.interface INFO interface:__init__: Initialization received from Polyglot V3 3.0.62 [ISY: 5.4.4, Slot: 25] 2022-06-02 08:55:18,824 MainThread udi_interface.interface INFO interface:__init__: Connect: Network Interface: {'addr': '10.0.0.214', 'netmask': '255.255.255.0', 'broadcast': '10.0.0.255'} 2022-06-02 08:55:18,826 Interface udi_interface.interface INFO interface:_startMqtt: Connecting to MQTT... localhost:1888 2022-06-02 08:55:18,833 MainThread udi_interface.interface WARNING interface:db_getNodeDrivers: controller not found in database. 2022-06-02 08:55:18,835 MainThread udi_interface.custom INFO custom:_save: Sending data customtypedparams to Polyglot. 2022-06-02 08:55:18,835 MainThread udi_interface.interface WARNING interface:send: MQTT Send waiting on connection :: {'set': [{'key': 'customtypedparams', 'value': [{'name': 'calendarName', 'title': 'Calendar Name', 'desc': 'Name of the calendar in Google Calendar', 'isRequired': True, 'isList': True}, {'name': 'token', 'title': 'Google Authentication Token', 'desc': 'Obtain token by visiting authentication URL'}]}]} 2022-06-02 08:55:18,899 MQTT udi_interface.interface INFO interface:_connect: MQTT Connected with result code 0 (Success) 2022-06-02 08:55:18,901 MQTT udi_interface.interface INFO interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:0d:b9:52:ce:70_25 - MID: 1 Result: 0 2022-06-02 08:55:18,916 MQTT udi_interface.interface INFO interface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,) 2022-06-02 08:55:19,006 MQTT udi_interface.interface INFO interface:_message: Successfully set controller :: ST to 1 UOM 25 2022-06-02 08:55:21,861 MainThread udi_interface.interface INFO interface:addNode: Adding node Holidays Google Controller(controller) [None] 2022-06-02 08:55:21,863 MainThread udi_interface.interface INFO interface:setController: Using node "controller", driver "ST" for connection status. 2022-06-02 08:55:21,973 MQTT udi_interface.interface INFO interface:_message: Successfully set key = customtypedparams 2022-06-02 08:55:22,443 Thread-1 udi_interface ERROR holidays:parameterHandler: Error getting credentials: (invalid_grant) Bad Request 2022-06-02 08:55:22,740 Thread-3 udi_interface.interface INFO interface:updateProfile: Sending Install Profile command to Polyglot. 2022-06-02 08:55:22,827 Thread-3 udi_interface INFO holidays:start: Started HolidayGoogle Server 2022-06-02 08:55:22,883 MQTT udi_interface.interface INFO interface:_message: custom data response {'customparamsdoc': '<h2>Configuration</h2>\n\n<p>When you start Holidays Google node server for the first time, it will require to authenticate your Google account. Click the link in the notice, copy token, put token into node server configuration parameter and save configuration. You cannot restart node server between clicking the link and saving the parameter.</p>\n\n<p>Holidays Google node server accepts a list of calendars in your account to check for holidays. It will poll holidays changes every long poll (default is 60 seconds). In order for event to be considered as a holiday, it needs to be <em>full day event</em> AND it needs to <em>show time as free</em>.</p>\n\n<p>Two nodes will be created for each configured calendar - today and tomorrow.</p>\n\n<p><strong>DO NOT CHANGE RELATIVE ORDER OF CONFIGURED CALENDAR NAMES.</strong> Doing this will change underlying ISY nodes to the new configuration, potentially requiring you to change ISY programs.</p>\n'} 2022-06-02 08:55:22,922 MQTT udi_interface.interface INFO interface:_message: Successfully set key = customparamsdoc 2022-06-02 08:55:23,041 MQTT udi_interface.interface INFO interface:_message: Successfully set controller :: ST to 1 UOM 25 2022-06-02 08:55:23,217 MQTT udi_interface.interface INFO interface:_message: Profile installation finished Scroll to Top Can you shed any light ? I have similar issues in the past with the PG2, but then it was always just one day off, never 6 days like here. Edited June 2, 2022 by asbril
bpwwer Posted June 2, 2022 Posted June 2, 2022 I don't know why it stopped updating. I did find a problem with the way it was starting and that's what was causing the "Error getting credentials: (invalid_grant) Bad Request". It would do this for any restart after the initial authentication. I just pushed version 1.0.3 to the store that fixes it. 2
asbril Posted June 5, 2022 Posted June 5, 2022 (edited) On 6/2/2022 at 5:24 PM, bpwwer said: I don't know why it stopped updating. I did find a problem with the way it was starting and that's what was causing the "Error getting credentials: (invalid_grant) Bad Request". It would do this for any restart after the initial authentication. I just pushed version 1.0.3 to the store that fixes it. Thanks so much. That seems to have done the job. BTW even though I did the upgrade, in PG3 the message indicating that there is an upgrade is still showing. Hopefully by the time we have the new Zwave board I hope that you (or Firstone) will have time to port AVRemote to PG3 as well. Edited June 5, 2022 by asbril
Recommended Posts