Device state is in constant preparing state

Posted on
Mon Mar 20, 2023 9:39 pm
AlaskaDave offline
User avatar
Posts: 293
Joined: Oct 16, 2008
Location: Juneau, Alaksa

Device state is in constant preparing state

Lately when I view my cameras or the SecuritySpy servier the state is "preparing". It has been fairly reliable in the past but is now staying in this state, regardless of settings. It was working prior to having my Internet Service Provider change my cable modem to bridge mode so I can access SS when outside my home networks. That is working now but seems to have effected the plug-in for some reason, as I said it was working before. When working this is a great set up, cameras are armed when Fing Detects my home being away and the cameras record when various motion sensors sense motion and Pushover texts me. In this state everything is working but the camera portion recording.

Below are my version numbers:

Indigo: 2022.2
SecuritySpy: 5.5.7
SecuritySpy Plug-in: 3.1.0

Posted on
Mon Mar 20, 2023 9:42 pm
AlaskaDave offline
User avatar
Posts: 293
Joined: Oct 16, 2008
Location: Juneau, Alaksa

Re: Device state is in constant preparing state

To add, when I reload the plug-in I see the following in the event log:

ar 20, 2023 at 7:40:14 PM
Reloading plugin "Cynical SecuritySpy 3.1.0" using API v3.0.0
Stopping plugin "Cynical SecuritySpy 3.1.0" (pid 2195)
Cynical SecuritySpy shutdown sensed
Cynical SecuritySpy Camera Back stopping
Cynical SecuritySpy Front Camera stopping
Cynical SecuritySpy SecuritySpy Server stopping
Cynical SecuritySpy Wyze RTSP Camera stopping
Stopped plugin "Cynical SecuritySpy 3.1.0"
Starting plugin "Cynical SecuritySpy 3.1.0" (pid 67609)
Cynical SecuritySpy API version 3.2
Cynical SecuritySpy Python version 3.10.2.final.0
Started plugin "Cynical SecuritySpy 3.1.0"
Cynical SecuritySpy mapping device "Camera Back" 755937587(camera)
Cynical SecuritySpy Camera Back starting
Cynical SecuritySpy mapping device "SecuritySpy Server" 1397123288(server)
Cynical SecuritySpy SecuritySpy Server starting
Cynical SecuritySpy mapping device "Front Camera" 214898034(camera)
Cynical SecuritySpy Front Camera starting
Cynical SecuritySpy mapping device "Wyze RTSP Camera" 10385140(camera)
Cynical SecuritySpy Wyze RTSP Camera starting
Cynical SecuritySpy plugin starting asyn operation
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)
WeatherLink Live WeatherLink Live: Polling WeatherLink Live
Email+ Debug Email+ SMTP Server: SMTP poll, 0 items in queue
Email+ Debug Email+ SSL: SMTP poll, 0 items in queue
Cynical SecuritySpy plugin starting asyn operation
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 242, in _can_read
self._null_read()
File ".../Server Plugin/asyn/selectable.py", line 99, in _null_read
self.callout(END)
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 281, in incoming
self.callout('body', self.body_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 147, in reply
self._configure(arg)
File ".../Server Plugin/spy/core.py", line 182, in _configure
system = ET.fromstring(system_info)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/xml/etree/ElementTree.py", line 1348, in XML
return parser.close()
xml.etree.ElementTree.ParseError: no element found: line 1, column 0

Cynical SecuritySpy Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Cynical SecuritySpy plugin starting asyn operation

Posted on
Tue Mar 21, 2023 1:19 am
siclark offline
Posts: 1960
Joined: Jun 13, 2017
Location: UK

Re: Device state is in constant preparing state

Have you checked the IP address of the security spy server device is still correct?

Posted on
Tue Mar 21, 2023 11:31 am
AlaskaDave offline
User avatar
Posts: 293
Joined: Oct 16, 2008
Location: Juneau, Alaksa

Re: Device state is in constant preparing state

When it wasn't working I had removed what was there with leaving blank. With SS and Indigo running on the same server/Mac it said to leave blank.

Posted on
Wed Mar 22, 2023 10:31 am
AlaskaDave offline
User avatar
Posts: 293
Joined: Oct 16, 2008
Location: Juneau, Alaksa

Re: Device state is in constant preparing state

Screenshot (attached) of settings in both SS and the Indigo SS Plug-in. When I enter the host information provided I get the following :

Mar 22, 2023 at 8:26:46 AM
Reloading plugin "Cynical SecuritySpy 3.1.0" using API v3.0.0
Stopping plugin "Cynical SecuritySpy 3.1.0" (pid 67609)
Cynical SecuritySpy shutdown sensed
Cynical SecuritySpy Camera Back stopping
Cynical SecuritySpy Front Camera stopping
Cynical SecuritySpy SecuritySpy Server stopping
Cynical SecuritySpy Wyze RTSP Camera stopping
Stopped plugin "Cynical SecuritySpy 3.1.0"
Starting plugin "Cynical SecuritySpy 3.1.0" (pid 51469)
Cynical SecuritySpy API version 3.2
Cynical SecuritySpy Python version 3.10.2.final.0
Started plugin "Cynical SecuritySpy 3.1.0"
Cynical SecuritySpy mapping device "Camera Back" 755937587(camera)
Cynical SecuritySpy Camera Back starting
Cynical SecuritySpy mapping device "SecuritySpy Server" 1397123288(server)
Cynical SecuritySpy SecuritySpy Server starting
Cynical SecuritySpy mapping device "Front Camera" 214898034(camera)
Cynical SecuritySpy Front Camera starting
Cynical SecuritySpy mapping device "Wyze RTSP Camera" 10385140(camera)
Cynical SecuritySpy Wyze RTSP Camera starting
Cynical SecuritySpy plugin starting asyn operation
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)
Attachments
Screen Shot 2023-03-22 at 8.26.26 AM.jpg
Screen Shot 2023-03-22 at 8.26.26 AM.jpg (389.7 KiB) Viewed 849 times

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests