FINGSCAN fails

Posted on
Thu Feb 18, 2021 7:58 am
steplad86 offline
Posts: 14
Joined: Jun 28, 2014

FINGSCAN fails

I am trying to get FINGSCAN to work in.my Indigo setup. However, Although the plugin seems to start fine, it fails after about 2 minutes, issues a message, and then attempts to restart. This process will continue indefinitely if I do not disable the plugin. After some investigation, it appears to me that I have the wrong executable for FING as the error indicates that the version number is returned as 0.0, according to my reading of the code. However, I cannot figure out where to get the correct version of the code. FYI, I can run the desktop version of FING on my computer with no problems. I am running Indigo 7.5 on a MacMine (2018) using Catalina. Thanks in advance for any assistance you can provide.

Feb 18, 2021 at 06:45:02
Enabling plugin "fingscan 7.31.64"
Starting plugin "fingscan 7.31.64" (pid 31197)
fingscan ========================= initializing ==============================================
fingscan path To files: ==================
fingscan indigo /Library/Application Support/Perceptive Automation/
fingscan installFolder /Library/Application Support/Perceptive Automation/Indigo 7.5/
fingscan plugin.py /Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/fingscan.indigoPlugin/Contents/Server Plugin/
fingscan Plugin params /Library/Application Support/Perceptive Automation/Indigo 7.5/Preferences/Plugins/com.karlwachs.fingscan/
fingscan !!!!INFO ONLY!!!! logger enabled for INFO !!!!INFO ONLY!!!!
fingscan Warning !!!!INFO ONLY!!!! logger enabled for WARNING !!!!INFO ONLY!!!!
fingscan Error !!!!INFO ONLY!!!! logger enabled for ERROR !!!!INFO ONLY!!!!
fingscan Error !!!!INFO ONLY!!!! logger enabled for CRITICAL !!!!INFO ONLY!!!!
fingscan check /Library/Application Support/Perceptive Automation/Indigo 7.5/Logs/com.karlwachs.fingscan/plugin.log <<<< for detailed logging
fingscan Plugin short Name fing
fingscan my PID 31197
fingscan set params for indigo V 7.5
Started plugin "fingscan 7.31.64"
fingscan testing if variable enableTimeTracking_fing is == on/off/print-option to enable/end/print time tracking of all functions and methods (option:'',calls,cumtime,pcalls,time)
fingscan myLogSet setting parameters -- logFileActive= standard; logFile= ; debug plugin:[u'StartFi']
fingscan FINGSCAN-- initializing will take ~ 2 minutes...; sending logs to
fingscan getting password
fingscan get password done; checking if FING is installed
fingscan fing install check done
fingscan Error error in Line# 788 ; error=list index out of range
fingscan loaded indigo data
fingscan Warning network info: {'netWorkId': '192.168.29.0', 'broadcast': '192.168.29.255', 'netMask': '255.255.255.0', 'maxHosts': 254, 'hostRange': '192.168.29.1 - 192.168.29.254'}
fingscan ifind plugin: com.corporatechameleon.iFindplugBeta
fingscan MAP2Vendor initializing
fingscan Initializing parameters for FING
fingscan Waiting for first data from FING

Feb 18, 2021 at 06:46:47
fingscan Initializing .. FING data file not created, return
fingscan Error FING not running... quit
fingscan

fingscan switching off SQL logging for variables
:ipDevsLastDevChangedIndigoName; ipDevsLastUpdate; ipDevsNewDeviceNo; ipDevsNewIPNumber;
fingscan switching off SQL logging for variables END

fingscan Error --> setup config, save, then a manual reload of plugin
fingscan --> while loop break stopping ... quitNOW was: please setup config , waiting
fingscan Error --> you have 2 minutes to fix config, before restart

Feb 18, 2021 at 06:50:13
Reloading plugin "fingscan 7.31.64"
Stopping plugin "fingscan 7.31.64" (pid 31197)
fingscan Warning stopConcurrentThread called 2
fingscan runConcurrentThread stopping plugin due to: ::::: no :::::
Plugin restart request ignored (plugin is currently stopping or starting)
fingscan killing 2
Stopped plugin "fingscan 7.31.64"
Starting plugin "fingscan 7.31.64" (pid 31467)
fingscan ========================= initializing ==============================================
fingscan path To files: ==================
fingscan indigo /Library/Application Support/Perceptive Automation/
fingscan installFolder /Library/Application Support/Perceptive Automation/Indigo 7.5/
fingscan plugin.py /Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/fingscan.indigoPlugin/Contents/Server Plugin/
fingscan Plugin params /Library/Application Support/Perceptive Automation/Indigo 7.5/Preferences/Plugins/com.karlwachs.fingscan/
fingscan !!!!INFO ONLY!!!! logger enabled for INFO !!!!INFO ONLY!!!!
fingscan Warning !!!!INFO ONLY!!!! logger enabled for WARNING !!!!INFO ONLY!!!!
fingscan Error !!!!INFO ONLY!!!! logger enabled for ERROR !!!!INFO ONLY!!!!
fingscan Error !!!!INFO ONLY!!!! logger enabled for CRITICAL !!!!INFO ONLY!!!!
fingscan check /Library/Application Support/Perceptive Automation/Indigo 7.5/Logs/com.karlwachs.fingscan/plugin.log <<<< for detailed logging
fingscan Plugin short Name fing
fingscan my PID 31467
fingscan set params for indigo V 7.5
Started plugin "fingscan 7.31.64"
fingscan testing if variable enableTimeTracking_fing is == on/off/print-option to enable/end/print time tracking of all functions and methods (option:'',calls,cumtime,pcalls,time)
fingscan myLogSet setting parameters -- logFileActive= standard; logFile= ; debug plugin:[u'StartFi']
fingscan FINGSCAN-- initializing will take ~ 2 minutes...; sending logs to
fingscan getting password
fingscan get password done; checking if FING is installed
fingscan fing install check done
fingscan Error error in Line# 788 ; error=list index out of range
fingscan loaded indigo data
fingscan Warning network info: {'netWorkId': '192.168.29.0', 'broadcast': '192.168.29.255', 'netMask': '255.255.255.0', 'maxHosts': 254, 'hostRange': '192.168.29.1 - 192.168.29.254'}
fingscan ifind plugin: com.corporatechameleon.iFindplugBeta
fingscan MAP2Vendor initializing
fingscan Initializing parameters for FING
fingscan Waiting for first data from FING

Posted on
Thu Feb 18, 2021 9:41 am
kw123 online
User avatar
Posts: 7482
Joined: May 12, 2013
Location: Dallas, TX

Re: FINGSCAN fails

this error ( error message will be changed in next version)
fingscan Error error in Line# 788 ; error=list index out of range
happens when
u"echo '"+self.yourPassword+ u"' | sudo -S "+self.fingEXEpath+" -v"
does not work
(
self.fingEXEpath = u"/usr/local/bin/fing"
and
self.yourPassword is set in config
)

have you set the MAC userid and password in config ?


and could you try in a terminal:
/usr/local/bin/fing


Karl

Posted on
Thu Feb 18, 2021 10:15 am
kw123 online
User avatar
Posts: 7482
Joined: May 12, 2013
Location: Dallas, TX

Re: FINGSCAN fails

.. and try v 7.32.65, replaced error message w more info

Posted on
Thu Feb 18, 2021 6:30 pm
steplad86 offline
Posts: 14
Joined: Jun 28, 2014

Re: FINGSCAN fails

Thanks for response. When I tried /usr/local/lib/fing in terminal, the response was "/usr/local/lib/fing/fing.bin: No such file or directory". When I listed the contents of /usr/local/bin, there is a fing file ("rwxr-xr-x 1 root wheel 198 Oct 15 2019 fing") but it looks too old to me. I think that the MAC ID and password have been set - I don't see a place to enter the ID but the password that is echoed by the plugin is correct. Thanks again for your help.

