gilestrolab/ethoscope

Problem with backup

defra1 opened this issue · 0 comments

Dear Gilestro Lab and Ethoscope community,

I am still encountering an issue with backup similar to #179 and #178. My node is setup on a desktop computer now
My node is up to date = [dev] 00d389... (2024-02-08 18:53:32)
So are my ethoscopes =
ETHOSCOPE_001 [Up to Date] stopped [dev] 00d389... (2024-02-08 18:53:32) http://192.168.1.9 001879

ETHOSCOPE_003 [Up to Date] recording [dev] 00d389... (2024-02-08 18:53:32) http://192.168.1.10 003041

  1. If I record video, I can see the video files (.h264) in my videos folder on the node (ethoscope_data/videos).

  2. If I track, there is no data backup, even though the backup tool is active on the node.

  3. I need to force backup to get the .db files and the index files from the ethoscope

  4. There is no issue connecting to the internet as I can use the resources page and update my ethoscope.

This is what the log showed after/when I did the force backup:

Feb 23 10:43:17 optiplex7460aio python[1944]: WARNING:root:No information regarding backup file from the ethoscope
Feb 23 10:43:15 optiplex7460aio python[1944]: Exception: Could not get image for ip = 192.168.1.10 (id = 003041a283444d7f8c6f047a92793424)
Feb 23 10:43:15 optiplex7460aio python[1944]:     raise Exception("Could not get image for ip = %s (id = %s)" % (self._ip, self._id))
Feb 23 10:43:15 optiplex7460aio python[1944]:   File "/opt/ethoscope-node/node_src/ethoscope_node/utils/device_scanner.py", line 438, in last_image
Feb 23 10:43:15 optiplex7460aio python[1944]:     file_like = device.last_image()
Feb 23 10:43:15 optiplex7460aio python[1944]:   File "/opt/ethoscope-node/node_src/scripts/server.py", line 264, in get_device_last_img
Feb 23 10:43:15 optiplex7460aio python[1944]:     return func(*args, **kwargs)
Feb 23 10:43:15 optiplex7460aio python[1944]:   File "/opt/ethoscope-node/node_src/scripts/server.py", line 43, in func_wrapper
Feb 23 10:43:15 optiplex7460aio python[1944]: Traceback (most recent call last):
Feb 23 10:43:15 optiplex7460aio python[1944]: During handling of the above exception, another exception occurred:
Feb 23 10:43:15 optiplex7460aio python[1944]: urllib.error.HTTPError: HTTP Error 404: Not Found
Feb 23 10:43:15 optiplex7460aio python[1944]:     raise HTTPError(req.full_url, code, msg, hdrs, fp)
Feb 23 10:43:15 optiplex7460aio python[1944]:   File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
Feb 23 10:43:15 optiplex7460aio python[1944]:     result = func(*args)
Feb 23 10:43:15 optiplex7460aio python[1944]:   File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
Feb 23 10:43:15 optiplex7460aio python[1944]:     return self._call_chain(*args)
Feb 23 10:43:15 optiplex7460aio python[1944]:   File "/usr/lib/python3.10/urllib/request.py", line 563, in error
Feb 23 10:43:15 optiplex7460aio python[1944]:     response = self.parent.error(
Feb 23 10:43:15 optiplex7460aio python[1944]:   File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
Feb 23 10:43:15 optiplex7460aio python[1944]:     response = meth(req, response)
Feb 23 10:43:15 optiplex7460aio python[1944]:   File "/usr/lib/python3.10/urllib/request.py", line 525, in open
Feb 23 10:43:15 optiplex7460aio python[1944]:     return opener.open(url, data, timeout)
Feb 23 10:43:15 optiplex7460aio python[1944]:   File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
Feb 23 10:43:15 optiplex7460aio python[1944]:     return urllib.request.urlopen(img_url,timeout=5)
Feb 23 10:43:15 optiplex7460aio python[1944]:   File "/opt/ethoscope-node/node_src/ethoscope_node/utils/device_scanner.py", line 435, in last_image
Feb 23 10:43:15 optiplex7460aio python[1944]: ERROR:root:Traceback (most recent call last):
Feb 23 10:43:15 optiplex7460aio python[1944]: ERROR:root:Could not get image for ip = 192.168.1.10 (id = 003041a283444d7f8c6f047a92793424)
Feb 23 10:43:14 optiplex7460aio python[1944]: ERROR:root:Could not generate backup path for device. Probably a MySQL issue

I have been using the record feature for most of tests so far, as it seems to work well.

Thank you