Errors

Posted on
Sun Feb 28, 2016 12:00 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Errors

Karl,
I'm getting the following in my event log. As best I can tell, this started occurring several days ago. Nothings changed that I am aware of. I am running the homebridge through terminal and that was the last installation that I do recall doing but that was over a month ago. Tried a complete system restart and I also tried reentering my mac password. Running a new Airport extreme as the only router on my network.

Code: Select all
Feb 28, 2016, 12:56:15 PM
  fingscan Error                  ----------------------------------------------------------------------------------
  fingscan Error                  seems that FING is not active - no change in data, restarting fing, seconds since last change: 538.537285805
  fingscan Error                  ----------------------------------------------------------------------------------
  fingscan Error                  ----------------------------------------------------------------------------------
  fingscan Error                    (re)started FING 5 times, quiting ... reloading the plugin
  fingscan Error                  ----------------------------------------------------------------------------------
  fingscan                        --> while loop break  stopping ...  quitNOW was:yes
  Reloading plugin "fingscan 4.17.5"
  Stopping plugin "fingscan 4.17.5" (pid 6136)
  fingscan                        stopConcurrentThread called 2
  fingscan                        stopConcurrentThread called 3
  fingscan                        shutdown called
  Stopped plugin "fingscan 4.17.5"
  Starting plugin "fingscan 4.17.5" (pid 7015)
  Started plugin "fingscan 4.17.5"
  fingscan                        FINGSCAN--V 4-17-5   initializing     will take ~ 2 minutes...
  fingscan                        killing ping jobs: all
  fingscan                        leaving WiFi parameters at default, not configured in 'fingscan/Configure...'
  fingscan                        indigo variables initialized
  fingscan                        getting password
  fingscan                        get password done
  fingscan                        mk fing dir sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        mk fing dir sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        mk fing dir sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        mk fing dir sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        mk fing dir sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        mk fing dir sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        mk fing dir sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        mk fing dir sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        mk fing dir sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        copy fing sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        copy fing sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        copy fing sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        copy fing sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        copy fing sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        copy fing sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
  fingscan                        loaded indigo data
  fingscan                        network info: inet 10.0.1.8 netmask 0xffffff00 broadcast 10.0.1.255
  fingscan                        ifind plugin: com.corporatechameleon.iFindplugBeta
  fingscan                        FING initializing

Posted on
Sun Feb 28, 2016 9:57 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Errors

Looks like it is complaining about access rights

Did you change anything with access rights. Eg upgraded op sys?


Sent from my iPhone using Tapatalk

Posted on
Sun Feb 28, 2016 10:13 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Errors

could you open terminal session and enter:
Code: Select all
echo 'yourPassword' | sudo -S  /bin/mkdir /usr/local/

and see what you get back (naturally use your password ..)
If you have no special characters .. in your password you don't need the ' before after the password

Karl

Posted on
Mon Feb 29, 2016 7:27 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Errors

I did upgrade to El capitan a few weeks ago, probably 4 or 5, but the plugin was still working after the upgrade.

Ran the code you suggested with this result. Not sure what my course of action is now but if you could point me in the right direction I would appreciate it!

Code: Select all
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting




kw123 wrote:
could you open terminal session and enter:
Code: Select all
echo 'yourPassword' | sudo -S  /bin/mkdir /usr/local/

and see what you get back (naturally use your password ..)
If you have no special characters .. in your password you don't need the ' before after the password

Karl

Posted on
Mon Feb 29, 2016 9:07 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Errors

so OS X tells you you can not do anything in usr/local/.. thats new!

I knew that ELC prohibited /usr but not usr/local/

could you try to look at the directory /usr/local in finder
or terminal create a file
Code: Select all
cd /usr 
cd local
echo xx > out

then  do an
ls -l
that shows the right it should look like:
-rw-r--r--    1 karlwachs  admin   3161 May 19  2015 CODEOFCONDUCT.md
-rw-r--r--    1 karlwachs  admin   1103 Nov 25  2014 CONTRIBUTING.md
drwxr-xr-x   23 karlwachs  admin    782 Jan 17 08:35 Cellar
drwxr-xr-x   21 karlwachs  admin    714 Jan  6  2015 Frameworks
-rw-r--r--    1 karlwachs  admin   1241 Feb 28  2015 LICENSE.txt
drwxr-xr-x   11 karlwachs  admin    374 Aug 18  2015 Library
-rw-r--r--    1 karlwachs  admin   2319 Aug 18  2015 README.md
-rw-r--r--    1 karlwachs  admin  23801 May 19  2015 SUPPORTERS.md
drwxrwxr-x@ 205 root       admin   6970 Jan 17 08:35 bin
drwxr-xr-x    6 karlwachs  admin    204 Aug 18  2015 etc
drwxrwxr-x   65 root       admin   2210 Jan 17 08:35 include
drwxrwxr-x@ 108 root       admin   3672 Jan 17 08:35 lib
drwxr-xr-x   23 karlwachs  admin    782 Jan 17 08:35 opt
drwxr-xr-x@  17 karlwachs  admin    578 Jan 17 08:35 share
drwxr-xr-x    3 root       wheel    102 Jan  6  2015 ssl
drwx------    5 karlwachs  admin    170 Jan  6  2015 var


If that does not work we need to ask the deep OS X experts


Karl

