Replies: 32 comments 2 replies
-
Please post a copy of your docker compose configuration
…________________________________
From: mikerenna ***@***.***>
Sent: Friday, August 5, 2022 10:58:08 AM
To: neilenns/node-deepstackai-trigger ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [neilenns/node-deepstackai-trigger] Trouble validating settings and mqtt (Issue #456)
Im trying to set this up and I'm struggling with the following error:
2022-08-05T12:43:59-05:00 [Settings] Unable to read the secrets file: ENOENT: no such file or directory, open '/run/secrets/secrets'.
2022-08-05T12:43:59-05:00 [Settings] Loaded settings from /run/secrets/settings
I don't see anything happening in mqtt allthough i have it enabled (would have expected connect messages in log or in mqtt). I'm ultimately trying to determine if the docker setup is correct. the above message makes me think the settings file did not load correctly but i can console to the /run/secrets/ folder referenced above and viewing the files there, they appear to be my settings and triggers files. Any thoughts on the error or why i might not see mqtt message of any kind related to startup or any status?
Thanks in advance
Mike
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fneilenns%2Fnode-deepstackai-trigger%2Fissues%2F456&data=05%7C01%7C%7C03f7ef58a6a648069d2008da770c0ed0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637953190922152068%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jvXHoKJHk6s7kY0Jb0etf4gngB8VdHf8W%2BiWEA3wXys%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACIVHFX7DPFWS7SMV6N2T3DVXVI3BANCNFSM55W22EXA&data=05%7C01%7C%7C03f7ef58a6a648069d2008da770c0ed0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637953190922152068%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=66xFf%2Fq0kPtdsmvP5IMal0yCA4z7rPERyPNZCUICuWY%3D&reserved=0>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
here you go. trying to pull them off of a local folder. this is running QNAP container station for docker: copy/pasted flattened the formatting. version: "3.8" deepstack-ai: volumes: secrets: triggers: |
Beta Was this translation helpful? Give feedback.
-
strange thing is that it appears that its picking up those files and creating them in the run/secrets/ location. if i view them through console they appear correct. so maybe its working but not sure how to tell. nothing in mqtt to indicate any connection. so i'm wondering if something is wrong. |
Beta Was this translation helpful? Give feedback.
-
Are you sure the paths to those files exist on your local machine? These two lines should be the local path:
Also if they are shared to whatever machine is running Docker that might cause a problem? Not sure. In my case they are just local files in the same folder as my |
Beta Was this translation helpful? Give feedback.
-
I looked at my config more closely and I don't think I'm even using the secrets, I just have a volume mounted. Try doing it that way instead:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
unfortunately no difference. From this is seems like its at least picking up the settings file from where I put it. (i added a config subfolder on my share location). Is there more I should see here? Any way to tell if its running properly? I'm assuming that something is wrong because there are no entries at all in my MQTT host and i was expecting them from startup at least. No indication here in the log that its connected. no indication that triggers file was loaded either. 2022-08-08T10:30:06-05:00 [Main] **************************************** |
Beta Was this translation helpful? Give feedback.
-
as a follow-up, i modified the mqtt host as a test and immediately got an error in the log. So its clearly loading the settings file but no indication that it successfully connects to the mqtt server. is there a setting that forces it to publish a status message in mqtt that i'm missing? A way to confirm that the triggers file is being picked up? Testing triggers, there is no action in mqtt either which seems related. Thanks in advance for any ideas. |
Beta Was this translation helpful? Give feedback.
-
Enable verbose logging and see if it shows any messages for images getting processed.
https://github.com/neilenns/node-deepstackai-trigger/wiki/Configuration
…________________________________
From: mikerenna ***@***.***>
Sent: Tuesday, August 9, 2022 4:23:29 AM
To: neilenns/node-deepstackai-trigger ***@***.***>
Cc: Neil Enns ***@***.***>; Comment ***@***.***>
Subject: Re: [neilenns/node-deepstackai-trigger] Trouble validating settings and mqtt (Issue #456)
as a follow-up, i modified the mqtt host as a test and immediately got an error in the log. So its clearly loading the settings file but no indication that it successfully connects to the mqtt server. is there a setting that forces it to publish a status message in mqtt that i'm missing? A way to confirm that the triggers file is being picked up? Testing triggers, there is no action in mqtt either which seems related. Thanks in advance for any ideas.
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fneilenns%2Fnode-deepstackai-trigger%2Fissues%2F456%23issuecomment-1209253751&data=05%7C01%7C%7C923790e5b9a54f8384a708da79f99628%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956410132482167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7XsvnPrRF3%2FWZxq0u%2F7CQstJWYeqA%2F54COuq4HgwklM%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACIVHFWAPMTYKBZSOT4ARDDVYI5TDANCNFSM55W22EXA&data=05%7C01%7C%7C923790e5b9a54f8384a708da79f99628%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956410132482167%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Er08fnsjnhiMm%2FZAbI1erJyvVsU5ykQgsDAh7V6BXfQ%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Verbose was already set to true. Should i have been seeing more than the above in the log as a result? it seems like its loading the settings file (which i reason by the fact that when i change the mqtt host to a bad port, i see an error on restart) but if its not picking up the verbose flag, I couldn't explain that either. Sorry for the trouble. This seems like an exceptionally useful tool. I appreciate you taking your time to share ideas here. -Mike |
Beta Was this translation helpful? Give feedback.
-
Post the entire set of log messages you get from start of container to when it stops writing messages. Thanks!
…________________________________
From: mikerenna ***@***.***>
Sent: Tuesday, August 9, 2022 7:41:29 AM
To: neilenns/node-deepstackai-trigger ***@***.***>
Cc: Neil Enns ***@***.***>; Comment ***@***.***>
Subject: Re: [neilenns/node-deepstackai-trigger] Trouble validating settings and mqtt (Issue #456)
Verbose was already set to true. Should i have been seeing more than the above in the log as a result? it seems like its loading the settings file (which i reason by the fact that when i change the mqtt host to a bad port, i see an error on restart) but if its not picking up the verbose flag, I couldn't explain that either. Sorry for the trouble. This seems like an exceptionally useful tool. I appreciate you taking your time to share ideas here. -Mike
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fneilenns%2Fnode-deepstackai-trigger%2Fissues%2F456%23issuecomment-1209471866&data=05%7C01%7C%7C92bbc5fe98784fc88c7208da7a153f83%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956528920314846%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=R39KlQsXEFd5sS8nxqnN3tz7RVYSYUXsMliGzam%2FCGI%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACIVHFXU4N7WPZF3GYG62ZDVYJUZTANCNFSM55W22EXA&data=05%7C01%7C%7C92bbc5fe98784fc88c7208da7a153f83%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956528920314846%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=MGKiUdU8YDBRGeNqslTL36xTmQcmWpjoE9NINf%2FG3sk%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
just checked that blue iris is dropping jpgs to the designated folder but no action in log. In fact, log is still just showing the three times I restarted it yesterday. (this is the log view from portainer for the trigger container. deepstack shows even less). You can see in the log where I changed the port on mqtt to see if i could force a failure.
|
Beta Was this translation helpful? Give feedback.
-
i had removed all the secrets references and went to your suggestion for a volume mount for /config. That didn't appear to make a difference. I don't know why there are still secret references here unless that's all just in the code. When I added a /config subfolder to my mount it changed the last line in the log, which i would have expected. that much seems ok. |
Beta Was this translation helpful? Give feedback.
-
Looks like it is up and running. It isn't seeing any images dropped for processing, you should see log entries for each image it tries to analyze.
I'm guessing your mount of the folder for images, or the config pointing to that folder, isn't correct.
…________________________________
From: mikerenna ***@***.***>
Sent: Tuesday, August 9, 2022 7:49:16 AM
To: neilenns/node-deepstackai-trigger ***@***.***>
Cc: Neil Enns ***@***.***>; Comment ***@***.***>
Subject: Re: [neilenns/node-deepstackai-trigger] Trouble validating settings and mqtt (Issue #456)
i had removed all the secrets references and went to your suggestion for a volume mount for /config. That didn't appear to make a difference. I don't know why there are still secret references here unless that's all just in the code. When I added a /config subfolder to my mount it changed the last line in the log, which i would have expected. that much seems ok.
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fneilenns%2Fnode-deepstackai-trigger%2Fissues%2F456%23issuecomment-1209482905&data=05%7C01%7C%7C4996e51e14c541bb662308da7a165799%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956533619684797%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=59aBfr%2FPhhwbc%2FZCrj69%2BhX2ba3KLNNhCKcSJ%2B5sw2M%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACIVHFRFM3VONN2URJW4EODVYJVWZANCNFSM55W22EXA&data=05%7C01%7C%7C4996e51e14c541bb662308da7a165799%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956533619684797%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CVaaZsM9oyBH5MtZ5G%2B1W5xBJYaKBFMBtIAmPYLo0Es%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
i don't know. I've tried a myriad of things to troubleshoot the picture folder. The sample config files use a relative path in the mask ("/aiinput/Cat*.jpg). What is that relative of? My aiinput folder is almost identical to your example. settings file appears to be being picked up properly from a similar mount (similar to your example, with just an additional /config subfolder on the share). i've tried with the relative path in triggers and without. I tried moving my picture folder round. I'm not sure how to troubleshoot. Pictures are landing in the folder, and there is never any indication in the log that anything past start up has ever happened. is there any other way to validate things are running? Is there no mqtt status message in the log that should happen at startup? or any way to tell that triggers was loaded? (log shows settings being loaded, although some goofy message on that, but no mention of triggers). Verbose flag didn't make any difference in logging from what i can say. Sort of at a loss. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
{
"$schema": "https://raw.githubusercontent.com/danecreekphotography/node-deepstackai-trigger/main/src/schemas/triggerConfiguration.schema.json",
"triggers": [
{
"name": "Driveway detector",
"watchPattern": "driveway*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"topic": "aimotion/triggers/driveway"
}
},
"watchObjects": ["car", "truck", "person"]
},
{
"name": "Doorbell detector",
"watchPattern": "doorbell*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/doorbell" }]
}
},
"watchObjects": ["person"]
},
{
"name": "Front Door detector",
"watchPattern": "/aiinput/FrontDoor*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/FrontDoor" }]
}
},
"watchObjects": ["person"]
},
{
"name": "Backyard detector",
"watchPattern": "/aiinput/BackYard*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/backyard" }]
}
},
"watchObjects": ["person"]
},
{
"name": "Side door detector",
"watchPattern": "GgSideDoor*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/side_door" }]
}
},
"watchObjects": ["person"]
}
]
} |
Beta Was this translation helpful? Give feedback.
-
The triggers need to be the full path to the image folder, so they must be `/aiinput/GGsideDoor*.jpg` for example.
Also open a terminal to the docker container and make sure /aiinput has images in it that match your wild card.
…________________________________
From: Mike Renna ***@***.***>
Sent: Tuesday, August 9, 2022 2:00:03 PM
To: neilenns/node-deepstackai-trigger ***@***.***>
Cc: Neil Enns ***@***.***>; Comment ***@***.***>
Subject: Re: [neilenns/node-deepstackai-trigger] Trouble validating settings and mqtt (Issue #456)
{
"$schema": "https://raw.githubusercontent.com/danecreekphotography/node-deepstackai-trigger/main/src/schemas/triggerConfiguration.schema.json<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fdanecreekphotography%2Fnode-deepstackai-trigger%2Fmain%2Fsrc%2Fschemas%2FtriggerConfiguration.schema.json&data=05%7C01%7C%7C33a5e57491ad4f8d04f008da7a4a2237%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956756062230916%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1K8roSzURq7bfv3RwoEgjHL7sau%2Fm%2F8ZGCm2lakynMw%3D&reserved=0>",
"triggers": [
{
"name": "Driveway detector",
"watchPattern": "driveway*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"topic": "aimotion/triggers/driveway"
}
},
"watchObjects": ["car", "truck", "person"]
},
{
"name": "Doorbell detector",
"watchPattern": "doorbell*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/doorbell" }]
}
},
"watchObjects": ["person"]
},
{
"name": "Front Door detector",
"watchPattern": "/aiinput/FrontDoor*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/FrontDoor" }]
}
},
"watchObjects": ["person"]
},
{
"name": "Backyard detector",
"watchPattern": "/aiinput/BackYard*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/backyard" }]
}
},
"watchObjects": ["person"]
},
{
"name": "Side door detector",
"watchPattern": "GgSideDoor*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/side_door" }]
}
},
"watchObjects": ["person"]
}
]
}
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fneilenns%2Fnode-deepstackai-trigger%2Fissues%2F456%23issuecomment-1209890986&data=05%7C01%7C%7C33a5e57491ad4f8d04f008da7a4a2237%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956756062230916%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QF0%2FTLcXUKda%2BiXH0iEFrKdQd2XUfh16NobkbrEjOjE%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACIVHFROHGO7AILABQY56ZLVYLBFHANCNFSM55W22EXA&data=05%7C01%7C%7C33a5e57491ad4f8d04f008da7a4a2237%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956756062230916%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=i9DzYcBrbKEMWT%2FKSa9t%2Fa30N3NBSR3G1mzJk22Zo%2BU%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
You should also be seeing a log message saying it connected to the mqtt server, and status messages published to this topic:
node-deepstackai-trigger/status
…________________________________
From: Neil Enns ***@***.***>
Sent: Tuesday, August 9, 2022 2:03:00 PM
To: neilenns/node-deepstackai-trigger ***@***.***>; neilenns/node-deepstackai-trigger ***@***.***>
Cc: Comment ***@***.***>
Subject: Re: [neilenns/node-deepstackai-trigger] Trouble validating settings and mqtt (Issue #456)
The triggers need to be the full path to the image folder, so they must be `/aiinput/GGsideDoor*.jpg` for example.
Also open a terminal to the docker container and make sure /aiinput has images in it that match your wild card.
________________________________
From: Mike Renna ***@***.***>
Sent: Tuesday, August 9, 2022 2:00:03 PM
To: neilenns/node-deepstackai-trigger ***@***.***>
Cc: Neil Enns ***@***.***>; Comment ***@***.***>
Subject: Re: [neilenns/node-deepstackai-trigger] Trouble validating settings and mqtt (Issue #456)
{
"$schema": "https://raw.githubusercontent.com/danecreekphotography/node-deepstackai-trigger/main/src/schemas/triggerConfiguration.schema.json<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fdanecreekphotography%2Fnode-deepstackai-trigger%2Fmain%2Fsrc%2Fschemas%2FtriggerConfiguration.schema.json&data=05%7C01%7C%7C33a5e57491ad4f8d04f008da7a4a2237%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956756062230916%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1K8roSzURq7bfv3RwoEgjHL7sau%2Fm%2F8ZGCm2lakynMw%3D&reserved=0>",
"triggers": [
{
"name": "Driveway detector",
"watchPattern": "driveway*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"topic": "aimotion/triggers/driveway"
}
},
"watchObjects": ["car", "truck", "person"]
},
{
"name": "Doorbell detector",
"watchPattern": "doorbell*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/doorbell" }]
}
},
"watchObjects": ["person"]
},
{
"name": "Front Door detector",
"watchPattern": "/aiinput/FrontDoor*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/FrontDoor" }]
}
},
"watchObjects": ["person"]
},
{
"name": "Backyard detector",
"watchPattern": "/aiinput/BackYard*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/backyard" }]
}
},
"watchObjects": ["person"]
},
{
"name": "Side door detector",
"watchPattern": "GgSideDoor*.jpg",
"enabled": true,
"threshold": {
"minimum": 0,
"maximum": 100
},
"handlers": {
"mqtt": {
"messages": [{ "topic": "aimotion/triggers/side_door" }]
}
},
"watchObjects": ["person"]
}
]
}
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fneilenns%2Fnode-deepstackai-trigger%2Fissues%2F456%23issuecomment-1209890986&data=05%7C01%7C%7C33a5e57491ad4f8d04f008da7a4a2237%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956756062230916%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QF0%2FTLcXUKda%2BiXH0iEFrKdQd2XUfh16NobkbrEjOjE%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACIVHFROHGO7AILABQY56ZLVYLBFHANCNFSM55W22EXA&data=05%7C01%7C%7C33a5e57491ad4f8d04f008da7a4a2237%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956756062230916%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=i9DzYcBrbKEMWT%2FKSa9t%2Fa30N3NBSR3G1mzJk22Zo%2BU%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Appears so for images.... |
Beta Was this translation helpful? Give feedback.
-
That's one thing that has always been concerning. No mqtt connection status messages. but i can get the container log to throw an error when i change the port to a bad one. changing it back just allows it to start without an mqtt connection error but no actual connection validation message (and nothing of course in mqtt itself) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
thank you. feels challenging to me from a pc as well. :) Appreciate your help and please do so at your leisure. |
Beta Was this translation helpful? Give feedback.
-
Ok so I'm 99% sure whatever config file you hope is getting picked up by the container isn't actually the one getting picked up. Here's what the logs look like for my system when I have verbose logging enabled:
Looking all the way back to one of your original messages your Have you tried having the config files directly on the machine running Docker instead of shared to that machine? Have you tried completely deleting the Docker container and volume and trying to run a fresh one? For reference here is my {
"$schema": "https://raw.githubusercontent.com/danecreekphotography/node-deepstackai-trigger/main/src/schemas/settings.schema.json",
"deepstackUri": "http://deepstack-ai:5000",
"verbose": true,
"enableWebServer": true,
"processExistingImages": false,
"mqtt": {
"uri": "http://192.168.1.172:1883",
"username": "removed",
"password": "removed",
"retain": true
}
} |
Beta Was this translation helpful? Give feedback.
-
The folder is actually on the docker host. maybe there is another way to reference it syntactically? I think your assessment is probably spot on. It just doesn't feel like it's properly configured. So odd though. I can change the settings file to put a bad port and it immediately throws a connection error in the log on restart. So it's getting the config change but when MQTT port is accurate, it's not executing the publish and log for successful MQTT connection. No error either. Ironically I think regardless of MQTT we might see log entries for file eval before it ever tries to post an outcome to MQTT as well.
…________________________________
From: Neil Enns ***@***.***>
Sent: Tuesday, August 9, 2022 5:24:53 PM
To: neilenns/node-deepstackai-trigger ***@***.***>
Cc: Mike Renna ***@***.***>; Author ***@***.***>
Subject: Re: [neilenns/node-deepstackai-trigger] Trouble validating settings and mqtt (Discussion #457)
Ok so I'm 99% sure whatever config file you hope is getting picked up by the container isn't actually the one getting picked up. Here's what the logs look like for my system when I have verbose logging enabled:
2022-08-09T15:27:01-07:00 [Main] ****************************************
2022-08-09T15:27:01-07:00 [Main] Starting up version 5.8.4
2022-08-09T15:27:01-07:00 [Main] Timezone offset is 420
2022-08-09T15:27:01-07:00 [Main] Current time is Tue Aug 09 2022 15:27:01 GMT-0700 (Pacific Daylight Time)
2022-08-09T15:27:01-07:00 [Settings] Unable to read the settings file: ENOENT: no such file or directory, open '/run/secrets/settings'.
2022-08-09T15:27:01-07:00 [Settings] Unable to load file /run/secrets/settings.
2022-08-09T15:27:01-07:00 [Settings] Unable to read the secrets file: ENOENT: no such file or directory, open '/config/secrets.json'.
2022-08-09T15:27:01-07:00 [Settings] Loaded settings from /config/settings.json
2022-08-09T15:27:01-07:00 [MQTT] Retain flag set in configuration. All messages will be published with retain turned on.
2022-08-09T15:27:01-07:00 [MQTT] Connected to MQTT server http://192.168.1.172:1883
2022-08-09T15:27:01-07:00 [Local storage] Creating local storage folders in /node-deepstackai-trigger.
2022-08-09T15:27:01-07:00 [Local storage] Enabling background purge every 60 minutes for files older than 30 minutes.
2022-08-09T15:27:01-07:00 [Local storage] Running purge
2022-08-09T15:27:01-07:00 [Main] Web server enabled.
2022-08-09T15:27:01-07:00 [Triggers] Unable to read the settings file: ENOENT: no such file or directory, open '/run/secrets/triggers'.
2022-08-09T15:27:01-07:00 [Triggers] Unable to load file /run/secrets/triggers.
2022-08-09T15:27:01-07:00 [Triggers] Unable to read the secrets file: ENOENT: no such file or directory, open '/config/secrets.json'.
2022-08-09T15:27:01-07:00 [Triggers] Loaded configuration from /config/triggers.json
2022-08-09T15:27:01-07:00 [Triggers] Loaded configuration for Front door
2022-08-09T15:27:01-07:00 [Triggers] Loaded configuration for Garage
2022-08-09T15:27:01-07:00 [Triggers] Loaded configuration for Back door
2022-08-09T15:27:01-07:00 [Triggers] Loaded configuration for Back yard
2022-08-09T15:27:01-07:00 [Triggers] Loaded configuration for Driveway
2022-08-09T15:27:01-07:00 [Triggers] Loaded configuration for Side house
2022-08-09T15:27:01-07:00 [Trigger manager] There are 3 images waiting in /images/FrontDoorSD*.jpg for Front door.
2022-08-09T15:27:01-07:00 [Trigger manager] There are 0 images waiting in /images/GarageSD*.jpg for Garage.
2022-08-09T15:27:01-07:00 [Trigger manager] There are 5 images waiting in /images/BackDoorSD*.jpg for Back door.
2022-08-09T15:27:01-07:00 [Trigger manager] There are 0 images waiting in /images/BackYardSD*.jpg for Back yard.
2022-08-09T15:27:01-07:00 [Trigger manager] There are 10 images waiting in /images/DrivewaySD*.jpg for Driveway.
2022-08-09T15:27:01-07:00 [Trigger manager] There are 0 images waiting in /images/SideHouseSD*.jpg for Side house.
2022-08-09T15:27:01-07:00 [Pushbullet] No Pushbullet settings specified. Pushbullet is disabled.
2022-08-09T15:27:01-07:00 [Pushover] No Pushover settings specified. Pushover is disabled.
2022-08-09T15:27:01-07:00 [Telegram] No Telegram settings specified. Telegram is disabled.
2022-08-09T15:27:01-07:00 [Mqtt router] Subscribing to node-deepstackai-trigger/statistics/reset.
2022-08-09T15:27:01-07:00 [Web server] Listening at http://localhost:4242
2022-08-09T15:27:01-07:00 [Mqtt router] Subscribing to node-deepstackai-trigger/statistics/trigger/reset.
2022-08-09T15:27:01-07:00 [Local storage] Purge complete
2022-08-09T15:27:01-07:00 [Mqtt router] Subscribing to node-deepstackai-trigger/motion.
2022-08-09T15:27:01-07:00 [Trigger Front door] Listening for new images in /images/FrontDoorSD*.jpg
2022-08-09T15:27:01-07:00 [Trigger Garage] Listening for new images in /images/GarageSD*.jpg
2022-08-09T15:27:01-07:00 [Trigger Back door] Listening for new images in /images/BackDoorSD*.jpg
2022-08-09T15:27:01-07:00 [Trigger Back yard] Listening for new images in /images/BackYardSD*.jpg
2022-08-09T15:27:01-07:00 [Trigger Driveway] Listening for new images in /images/DrivewaySD*.jpg
2022-08-09T15:27:01-07:00 [Trigger Side house] Listening for new images in /images/SideHouseSD*.jpg
2022-08-09T15:27:01-07:00 [Main] Watching for changes to /config/settings.json
2022-08-09T15:27:01-07:00 [Main] Watching for changes to /config/triggers.json
2022-08-09T15:27:01-07:00 [Main] ****************************************
2022-08-09T15:27:01-07:00 [Main] Up and running!
2022-08-09T15:27:01-07:00 [Trigger Front door] /images/FrontDoorSD.20220809_150427501.jpg: Skipping as it was created before the service started.
Looking all the way back to one of your original messages your settings.json appears to be stored on a folder that's shared to the machine running Docker. I know in the past I've heard of issues where files shared like that don't update correctly or Docker doesn't see changes to them.
Have you tried having the config files directly on the machine running Docker instead of shared to that machine? Have you tried completely deleting the Docker container and volume and trying to run a fresh one?
For reference here is my settings.json file:
{
"$schema": "https://raw.githubusercontent.com/danecreekphotography/node-deepstackai-trigger/main/src/schemas/settings.schema.json",
"deepstackUri": "http://deepstack-ai:5000",
"verbose": true,
"enableWebServer": true,
"processExistingImages": false,
"mqtt": {
"uri": "http://192.168.1.172:1883",
"username": "removed",
"password": "removed",
"retain": true
}
}
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fneilenns%2Fnode-deepstackai-trigger%2Fdiscussions%2F457%23discussioncomment-3361813&data=05%7C01%7C%7Cb8bd984c93ce4f00e39608da7a55fb8e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956806956894477%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=OcDNqME5Uk6RPk%2FoSfTiSsl87EWLMwHNXE4FG4lASdM%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKWHHRRA3P44CYWK2M6STBDVYLLDLANCNFSM56CL47HQ&data=05%7C01%7C%7Cb8bd984c93ce4f00e39608da7a55fb8e%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637956806956894477%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=L2BUX1bmBNjVPZA7V5PQX%2ByjeygV57uP6AfC2aQ0%2Bis%3D&reserved=0>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Unfortunately I'm out of ideas :( Verbose logging will give a lot of insight but I have no idea why it isn't enabled when you have it turned on in your |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
interesting development. Solved this problem by adding a network section to the docker compose. Noticed in portainer the differences in container IP addresses. Adding this put it on the same subnet and solve what must have been a network problem,: I can now see the mqtt status message at startup and other logging entries on trigger load AND image evaluation. Not working yet entirely as its failing on a deepstack reference but progress!! |
Beta Was this translation helpful? Give feedback.
-
2022-08-10T10:28:23-05:00 [Trigger Front Door detector] Error: Failed to call DeepStack at http://deepstack-ai:5000/: {"success":false,"error":"No valid image file found","duration":0} I'll search the issues/discussions to see if anyone else has asked about this but figure I'll post as you might have an easy answer to this one. |
Beta Was this translation helpful? Give feedback.
-
Im trying to set this up and I'm struggling with the following error:
2022-08-05T12:43:59-05:00 [Settings] Unable to read the secrets file: ENOENT: no such file or directory, open '/run/secrets/secrets'.
2022-08-05T12:43:59-05:00 [Settings] Loaded settings from /run/secrets/settings
I don't see anything happening in mqtt allthough i have it enabled (would have expected connect messages in log or in mqtt). I'm ultimately trying to determine if the docker setup is correct. the above message makes me think the settings file did not load correctly but i can console to the /run/secrets/ folder referenced above and viewing the files there, they appear to be my settings and triggers files. Any thoughts on the error or why i might not see mqtt message of any kind related to startup or any status?
Thanks in advance
Mike
Beta Was this translation helpful? Give feedback.
All reactions