Posted on
Thu Feb 18, 2021 6:56 pm
kw123 online
User avatar
Posts: 7482
Joined: May 12, 2013
Location: Dallas, TX

FINGSCAN fails

Did you install fing w the plugin included fing archive ?

And yes no userid needed only the password.

Karl


Sent from my iPhone using Tapatalk

Posted on
Fri Feb 19, 2021 7:44 am
steplad86 offline
Posts: 14
Joined: Jun 28, 2014

Re: FINGSCAN fails

Don't know for sure. I just installed it as I normally do for any plugin. After the first install, I got an error message that fing.bin could not be opened because it could not be verified. As a result, fingscan would not even start in Indigo. I tried to delete everything related to fingscan (not sure that worked) and re-installed it. Then, it would start in Indigo but would issue the error related to the fing version (line 788). There is a fing.bin file in the plugin (/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins (Disabled)/fingscan.indigoPlugin/Contents/Server Plugin/fingEXE/lib/fing/fing.bin). Maybe I should try to re-install?

Posted on
Fri Feb 19, 2021 8:20 am
kw123 online
User avatar
Posts: 7482
Joined: May 12, 2013
Location: Dallas, TX

Re: FINGSCAN fails

Ok this is a rights issue

The plugin should fix that auto automatically.

Did you install the latest version?

After the failed open when you go to mac setting security - there should be an option to allow fing to run


Sent from my iPhone using Tapatalk

Posted on
Fri Feb 19, 2021 1:51 pm
steplad86 offline
Posts: 14
Joined: Jun 28, 2014

Re: FINGSCAN fails

I started over; removed FING desktop app and deleted all FING files and folders from the computer. Then, downloaded and installed the fingscan plugin (Version 7.32.65). This time it brought up the "Configure fingscan" page but then stopped and the OS issued the 'fing.bin cannot be opened because the developer cannot be verified.' I checked Settings-Security but could not find any way to authorize the fing app. So, I found fing.bin and used control-click and open to try to open it but received a message: 'Unable to expand"fing.bin". It is in an unsupported format'. So not sure where to go from here.

Posted on
Fri Feb 19, 2021 2:48 pm
kw123 online
User avatar
Posts: 7482
Joined: May 12, 2013
Location: Dallas, TX

Re: FINGSCAN fails

try:
Code: Select all
sudo  /usr/bin/xattr -rd com.apple.quarantine  /usr/local/bin/fing


Karl

Posted on
Fri Feb 19, 2021 3:37 pm
steplad86 offline
Posts: 14
Joined: Jun 28, 2014

Re: FINGSCAN fails

That seems to have helped but now getting the 'cannot be verified message for 'liboverlook.dylib'. Thanks for your patience.

Posted on
Fri Feb 19, 2021 5:08 pm
kw123 online
User avatar
Posts: 7482
Joined: May 12, 2013
Location: Dallas, TX

Re: FINGSCAN fails

