A few errors in v2022.34.81

Posted on
Fri Aug 26, 2022 4:47 pm
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

A few errors in v2022.34.81

This happened after selecting "Reset all Devices"

fingscan Error
Traceback (most recent call last):
File "plugin.py", line 2028, in resetDevices
self.writeToFile()
File "plugin.py", line 2681, in writeToFile
f.write(writestring.encode("utf8")) # -->this needs to be decode
TypeError: write() argument must be str, not bytes

fingscan Error
Traceback (most recent call last):
File "plugin.py", line 5703, in updateIndigoIpDeviceFromDeviceData
dev = indigo.devices[devId]
KeyError: 'key not found in database'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "plugin.py", line 5736, in updateIndigoIpDeviceFromDeviceData
dev = indigo.devices[name]
TypeError: elem or key type must be either an elem integer ID, elem string name, or elem instance


Same errors happen after selecting "Reset all Events", plus this additional one

fingscan Error
Traceback (most recent call last):
File "plugin.py", line 4136, in compareToFingIfExpired
xxx = self.fingMACNumbers.index(theMAC)
ValueError: '7C:D1:C3:1B:95:C7' is not in list

Posted on
Sat Aug 27, 2022 12:06 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

A few errors in v2022.34.81

I believe, i have fixed the first errors, now looking at:
""
File "plugin.py", line 4136, in compareToFingIfExpired
xxx = self.fingMACNumbers.index(theMAC)
ValueError: '7C:D1:C3:1B:95:C7' is not in list
""

that section should never throw an error. it has an try / except around it
Code: Select all
            try:  ## try to find this indigo mac number in  fingdata
               xxx = self.fingMACNumbers.index(theMAC)
            except:  ## this one is in indigo, but not in the fingdata file, set to exipred if not already done or ignore if better data from wifirouter
...


and I can not reproduce the error.

But it should fix itself after all data is loaded ..

please try the new posted version : 2022.34.82

Karl

Posted on
Sat Aug 27, 2022 12:32 pm
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

Re: A few errors in v2022.34.81

Karl,
First a couple of questions:
1) What is the MAC password that I should enter in the config dialog, the Indigo Server Mac computer password or the Wifi Router admin password?
2) Also, should fingscan try to find the user friendly device name in the Indigo UI for each fingscan device, like MacMini-ServerRoom? Currently they are named MAC_XX:XX:XX:XX:XX:XX or New-0-XX:XX:XX:XX:XX:XX

I tried new version .82
UTF-8 error is fixed but I still get the other errors when I select "Reset all Devices". A total of 24 IP devices show up (not 26).

Aug 27, 2022 at 11:07:49 AM
fingscan updateIndigoIpDeviceFromDeviceData: devId 0 does not exist in indigo devices, recreate for mac#:A6:89:B1:69:D8:10
fingscan Warning updating ipDevice 01 does not exist , (re)creating

Aug 27, 2022 at 11:08:11 AM
fingscan updateIndigoIpDeviceFromDeviceData: devId 0 does not exist in indigo devices, recreate for mac#:90:72:40:07:DD:91
fingscan Error
Traceback (most recent call last):
File "plugin.py", line 5722, in updateIndigoIpDeviceFromDeviceData
dev = indigo.devices[devId]
KeyError: 'key not found in database'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "plugin.py", line 5756, in updateIndigoIpDeviceFromDeviceData
dev = indigo.devices[name]
TypeError: elem or key type must be either an elem integer ID, elem string name, or elem instance
fingscan Warning updating ipDevice 03 does not exist , (re)creating
fingscan FINGSCAN initialized

Aug 27, 2022 at 11:08:32 AM
fingscan updateIndigoIpDeviceFromDeviceData: devId 0 does not exist in indigo devices, recreate for mac#:8C:2D:AA:2F:CD:B1
fingscan Warning updating ipDevice 04 does not exist , (re)creating
fingscan updateIndigoIpDeviceFromDeviceData: devId 0 does not exist in indigo devices, recreate for mac#:90:72:40:07:DD:91
fingscan Error
Traceback (most recent call last):
File "plugin.py", line 5722, in updateIndigoIpDeviceFromDeviceData
dev = indigo.devices[devId]
KeyError: 'key not found in database'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "plugin.py", line 5756, in updateIndigoIpDeviceFromDeviceData
dev = indigo.devices[name]
TypeError: elem or key type must be either an elem integer ID, elem string name, or elem instance
fingscan updateIndigoIpDeviceFromDeviceData: devId 0 does not exist in indigo devices, recreate for mac#:90:72:40:07:DD:91
fingscan Error
Traceback (most recent call last):
File "plugin.py", line 5722, in updateIndigoIpDeviceFromDeviceData
dev = indigo.devices[devId]
KeyError: 'key not found in database'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "plugin.py", line 5756, in updateIndigoIpDeviceFromDeviceData
dev = indigo.devices[name]
TypeError: elem or key type must be either an elem integer ID, elem string name, or elem instance

