Closed koeks closed 1 year ago
Errm I'm not sure what i'm supposed to do about that - maybe you need a UPS?
UPS is unfortunately not viable (dies eventually) due to countries lack of power generation. Thought maybe something code wise could be resolved to assist with issue. If not will have to look at other solution to restore. Thank you
did you mean factory reset or just the software has lost it's settings? If it's just the software then you'd need to check the logs for errors - in ispy that's under view - logs or in Agent DVR it's at /logs.html
I assumed factory reset but it lost settings yeah. After power failure again this morning I got this. Looks like the config file is corrupt after power dropping.
08:08:17 Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:17 Error: Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:17 Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:17 Error: Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:17 Load Objects: Load Objects: Root element is missing. 08:08:17 Error: Load Objects: Load Objects: Root element is missing. 08:08:17 Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:17 Error: Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:17 Root element is missing. 08:08:17 Retrying... 08:08:18 Connected to MQTT server 08:08:19 Subscribed to Agent/commands 08:08:19 Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:19 Error: Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:19 Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:19 Error: Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:19 Load Objects: Load Objects: Root element is missing. 08:08:19 Error: Load Objects: Load Objects: Root element is missing. 08:08:19 Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:19 Error: Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:19 Root element is missing. 08:08:19 Retrying... 08:08:21 Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:21 Error: Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:21 Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:21 Error: Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:21 Load Objects: Load Objects: Root element is missing. 08:08:21 Error: Load Objects: Load Objects: Root element is missing. 08:08:21 Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:21 Error: Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:21 Root element is missing. 08:08:21 Retrying... 08:08:21 Backed up file to C:\Program Files\Agent\Media\XML\objects.xml.bak
Ah ok, I can make it revert to a backup file in that case, will be in next update
On Fri, Mar 31, 2023 at 4:12 PM koeks @.***> wrote:
I assumed factory reset but it lost settings yeah. After power failure again this morning I got this. Looks like the config file is corrupt after power dropping.
08:08:17 Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:17 Error: Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:17 Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:17 Error: Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:17 Load Objects: Load Objects: Root element is missing. 08:08:17 Error: Load Objects: Load Objects: Root element is missing. 08:08:17 Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:17 Error: Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:17 Root element is missing. 08:08:17 Retrying... 08:08:18 Connected to MQTT server 08:08:19 Subscribed to Agent/commands 08:08:19 Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:19 Error: Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:19 Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:19 Error: Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:19 Load Objects: Load Objects: Root element is missing. 08:08:19 Error: Load Objects: Load Objects: Root element is missing. 08:08:19 Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:19 Error: Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:19 Root element is missing. 08:08:19 Retrying... 08:08:21 Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:21 Error: Load Objects: Load Objects: There is an error in XML document (0, 0). 08:08:21 Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:21 Error: Load Objects: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at CoreLogic.Statics.GetObjects(String path) 08:08:21 Load Objects: Load Objects: Root element is missing. 08:08:21 Error: Load Objects: Load Objects: Root element is missing. 08:08:21 Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:21 Error: Load Objects: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlReader.MoveToContent() at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderobjects.Read58_objects() 08:08:21 Root element is missing. 08:08:21 Retrying... 08:08:21 Backed up file to C:\Program Files\Agent\Media\XML\objects.xml.bak
— Reply to this email directly, view it on GitHub https://github.com/ispysoftware/iSpy/issues/248#issuecomment-1491501588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGDKXLI3AU6WTH7CKZJZB3W62GX3ANCNFSM6AAAAAAWM37MP4 . You are receiving this because you modified the open/close state.Message ID: @.***>
<3
Looks like the issue still persists unfortunately after v4.6.9.0.
those messages are saying that it can't load in the backup file either. I think you'll need to run some disk checking tools
Hi,
Due to constant power interruptions in my country the server constantly dies and when it reboots it comes back factory reset sometimes and I have to upload backup files each time.