Page 70 of 78
Re: piBeacon: presence monitoring plugin discussions
Posted:
Thu Oct 03, 2019 12:01 am
by pixelpipeline
Hello Karl,
no changes with a wired connection ...
But now I get
- Code: Select all
piBeacon Warning error in socket-send to rPi:0 192.168.100.242, connection refused, rebooting/restarting RPI?
piBeacon Warning error in socket-send to rPi:0 192.168.100.242, connection refused, rebooting/restarting RPI?
Re: piBeacon: presence monitoring plugin discussions
Posted:
Thu Oct 03, 2019 6:43 am
by kw123
Debug rpi; in config at the bottom
Re: piBeacon: presence monitoring plugin discussions
Posted:
Mon Oct 07, 2019 5:36 am
by siclark
Hi Karl,
I am suddenly getting lots of errors from piBeacon in the last 2 days. I have tried rebooting the mac and still exist. This is the start of the errors just now. I was also seeing the TCP issues as above, but latest version seem to have fixed that. I also updated to latest version this morning, after getting these issues, and they still persiste.
Any ideas? I also cant see any of the pi servers in the drop down lists .
thanks
7 Oct 2019 at 12:32:20
piBeacon Error Error in plugin execution startup:
Traceback (most recent call last):
File "plugin.py", line 357, in startup
File "plugin.py", line 713, in getDebugLevels
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 360, in __call__
SystemExit: 1
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 2956 has error='Plugin' object has no attribute 'currentVersion'
piBeacon Error Line 3078 has error='Plugin' object has no attribute 'freezeAddRemove'
piBeacon Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 9212, in runConcurrentThread
File "plugin.py", line 9235, in dorunConcurrentThread
File "plugin.py", line 9050, in initConcurrentThread
AttributeError: 'Plugin' object has no attribute 'userIdOfServer'
Re: piBeacon: presence monitoring plugin discussions
Posted:
Mon Oct 07, 2019 8:02 am
by kw123
Does this include the VERY first error after plugin restart?
And what opsys version ...
Sent from my iPhone using Tapatalk
Re: piBeacon: presence monitoring plugin discussions
Posted:
Mon Oct 07, 2019 9:23 am
by siclark
Yes. Just disabled it and renabled it after an hour. Still not showing errors, other than time out when I try to do basic setup.
Error (client) timeout waiting for plugin response from com.karlwachs.piBeacon for request UiGetValues1
Error (client) timeout waiting for plugin response from com.karlwachs.piBeacon for request CallPluginFunc
Error (client) runDialogForMenuAction() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
opsys is 10.14.5
Re: piBeacon: presence monitoring plugin discussions
Posted:
Mon Oct 07, 2019 9:25 am
by kw123
Is there anything in the plugin.log file?
Sent from my iPhone using Tapatalk
Re: piBeacon: presence monitoring plugin discussions
Posted:
Mon Oct 07, 2019 9:34 am
by siclark
2019-10-07 15:53:58 logger enabled for THREADDEBUG ==> TEST ONLY
2019-10-07 15:53:58 logger enabled for DEBUG ==> TEST ONLY
2019-10-07 15:53:58 logger enabled for INFO ==> TEST ONLY
2019-10-07 15:53:58 logger enabled for WARNING ==> TEST ONLY
2019-10-07 15:53:58.797 ERROR Plugin.__init__ logger enabled for ERROR ==> TEST ONLY
2019-10-07 15:53:58.797 CRITICAL Plugin.__init__ logger enabled for CRITICAL ==> TEST ONLY
2019-10-07 15:53:58.810 CRITICAL Plugin.getDebugLevels --------------------------------------------------------------------------------------------------------------
2019-10-07 15:53:58.810 CRITICAL Plugin.getDebugLevels Line 706 has error=invalid literal for int() with base 10: ''
2019-10-07 15:53:58.810 CRITICAL Plugin.getDebugLevels Error in startup of plugin, waiting for 2000 secs then restarting plugin
2019-10-07 15:53:58.810 CRITICAL Plugin.getDebugLevels --------------------------------------------------------------------------------------------------------------
2019-10-07 16:26:33 logger enabled for THREADDEBUG ==> TEST ONLY
2019-10-07 16:26:33 logger enabled for DEBUG ==> TEST ONLY
2019-10-07 16:26:33 logger enabled for INFO ==> TEST ONLY
2019-10-07 16:26:33 logger enabled for WARNING ==> TEST ONLY
2019-10-07 16:26:33.557 ERROR Plugin.__init__ logger enabled for ERROR ==> TEST ONLY
2019-10-07 16:26:33.557 CRITICAL Plugin.__init__ logger enabled for CRITICAL ==> TEST ONLY
2019-10-07 16:26:33.571 CRITICAL Plugin.getDebugLevels --------------------------------------------------------------------------------------------------------------
2019-10-07 16:26:33.571 CRITICAL Plugin.getDebugLevels Line 706 has error=invalid literal for int() with base 10: ''
2019-10-07 16:26:33.571 CRITICAL Plugin.getDebugLevels Error in startup of plugin, waiting for 2000 secs then restarting plugin
2019-10-07 16:26:33.571 CRITICAL Plugin.getDebugLevels --------------------------------------------------------------------------------------------------------------
This is when I restart. I cant do anything in the plugin menu, config, initial basic setup etc as it times out like this
Error (client) timeout waiting for plugin response from com.karlwachs.piBeacon for request UiGetValues2
Error (client) timeout waiting for plugin response from com.karlwachs.piBeacon for request CallPluginFunc
Error (client) runDialogForDevice() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
So cant increase logging. I have just downgraded a couple of versions, but still same.
Re: piBeacon: presence monitoring plugin discussions
Posted:
Mon Oct 07, 2019 9:41 am
by siclark
I restarted the indigo server last night at 21:06 and it seems to have stopped then. Have these lines in the log from last night. Appears to have gone wrong then. It was working fine until that point, and all pi servers and devices show last updated at 21:06 last night.
2019-10-06 17:09:37 TCPIP socket error rate high for 192.168.0.39/none ; previous:2019-10-06 17:09:37
17:09:37 pi TCPIP socket -IP name type first last #MSGs #bytes bytes/MSG maxBytes bytes/min MSGs/min
17:09:37 -192.168.0.39 none timeout 2019-03-19 07:56:05 2019-10-06 17:09:37 1161 0 0 0 0.0 0.00
17:09:37 -192.168.0.39 none unknown 2019-04-28 18:10:51 2019-05-05 06:29:18 3 0 0 0 0.0 0.00
17:09:37 -192.168.0.39 pi_IN_4 ok 2019-03-18 22:28:13 2019-10-06 17:09:27 912628 271173150 297 771 545.3 1.84
17:09:37 -192.168.0.39 pi_IN_Alive ok 2019-03-18 22:28:05 2019-10-06 17:07:29 21269 6592178 309 489 13.3 0.04
17:09:37 -192.168.0.39 unknown errIP 2019-05-25 05:50:01 2019-05-25 05:59:35 5 0 0 0 0.0 0.00
2019-10-06 21:09:26 rpi: 13 state: stopped
2019-10-06 21:09:26 rpi: 0 state: stopped
2019-10-06 21:09:26 rpi: 2 state: stopped
2019-10-06 21:09:26 rpi: 3 state: stopped
2019-10-06 21:09:26 rpi: 18 state: stopped
2019-10-06 21:09:26 rpi: 14 state: stopped
2019-10-06 21:09:27 rpi: 6 state: stopped
2019-10-06 21:09:27 rpi: 3 state: stopped
2019-10-06 21:09:27 rpi: 11 state: stopped
2019-10-06 21:09:27 rpi: 12 state: stopped
2019-10-06 21:09:27 rpi: 1 state: stopped
2019-10-06 21:09:27 rpi: 10 state: stopped
2019-10-06 21:09:27 rpi: 8 state: stopped
2019-10-06 21:09:27 rpi: 5 state: stopped
2019-10-06 21:09:27 rpi: 16 state: stopped
2019-10-06 21:09:27 rpi: 9 state: stopped
2019-10-06 21:09:27 rpi: 2 state: stopped
2019-10-06 21:09:27 rpi: 15 state: stopped
2019-10-06 21:09:27 rpi: 19 state: stopped
2019-10-06 21:09:27 rpi: 17 state: stopped
2019-10-06 21:09:27 rpi: 4 state: stopped
2019-10-06 21:09:27 rpi: 7 state: stopped
2019-10-06 21:09:27 rpi: 4 state: stopped
2019-10-06 21:09:27 rpi: 0 state: stopped
2019-10-06 21:09:27 rpi: 5 state: stopped
2019-10-06 21:10:05 logger enabled for THREADDEBUG ==> TEST ONLY
2019-10-06 21:10:05 logger enabled for DEBUG ==> TEST ONLY
2019-10-06 21:10:05 logger enabled for INFO ==> TEST ONLY
2019-10-06 21:10:05 logger enabled for WARNING ==> TEST ONLY
2019-10-06 21:10:05.386 ERROR Plugin.__init__ logger enabled for ERROR ==> TEST ONLY
2019-10-06 21:10:05.387 CRITICAL Plugin.__init__ logger enabled for CRITICAL ==> TEST ONLY
2019-10-06 21:10:05.510 CRITICAL Plugin.getDebugLevels --------------------------------------------------------------------------------------------------------------
2019-10-06 21:10:05.510 CRITICAL Plugin.getDebugLevels Line 706 has error=invalid literal for int() with base 10: ''
2019-10-06 21:10:05.510 CRITICAL Plugin.getDebugLevels Error in startup of plugin, waiting for 2000 secs then restarting plugin
2019-10-06 21:10:05.510 CRITICAL Plugin.getDebugLevels --------------------------------------------------------------------------------------------------------------
Re: piBeacon: presence monitoring plugin discussions
Posted:
Mon Oct 07, 2019 9:50 am
by kw123
- Code: Select all
<Field id="debugRPI" type = "menu" defaultValue = "-1" >
<Label>Debug...which RPI:</Label>
<List class="self" filter="" method="filterPiC" dynamicReload="false"/>
</Field>
is call by :
- Code: Select all
def getDebugLevels(self):
try:
self.debugLevel = []
for d in ["Logic","DevMgmt","BeaconData","SensorData","OutputDevice","UpdateRPI","OfflineRPI","Fing","BLE","CAR","BC","all","Socket","Special","PlotPositions","SocketRPI"]:
if self.pluginPrefs.get(u"debug"+d, False): self.debugLevel.append(d)
self.debugRPI=-1
self.debugRPI = int(self.pluginPrefs.get(u"debugRPI", -1))
except Exception, e:
self.indiLOG.critical(u"--------------------------------------------------------------------------------------------------------------")
self.indiLOG.critical(u"Line {} has error={}".format(sys.exc_traceback.tb_lineno, e) )
self.indiLOG.critical(u"Error in startup of plugin, waiting for 2000 secs then restarting plugin")
self.indiLOG.critical(u"--------------------------------------------------------------------------------------------------------------")
self.sleep(2000)
exit(1)
return
the pluginConfig pref debugRPI is not an integer. should be initialized to one.
then the plugin exits, which is a little to strong of a remedy..
thats an easy fix. will post in short order
Karl
Re: piBeacon: presence monitoring plugin discussions
Posted:
Mon Oct 07, 2019 9:57 am
by kw123
published .313, that should fix this.
Karl
Re: piBeacon: presence monitoring plugin discussions
Posted:
Mon Oct 07, 2019 11:08 am
by siclark
That has worked, thanks for quick turnaround.
I found a few menu items in config that were not selected in the drop downs, so populated those. Not sure if that was a problem or not.
Re: piBeacon: presence monitoring plugin discussions
Posted:
Mon Oct 07, 2019 1:48 pm
by kw123
I have covered most of them with defaults, but when its a number i need to do
try; value= int(..)
except: value=default
I might have missed one or two
Karl
piBeacon: presence monitoring plugin discussions
Posted:
Sat Oct 19, 2019 8:23 pm
by GlennNZ
Hi Karl,
With latest version getting this error in most RPI - all of which are marked as down...
- Code: Select all
pi@raspberrypi:~/pibeacon $ sudo python master.py
20-13:28:21 master execMaster L:1624 Lv:30 ========================= starting master version: 11.3
Killed
pi@raspberrypi:~/pibeacon $ 20-13:28:25 master execMaster L:1672 Lv:30 START.. indigoServer IP:>>192.168.1.19<<
20-13:28:27 master execMaster L:1683 Lv:50 hw clock info: ('', 'hwclock: Cannot access the Hardware Clock via any known method.\nhwclock: Use the --debug option to see the details of our search for an access method.\n')
20-13:28:37 master execMaster L:1708 Lv:30 no ip number working, trying again, indigoServerOn:True, ip:
20-13:28:47 master execMaster L:1708 Lv:30 no ip number working, trying again, indigoServerOn:True, ip:
20-13:28:58 master execMaster L:1708 Lv:30 no ip number working, trying again, indigoServerOn:True, ip:
20-13:29:08 master execMaster L:1708 Lv:30 no ip number working, trying again, indigoServerOn:True, ip:
20-13:29:08 master execMaster L:1700 Lv:30 no ip number working, giving up, running w/o ip number, setting mode to clockMANUAL
20-13:29:09 master readNewParams L:382 Lv:30 UPS-V2 interface NOT enabled
20-13:29:10 INPUTgpio <module> L:204 Lv:30 starting INPUTgpio program
Traceback (most recent call last):
File "/home/pi/pibeacon/INPUTgpio.py", line 208, in <module>
INPUTcount = U.readINPUTcount()
File "/home/pi/pibeacon/piBeaconUtils.py", line 1969, in readINPUTcount
IPC[str(p)] =0
TypeError: list indices must be integers, not str
20-13:29:11 master setACTIVEorKILL L:537 Lv:30 started:INPUTgpio.py
20-13:29:11 INPUTgpio <module> L:204 Lv:30 starting INPUTgpio program
Traceback (most recent call last):
File "/home/pi/pibeacon/INPUTgpio.py", line 208, in <module>
INPUTcount = U.readINPUTcount()
File "/home/pi/pibeacon/piBeaconUtils.py", line 1969, in readINPUTcount
IPC[str(p)] =0
TypeError: list indices must be integers, not str
20-13:29:11 installLibs <module> L:321 Lv:30 installLibs starting
20-13:29:11 installLibs <module> L:348 Lv:30 installLibs no opsys upgrade requested
20-13:29:11 installLibs <module> L:371 Lv:30 ==== libraries seem to be setup, no need for action
20-13:29:11 installLibs <module> L:373 Lv:30 ==== libraries install finished
20-13:29:12 beaconloop startBlueTooth L:126 Lv:30 (re)starting bluetooth
20-13:29:12 beaconloop startBlueTooth L:142 Lv:30 Beacon Use HCINo -1; useHCI:hci0; myBLEmac:B8:27:EB:47:6C:80; devId:0
20-13:29:12 beaconloop startBlueTooth L:154 Lv:30 hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00 02 15 2f 23 44 54 cf 6d 4a 0f ad f2 f4 91 1b a9 ff a6 00 09 00 02 C5 00
20-13:29:12 beaconloop startBlueTooth L:162 Lv:30 hcitool -i hci0 cmd 0x08 0x0006 00 10 00 20 03 00 00 00 00 00 00 00 00 07 00
20-13:29:12 beaconloop startBlueTooth L:166 Lv:30 hcitool -i hci0 cmd 0x08 0x000a 01
20-13:29:12 beaconloop startBlueTooth L:174 Lv:30 BLE start returned:
hci0: Type: Primary Bus: UART
BD Address: B8:27:EB:47:6C:80 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:1560 acl:0 sco:0 events:102 errors:0
TX bytes:5070 acl:0 sco:0 commands:102 errors:0
20-13:29:12 beaconloop startBlueTooth L:186 Lv:30 my BLE mac# is : B8:27:EB:47:6C:80
20-13:29:12 beaconloop startBlueTooth L:194 Lv:30 ble thread started
20-13:29:12 beaconloop execbeaconloop L:808 Lv:30 starting loop
20-13:29:13 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: FB:3A:45:26:C0:15
UUID: 01
20-13:29:15 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: FB:3A:45:26:C0:15
UUID: 01
20-13:29:16 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: C8:AE:2B:E8:DC:8B
UUID: 01
20-13:29:17 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: FB:3A:45:26:C0:15
UUID: 01
20-13:29:18 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: C8:AE:2B:E8:DC:8B
UUID: 01
20-13:29:19 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: FB:3A:45:26:C0:15
UUID: 01
20-13:29:21 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: FB:3A:45:26:C0:15
UUID: 01
20-13:29:22 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: C8:AE:2B:E8:DC:8B
UUID: 01
20-13:29:23 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: FB:3A:45:26:C0:15
UUID: 01
20-13:29:24 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: C8:AE:2B:E8:DC:8B
UUID: 01
20-13:29:25 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: FB:3A:45:26:C0:15
UUID: 01
& then this
- Code: Select all
20-13:12:55 beaconloop execbeaconloop L:1059 Lv:50 in Line 956 has error=string index out of range bad data, skipping
MAC: FB:3A:45:26:C0:15
UUID: 01
Repeating, as first example
Gone back to 7.112.313 and all RPIs now marked up and going again interestingly enough, but the same errors continue in the PIs and some of GPIO don’t seem to be responding.
On reflection I suspect the GPIOs have not been working for a few versions, use a few GPIO buttons (mainly in summer) and one for Gate open/close which is prone to hardware failure (so didn’t think much of it not reporting)
Ok, have done some research...
GPIO - not reporting since v7.111.311 @ 2019-09-16
Think issue:
PiBeaconUtils.py
Line 1957
- Code: Select all
try:
int(IPC[str(p)])
except:
#IPC[str(p)] =0
IPC[int(p)] =0
Fixes, update GPIO Pi’s and all GPIO going again.
Still on older version mine you...
Glenn
Re: piBeacon: presence monitoring plugin discussions
Posted:
Sun Oct 20, 2019 1:45 am
by kw123
Oops that’s bad. I thought that was working.
Sent from my iPhone using Tapatalk
Re: piBeacon: presence monitoring plugin discussions
Posted:
Sun Oct 20, 2019 3:18 am
by kw123
I don't recall changing things in the beacon monitoring .. mine works fine..
it looks as if there is a beacon that sends a non standard message and the pointers are off. I will add a check for that when I am home.
Karl