Not possible to configure plugin

Posted on
Sun Dec 10, 2017 8:17 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Not possible to configure plugin

Hi all,

I just configured the rPI.
Installed new plugin; when I try to configure the plugin I get following in Indigo logs

Code: Select all
piBeacon                        starting piBeacon
   piBeacon                        piBeacon --V 7.76.185   initializing
   Error (client)                  timeout waiting for plugin response from com.karlwachs.piBeacon for request UiGetValues1
   Error (client)                  timeout waiting for plugin response from com.karlwachs.piBeacon for request CallPluginFunc
   Error (client)                  runDialogForMenuAction() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]


What is going wrong?

Thanks
Marco

Posted on
Sun Dec 10, 2017 8:32 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Not possible to configure plugin

What specifically are you doing. Config/ menu?
After installing a new version the plugin might be busy sending updates to the rpi. Wait a minute and try again.


Sent from my iPhone using Tapatalk

Posted on
Sun Dec 10, 2017 11:48 pm
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Not possible to configure plugin

Yes, I tried after some minutes and it worked; I did not a config because I cannot test it (no beacons yet).

Thanks

Posted on
Sun Dec 10, 2017 11:57 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Not possible to configure plugin

Ok that explains it.


Sent from my iPhone using Tapatalk

Posted on
Sun Nov 04, 2018 11:34 am
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: Not possible to configure plugin

Hey Karl,

I'm getting this same error now, when I try to pull up any menu item fromPlugins -> PiBeacon :

Code: Select all
   Error (client)                  timeout waiting for plugin response from com.karlwachs.piBeacon for request UiGetValues1
   Error (client)                  timeout waiting for plugin response from com.karlwachs.piBeacon for request CallPluginFunc
   Error (client)                  runConfigDialog() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]



I upgraded to 7.94.241 today, to see if that could help, with no dice.. I'm on Indigo 7.2, (SQL), with macOS 10.14. Don't appear to be having issues with any other Indigo subsystem (ie Fingscan menus pop up very quickly). Any ideas here? I have 7 pi's configured. Been getting some false positives on presence for the XY token on my keyring, so wanted to try to nail that down, and then found this issue.

Any ideas?

Posted on
Sun Nov 04, 2018 1:44 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Not possible to configure plugin

could you run indigo utilities "print plugin names ...." that gives you an overview of the cpu used by each plugin ...
mine looks like:
Code: Select all
   utilities                       starting print plugin names, id, mem cpu  daughter processes . . . takes a little time,  using lsof, ps -ef, ps aux
   utilities                       
    PID    CPU-total  Mem-% -Virt -Real  version       pluginName ------------------------  .. + sub processes and non std open files
    540      3:00.76    0.0  4469     7  2.0.4        iTunes
    535     42:56.55    0.0  4476    23  1.0.2        EPS HomeKit Bridge
                                                       openFile:   *:8558 (LISTEN)
    534      9:37.16    0.0  4468    14  7.4.3        Caddx Security System
                                                       openFile:   /dev/cu.usbserial-AK05D1T6
  76098     54:20.41    0.1  4569    59  7.25.142     uniFiAP
  76474      0:05.74    0.1  4569    59                SubProcess: /usr/bin/expect  ....
    531      7:48.95    0.0  4482    21  2.0.119      .Z-Wave
                                                       openFile:   /dev/cu.usbmodem41
  48706      0:11.55    0.1  4450    98  1.1.17       NOAA Weather Plus
    549      3:01.25    0.0  4467     8  2.0.2        Timers and Pesters
    702     12:51.70    0.1  4490    91  noVer.       _background_
    552      2:56.70    0.0  4466     7  2.0.5        Virtual Devices
  77794      9:32.25    0.1  4493    69  7.29.36      fingscan
  87813      1:14.72    0.0  4467    19  2.1.16       RFXCOM
                                                       openFile:   /dev/cu.usbserial-08WCLA8J
    543    449:52.35    0.1  4493    43  7.94.241     piBeacon
                                                       openFile:   192.168.1.50:12087 (LISTEN)
    538     19:29.06    0.0  4470    12  7.2.7        homeAway
    888      2:52.46    0.0  4426     7  2.2.1        .INSTEON Commands
    539    108:11.22    0.1  4532    54  4.18.50      INDIGOplotD
  92089     37:37.60    0.1  4532    54                SubProcess: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python  ... 7.2/Plugins/INDIGOplotD.indigoPlugin/Contents/Server Plugin/indigoMPplot.py
                                                       openFile:   /Users/karlwachs/indigo/INDIGOplotD/matplot/matplot1.log
    533      3:13.71    0.0  4468     9  7.2.3        BetterEmail
    548      2:52.15    0.0  4468     7  2.21         survey2
    532     48:49.39    0.0  4469    15  7.9.9        arduino
    547     81:32.24    0.0  4472    19  2.1.0        SQL Logger
                                                       openFile:   localhost:49276->localhost:postgresql (ESTABLISHED)
    529      3:01.79    0.0  4467     9  2.1.1        .Action Collection
    545      4:09.01    0.0  4469    17  7.1.8        secondsSinceLastChange
    541      3:45.13    0.0  4469    20  7.5.2        minMax
    551     26:07.19    0.1  4486    40  1.18.22      utilities
    537      2:51.61    0.0  4466     7  2.0          Global Property Manager
    546      2:47.94    0.0  4470     8  0.3.3        shutdownAction

   Z-Wave                          received "attic computer room fan" energy total to 34.968 kWh
and or in config enable CPU tracking for plugins. that will generate variables that show you how much CPUa plugin uses. that should give you a first hint of what is wrong .
Also try to disable all other plugins and see if it works then. AND if you have ANY AppleScript running that night be it . it will stop any plugin from interacting if when the script is running / hanging.


This time out means that the plugin is not answering the the ui request. I don't have any tools to find out when / how .. etc that happens. Thats deep in INDIGO


Karl

Posted on
Sun Nov 04, 2018 2:55 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: Not possible to configure plugin

Hey Karl,

Thanks for the reply. It seems like quite a lot of CPU on piBeacon for some reason.. Went to reload it to see if that might help, and got this:

Code: Select all
Nov 4, 2018 at 12:50:56 PM
   Reloading plugin "piBeacon 7.94.241"
   Stopping plugin "piBeacon 7.94.241" (pid 2499)

Nov 4, 2018 at 12:51:11 PM
   Error                           process (pid 2499) failed to quit after polite request -- forcing it to quit now
   Stopped plugin "piBeacon 7.94.241"
   Starting plugin "piBeacon 7.94.241" (pid 23727)



got the same error when i tried to reload after that as well, thinking it might have been just a one off. I'm going to use the SQL utilities to copy and clean up dupes from the db etc, and see if that helps. I don't think my db is too large at around 3.1Gb, but maybe it's time I consider migrating to postgres....



Code: Select all
     ID         CPU  version      pluginName ------------------------
    754     0:08.32  1.1.1        DIRECTV DVR Control
    755     0:48.00  2.0.119      .Z-Wave
    756     0:11.84  0.4.8        minMax
    757     0:21.75  7.2.3        HarmonyHub
    758     0:09.44  1.4.0        Pushover
    759     0:09.26  2.0.5        Virtual Devices
    761     3:09.74  1.6.12       Hue Lights
    762     1:04.66  7.24.19      fingscan
  22592     0:00.00                |- (sh)
    763     0:10.06  7.0.10       Wunderground
    764     0:09.15  2.0          Global Property Manager
    765     0:09.26  0.95         Indigo Backup
    766     0:09.60  2.0.2        Timers and Pesters
    767     0:11.49  2.1.13       RFXCOM
    768     0:08.74  2.2.1        .INSTEON Commands
    769     3:20.05  2.1.0        SQL Logger
    770     0:09.93  2.1.1        .Action Collection
    771     0:09.35  1.12.1       utilities
  21593     0:00.06                |- /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/utilities.indigoPlugin/Contents/Server Plugin/mkbackup.py backup variable_history_1255757346 5
    772     0:19.40  7.2.3        BetterEmail
    775     5:13.66  7.5.44       uniFiAP
    860     0:00.06                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp USER PASSWORD 10.0.0.246 BZ.v /usr/bin/tail -f /var/log/messages
    868     0:02.06                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp USER PASSWORD 10.0.0.246 BZ.v xxxThisIsTheEndTokenxxx 90 40 /var/log/messages
    874     0:00.07                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp USER PASSWORD 10.0.0.250 BZ.v /usr/bin/tail -f /var/log/messages
    878     0:04.69                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp USER PASSWORD  10.0.0.250 BZ.v xxxThisIsTheEndTokenxxx 90 40 /var/log/messages
    886     0:00.05                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/execLog.exp USER PASSWORD 10.0.0.251 BZ.v /usr/bin/tail -f /var/log/messages
    896     0:02.41                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp USER PASSWORD 10.0.0.251 BZ.v xxxThisIsTheEndTokenxxx 90 40 /var/log/messages
    909     0:00.25                |- /usr/bin/expect /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/dictLoop.exp USER PASSWORD 10.0.0.1 @ubnt: xxxThisIsTheEndTokenxxx 60 40 doNotSendAliveMessage
  22267     0:00.00                |- (expect)
   2499   193:18.08  7.94.241     piBeacon

Posted on
Sun Nov 04, 2018 3:24 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Not possible to configure plugin

this " process (pid 2499) failed to quit after polite request -- forcing it to quit now" means the plugin is likely waiting somewhere. Are all RPI up?
When an RPI is down and the plugin tries to send config etc to the RPI it will retry it continuously every xx secs. Then I believe the main plugin loop is waiting for expect to come back -- then also the reload will time out .

just a wild guess


Karl

Posted on
Sun Nov 04, 2018 3:28 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Not possible to configure plugin

the remove duplicates does not do any good for an SQLite db.. the records are still there . this will only help when you do
1. remove duplicates
2. stop sqllogger
3. create an sqldump
4. reimport sqldump
5. restart sqllogger

in postgres it works much better. you can compress in place etc. I have been running postgres with > 30GB with only minor issues for 2++ years now and the install is very simple .. use the postgres app https://postgresapp.com/ NOT the full postgres install

Karl

Posted on
Mon Nov 05, 2018 12:37 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: Not possible to configure plugin

I did have one pi offline for a bit, but not sure if that was during hat error, or not. I'll check again when I get home and see if that's the issue. I'll look into migrating to Postgres as well, as I suspect that'll be helpful. Means I'll probably catch you on that forum later. May try to do a dump restore on the current DB first though, as it'd be nice to know I have a clean DB before I migrate.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests