New install - Line '1193' has error for missing directory

Posted on
Sat Feb 09, 2019 12:02 am
shrxman offline
Posts: 83
Joined: Apr 22, 2015

New install - Line '1193' has error for missing directory

Hey Karl,

Sorry to bug you again, but I went to a brand new install and, as soon as I installed the latest version of piBeacon, I get these errors in the logs:

These which don't particularly scare me at the moment:
Code: Select all
 logger  enabled for   ERROR

Code: Select all
logger  enabled for   CRITICAL


and these, which do:
Code: Select all
in Line '1193' has error='[Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/dataStats''


Code: Select all
 piBeacon Error                  in Line '15451' has error='local variable 'TCPserverHandle' referenced before assignment'


I have a pi running piBeacon from your image, but have yet to even try to add it to Indigo, figuring it'd be best to clear this up before muddying the waters. How should I proceed? I'm gathering that this is a data file you've created to track stats, but since nothing's configured there are no stats to collect. Should I just create a dummy/empty stats file? If so, what should be the contents? Or, do you have another suggestion/trick up your sleeve for this one?

thanx,
~ken

Posted on
Sat Feb 09, 2019 8:08 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: New install - Line '1193' has error for missing director

Ken,

the first 2 should show which logging goes into the indigo log file: only error and critical, all logging goes into the plugin.log file. it should be INFO not interpreted as error.

the second:
it looks as if the plugin prefs directory was not created, OR it is a fresh install. THENiIt should not be an error message, I have to down grade the error level.

could you post the directory of
/Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/
and
/Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/

The last one is a real error:

please try to restart the plugin
1. the >> in Line '1193' has error='[Er ..<<< should go away

2. if the >>in Line '15451' has error='local v.. << error persists, try to switch to web transfer (not socket comm) in config. then you also might want to do menu/ edit web server to suppress heavy logging by indigo of all incoming RPI messages. .. but only after everything works.

Karl

the new version will show:
Code: Select all
 piBeacon                        initializing    ...
   piBeacon                        path To files:        =================
   piBeacon                        indigo                /Library/Application Support/Perceptive Automation/
   piBeacon                        installFolder         /Library/Application Support/Perceptive Automation/Indigo 7.2/
   piBeacon                        plugin.py             /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/
   piBeacon                        Plugin params         /Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/
   piBeacon                        (testing logger; see >/Library/Application Support/Perceptive Automation/Indigo 7.2/Logs/com.karlwachs.piBeacon/plugin.log<   for detailed logging
   piBeacon Error                  logger  enabled for   ERROR
   piBeacon Critical Error         logger  enabled for   CRITICAL
   piBeacon                        end testing logger .... )
   piBeacon                        Plugin short Name     piBeacon
   piBeacon                        my PID                38607
   piBeacon                        set params 4 indigo V 7.2
 

hopefully that will make the info clearer

Posted on
Sat Feb 09, 2019 1:14 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: New install - Line '1193' has error for missing director

Happy Saturday Karl :-)

So, here's what I have from your suggestions.

Directory listings as requested:

Code: Select all
   piBeacon                        initializing  ...
ShrxCentral:com.karlwachs.piBeacon shrxman$ ls -l /Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/
ls: /Library/Application: No such file or directory
ls: 7.2/Preferences/Plugins/: No such file or directory
ls: Automation/Indigo: No such file or directory
ls: Support/Perceptive: No such file or directory
ShrxCentral:com.karlwachs.piBeacon shrxman$

ShrxCentral:Plugins shrxman$ ls -l /Library/Application\ Support/Perceptive\ Automation/Indigo\ 7.2/Preferences/Plugins/com.karlwachs.piBeacon/
total 80
-rw-r--r--  1 shrxman  admin     27 Feb  9 11:08 CARS
-rw-r--r--  1 shrxman  admin  12571 Feb  9 11:08 RPIconf
drwxr-xr-x  4 shrxman  admin    128 Feb  8 21:35 all
-rw-r--r--  1 shrxman  admin      2 Feb  9 11:08 beacons
-rw-r--r--  1 shrxman  admin      2 Feb  9 11:08 beaconsIgnoreUUID
-rw-r--r--  1 shrxman  admin      2 Feb  9 11:08 beaconsUUIDtoIphone
-rw-r--r--  1 shrxman  admin      2 Feb  9 11:08 beaconsUUIDtoName
drwxr-xr-x  2 shrxman  admin     64 Feb  8 21:35 cameraImages
-rw-r--r--  1 shrxman  admin      4 Feb  9 11:08 dataVersion
drwxr-xr-x  2 shrxman  admin     64 Feb  8 21:35 displayFiles
drwxr-xr-x  2 shrxman  admin     64 Feb  8 21:35 interfaceFiles
drwxr-xr-x  6 shrxman  admin    192 Feb  8 21:38 mac2Vendor
drwxr-xr-x  2 shrxman  admin     64 Feb  8 21:35 plotPositions
drwxr-xr-x  2 shrxman  admin     64 Feb  8 21:35 rejected
drwxr-xr-x  2 shrxman  admin     64 Feb  8 21:35 soundFiles



