"key ip5 not found in dict"

Posted on
Sun May 05, 2019 1:35 pm
shapa offline
Posts: 483
Joined: Sep 08, 2014
Location: Swindon

"key ip5 not found in dict"

Regularly seeing in the log:

" Connection in Line '3526' has error=''key ip5 not found in dict'' "

How to understand where the problem is? What does it mean the "Connection" component?

Posted on
Sun May 05, 2019 1:41 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: "key ip5 not found in dict"

That sounds like a network plugin such as UniFi?


Sent from my iPhone using Tapatalk Pro

Posted on
Sun May 05, 2019 3:54 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: "key ip5 not found in dict"

check the detailed logfile in ...indigo 7x/Logs/pluginname/plugin.log it gives more info .

"ip5" is not used in UnifiAp plugin .. but you never know.

if it is UNIFI, could you specify the version # you are using. In the current version(7.26.162) line 3526 is a comment

But there are log statements in the plugin like: :
self.indiLOG.log(40,"Connection: in Line '%s' has error='%s'" % (sys.exc_traceback.tb_lineno, e) ...

Connection denotes the method it is currently executing.
Karl
Last edited by kw123 on Sun May 05, 2019 10:03 pm, edited 1 time in total.

Posted on
Sun May 05, 2019 9:21 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: "key ip5 not found in dict"

I was trying to think of a plugin that would have multiple network connections, and have 3000 lines, of which UniFi was the first that came to mind.

If you have that log syntax in UniFi, it’s likely to be that plugin, or another of your plugins - chances of anyone else happening to use that syntax is unlikely.


Sent from my iPhone using Tapatalk Pro

Posted on
Sun May 05, 2019 9:43 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: "key ip5 not found in dict"

Yes I know. But I can’t find ip5 in any of the versions. And the current version has a comment on that line. So the actual version # would help.

Karl.


Sent from my iPhone using Tapatalk

Posted on
Sun May 05, 2019 10:24 pm
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: "key ip5 not found in dict"

.. ok I found:
Code: Select all
                  for i in range(len(self.ipNumbersOfAPs)):
                     if   not self.isValidIP(self.pluginPrefs[u"ip"+unicode(i)]): # <--> this must be it.  completely different line though
that could go to ip5, but the # of items is limited
with:
Code: Select all
_GlobalConst_numberOfAP    = 5
self.ipNumbersOfAPs            = ["" for nn in range(_GlobalConst_numberOfAP)]  #  .. it goes from 0..4

so i must always be < 5.

I need more info:
1. version #
2. menu " print config to logfile .. first sub item" print to indigo log or in /Library/Application Support/Perceptive Automation/Indigo 7.x/Logs/com.karlwachs.uniFiAP/plugin.log

It should look like (with password etc !!! remove them
Code: Select all
23:19:42                          -
23:19:42                          -UniFi    =============plugin config Parameters========
23:19:42                          -debugLevel                              []
23:19:42                          -logFile                                 /Library/Application Support/Perceptive Automation/Indigo 7.3/Logs/com.karlwachs.uniFiAP/plugin.log
23:19:42                          -enableFINGSCAN                          False
23:19:42                          -enableBroadCastEvents                   all
23:19:42                          -ignoreNeighborForFing                   True
23:19:42                          -expirationTime                          120 [sec]
23:19:42                          -sleep in main loop                      4.0 [sec]
23:19:42                          -use curl or request                     /usr/bin/curl
23:19:42                          -cpu used since restart:                 452:32.80
... and many more lines

and when you post please use [code . /code]. it is formatted for that .


Karl

Posted on
Mon May 06, 2019 3:23 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: "key ip5 not found in dict"

Karl.

Version 7.25.143

Code: Select all
if not self.isValidIP(self.pluginPrefs[u"ip"+unicode(i)] ):


Peter

Posted on
Mon May 06, 2019 7:44 am
kw123 offline
User avatar
Posts: 8363
Joined: May 12, 2013
Location: Dallas, TX

Re: "key ip5 not found in dict"

that should be:
Code: Select all
   if   not self.isValidIP(self.pluginPrefs[u"ipSW"+unicode(i)] ):

will fix later today.

Thanks for the pointer Peter

Karl

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests