Closed hessijames79 closed 1 year ago
Hmm, could you redirect the logs from the container to a file? Hopefully we can catch the part when it breaks.
docker logs -f viseron &> /place/to/store/logs/viseron.log &
Viseron doesnt log directly to a file yet, will make sure to fix that soon. Sorry about that!
Hi!
Done. As there is personal information in the logs I had to get creative and sent a download link via reddit.
Btw. I don't see any problems in logging through Docker. Viseron does a good job to customize log contents which is probably all it should do.
Patrick
Thanks! The culprit is probably this error:
F driver/usb/usb_driver.cc:1148] HandleQueuedBulkIn transfer in failed. Not found: USB transfer error 5 [LibUsbDataInCallback]
Googling it gives a few different solutions. What machine are you running on? Some suggestions are a powered USB hub if yo uare running on something like an RPi4
Could also be a bad USB cable apparently. This thread has more details: https://github.com/google-coral/edgetpu/issues/99
Hi!
Thank you for spotting the issue. Will try to rule out the possibilities, probably the cable or the cheap USB3 controller.
Nothing Viseron can solve :)
Patrick
/Edit/Update: In case someone encounters a similar problem.
What didn't work:
/Edit/Update 2: Problem occured again.
Hi! After some experimenting with usb hubs and cables I got the "Failed to retrieve" message again, but this time without any additional USB messages. Any chance you could implement some kind of watchdog to restart the edgetpu part when the problem occurs?
Patrick
Will see if i can find a good way to restart!
Still looking for a way to workaround for the problem. I can detect the problem e. g. through mqtt but can't react in any other way than restarting the whole container. I tried resetting (ioctl USBDEVFS_RESET) and replugging (unbind-sleep-bind) the USB device but the problem is still there.
Do you have any other idea of an action I could trigger from my watchdog to restart the edgetpu part?
Patrick
Sorry its taking me so long, am really busy with the 24/7 recordings (#619) atm I dont think it will take me much longer to finish that
My goal is to finish that one off and then work on issues like this and and polish some existing features
Hi!
I am using Viseron with several cameras, mog2 motion detection, EdgeTPU object detection and DeepStack face recognition. The setup works flawlessly, however, after running for several hours, object detection stops working and reports errors:
Configuration digest:
Edit: AFAICS the object_detector error and the "Frame is 2.082185983657837 seconds old. Discarding" messages seem to correlate.
I would appreciate any help. Patrick