Posted on
Tue Mar 01, 2016 10:07 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Errors

Since /usr is protected, it's a good bet anything inside it is too. Is the plugin trying to install Fing?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Mar 04, 2016 2:46 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Errors

Karl,
see below
Attachments
Untitled.tiff
Untitled.tiff (113.87 KiB) Viewed 5378 times

Posted on
Sat Mar 05, 2016 6:02 am
Jarimac offline
Posts: 5
Joined: Jan 06, 2016

Re: Errors

jay (support) wrote:
Since /usr is protected, it's a good bet anything inside it is too. Is the plugin trying to install Fing?


/usr/local is not protected

    You can test this
    from terminal
    cd /usr
    username -imac:usr username$ ls -alO
    total 8
    drwxr-xr-x@ 11 root wheel restricted,hidden 374 Oct 1 09:41 .
    drwxr-xr-x 39 root wheel - 1394 Feb 10 14:18 ..
    lrwxr-xr-x 1 root wheel restricted 8 Jan 30 2015 X11 -> /opt/X11
    drwxr-xr-x 3 root wheel restricted 102 Aug 27 2015 adic
    drwxr-xr-x 1057 root wheel restricted 35938 Feb 10 19:24 bin
    drwxr-xr-x 266 root wheel restricted 9044 Jan 19 21:14 lib
    drwxr-xr-x 186 root wheel restricted 6324 Feb 10 19:24 libexec
    drwxr-xr-x 24username admin - 816 Mar 5 08:05 local


Directories that are protected by SIP will show restricted

I am running OSX El Capitan 11.3 and successfully installed Fingscan.

I did have before problems with Homebrew update in 11.3 and had also permission problems.

I executed the following command :
Code: Select all
sudo chown $(whoami):admin /usr/local && sudo chown -R

Try executing the above command and see if this helps.

I am not sure if an update to 11.4 changes the permissions again

JanR

Posted on
Sun Mar 06, 2016 7:10 pm
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Errors

Ran the command with the following results. What is strange is that this didn't happen immediately after installing El Cap.... it happens like a week and a half ago and the OS install was well over a month ago.

Code: Select all
Server:local ddewey$ sudo chown $(whoami):admin /usr/local && sudo chown -R
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting

Posted on
Sun Mar 06, 2016 10:26 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Errors

May be you want to reinstall OS X.

Or we just move fing to the user directory.


Sent from my iPhone using Tapatalk

Posted on
Mon Mar 07, 2016 8:18 am
Jarimac offline
Posts: 5
Joined: Jan 06, 2016

Re: Errors

Karl
kw123 wrote:
Or we just move fing to the user directory.

You can't do that /usr is restricted.

You're having problems with your root account.

sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting

The problem could be with this file /etc/sudoers as owner or its permissions

Can you test the following and compare it with mine
Code: Select all
cd /

ls -al |grep private
lrwxr-xr-x@   1 root         wheel      11 Oct  1 09:28 etc -> private/etc
drwxr-xr-x@   6 root         wheel     204 Oct  1 09:31 private
lrwxr-xr-x@   1 root         wheel      11 Oct  1 09:28 tmp -> private/tmp
lrwxr-xr-x@   1 root         wheel      11 Oct  1 09:29 var -> private/var


Code: Select all
cd etc
ls -al |grep etc
drwxr-xr-x  102 root  wheel  3468 Mar  3 09:09 etc

Code: Select all
ls -al  |grep sudoers
-r--r-----    1 root  wheel    2299 Aug 23  2015 sudoers


You could try:
Code: Select all
sudo cat /private/etc/sudoers

enter your password but I think you will get the above error message

The problem your facing is that you can't change anything because your root account is not working.
There are a few options to correct it but I would like to take one step at a time and I need to do a write up.

JanR

Posted on
Mon Mar 07, 2016 8:59 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Errors

We could install fing from scratch into a different directory the plugin has all fing files. Move them to users/id/fing and execute from there u(with changed configs)

But I agree there is something else wrong. Likely you will run into some other issues.


Sent from my iPhone using Tapatalk

Posted on
Mon Mar 07, 2016 9:16 am
Jarimac offline
Posts: 5
Joined: Jan 06, 2016

Re: Errors

Hi Karl
kw123 wrote:
We could install fing from scratch into a different directory the plugin has all fing files. Move them to users/id/fing and execute from there u(with changed configs)

But I agree there is something else wrong. Likely you will run into some other issues.


Well I like to find the cause of the problem.
That means you can run it without a password, I noticed you sent the password and it gets stored in a indigo log file.
If you're interested I am willing to test it.

JanR

Posted on
Mon Mar 07, 2016 9:42 am
Dewster35 offline
Posts: 1030
Joined: Jul 06, 2010
Location: Petoskey, MI

Re: Errors

Thanks for all the help! an El Cap reinstall appears to have resolved this issue and Fingscan is now working as intended.

Posted on
Mon Mar 07, 2016 12:04 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Errors

I noticed you sent the password and it gets stored in a indigo log file.

Should only be when you run with debug on : it shows the command as it gets executed, and that contains the password.
Otherwise it only gets handled internally and it is stored in the keychain with a little bit encryption (easy to figure out, but not straight forward)

you can look at the key chain and try to find it.

Karl

Who is online

Users browsing this forum: No registered users and 2 guests