DICT timeout

Posted on
Tue Feb 02, 2021 11:43 am
stewkenly offline
User avatar
Posts: 38
Joined: Dec 28, 2015
Location: Austin, TX

DICT timeout

Hi,

With the latest update to the unifi plugin, I am getting DICT timeout errors that don't make sense to me. I have tried increasing the DICT timeout to 2mins (the max) with no result.

Any thoughts?

Thanks,

Stew
Attachments
Screen Shot 2021-02-02 at 11.38.49 AM 2.png
Screen Shot 2021-02-02 at 11.38.49 AM 2.png (89.43 KiB) Viewed 3200 times

Posted on
Tue Feb 02, 2021 12:24 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: DICT timeout

Stew,

could yo make the image a little smaller 8)

.. could you check the plugin.log file. that give more detailed info.
and what is your setup ie
- unifi controller & which version
- config setup

Karl

Posted on
Tue Feb 02, 2021 10:13 pm
stewkenly offline
User avatar
Posts: 38
Joined: Dec 28, 2015
Location: Austin, TX

Re: DICT timeout

HI Karl,

Sorry about the small image, I included a bigger one.

Where is the plugin.log located?

The controller is Unifi Controller version 6.0.45

Thank you for your help!

Stew
Attachments
Screen Shot 2021-02-02 at 10.11.54 PM.png
Screen Shot 2021-02-02 at 10.11.54 PM.png (507.09 KiB) Viewed 3158 times
Screen Shot 2021-02-02 at 10.03.16 PM.png
Screen Shot 2021-02-02 at 10.03.16 PM.png (310.85 KiB) Viewed 3158 times
Screen Shot 2021-02-02 at 10.03.07 PM.png
Screen Shot 2021-02-02 at 10.03.07 PM.png (276.58 KiB) Viewed 3158 times
Screen Shot 2021-02-02 at 10.02.57 PM.png
Screen Shot 2021-02-02 at 10.02.57 PM.png (402.52 KiB) Viewed 3158 times
Screen Shot 2021-02-02 at 10.02.37 PM.png
Screen Shot 2021-02-02 at 10.02.37 PM.png (448.26 KiB) Viewed 3158 times

Posted on
Wed Feb 03, 2021 6:39 am
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: DICT timeout

1. set ipNUmber (1. field) to 192.x.x.x = the real ip number of your controller ; localhost does not work
2. Plugin.Log is in the indigo directory /logs/name of plugin.

and the 2. ipNumber field field:
Screen Shot 2021-02-03 at 08.16.34.png
Screen Shot 2021-02-03 at 08.16.34.png (37.47 KiB) Viewed 3121 times
should be hidden, do not enter anything

Sent from my iPhone using Tapatalk

Posted on
Wed Feb 03, 2021 8:57 am
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: DICT timeout

.. and try v .7.34.317;
better error message and cleaned up config (made internal ip number field hidden)

at https://www.indigodomo.com/pluginstore/73/

Karl

Posted on
Wed Feb 03, 2021 1:08 pm
stewkenly offline
User avatar
Posts: 38
Joined: Dec 28, 2015
Location: Austin, TX

Re: DICT timeout

Hi Karl,

Ok, here's the latest. I upgraded the plugin and changed the controller IP to 192.168.0.5 (which is also the ip of the indigo server.)

I don't see a log file in the unifi plugin directory...

Code: Select all
   Starting plugin "uniFiAP 7.34.317" (pid 66730)
   uniFiAP                         initializing  ...
   uniFiAP                         path To files:          =================
   uniFiAP                         indigo                  /Library/Application Support/Perceptive Automation/
   uniFiAP                         installFolder           /Library/Application Support/Perceptive Automation/Indigo 7.5/
   uniFiAP                         plugin.py               /Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/
   uniFiAP                         Plugin params           /Library/Application Support/Perceptive Automation/Indigo 7.5/Preferences/Plugins/com.karlwachs.uniFiAP/
   uniFiAP                         logger  enabled for     INFO           ==> TEST ONLY
   uniFiAP Warning                 logger  enabled for     WARNING        ==> TEST ONLY
   uniFiAP Error                   logger  enabled for     ERROR          ==> TEST ONLY
   uniFiAP Error                   logger  enabled for     CRITICAL       ==> TEST ONLY
   uniFiAP                         check                   /Library/Application Support/Perceptive Automation/Indigo 7.5/Logs/com.karlwachs.uniFiAP/plugin.log  <<<<    for detailed logging
   uniFiAP                         Plugin short Name       UniFi
   uniFiAP                         my PID                  66730
   uniFiAP                         set params for indigo V 7.5
   Started plugin "uniFiAP 7.34.317"
   uniFiAP                         testing if variable enableTimeTracking_UniFi is == on/off/print-option to enable/end/print time tracking of all functions and methods (option:'',calls,cumtime,pcalls,time)
   uniFiAP                         myLogSet setting parameters -- logFileActive= ; logFile= /Library/Application Support/Perceptive Automation/Indigo 7.5/Preferences/Plugins/com.karlwachs.uniFiAP/plugin.log;  debugLevel= []
   uniFiAP                         MAP2Vendor initializing
   uniFiAP                         MAP2Vendor initializing  finished, read from mac2Vendor.json file
   uniFiAP                         MAP2Vendor initializing  finished, read from mac2Vendor.json file
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP                          start   runConcurrentThread, initializing loop settings and threads ..
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP                         initialized ... looping


Later I see some issues with logging into the AP's. Do I disable the AP access?
Code: Select all
e
   Trigger                         Weather Temp Variable Update
   uniFiAP Error                   in Line 7071 has error=No JSON object could be decoded
   uniFiAP                         ..  in receiving DICTs for APdict-192.168.0.14;  for details check unifi logfile  at: /Library/Application Support/Perceptive Automation/Indigo x.y/Logs/com.karlwachs.uniFiAP/plugin.log;
   uniFiAP Error                   in Line 7071 has error=No JSON object could be decoded
   uniFiAP                         ..  in receiving DICTs for APdict-192.168.0.15;  for details check unifi logfile  at: /Library/Application Support/Perceptive Automation/Indigo x.y/Logs/com.karlwachs.uniFiAP/plugin.log;
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   in Line 7093 has error=tuple index out of range
   uniFiAP Warning                 getMessages: stopping listener process for :APdict - 192.168.0.14
   uniFiAP Error                   in Line 7093 has error=tuple index out of range
   uniFiAP Warning                 getMessages: stopping listener process for :APdict - 192.168.0.15
   Trigger                         Weather Wind Variable Update
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection


Seeing these errors as well
Code: Select all
Traceback (most recent call last):
  File "plugin.py", line 2600, in setfilterunifiCloudKeyListOfSiteNames
NameError: global name 'refreshCallbackMethodAlreadySet' is not defined

   uniFiAP Error                   Error in plugin execution UiAction:

Traceback (most recent call last):
  File "plugin.py", line 2600, in setfilterunifiCloudKeyListOfSiteNames
NameError: global name 'refreshCallbackMethodAlreadySet' is not defined

   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   Error in plugin execution UiAction:

Traceback (most recent call last):
  File "plugin.py", line 2600, in setfilterunifiCloudKeyListOfSiteNames
NameError: global name 'refreshCallbackMethodAlreadySet' is not defined

   uniFiAP Error                   Connection: in Line 4487 has error=global name 'dataDictSTR' is not defined   Connection
   uniFiAP Error                   Error in plugin execution UiAction:
Attachments
Screen Shot 2021-02-03 at 1.07.54 PM.png
Screen Shot 2021-02-03 at 1.07.54 PM.png (49.29 KiB) Viewed 3096 times

Posted on
Wed Feb 03, 2021 1:34 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: DICT timeout

ok this one v .318 should behave a little better. https://www.indigodomo.com/pluginstore/73/

as you have upgraded your controller to v 6 "curl" does not work anymore , you need to switch to python requests in config... although it should do that automatically.

Karl

Posted on
Wed Feb 03, 2021 2:09 pm
stewkenly offline
User avatar
Posts: 38
Joined: Dec 28, 2015
Location: Austin, TX

Re: DICT timeout

OK! installed 318 and switched to python. The controller is on port 8443. Note the Unifi controller is running on the same machine as indigo, 192.168.0.5
Code: Select all
   uniFiAP                         MAP2Vendor initializing
   uniFiAP                         MAP2Vendor initializing  finished, read from mac2Vendor.json file
   uniFiAP                         MAP2Vendor initializing  finished, read from mac2Vendor.json file
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Error                   exception in deviceStartComm(UniFi: Garage Door Opener): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Granny's iPhone): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Majbritt's iPhone): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Nest Doorbell Camera): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Nest Protect 1): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Nest Protect 2): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Nest Protect 3): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Nest Protect 4): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Nest Protect 5): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Nest Side Yard Camera): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Nintendo Switch): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Stew's Cirrus iPad): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Stew's iPadMini): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Stew's iPhone): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Stew's Work Computer): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Teagan's Echo): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Teagan's iPhone): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi: Teagans iMac): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(Unifi: WAP-Bedrooms): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(Unifi: WAP-Kitchen): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_16:47:1e:d8:78:f3): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_18:e8:29:91:dd:9e): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_18:e8:29:92:dd:9e): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_1c:f2:9a:41:af:f9): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_44:61:32:e1:4f:91): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_58:bd:a3:f0:cd:f2): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_5e:ce:3a:ad:a5:8d): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_64:16:66:da:97:e7): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_7a:9c:1a:f0:bb:ab): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_7e:bc:5f:41:26:bb): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_86:1e:eb:8f:ac:22): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_96:9f:eb:92:15:c9): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_98:60:ca:53:c5:4f): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_b0:02:47:b0:ce:89): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_b4:fb:e4:44:42:cc): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_b4:fb:e4:45:42:cc): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_c2:48:6b:cf:6a:96): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_c8:d0:83:e5:57:b8): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_ec:5c:68:25:aa:81): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_fe:bb:d8:7d:0c:6d): tuple index out of range
   uniFiAP Error                   exception in deviceStartComm(UniFi_fe:dc:d5:7a:20:82): tuple index out of range
   uniFiAP                          start   runConcurrentThread, initializing loop settings and threads ..
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP                         initialized ... looping

Attachments
Screen Shot 2021-02-03 at 2.51.30 PM.png
Screen Shot 2021-02-03 at 2.51.30 PM.png (168.2 KiB) Viewed 3070 times

Posted on
Wed Feb 03, 2021 2:55 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: DICT timeout

please switch on debug:
Screen Shot 2021-02-03 at 14.49.58.png
Screen Shot 2021-02-03 at 14.49.58.png (21.78 KiB) Viewed 3070 times



and then post (blank the uid/passwds)
/Library/Application Support/Perceptive Automation/Indigo 7.5/Logs/com.karlwachs.uniFiAP/plugin.log

not everything, just the parts around getting port # .. and it is on the indigo server, not the client

Karl

Posted on
Wed Feb 03, 2021 3:04 pm
stewkenly offline
User avatar
Posts: 38
Joined: Dec 28, 2015
Location: Austin, TX

Re: DICT timeout

Hi Karl,

Here's the log.
Attachments
plugin.log
(22.28 KiB) Downloaded 129 times

Posted on
Wed Feb 03, 2021 3:17 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: DICT timeout

it looks as if the unifi controller - web server is not answering..

