gilestrolab / ethoscope

a platform from monitoring animal behaviour in real time from a raspberry pi
http://lab.gilest.ro/ethoscope/
GNU General Public License v3.0
17 stars 25 forks source link

Adding user data and issue with missing experiments #115

Closed DenaFrancis closed 4 years ago

DenaFrancis commented 4 years ago

Hi gilestro lab, I am running the node from a RPI4 and I have updated the latest version of the node and ethoscope (from May). But I am having an issue with the management page of the node interface. It won't let me save the user information or save the path of where to put the data. However, I can save new incubator information. After typing in the user info, the save button is greyed out.

Screen Shot 2020-06-06 at 3 57 23 pm

Also, I managed to run a pilot tracking experiment. I let it track for a few days, but I don't know where to find that data. I have a pic of the experiments, but nothing that goes for three days.

Screen Shot 2020-06-06 at 12 50 17 pm

Thanks!

ggilestro commented 4 years ago

Regarding the first issue (users). The first three fields are actually required even though PIN and email are not currently used. They will be used at some point to send notifications to users if there is a problem with the platform. I have now changed the page to have some more explicit information about that.

image

Regarding the second aspect: make sure your ethoscope-backup daemon is actually running. Click on the gear under "management" and the first line should tell if your ethoscope backup is running or not.

DenaFrancis commented 4 years ago

Thank you for the fast response! For issue one: I have added the information into the fields, but it still won't save?

Screen Shot 2020-06-08 at 8 02 00 am

For issue 2: I think that the backup daemon is active, at least in terms of what is displayed.

Screen Shot 2020-06-08 at 7 58 12 am

Thank you

ggilestro commented 4 years ago

For issue 1: try your full name - a username will be created for you (Dena Francis -> dfrancis) For issue 2: I don't quite remember now how I configured the node on the rPi4. If the backup is active, you should be having data in the /ethoscope_data/results folder.

DenaFrancis commented 4 years ago

Issue 1: resolved. Thank you! Issue 2: I checked the ethosocope results files:

[root@ETHOSCOPE001 results]# du -hs /ethoscope_data/results/*
646M /ethoscope_data/results/00155fa83cc848019df1c9029bfb899f
14K /ethoscope_data/results/001916f944d54aaa9b7743793dc0bd16
8.0K    /ethoscope_data/results/index.html

And on the node: [root@node node]# du -hs /ethoscope_data/* 8.0K /ethoscope_data/results 4.0K /ethoscope_data/tmp 601M /ethoscope_data/videos [root@node node]# du -hs /ethoscope_data/results/* 4.0K /ethoscope_data/results/results_200527_003815.zip

This file was created on a previous test, so it doesn't have the 3-day test results.

ggilestro commented 4 years ago

Hi Dena -

Are you using an external hard drive to save the data? The rPI SD card is not large enough to be used for data storage. You should follow the manual and mount an external hard drive instead.

DenaFrancis commented 4 years ago

Thank you, I agree that is probably the issue here. The zip file had nothing in it, when I tried to unzip it. I will try that. And I got this response when I tried to run the tracker:

Sorry there has been an error: Traceback (most recent call last): File "/opt/ethoscope-device/src/ethoscope/web_utils/control_thread.py", line 449, in run self._save_pickled_state(cam, rw, rois, TrackerClass, tracker_kwargs, hardware_connection, StimulatorClass, stimulator_kwargs, self._info) File "/opt/ethoscope-device/src/ethoscope/web_utils/control_thread.py", line 345, in _save_pickled_state with open(self._persistent_state_file, "wb") as f: OSError: [Errno 28] No space left on device: '/var/cache/ethoscope/persistent_state.pkl'

Looks like the ethoscope ran out of space.