Aug 27, 2022 at 11:09:15 AM
fingscan Warning updating ipDevice 06 does not exist , (re)creating
fingscan Warning updating ipDevice 07 does not exist , (re)creating
fingscan Warning updating ipDevice 08 does not exist , (re)creating
fingscan Warning updating ipDevice 09 does not exist , (re)creating
fingscan Warning updating ipDevice 10 does not exist , (re)creating
fingscan Warning updating ipDevice 11 does not exist , (re)creating
fingscan Warning updating ipDevice 12 does not exist , (re)creating
fingscan Warning updating ipDevice 13 does not exist , (re)creating
fingscan Warning updating ipDevice 14 does not exist , (re)creating
fingscan Warning updating ipDevice 15 does not exist , (re)creating
fingscan Warning updating ipDevice 16 does not exist , (re)creating
fingscan Warning updating ipDevice 17 does not exist , (re)creating
fingscan Warning updating ipDevice 18 does not exist , (re)creating
fingscan Warning updating ipDevice 19 does not exist , (re)creating
fingscan Warning updating ipDevice 20 does not exist , (re)creating
fingscan Warning updating ipDevice 21 does not exist , (re)creating
fingscan Warning updating ipDevice 22 does not exist , (re)creating
fingscan Warning updating ipDevice 23 does not exist , (re)creating
fingscan Warning updating ipDevice 24 does not exist , (re)creating
fingscan Warning updating ipDevice 25 does not exist , (re)creating

Aug 27, 2022 at 11:10:30 AM
fingscan updateIndigoIpDeviceFromDeviceData: devId 0 does not exist in indigo devices, recreate for mac#:60:C5:47:90:39:58
fingscan Error
Traceback (most recent call last):
File "plugin.py", line 5722, in updateIndigoIpDeviceFromDeviceData
dev = indigo.devices[devId]
KeyError: 'key not found in database'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "plugin.py", line 5756, in updateIndigoIpDeviceFromDeviceData
dev = indigo.devices[name]
TypeError: elem or key type must be either an elem integer ID, elem string name, or elem instance

Aug 27, 2022 at 11:11:13 AM
fingscan Warning updating ipDevice 26 does not exist , (re)creating


Posted on
Sun Aug 28, 2022 1:41 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: A few errors in v2022.34.81

Password: it is the mac user password. Wifi is not used any more. It was for an old asus wifi router. I should delete that section

2. why do you want to reset everything?
This was an option for when by mistake things were screwed up. I have not used that one for years.

3. device names. The current schema guarantees a unique name. You then need to rename them to what ever you like. Adding fancy naming algorithms is a source for issues

If you don’t do a reset, things should work fine

And I will check the errors.

Karl

Posted on
Sun Aug 28, 2022 1:09 pm
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

Re: A few errors in v2022.34.81

I just wanted to reset devices since I had so many expired ones and also devices that said "UP 0", instead of "UP <date>"

also got this error in the middle of the night

fingscan Error
Traceback (most recent call last):
File "plugin.py", line 3146, in getfingData
self.fingStatus = self.column(self.fingData,2)
File "plugin.py", line 6147, in column
return [row[i] for row in matrix]
File "plugin.py", line 6147, in <listcomp>
return [row[i] for row in matrix]
IndexError: list index out of range

Posted on
Mon Aug 29, 2022 9:00 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: A few errors in v2022.34.81

please try v 2022.35.84 posted on GitHub and indigo store


Karl

Posted on
Mon Aug 29, 2022 1:26 pm
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

Re: A few errors in v2022.34.81

thanks Karl, will test it.

Regarding the password, you might want to clarify this in the Config dialog, like "Enter Indigo Server Mac login password:"
MAC is confusing since we also have MAC addresses.
I would also hide the password from prying eyes by setting the flag secure="true" in the PluginConfig.xml

And why does the plugin need to restart every night?

And only one of my devices has a hardwareVendor listed. Shouldn't they all get updated at first run of plugin?

Posted on
Mon Aug 29, 2022 3:17 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: A few errors in v2022.34.81

"Enter Indigo Server Mac login password:" ==> yes will do

secure="true" ==> only you look at it. and it is stored openly in plugin prefs in the indigo directory. initially I had stored it in the mac keychain, but since some OS versions ago that did not not work anymore.

And why does the plugin need to restart every night? I had this initially just as a check . Never saw the need to change that. the plugin will restart and then be quiet for 3 minutes ie no state changes until everything is settled. and as this happens at midnight it should not matter

And only one of my devices has a hardwareVendor listed. ==> that depends on if the MAC numbers are registered with the public data base.

Karl

ps try the menu: Print details of IP_services of ... it will give you a very nice overview of your network, with all devices, open ports etc. !!! it will take several minutes !!!
eg:
Code: Select all
   fingscan                        IP-Device Number, Name, Vendor,..IP-Device port scan on  2022-08-29 16:55:24IP-Device Number, Name, Vendor,...------------------------------------------------------------------------
IP-Device Number, Name, Vendor,...192.x.x.x      B4:FB:E4:29:F0:BD                         MAC_B4:FB:E4:29:F0:BD Ubiquiti Networks Inc.firewall:false
..... service Port, Name, Comment:    22 ssh               SSH Secure Shell
..... service Port, Name, Comment:    53 domain            Domain Name Server
..... service Port, Name, Comment:    80 http              World Wide Web HTTP
..... service Port, Name, Comment:    443https             Secure World Wide Web HTTP (SSL)
IP-Device Number, Name, Vendor,...------------------------------------------------------------------------
....



Posted on
Tue Aug 30, 2022 12:41 pm
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

Re: A few errors in v2022.34.81

still getting this error during the night in v 2022.35.84


fingscan Error
Traceback (most recent call last):
File "plugin.py", line 2182, in getfingData
self.fingStatus = self.column(self.fingData,2)
File "plugin.py", line 4163, in column
return [row[i] for row in matrix]
File "plugin.py", line 4163, in <listcomp>
return [row[i] for row in matrix]
IndexError: list index out of range

Posted on
Tue Aug 30, 2022 1:37 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: A few errors in v2022.34.81

before I "fix" that:

could you check the files:
/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.fingscan/fing.data
/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.fingscan/fing.log

they will appear after ~ 1-2 minutes after start of the plugin

they should look like this with several lines
192.168.1.20;;up;;;B8:27:EB:5A:47:CF;Raspberry Pi Foundation

if there are lines that are shorter ie with less than 6 ";" then there is a fing.exe problem.


Karl

ps I now have a version that
1. sets password =**** in the config screen
2. you can select if and when the plugin should restart every night

would like to let it run one more night to check

Posted on
Tue Aug 30, 2022 3:17 pm
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

Re: A few errors in v2022.34.81

Hi Karl

both files have six ";" per line

And it might not matter, I am on a 10.0.1.1 network range.
But what is weird, the log lists hardware vendors for most of my devices, but in Indigo UI looking at custom states only one of my Apple devices shows "Apple" and the rest is not showing any vendor at all.

Also, still have many "UP 0" devices but log shows a date for all of those.

And even weirder, I named all my devices in Indigo UI but only some devices show this new name as custom state "nickName" while others still show the nickName with the original default name MAC_XX:XX:XX:XX:XX:XX

Posted on
Wed Aug 31, 2022 5:51 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: A few errors in v2022.34.81

please try new version just posted 2022.36.85

Posted on
Thu Sep 01, 2022 7:08 pm
new2me07 offline
Posts: 84
Joined: Apr 07, 2017

Re: A few errors in v2022.34.81

