VorlonCD / bi-aidetection

Alarm system for Blue Iris based on Artificial Intelligence.
https://ipcamtalk.com/threads/tool-tutorial-free-ai-person-detection-for-blue-iris.37330/
GNU General Public License v2.0
206 stars 45 forks source link

Error starting Deepstack... 'redis-server.exe' processes did not start within #245

Closed 162884 closed 3 years ago

162884 commented 3 years ago

@VorlonCD I'm running the latest beta version and I'm seeing this error. Any idea how to troubleshoot it? Thanks!

Screen Shot 2021-05-12 at 8 46 06 PM
VorlonCD commented 3 years ago

Are you sure you are on the latest? The last official release is really old. https://github.com/VorlonCD/bi-aidetection/tree/master/src/UI/Installer

If still happening with that, set the number of ports to ONE and test. Hit RESET button on deepstack tab and test. Reboot. If using GPU version, install and test CPU version. Make sure using latest deepstack version: https://github.com/johnolafenwa/DeepStack/releases

162884 commented 3 years ago

I believe so, I use the update function on the settings page to download/install the latest beta. Thanks!

On May 13, 2021, at 9:26 AM, VorlonCD @.***> wrote:

 Are you sure you are on the latest? The last official release is really old. https://github.com/VorlonCD/bi-aidetection/tree/master/src/UI/Installer

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

162884 commented 3 years ago

It looks like I'm running the latest version of a tool and deep Stack CPU. Every time I try to stop and start deep Stack I get a status error.

Screen Shot 2021-05-13 at 4 47 52 PM Screen Shot 2021-05-13 at 4 49 21 PM

162884 commented 3 years ago

@VorlonCD I unistalled/reinstalled DeepStack and the issue continues. Thanks!

162884 commented 3 years ago

@VorlonCD This seems like an odd error.

2021-05-16 10:20:08.880136|Info|AITOOLS.EXE|GetDeepStackRun|Deepstack_Objects:192.168.1.18:32785|Back_Porch_AI|None| Deepstack partially running. Only 2 out of 2 copies of python.exe are running.|443|2||1

VorlonCD commented 3 years ago

Basically deepstack is expected to have 2 copies of python.exe running - Like this screenshot using ProcessHacker: image

You can see that Deepstack.exe starts python.exe which should start a 3rd copy of python.exe. Do you have 2 or less?

A few minutes after a failed start, hit STOP, then take a look at the errors in this file: C:\Users\username\AppData\Local\DeepStack\logs\stderr.txt

You may be able to google for the error that shows up in there or post to the deepstack forums.

Did you try disabling realtime antivirus for a short time?

162884 commented 3 years ago

@VorlonCD... I have 4 Python processes running but DeepStack shows an error.

1 'redis-server.exe' processes did not start within 2390ms

Screen Shot 2021-05-16 at 8 30 40 PM
VorlonCD commented 3 years ago

You shouldnt have 4 unless you have something else running that uses python. Can you enable the COmmand Line column in Task Manager > Details, or ProcessHacker and send me a screenshot?

I still need the stderr.txt file contents.

162884 commented 3 years ago

Thanks, here is the screen shot from Task Manager that shows the commands for running each instance of Python. I checked my stderr.txt file and it's empty. Maybe logging is not enabled? If not, I'm not sure how to enable it.

Screen Shot 2021-05-17 at 8 15 49 AM

VorlonCD commented 3 years ago

Looks like something else is starting another copy of deepstack. If you have deepstack enabled in BlueIris, disable it since both cant be used at once.

If you dont know where it is starting from, use the ProcessHacker link above, and search for DeepStack to see which process started it in a tree view.

162884 commented 3 years ago

@VorlonCD I just wanted to let you know that I've made a few configuration changes that have helped.

I have two instances of DeepStack running... One on the Blue Iris PC and the other running on my QNAP in a Docker container. Previously, I had AI Tool automatically starting the DeepStack instance on the Blue Iris PC. I have now turned that off and set Blue Iris to control the starting of DeepStack. I also changed the setting for Blue Iris from using the Docker instance, to the local instance. AI Tool continues to have both instances configured for use.

After making these changes, the errors that I was seeing previously are not occurring anymore. I'm not sure why the configuration change made the difference, but I wanted you to know.

162884 commented 3 years ago

Issue solved as explained above.