Cynical Security Not Functioning...

Posted on
Tue Jan 02, 2024 6:18 pm
jenwill1 offline
Posts: 185
Joined: Mar 22, 2009
Location: Boerne, Texas

Cynical Security Not Functioning...

This plugin has been bullet proof but I seemed to do something to blow it up. Running version 3.1.1 and Indigo 2023.1 on a Ventura 13.1 iMac.

I've tried reloading the plugin, re-installing, deleted server and cameras and recreating. Not sure what else to try... above my pay grade.

Anyone have an idea on a fix for the following errors ?? Thanks in advance for a response.

Loading plugin "Cynical SecuritySpy 3.1.1" using API v3.0.0
Starting plugin "Cynical SecuritySpy 3.1.1" (pid 20914)
Cynical SecuritySpy API version 3.3
Cynical SecuritySpy Python version 3.10.2.final.0
Started plugin "Cynical SecuritySpy 3.1.1"
Cynical SecuritySpy Error in run_concurrent_thread: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 67, in diagnostic_log
yield
File ".../Server Plugin/cyin/debugging.py", line 77, in diagnose_call
return method(*args, **kwargs)
File ".../Server Plugin/cyin/asynplugin.py", line 64, in run_concurrent_thread
self.run()
File ".../Server Plugin/asyn/inject.py", line 60, in run
asyn.Controller.run(self)
File ".../Server Plugin/asyn/controller.py", line 105, in run
item._can_read()
File ".../Server Plugin/asyn/selectable.py", line 244, in _can_read
self._scan(input)
File ".../Server Plugin/asyn/scan.py", line 67, in _scan
if not self.scan.scan(self):
File ".../Server Plugin/asyn/scan.py", line 144, in scan
target.callout(ctx, *m.groups())
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/http.py", line 292, in incoming
self.callout('headers', self.h_reply)
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/spy/core.py", line 140, in reply
server = arg["Server"]
KeyError: 'Server'

Posted on
Thu Jan 04, 2024 3:20 pm
jenwill1 offline
Posts: 185
Joined: Mar 22, 2009
Location: Boerne, Texas

Re: Cynical Security Not Functioning...

I'm trying to remove all files associated with Cynical SecuritySpy...

I disabled the plugin, deleted the server and associated cameras, went to Lib/application support/Perceptive Automation and deleted the plugin Cynical SecuritySpy.indigoPlugin, and org.cynic.indigo.securityspy in the preferences. Closed Indigo and restarted Indigo... When I reinstall the plugin the devices are back and the error above persists.

Here are the errors on the reinstall of the plugin. Note last line... looks like it's trying to find and old device ??

Jan 4, 2024 at 3:15:24 PM
Installing and enabling plugin Cynical SecuritySpy v3.1.1
Loading plugin "Cynical SecuritySpy 3.1.1" using API v3.0.0
Starting plugin "Cynical SecuritySpy 3.1.1" (pid 11103)
Reloading plugin "Web Server 2023.1.0" using API v3.3
Stopping plugin "Web Server 2023.1.0" (pid 11014)
Cynical SecuritySpy API version 3.3
Cynical SecuritySpy Python version 3.10.2.final.0
Started plugin "Cynical SecuritySpy 3.1.1"
Stopped plugin "Web Server 2023.1.0"
Starting plugin "Web Server 2023.1.0" (pid 11107)
Started plugin "Web Server 2023.1.0"
Web Server starting internal Web server on http://localhost:8176

Jan 4, 2024 at 3:16:50 PM ---- this is where I added a camera server and all hell breaks loose !
Cynical SecuritySpy Error in run_concurrent_thread: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 67, in diagnostic_log
yield
File ".../Server Plugin/cyin/debugging.py", line 77, in diagnose_call
return method(*args, **kwargs)
File ".../Server Plugin/cyin/asynplugin.py", line 64, in run_concurrent_thread
self.run()
File ".../Server Plugin/asyn/inject.py", line 60, in run
asyn.Controller.run(self)
File ".../Server Plugin/asyn/controller.py", line 105, in run
item._can_read()
File ".../Server Plugin/asyn/selectable.py", line 244, in _can_read
self._scan(input)
File ".../Server Plugin/asyn/scan.py", line 67, in _scan
if not self.scan.scan(self):
File ".../Server Plugin/asyn/scan.py", line 144, in scan
target.callout(ctx, *m.groups())
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/http.py", line 292, in incoming
self.callout('headers', self.h_reply)
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/spy/core.py", line 140, in reply
server = arg["Server"]
KeyError: 'Server'

Cynical SecuritySpy Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Cynical SecuritySpy Error new device unavailable: ('301', 'Moved Permanently')

Any other files I need to delete to get a fresh install of the plugin ??

Thanks

Posted on
Thu Jan 04, 2024 3:58 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Cynical Security Not Functioning...

jenwill1 wrote:
I'm trying to remove all files associated with Cynical SecuritySpy...

I disabled the plugin, deleted the server and associated cameras, went to Lib/application support/Perceptive Automation and deleted the plugin Cynical SecuritySpy.indigoPlugin, and org.cynic.indigo.securityspy in the preferences. Closed Indigo and restarted Indigo... When I reinstall the plugin the devices are back and the error above persists.


Did you delete all the devices as well? The definitions for those are stored in the Indigo database, not in a plugin file.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Jan 04, 2024 4:34 pm
jenwill1 offline
Posts: 185
Joined: Mar 22, 2009
Location: Boerne, Texas

Re: Cynical Security Not Functioning...

I did Flying Diver... and by the way you have great plugins !

I did it again and the devices did not reappear upon restarting Indigo. Plugin did not show errors until I added a new camera server. Same errors on the event log as posted.

Thanks

Posted on
Thu Jan 04, 2024 4:41 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Cynical Security Not Functioning...

Did you create the server device before you attempted to create a camera device?

If you did, then the next clue is that a 301 error is an http redirect error. Like maybe SecuritySpy is trying to force the http calls to https. I don't think the plugin does https, so you need to make sure that SS is allowing http calls from the LAN side. The settings for LAN and WAN are separate, as I recall.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Jan 04, 2024 4:46 pm
jenwill1 offline
Posts: 185
Joined: Mar 22, 2009
Location: Boerne, Texas

Re: Cynical Security Not Functioning...

In SecuritySpy I had only the 8001 web server enabled, Opened 8000 and reloaded the plugin and the errors went away.

I think I turned off 8000 web server when I was trying to get the IOS SecuritySpy app running outside my LAN :o

Thanks for your help.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests