leonpc Posted November 4, 2023 Posted November 4, 2023 I had the Kasa Node Server installed but added two devices. While adding the devices I named it for a location but decided to change the names of the devices. After the change I stopped and started the NS and the change still did not display. Yes I have the change_node_names parameter set. I then reinstalled the node server from the node store into the same slot. Now the node server does not want to start and in the logs I see the following error scrolling every 10 to 15 seconds: 2023-11-04 15:03:23,799 MainThread udi_interface INFO __init__:<module>: Loading isy module 2023-11-04 15:03:23,799 MainThread udi_interface INFO __init__:<module>: UDI interface initialized 2023-11-04 15:03:23,799 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.2.3 Starting... 2023-11-04 15:03:23,802 MainThread udi_interface ERROR udi_interface:write: Traceback (most recent call last): File "/var/polyglot/pg3/ns/0021b90266f4_15/kasa-poly.py", line 12, in <module> from nodes import VERSION,Controller File "/var/polyglot/pg3/ns/0021b90266f4_15/nodes/__init__.py", line 9, in <module> from .SmartDeviceNode import SmartDeviceNode File "/var/polyglot/pg3/ns/0021b90266f4_15/nodes/SmartDeviceNode.py", line 8, in <module> from kasa import SmartDeviceException ModuleNotFoundError: No module named 'kasa' 2023-11-04 15:03:25,013 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2023-11-04 15:03:25,014 MainThread udi_interface INFO __init__:<module>: UDI interface initializing
Jimbo.Automates Posted November 4, 2023 Posted November 4, 2023 New installs of kasa are failing. I've emailed @Michel Kohanim with logs. Hopefully an easy fix.Sent from my Pixel 8 Pro using Tapatalk
leonpc Posted November 4, 2023 Author Posted November 4, 2023 Thanks. Let me know if you need anything else from me to help speed up the resolution.
TRI0N Posted November 6, 2023 Posted November 6, 2023 Same issue here.. Updated NS to 3.1.0 with Disconnected status and devices are not working as they should.
Jimbo.Automates Posted November 6, 2023 Posted November 6, 2023 From @Michel Kohanim I just included rust in the dev packages (was not there before). So, for your existing customers please have them: Upgrade Packages Install Dev Packages
macjeff Posted November 6, 2023 Posted November 6, 2023 (edited) 1 hour ago, Jimbo.Automates said: From @Michel Kohanim I just included rust in the dev packages (was not there before). So, for your existing customers please have them: Upgrade Packages Install Dev Packages This did nothing for me. I even tried another slot. I had to do a restore of PG3x after a bad SD and this is only nodeserver that did not reinstall. Edited November 6, 2023 by macjeff
Michel Kohanim Posted November 7, 2023 Posted November 7, 2023 @macjeff, Are you being patient? This process will try to recompile the required package. So, before saying "This didn't do anything for me", check the logs and make sure it's being compiled. Or, at the least, attach the logs. With kind regards, Michel
leonpc Posted November 7, 2023 Author Posted November 7, 2023 2 hours ago, Jimbo.Automates said: From @Michel Kohanim I just included rust in the dev packages (was not there before). So, for your existing customers please have them: Upgrade Packages Install Dev Packages Thanks.. will try this now
macjeff Posted November 7, 2023 Posted November 7, 2023 21 minutes ago, Michel Kohanim said: @macjeff, Are you being patient? This process will try to recompile the required package. So, before saying "This didn't do anything for me", check the logs and make sure it's being compiled. Or, at the least, attach the logs. With kind regards, Michel Its been well over an hour but I will try again and install the logs. I just rebooted again but that was an hour later after I did the install Upgrade Packages/install Dev Packages Ok just deleted the nodeserver.....reinstalled. Waited for it to say successfully installed and it did. Check and not connected. Keeps saying No Module Named Kasa Switched logs to DEBUG and restarted nodeserver Logs attached Kasa_11-6-2023_74242-PM.zip
ACastiglione Posted November 7, 2023 Posted November 7, 2023 I'm having same issue (i.e., No Module named 'Kasa'. I included the downloaded log report. Kasa_11-6-2023_63726-PM.zip
leonpc Posted November 7, 2023 Author Posted November 7, 2023 Yes seeing the same behavior. Can upload logs but you already have 2 sets
TRI0N Posted November 7, 2023 Posted November 7, 2023 3 hours ago, Jimbo.Automates said: From @Michel Kohanim I just included rust in the dev packages (was not there before). So, for your existing customers please have them: Upgrade Packages Install Dev Packages No dice. I did that in order. Rebooted. Nothing. Did another Upgrade Packages just in case that updates dev packages if they exist and rebooted. Then I tried to update the NS in Poly. Still Disconnect. Same results as others...
Solution Michel Kohanim Posted November 7, 2023 Solution Posted November 7, 2023 Hello everyone, please try again: 1. Upgrade Packages 2. Install Dev Packages 3. <Restart IoX> 4. Reinstall Kasa (you must reinstall) 5. Ignore timeout ... compilation of kasa module takes about 5 minutes on eisy and 10 minutes on polisy With kind regards, Michel
macjeff Posted November 7, 2023 Posted November 7, 2023 1 hour ago, Michel Kohanim said: Hello everyone, please try again: 1. Upgrade Packages 2. Install Dev Packages 3. <Restart IoX> 4. Reinstall Kasa (you must reinstall) 5. Ignore timeout ... compilation of kasa module takes about 5 minutes on eisy and 10 minutes on polisy With kind regards, Michel I did this twice. Waited 30 min the last time and no go. I will have to file a support ticket if you are sure its working.
macjeff Posted November 7, 2023 Posted November 7, 2023 1 hour ago, macjeff said: I did this twice. Waited 30 min the last time and no go. I will have to file a support ticket if you are sure its working. Update- You forgot one step. Go out and run errands, vote, etc. It has been well over an hour and when I left it said 40 minutes. Now at 3:30 it randomly just connected. I was not even here. More like 90 minutes. Strange but working!!!! 1
Michel Kohanim Posted November 7, 2023 Posted November 7, 2023 I am glad you voted. Not strange because you have Polisy + millions of devices. So, Polisy is already busy and then it has to also compile this package. Time to "upgrade" to eisy. For me, it took about 5 minutes. With kind regards, Michel 2
DSwallow Posted November 7, 2023 Posted November 7, 2023 I just began encountering this, I think it began after upgrading from Trial to a paid version, though since I wasn't really looking before I'm not sure. I was a little uncertain about the process of going from a trial to a paid license, since it's not really discussed anywhere I found, and everything I see on the purchase page makes it look like two different things. Anyway, tried deleting it, rebooting the EISY and installing again, with no luck. I then found this thread and will give it a go. Annoyingly, the turn-off-autoscroll checkbox on the log display now seems to not work. I'd have sworn it did just a few minutes ago. Well, it's not scrolling per-se, instead it's apparently updating the view from wherever I position the log file, as the log file scrolls under me -- in other words, not locking me at the tail, but still scrolling happily away.
DSwallow Posted November 7, 2023 Posted November 7, 2023 After waiting about 20 minutes for what Michel said should take about 5, I went to the node server details page in Polyglot and pressed "Restart". Everything started up and it shows my 27 nodes again. During the 20 minutes of waiting I hunted but didn't see any sign of where the system was initiating anything like compiling. I did see the timeout after 2 minutes when it initially was doing the re-install of the Kasa node server, but nothing I saw around that log entry really indicated anything special happening/triggered. And I suppose when it finished whatever it may have been doing, perhaps it could've immediately triggered the node server being started up? Presuming it wasn't at that time; is there some health check that occurs regularly which would've started it up had I waited longer?
TRI0N Posted November 8, 2023 Posted November 8, 2023 1 hour ago, DSwallow said: After waiting about 20 minutes for what Michel said should take about 5, I went to the node server details page in Polyglot and pressed "Restart". Everything started up and it shows my 27 nodes again. During the 20 minutes of waiting I hunted but didn't see any sign of where the system was initiating anything like compiling. I did see the timeout after 2 minutes when it initially was doing the re-install of the Kasa node server, but nothing I saw around that log entry really indicated anything special happening/triggered. And I suppose when it finished whatever it may have been doing, perhaps it could've immediately triggered the node server being started up? Presuming it wasn't at that time; is there some health check that occurs regularly which would've started it up had I waited longer? This final step of "Restart" Kasa Node Server did the trick too after about letting it just sit for 30-40 mins while I went out. Cheer!
ACastiglione Posted November 8, 2023 Posted November 8, 2023 I also voted, but didn't run an errand; instead went to meet a couple colleagues for a few brews and apparently missed the train. I followed all the steps Michel advised: 1. Upgrade Packages 2. Install Dev Packages 3. <Restart IoX> 4. Reinstall Kasa (you must reinstall) 5. Ignore timeout ... compilation of kasa module takes about 5 minutes on eisy and 10 minutes on polisy I also did a Restart as indicated by Trion and still not on the train. I downloaded log package and attached here. Also included a screen shot of the log. I'm sure I'm missing something. I have Polisy and running Version 5.7.0 and Polyglot 3x Version 3.1.0. Any additional suggestions? Kasa_11-7-2023_103609-PM.zip
Michel Kohanim Posted November 8, 2023 Posted November 8, 2023 @ACastiglione, It seems that the install script was not run. Unfortunately you need to reinstall this plugin for the compilation to take place. If you still have problems, please do not hesitate to submit a ticket and we'll help you. With kind regards, Michel 1
RichTJ99 Posted November 8, 2023 Posted November 8, 2023 (edited) Im was having a similar issue - I updated everything as above. Deleted the node server from the polyglot web page, then deleted it from my eisy slot #9, rebooted EISY. Installed Kasa on polyglot web page - slot 7 this time. Waited 10 minutes - shows connected - all nodes back Edited November 8, 2023 by RichTJ99
Michel Kohanim Posted November 8, 2023 Posted November 8, 2023 @RichTJ99, What exactly is the issue? It seems that the nodes are back, are they not? With kind regards, Michel
Recommended Posts