Code: Select all
022-09-01 20:58:25   killing FING Processes pids   all - ['']
2022-09-01 20:58:25   FING kill cmd:echo 'xxxxxx | sudo -S /bin/kill -9    > /dev/null 2>&1 &
2022-09-01 20:58:26 testing if FING is running
2022-09-01 20:58:26   FING running pids2=
2022-09-01 20:58:26   FING still running,  pids = ['']--[]
2022-09-01 20:58:26 FING cmd= '/Library/Frameworks/Python.framework/Versions/Current/bin/python3' '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/fingscan.indigoPlugin/Contents/Server Plugin/startfing.py' '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.fingscan/paramsForStart'  &
startfing  20:58:26 L:276 Lv:20 ========= start   @ 2022-09-01 20:58:26.737000   ===========;  loglevel:20
startfing  20:58:26 L:230 Lv:20  get pids of old processes w cmd:ps -ef | grep 'Plugin/startfing.py' | grep -v grep | awk '{print $2}'
startfing  20:58:26 L:230 Lv:20  get pids of old processes w cmd:ps -ef | grep '/usr/local/lib/fing/fing.bin' | grep -v grep | awk '{print $2}'
startfing  20:58:26 L:230 Lv:20  get pids of old processes w cmd:ps -ef | grep '/usr/local/bin/fing' | grep -v grep | awk '{print $2}'
startfing  20:58:26 L:287 Lv:20 params: {'ppp': '&a3xxxxx#5B', 'theNetwork': '192.168.1.0', 'netwType': '24', 'logLevel': 20, 'fingEXEpath': '/usr/local/bin/fing', 'macUser': 'chxxxx', 'pythonPath': '/Library/Frameworks/Python.framework/Versions/Current/bin/python3'}
startfing  20:58:26 L:290 Lv:20 echo 'xxxxxxx | sudo -S /bin/rm '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.fingscan/fing.data'
startfing  20:58:26 L:294 Lv:20 echo 'xxxxxxx' | sudo -S /bin/rm '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.fingscan/fing.log'
startfing  20:58:26 L:298 Lv:20 echo 0 > '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.fingscan/fing.log'
startfing  20:58:27 L: 69 Lv:20 chk versions.opsys: 12.5;   fingVersion:5.5 from cmd:echo 'xxxxxxx | sudo -S /usr/local/bin/fing -v;   
startfing  20:58:27 L: 85 Lv:20 into doFingV5 with yearTag: 2022/09, netTag: 192., version: 5.5;  opsys: 12.5
startfing  20:58:27 L: 93 Lv:20 fing start command: cd '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.karlwachs.fingscan/';echo 'xxxxxx' | sudo -S '/usr/local/bin/fing' 192.168.1.0/24   -o table,csv,  log,csv  &
startfing  20:58:27 L:100 Lv:40 try# 1; msg  <_io.BufferedReader name=7> -- err: <_io.BufferedReader name=9>, ListenProcessFileHandle:<Popen: returncode: None args: "cd '/Library/Application Support/Perceptive ...>
2022-09-01 20:58:27 testing if FING is running
2022-09-01 20:58:27   FING running pids2=
2022-09-01 20:58:27   killing FING Processes pids   onlyParents - ['33410']
2022-09-01 20:58:27   FING kill cmd:echo 'xxxxxxx' | sudo -S /bin/kill -9   33409 > /dev/null 2>&1 &
2022-09-01 20:58:28 testing if FING is running
2022-09-01 20:58:29   FING running pids2=
2022-09-01 20:58:29   FING still running,  pids = ['33410']--[]
2022-09-01 20:58:29 Waiting for first data from FING
startfing  20:58:29 L:230 Lv:20  get pids of old processes w cmd:ps -ef | grep 'sudo -S /usr/local/bin/fing' | grep -v grep | awk '{print $2}'
startfing  20:58:29 L:230 Lv:20  get pids of old processes w cmd:ps -ef | grep '/bin/sh /usr/local/bin/fing' | grep -v grep | awk '{print $2}'
startfing  20:58:29 L:112 Lv:20 fing.bin launched
2022-09-01 21:00:14 Initializing .. FING data file not created, return
2022-09-01 21:00:14.724   ERROR          Plugin.initConfig                 FING not running... quit
2022-09-01 21:00:14 settings:  inbetweenPingType            parallel
2022-09-01 21:00:14 settings:  wait seconds between cycles  4




Any ideas why the data and log files aren't getting created... I've had a lot of issues, but its still updates things in the UI, sporadically. I deleted the data and log files a while ago, as I've done in the passed, and they've always respawned. It was probably 3 versions ago when they were deleted

Posted on
Thu Sep 01, 2022 7:19 pm
Monstergerm offline
Posts: 274
Joined: Sep 01, 2009

Re: A few errors in v2022.34.81

I installed 2022.36.85 and had no errors for the last 24 hours.
This version also fixed the "UP 0" issue in the Indigo UI, all devices now have a date.

It did NOT fix the nickName issue and hardwareVendor issue as previously explained.

Posted on
Thu Sep 01, 2022 10:48 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: A few errors in v2022.34.81

For the Harvard vendor info

Switch on debug logic and restart.

It should show you what info is available for each device.

Karl


Sent from my iPhone using Tapatalk

Who is online

Users browsing this forum: No registered users and 5 guests