jakowenko / double-take

Unified UI and API for processing and training images for facial recognition.
https://hub.docker.com/r/jakowenko/double-take
MIT License
1.24k stars 99 forks source link

[BUG] No connection to deepstack #344

Open AnduriI opened 10 months ago

AnduriI commented 10 months ago

Describe the bug I have frigate, double-take and deepstack running on Truenas Scale apps (which is kubernetes based as far as I understood). double-take can connect to frigate (green dot), but not to deepstack (red dot).

Version of Double Take 1.13.11

Expected behavior well obviously connect to deepstack.

Screenshots grafik grafik

Hardware

Additional context double-take logs:

24-01-11 07:08:08 error: Error: deepstack process error: write ECONNRESET
    at Function.AxiosError.from (/double-take/api/node_modules/axios/dist/node/axios.cjs:836:14)
    at RedirectableRequest.handleRequestError (/double-take/api/node_modules/axios/dist/node/axios.cjs:3010:25)
    at RedirectableRequest.emit (node:events:525:35)
    at ClientRequest.eventHandlers.<computed> (/double-take/api/node_modules/follow-redirects/index.js:14:24)
    at ClientRequest.emit (node:events:513:28)
    at Socket.socketErrorListener (node:_http_client:494:9)
    at Socket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
24-01-11 07:08:11 warn: unexpected deepstack data
24-01-11 07:08:12 error: Error: deepstack process error: write ECONNRESET
    at Function.AxiosError.from (/double-take/api/node_modules/axios/dist/node/axios.cjs:836:14)
    at RedirectableRequest.handleRequestError (/double-take/api/node_modules/axios/dist/node/axios.cjs:3010:25)
    at RedirectableRequest.emit (node:events:525:35)
    at ClientRequest.eventHandlers.<computed> (/double-take/api/node_modules/follow-redirects/index.js:14:24)
    at ClientRequest.emit (node:events:513:28)
    at Socket.socketErrorListener (node:_http_client:494:9)
    at Socket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
24-01-11 07:08:15 info: processing eingang: 41f45488-e392-49e6-9d06-a59b7a3a5846
24-01-11 07:08:15 error: Error: deepstack process error: write ECONNRESET
    at Function.AxiosError.from (/double-take/api/node_modules/axios/dist/node/axios.cjs:836:14)
    at RedirectableRequest.handleRequestError (/double-take/api/node_modules/axios/dist/node/axios.cjs:3010:25)
    at RedirectableRequest.emit (node:events:525:35)
    at ClientRequest.eventHandlers.<computed> (/double-take/api/node_modules/follow-redirects/index.js:14:24)
    at ClientRequest.emit (node:events:513:28)
    at Socket.socketErrorListener (node:_http_client:494:9)
    at Socket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
24-01-11 07:08:15 info: done processing eingang: 41f45488-e392-49e6-9d06-a59b7a3a5846 in 0.02 sec
24-01-11 07:08:15 info: {
  id: '41f45488-e392-49e6-9d06-a59b7a3a5846',
  duration: 0.02,
  timestamp: '2024-01-11T06:08:15.028Z',
  attempts: 1,
  camera: 'eingang',
  zones: [],
  counts: { person: 0, match: 0, miss: 0, unknown: 0 },
  matches: [],
  misses: [],
  unknowns: []
}
24-01-11 07:08:16 error: Error: deepstack process error: write ECONNRESET
    at Function.AxiosError.from (/double-take/api/node_modules/axios/dist/node/axios.cjs:836:14)
    at RedirectableRequest.handleRequestError (/double-take/api/node_modules/axios/dist/node/axios.cjs:3010:25)
    at RedirectableRequest.emit (node:events:525:35)
    at ClientRequest.eventHandlers.<computed> (/double-take/api/node_modules/follow-redirects/index.js:14:24)
    at ClientRequest.emit (node:events:513:28)
    at Socket.socketErrorListener (node:_http_client:494:9)
    at Socket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
24-01-11 07:08:18 warn: unexpected deepstack data
24-01-11 07:08:21 info: done processing Eingang: 1704953279.182421-ulx4kt in 6.17 sec
24-01-11 07:08:21 info: {
  id: '1704953279.182421-ulx4kt',
  duration: 6.17,
  timestamp: '2024-01-11T06:08:21.181Z',
  attempts: 18,
  camera: 'Eingang',
  zones: [],
  counts: { person: 0, match: 0, miss: 0, unknown: 0 },
  matches: [],
  misses: [],
  unknowns: []
}
24-01-11 07:08:22 info: done processing Eingang: 1704953279.182421-ulx4kt in 7.77 sec
24-01-11 07:08:22 info: {
  id: '1704953279.182421-ulx4kt',
  duration: 7.77,
  timestamp: '2024-01-11T06:08:22.779Z',
  attempts: 18,
  camera: 'Eingang',
  zones: [ 'Treppe' ],
  counts: { person: 0, match: 0, miss: 0, unknown: 0 },
  matches: [],
  misses: [],
  unknowns: []
}
jkatsaros commented 9 months ago

Hello! I came here looking for an answer to a similar problem as you, but I believe I've just found a solution.

I'm currently using:

Since I'm using TrueCharts versions of these apps instead of the TrueNAS versions, I'll also note that I'm using the MetalLB to assign my apps their own static IPs.

To get the green dot for DeepStack in Double-Take, I did the following:

Hopefully that all makes sense. Here's the DeepStack snippet of my Double-Take configuration:

detectors:
  deepstack:
    url: http://192.168.0.24:10049
    key: !secret double_take_deepstack_key
    timeout: 15
    opencv_face_required: false

Let me know if I can be of any assistance since we're in similar situations! Thanks very much!