try:
Code: Select all
sudo  /usr/bin/xattr -rd com.apple.quarantine  /usr/local/lib/fing/*

that should cover all executables and libs.

Posted on
Sat Feb 20, 2021 7:42 am
steplad86 offline
Posts: 14
Joined: Jun 28, 2014

Re: FINGSCAN fails

Making progress, I think. The plugin runs a little longer but execution ends with the following:

' fingscan Error
miss match version of opsys:{} and fing:{} you need to upgrade FING to 64 bit version (>=5). Download from
https://www.fing.com/products/development-toolkit use OSX button
or use
CLI_macOSX_5.4.0.zip
included in the plugin download to install
then delete fing.log and fing.data in the indigo preference directory and reload the plugin'

So, I went to the fing site and clicked on the OS X button (Fing Desktop SDK - Mac OS X - v1.4.2) which downloaded a folder called 'fingkit_1.4.2' that I could not figure out how to use. So I also downloaded the Fing CLI - Mac OSx - v5.5.2 package, which gives me the message that it cannot be opened because Apple cannot check it for malicious software. Although I can override the warning and open the package, I wanted to confirm that it is the correct version as the version (5.5.2) is different than 5.4.0 listed in the fingscan error message. Again, my apologies for how much of your time this has taken.

Posted on
Sat Feb 20, 2021 8:04 am
steplad86 offline
Posts: 14
Joined: Jun 28, 2014

Re: FINGSCAN fails

Update! I went ahead und used the CLI 5.5.2 package and deleted the fing.data file as directed in the error message (could not find fing.log). Fingscan now seems to work. Thanks again for your help.

Posted on
Sat Feb 20, 2021 10:28 am
kw123 online
User avatar
Posts: 7482
Joined: May 12, 2013
Location: Dallas, TX

Re: FINGSCAN fails

for the benefit of all: could you post the steps you did to make it work?

I have an older MAC (MAC-PRO02012) so I might not be able to test it. But I could code the steps into the plugin, or add a help text doc.
Then test it on my mac mini 2018

Karl

Posted on
Sun Feb 21, 2021 8:29 am
steplad86 offline
Posts: 14
Joined: Jun 28, 2014

Re: FINGSCAN fails

Not sure you can write code that will make up for my lack of knowledge. My problem started several months ago when I upgraded the Mac Mini to Catalina. That caused fingscan to fail (Apple developer verification error) and I was not able to immediately sort out the source of the problem. Instead, I found another plugin that met my needs at that time and abandoned fingscan. Recently, I came up with another need for fingscan so I downloaded the latest version and enabled it, which, of course, caused the same verification error for the fing.bin file. My first attempt to overcome this error was to find and eliminate all fing.bin files on my computer and retry the install. After a few attempts, I was able to get the plugin to execute up to the point that it issued the error message that I needed the 64-bit version of FING so I went to the FING web site and downloaded the FING Desktop SDK and the CLI-Mac-v5.5.2 package. I could not figure out how to use the SDK and when I tried to run the CLI package it generated the error message that the file could not be opened because it could not be “checked for malicious software”. Unfortunately, I did not remember how to override the error message to open the file (Control Click on the file from Finder). I think that had I done so, I would have solved the problem.
Unfortunately, I took the other path – I once again uninstalled everything I could find related to FING, found all FING related files on my computer that I could and deleted them, removed the fingscan plugin from INDIGO (in the inactive plugin folder), and restarted my computer. I restarted INDIGO several times to be sure that the plugin was not present. Thinking that I had banished all bad FING files (at this point, I did not realize that some FING files still existed in the “/usr/” location), I downloaded and re-installed the latest version of the fingscan plugin (v7.32.64), which, of course, issued the same message regarding the inability to verify the FING.bin file. That is when I contacted you to try to find out what I was doing wrong.
As our previous posts indicate, my lack of knowledge about the location of files (the “/usr/” locations) led to most of my problems. After following your guidance (e.g. quarantining files, etc.), I finally got back to the error that I needed the 64-bit version of FING. Once again, I downloaded the files suggested in the error message from fingscan. This time, however, I remembered how to override the verification error message when I tried to run the “CLI – Mac OSx – v5.5.2” package (open from Finder with Control Click and authorize opening file) and the package indicated that if was successful in installing FING. I do not know exactly what was installed; I could not find any references in the Applications folder. However, when I enabled the fingscan plugin, it started working properly. From what I can tell so far, it is working correctly, finding new devices as they log on to my network and showing the devices as away when they are turned off.
So, in the final analysis, I would say that my problem was really related to my lack of knowledge about the inner workings of my Mac and INDIGO. I think that if I had remembered how to override the ‘verification’ error the first time I encountered it, the problem would have been solved. The only thing a little mysterious about the install procedure error checking was the reference to the files at the FING website as it appears that names have changed since you wrote the code, and I could not find “CLI_macOSX_5.4.0.zip” anywhere in the files I downloaded. With your guidance, I have learned quite a bit about some terminal commands. Hopefully, I will remember them should I need them in the future. I don't know it this was helpful but feel free to ask me any other questions you may have.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest