Closed sparkie97 closed 3 years ago
There's no API key sent to Deepstack AI because none is needed. Sounds like you have an older Deepstack image that used to require API keys to unlock and that key expired.
I'm not sure which Deepstack tagged image you're using but try pulling the latest or switching to a different tagged image from https://hub.docker.com/r/deepquestai/deepstack/tags?page=1&ordering=last_updated. Try cpu-2020.12
or gpu-2020.12
. They long ago stopped requiring API keys.
Thank you very much for your quick response. Did as you suggested and now all is working with no API key. Cheers, Neil
Sent from my iPhone
On Mar 13, 2021, at 11:51 PM, danecreekphotography @.***> wrote:
There's no API key sent to Deepstack AI because none is needed. Sounds like you have an older Deepstack image that used to require API keys to unlock and that key expired.
I'm not sure which Deepstack tagged image you're using but try pulling the latest or switching to a different tagged image from https://hub.docker.com/r/deepquestai/deepstack/tags?page=1&ordering=last_updated. Try cpu-2020.12 or gpu-2020.12. They long ago stopped requiring API keys.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
What trouble are you having? I had setup Deepstack-AI and node-deepstackai Trigger on Unraid with BlueIris running on another computer and all was working perfectly for several months.
On Feb 7th, things stopped working. A check of the Log for: node-deepstackai-trigger is in log section below: Note the "Incorrect api key" message is shown at the end of the log file.
2021-03-13T20:49:39-03:30 [Main] Starting up version 5.8.1 2021-03-13T20:49:39-03:30 [Main] Timezone offset is 210 2021-03-13T20:49:39-03:30 [Main] Current time is Sat Mar 13 2021 20:49:39 GMT-0330 (Newfoundland Standard Time) 2021-03-13T20:49:39-03:30 [Settings] Unable to read the settings file: ENOENT: no such file or directory, open '/run/secrets/settings'. 2021-03-13T20:49:39-03:30 [Settings] Unable to load file /run/secrets/settings. 2021-03-13T20:49:39-03:30 [Settings] Unable to read the secrets file: ENOENT: no such file or directory, open '/config/secrets.json'. 2021-03-13T20:49:39-03:30 [Settings] Loaded settings from /config/settings.json 2021-03-13T20:49:39-03:30 [MQTT] MQTT is disabled via settings. 2021-03-13T20:49:39-03:30 [Local storage] Creating local storage folders in /node-deepstackai-trigger. 2021-03-13T20:49:39-03:30 [Local storage] Enabling background purge every 60 minutes for files older than 30 minutes. 2021-03-13T20:49:39-03:30 [Local storage] Running purge 2021-03-13T20:49:39-03:30 [Main] Annotated image generation enabled. 2021-03-13T20:49:39-03:30 [Main] Web server enabled. 2021-03-13T20:49:39-03:30 [Triggers] Unable to read the settings file: ENOENT: no such file or directory, open '/run/secrets/triggers'. 2021-03-13T20:49:39-03:30 [Triggers] Unable to load file /run/secrets/triggers. 2021-03-13T20:49:39-03:30 [Triggers] Unable to read the secrets file: ENOENT: no such file or directory, open '/config/secrets.json'. 2021-03-13T20:49:39-03:30 [Triggers] Loaded configuration from /config/triggers.json 2021-03-13T20:49:39-03:30 [Triggers] Loaded configuration for Person detector 2021-03-13T20:49:39-03:30 [Triggers] Loaded configuration for Person detector 2021-03-13T20:49:39-03:30 [Triggers] Loaded configuration for Person detector 2021-03-13T20:49:39-03:30 [Trigger manager] There are 5 images waiting in /aiinput/PixelProFrontSD.jpg for Person detector. 2021-03-13T20:49:39-03:30 [Trigger manager] There are 0 images waiting in /aiinput/AnnkeSideDrSD.jpg for Person detector. 2021-03-13T20:49:39-03:30 [Trigger manager] There are 0 images waiting in /aiinput/AnnkeBackDkSD.jpg for Person detector. 2021-03-13T20:49:39-03:30 [Pushbullet] Pushbullet is disabled via settings. 2021-03-13T20:49:39-03:30 [Pushover] Pushover enabled. 2021-03-13T20:49:39-03:30 [Telegram] Telegram is disabled via settings. 2021-03-13T20:49:39-03:30 [Trigger Person detector] Listening for new images in /aiinput/PixelProFrontSD.jpg 2021-03-13T20:49:39-03:30 [Trigger Person detector] Listening for new images in /aiinput/AnnkeSideDrSD.jpg 2021-03-13T20:49:39-03:30 [Trigger Person detector] Listening for new images in /aiinput/AnnkeBackDkSD.jpg 2021-03-13T20:49:39-03:30 [Main] Watching for changes to /config/settings.json 2021-03-13T20:49:39-03:30 [Main] Watching for changes to /config/triggers.json 2021-03-13T20:49:39-03:30 [Main] **** 2021-03-13T20:49:39-03:30 [Main] Up and running! 2021-03-13T20:49:39-03:30 [Web server] Listening at http://localhost:4242 2021-03-13T20:49:39-03:30 [Local storage] Purge complete 2021-03-13T20:49:39-03:30 [Trigger Person detector] /aiinput/PixelProFrontSD.20210309_104037653.jpg: Skipping as it was created before the service started. 2021-03-13T20:49:39-03:30 [Trigger Person detector] /aiinput/PixelProFrontSD.20210309_104042653.jpg: Skipping as it was created before the service started. 2021-03-13T20:49:39-03:30 [Trigger Person detector] /aiinput/PixelProFrontSD.20210309_104047653.jpg: Skipping as it was created before the service started. 2021-03-13T20:49:39-03:30 [Trigger Person detector] /aiinput/PixelProFrontSD.20210313_203006532.jpg: Skipping as it was created before the service started. 2021-03-13T20:49:39-03:30 [Trigger Person detector] /aiinput/PixelProFrontSD.20210313_203011532.jpg: Skipping as it was created before the service started. 2021-03-13T21:00:08-03:30 [Trigger Person detector] /aiinput/AnnkeSideDrSD.20210313_210006986.jpg: Analyzing 2021-03-13T21:00:08-03:30 [Trigger Person detector] Error: Failed to call DeepStack at http://192.168.30.15:5000/: {"success":false,"error":"Incorrect api key","duration":0} 2021-03-13T21:00:08-03:30 [Trigger Person detector] /aiinput/AnnkeSideDrSD.20210313_210006986.jpg: Analysis failed
A clear and concise description of what you're stuck on. As a new image comes in the following is added to the log file for every image analyzed:
2021-03-13T21:00:08-03:30 [Trigger Person detector] Error: Failed to call DeepStack at http://192.168.30.15:5000/: {"success":false,"error":"Incorrect api key","duration":0} 2021-03-13T21:00:08-03:30 [Trigger Person detector] /aiinput/AnnkeSideDrSD.20210313_210006986.jpg: Analysis failed
Have you tried with the sample files?
-Yes and everything was working perfectly for several months
Have you tried the steps in the troubleshooting guide?
https://github.com/danecreekphotography/node-deepstackai-trigger/wiki/Troubleshooting
Log entries 2021-03-13T20:49:39-03:30 [Main] Starting up version 5.8.1 2021-03-13T20:49:39-03:30 [Main] Timezone offset is 210 2021-03-13T20:49:39-03:30 [Main] Current time is Sat Mar 13 2021 20:49:39 GMT-0330 (Newfoundland Standard Time) 2021-03-13T20:49:39-03:30 [Settings] Unable to read the settings file: ENOENT: no such file or directory, open '/run/secrets/settings'. 2021-03-13T20:49:39-03:30 [Settings] Unable to load file /run/secrets/settings. 2021-03-13T20:49:39-03:30 [Settings] Unable to read the secrets file: ENOENT: no such file or directory, open '/config/secrets.json'. 2021-03-13T20:49:39-03:30 [Settings] Loaded settings from /config/settings.json 2021-03-13T20:49:39-03:30 [MQTT] MQTT is disabled via settings. 2021-03-13T20:49:39-03:30 [Local storage] Creating local storage folders in /node-deepstackai-trigger. 2021-03-13T20:49:39-03:30 [Local storage] Enabling background purge every 60 minutes for files older than 30 minutes. 2021-03-13T20:49:39-03:30 [Local storage] Running purge 2021-03-13T20:49:39-03:30 [Main] Annotated image generation enabled. 2021-03-13T20:49:39-03:30 [Main] Web server enabled. 2021-03-13T20:49:39-03:30 [Triggers] Unable to read the settings file: ENOENT: no such file or directory, open '/run/secrets/triggers'. 2021-03-13T20:49:39-03:30 [Triggers] Unable to load file /run/secrets/triggers. 2021-03-13T20:49:39-03:30 [Triggers] Unable to read the secrets file: ENOENT: no such file or directory, open '/config/secrets.json'. 2021-03-13T20:49:39-03:30 [Triggers] Loaded configuration from /config/triggers.json 2021-03-13T20:49:39-03:30 [Triggers] Loaded configuration for Person detector 2021-03-13T20:49:39-03:30 [Triggers] Loaded configuration for Person detector 2021-03-13T20:49:39-03:30 [Triggers] Loaded configuration for Person detector 2021-03-13T20:49:39-03:30 [Trigger manager] There are 5 images waiting in /aiinput/PixelProFrontSD.jpg for Person detector. 2021-03-13T20:49:39-03:30 [Trigger manager] There are 0 images waiting in /aiinput/AnnkeSideDrSD.jpg for Person detector. 2021-03-13T20:49:39-03:30 [Trigger manager] There are 0 images waiting in /aiinput/AnnkeBackDkSD.jpg for Person detector. 2021-03-13T20:49:39-03:30 [Pushbullet] Pushbullet is disabled via settings. 2021-03-13T20:49:39-03:30 [Pushover] Pushover enabled. 2021-03-13T20:49:39-03:30 [Telegram] Telegram is disabled via settings. 2021-03-13T20:49:39-03:30 [Trigger Person detector] Listening for new images in /aiinput/PixelProFrontSD.jpg 2021-03-13T20:49:39-03:30 [Trigger Person detector] Listening for new images in /aiinput/AnnkeSideDrSD.jpg 2021-03-13T20:49:39-03:30 [Trigger Person detector] Listening for new images in /aiinput/AnnkeBackDkSD.jpg 2021-03-13T20:49:39-03:30 [Main] Watching for changes to /config/settings.json 2021-03-13T20:49:39-03:30 [Main] Watching for changes to /config/triggers.json 2021-03-13T20:49:39-03:30 [Main] **** 2021-03-13T20:49:39-03:30 [Main] Up and running! 2021-03-13T20:49:39-03:30 [Web server] Listening at http://localhost:4242 2021-03-13T20:49:39-03:30 [Local storage] Purge complete 2021-03-13T20:49:39-03:30 [Trigger Person detector] /aiinput/PixelProFrontSD.20210309_104037653.jpg: Skipping as it was created before the service started. 2021-03-13T20:49:39-03:30 [Trigger Person detector] /aiinput/PixelProFrontSD.20210309_104042653.jpg: Skipping as it was created before the service started. 2021-03-13T20:49:39-03:30 [Trigger Person detector] /aiinput/PixelProFrontSD.20210309_104047653.jpg: Skipping as it was created before the service started. 2021-03-13T20:49:39-03:30 [Trigger Person detector] /aiinput/PixelProFrontSD.20210313_203006532.jpg: Skipping as it was created before the service started. 2021-03-13T20:49:39-03:30 [Trigger Person detector] /aiinput/PixelProFrontSD.20210313_203011532.jpg: Skipping as it was created before the service started. 2021-03-13T21:00:08-03:30 [Trigger Person detector] /aiinput/AnnkeSideDrSD.20210313_210006986.jpg: Analyzing 2021-03-13T21:00:08-03:30 [Trigger Person detector] Error: Failed to call DeepStack at http://192.168.30.15:5000/: {"success":false,"error":"Incorrect api key","duration":0} 2021-03-13T21:00:08-03:30 [Trigger Person detector] /aiinput/AnnkeSideDrSD.20210313_210006986.jpg: Analysis failed
Please copy and paste all the log messages from the Docker output
Installation details
Additional context Note that DeepStackAI does have an API key defined in the Unraid XML and checking the documentation at the deepquest site on API key the exact message is identified there. So when "...Trigger" calls Deepstack AI does it include the API key defined in DeepStackAI?
Any help would be greatly appreciated.
Add any other context about the problem here.