After reloading the plugin, here's what showed up in the Indigo log:
Code: Select all
Feb 9, 2019 at 11:06:42 AM
   Reloading plugin "piBeacon 7.101.271"
   Stopping plugin "piBeacon 7.101.271" (pid 16082)
   Stopped plugin "piBeacon 7.101.271"
   Starting plugin "piBeacon 7.101.271" (pid 16097)
   piBeacon                        initializing  ...
   piBeacon                        path To files:      =================
   piBeacon                        indigo              /Library/Application Support/Perceptive Automation/
   piBeacon                        installFolder       /Library/Application Support/Perceptive Automation/Indigo 7.2/
   piBeacon                        plugin.py           /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/piBeacon.indigoPlugin/Contents/Server Plugin/
   piBeacon                        Plugin params       /Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/
   piBeacon Error                  logger  enabled for   ERROR
   piBeacon Critical Error         logger  enabled for   CRITICAL
   piBeacon                        check               /Library/Application Support/Perceptive Automation/Indigo 7.2/Logs/com.karlwachs.piBeacon/plugin.log  <<<<    for detailed logging
   piBeacon                        Plugin short Name   piBeacon
   piBeacon                        my PID              16097
   Started plugin "piBeacon 7.101.271"
   piBeacon                        myLogSet setting parameters -- logFileActive= indigo; logFile= /Library/Application Support/Perceptive Automation/Indigo 7.2/Logs/com.karlwachs.piBeacon/plugin.log;  debugLevel= ['Logic', 'SensorData', 'UpdateRPI', 'SocketRPI']
   piBeacon                        testing if variable enableTimeTracking_piBeacon is == on/off/print-option to enable/end/print time tracking of all functions and methods (option:'',calls,cumtime,pcalls,time)
   piBeacon                         --V 7.101.271     initializing  --
   piBeacon Error                  in Line '1193' has error='[Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 7.2/Preferences/Plugins/com.karlwachs.piBeacon/dataStats''




I even disabled piBeacon, restarted Indigo server, and then re-enabled piBeacon, but the error is still present. I do plan on updating the web server after we get this worked out, so am not worried about any errors that you thin are spurious in regards to that.

Thanx again!
~ken

Posted on
Sat Feb 09, 2019 5:09 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: New install - Line '1193' has error for missing director

This error message is not an error message -- the file dataStats has not yet been created(*) . That is ok.
That happens when no messages through tcpip socket comm have been received.
So if you did not had any RPI running before (through socket comm) that files will not exist and restarting the plugin does not create one.

Once ONE MESSAGE has been received, it should be created.

ON >>in Line '15451' has error='local v.. << error ... is that gone?


Karl

(*)in the next release it will be corrected..

Posted on
Sat Feb 09, 2019 5:11 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: New install - Line '1193' has error for missing director

Looks like it. I'll work on getting at least one Pi connected and see if the errors all go away from there. :-) . thanx again sir!

Posted on
Sat Feb 09, 2019 5:12 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: New install - Line '1193' has error for missing director

oops.. spoke...er.. uhm typed too soon.. Error is still there, though i haven't updated the web server yet..

Code: Select all
   piBeacon Error                  in Line '15451' has error='local variable 'TCPserverHandle' referenced before assignment'

Posted on
Sat Feb 09, 2019 5:41 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: New install - Line '1193' has error for missing director

Not sure if we should split this out to a different post, or not, but I just added a new pi.. a pi 3+, and see this in the permanent log as well:

Code: Select all
   master  rebooting / shutdown sudo killall -9 python; sudo reboot   rebooting due to repeated request:bluetooth_startup.ERROR:[Errno 5] Input/output error


this is my first 3+ system, so not sure if there's something special that needs to be done for BLE.

plugin log shows the following:

Code: Select all
09 15:31:38  .. config read from files
09 15:31:38 fixConfig called from readconfig; with:['all', 'rpi', 'beacon', 'CARS', 'sensors', 'output', 'force']
09 15:31:38 startup(self): setting variables, debug ..   finished
09 15:31:38  ..   starting tcpip stack
09 15:31:38 starting tcpip socket listener, for RPI data, might take some time, using: ip#= 192.168.1.x;  port#= 12087
09 15:31:38 lsof output:('', '')
09 15:31:38 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 0   time elapsed:  0.0 secs
09 15:31:45 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 1   time elapsed:  7.1 secs
09 15:31:52 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 2   time elapsed: 14.1 secs
09 15:31:59 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 3   time elapsed: 21.1 secs
09 15:32:00 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 4   time elapsed: 22.1 secs
09 15:32:01 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 5   time elapsed: 23.2 secs
09 15:32:02 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 6   time elapsed: 24.2 secs
09 15:32:03 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 7   time elapsed: 25.2 secs
09 15:32:04 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 8   time elapsed: 26.2 secs
09 15:32:05 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 9   time elapsed: 27.3 secs
09 15:32:07 TCPIPsocket:: [Errno 8] nodename nor servname provided, or not known     try#: 10   time elapsed: 28.3 secs


But from the pi, i don't see that port listening:
Code: Select all
roomPi:/home/pi/pibeacon# netstat -an | grep LIST | grep 12087
root@lroomPi:/home/pi/pibeacon# netstat -an | grep CONN | grep 12087
root@lroomPi:~# netstat -an | grep 12087
root@lroomPi:~#


Then i grepped netstat for the indigo server host ip"
Code: Select all
oomPi:~# netstat -an | grep 10.0.1.78
tcp        0     36 10.0.1.126:22           10.0.1.78:49813         ESTABLISHED


all i see there is the ssh session, so it doesn't appear to be connecting, or at least holding a steady connection.

Posted on
Sat Feb 09, 2019 5:43 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: New install - Line '1193' has error for missing director

Oops.. forgot to mention, my primary interface on the pi is wlan0. Not sure if that comes into play here, but figured I'd let you know now, just in case. I have eth0 up as well, but rely on wlan0 for the connection to the Indigo Server.

Posted on
Sat Feb 09, 2019 6:10 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: New install - Line '1193' has error for missing director

The rpi3+ does not work w the ssd from nov 2018. You need a second ble dongle with that ssd


In rpi device edit set ble to usb-dongle after you add the dongle.

I have no clue why with the new and latest opsys upgrade rpi3+ has problems w ble.

You can buy the ble dongles for $7 at Amazon. eg "DAYKIT Mini USB Bluetooth CSR 4.0 Dual" you don't need BLE5


Karl.



Sent from my iPhone using Tapatalk

Posted on
Sat Feb 09, 2019 9:36 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: New install - Line '1193' has error for missing director

hmmm.. well that's interesting about the 3+, but I have some rpi 3's I can use. I think I read before that there were issues using wlan0 as the primary interface. Is that still the case, or would I be ok to continue with that ? If so, i'll burn an rpi 3, delete that pi from piBeacon, and try again. :-)

Posted on
Sat Feb 09, 2019 9:42 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: New install - Line '1193' has error for missing director

The rpi3+ has a new ble chip
The rpi3 is fine , but has problems wifi & BLE connected at the same time.

The rpi2+ is fine too
The rpi2 needs an external ble

So it’s complicated.

And yes if WiFi and ble is on the same chip the interfere with each other ... same frequency same queues and if ble keeps it busy WiFi can’t send.

The hope was that with the rpi3+ every works fine. That was true with the summer release of the opsys.

So if you download the previous ssd all should work for the all RPI


Sent from my iPhone using Tapatalk

Posted on
Sat Feb 09, 2019 10:11 pm
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: New install - Line '1193' has error for missing director

That last sentence confused me a bit.. I think what you meant was, if i wanted to use wlan0 as my primary interface, then my best bet is to use the pi 3+ along with a BLE dongle, since the onboard ble is on the same chip as the onboard wifi, correct?

Posted on
Sat Feb 09, 2019 10:20 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: New install - Line '1193' has error for missing director

rpi3+ works fine w previous SSDhttps://www.dropbox.com/s/egvf89113x8ma25/pibeacon-2018-04-12.img.zip?dl=1

rpi3 needs 2 devices (eg external wifi or BLE dongle) for BLEconnect and wifi, not for ibeacon and wifi

Posted on
Sun Feb 10, 2019 3:31 am
shrxman offline
Posts: 83
Joined: Apr 22, 2015

Re: New install - Line '1193' has error for missing director

Ah. i think I got it now.. Will try the older ssd image with the 3+ and have ordered a couple of the dongles for my pi 3's. :-)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 12 guests