could you open a terminal
Code: Select all
curl  --insecure -I  https://192.x.x.x:8443
and
Code: Select all
curl  --insecure -I  https://192.x.x.x:443

or which port do you use to login to your controller?


and show how you to get into the unifi controller
http//: ....

Karl

Posted on
Wed Feb 03, 2021 3:41 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: DICT timeout

you should get something like:

Code: Select all
curl --insecure -I https://192.168.1.53:8443
HTTP/1.1 302
Location: /manage
Transfer-Encoding: chunked
Date: Wed, 03 Feb 2021 21:38:38 GMT

Posted on
Wed Feb 03, 2021 4:28 pm
stewkenly offline
User avatar
Posts: 38
Joined: Dec 28, 2015
Location: Austin, TX

Re: DICT timeout

Code: Select all
venus:/Users/stewadmin> curl --insecure -I https://192.168.0.5:8443
HTTP/1.1 302
Location: /manage
Transfer-Encoding: chunked
Date: Wed, 03 Feb 2021 22:27:56 GMT

venus:/Users/stewadmin>

Posted on
Wed Feb 03, 2021 6:10 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: DICT timeout

ok found it ..

please load v .319 https://www.indigodomo.com/pluginstore/73/

open config, check userid and passwords, then save

Karl

Posted on
Wed Feb 03, 2021 8:43 pm
stewkenly offline
User avatar
Posts: 38
Joined: Dec 28, 2015
Location: Austin, TX

Re: DICT timeout

Hi Karl,

Upgraded to 319, checked controller and AP passwords correct and am seeing this still...

Code: Select all
e Automation/
   uniFiAP                         installFolder           /Library/Application Support/Perceptive Automation/Indigo 7.5/
   uniFiAP                         plugin.py               /Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/uniFiAP.indigoPlugin/Contents/Server Plugin/
   uniFiAP                         Plugin params           /Library/Application Support/Perceptive Automation/Indigo 7.5/Preferences/Plugins/com.karlwachs.uniFiAP/
   uniFiAP                         logger  enabled for     INFO           ==> TEST ONLY
   uniFiAP Warning                 logger  enabled for     WARNING        ==> TEST ONLY
   uniFiAP Error                   logger  enabled for     ERROR          ==> TEST ONLY
   uniFiAP Error                   logger  enabled for     CRITICAL       ==> TEST ONLY
   uniFiAP                         check                   /Library/Application Support/Perceptive Automation/Indigo 7.5/Logs/com.karlwachs.uniFiAP/plugin.log  <<<<    for detailed logging
   uniFiAP                         Plugin short Name       UniFi
   uniFiAP                         my PID                  82264
   uniFiAP                         set params for indigo V 7.5
   Started plugin "uniFiAP 7.34.319"
   uniFiAP                         testing if variable enableTimeTracking_UniFi is == on/off/print-option to enable/end/print time tracking of all functions and methods (option:'',calls,cumtime,pcalls,time)
   uniFiAP                         myLogSet setting parameters -- logFileActive= indigo; logFile= /Library/Application Support/Perceptive Automation/Indigo 7.5/Logs/com.karlwachs.uniFiAP/plugin.log;  debugLevel= [u'ConnectionCMD', u'ConnectionRET']
   uniFiAP                         MAP2Vendor initializing
   uniFiAP                         MAP2Vendor initializing  finished, read from mac2Vendor.json file
   uniFiAP                         MAP2Vendor initializing  finished, read from mac2Vendor.json file
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   Trigger                         Weather Wind Variable Update
   Trigger                         Weather Heatindex Variable Update
   Trigger                         Weather Temp Variable Update
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP                          start   runConcurrentThread, initializing loop settings and threads ..
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP Warning                 getunifiOSAndPort bad return from unifi controller 192.168.0.5, no os and / port found, tried ports:['443', '8443']
   uniFiAP                         initialized ... looping

Who is online

Users browsing this forum: No registered users and 6 guests

cron