OpenALPR Webhook Processor for IP Cameras

djmadfx

Getting the hang of it
Joined
Sep 29, 2014
Messages
106
Reaction score
19
ok, try using Release v3.14.3-alpha1 · mlapaglia/OpenAlprWebhookProcessor once it is finished building: mlapaglia/OpenAlprWebhookProcessor and see if more logs show up when you try to scrape.
Version 3.14.3-alpha1 logs:

Code:
07/07/2021 02:10:54 +00:00 Failed to scrape Agent.
07/07/2021 02:10:54 +00:00 Entity Framework Core "6.0.0-preview.4.21253.1" initialized '"ProcessorContext"' using provider '"Microsoft.EntityFrameworkCore.Sqlite"' with options: "None"
07/07/2021 02:10:54 +00:00 HTTP "POST" "/settings/agent/scrape" responded 202 in 50.1503 ms
07/07/2021 02:10:54 +00:00 Executed endpoint '"OpenAlprWebhookProcessor.Settings.SettingsController.StartScrape (OpenAlprWebhookProcessor)"'
07/07/2021 02:10:54 +00:00 Executed action "OpenAlprWebhookProcessor.Settings.SettingsController.StartScrape (OpenAlprWebhookProcessor)" in 6.2987ms
07/07/2021 02:10:54 +00:00 Executing HttpStatusCodeResult, setting HTTP status code 202
07/07/2021 02:10:54 +00:00 Starting OpenALPR Agent scrape.
07/07/2021 02:10:54 +00:00 Route matched with "{action = \"StartScrape\", controller = \"Settings\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.IActionResult StartScrape()" on controller "OpenAlprWebhookProcessor.Settings.SettingsController" ("OpenAlprWebhookProcessor").
07/07/2021 02:10:54 +00:00 Executing endpoint '"OpenAlprWebhookProcessor.Settings.SettingsController.StartScrape (OpenAlprWebhookProcessor)"'
07/07/2021 02:10:54 +00:00 Authorization was successful.
07/07/2021 02:10:54 +00:00 Successfully validated the token.
07/07/2021 02:10:54 +00:00 Entity Framework Core "6.0.0-preview.4.21253.1" initialized '"UsersContext"' using provider '"Microsoft.EntityFrameworkCore.Sqlite"' with options: "None"
07/07/2021 02:10:54 +00:00 CORS policy execution successful.
 
Last edited:

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
507
when you get a new version are you unzipping into a new folder or overwriting the existing folder? try extracting to a new folder then copy the config folder over then start the new app
 

djmadfx

Getting the hang of it
Joined
Sep 29, 2014
Messages
106
Reaction score
19
when you get a new version are you unzipping into a new folder or overwriting the existing folder? try extracting to a new folder then copy the config folder over then start the new app
I just edited my post. I was running a different alpha with the prior post.

I'll try running fully fresh again.
 

djmadfx

Getting the hang of it
Joined
Sep 29, 2014
Messages
106
Reaction score
19
(fresh install) -- Version 3.14.3-alpha1 logs. These are the docker logs which seems to have more info, specifically "System.ArgumentException: no metadata found for given date range".

Code:
[02:19:51 INF] CORS policy execution successful.

[02:19:51 INF] Entity Framework Core 6.0.0-preview.4.21253.1 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite' with options: None

[02:19:51 INF] Successfully validated the token.

[02:19:51 INF] Authorization was successful.

[02:19:51 INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.StartScrape (OpenAlprWebhookProcessor)'

[02:19:51 INF] Route matched with {action = "StartScrape", controller = "Settings"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult StartScrape() on controller OpenAlprWebhookProcessor.Settings.SettingsController (OpenAlprWebhookProcessor).

[02:19:51 INF] Executing HttpStatusCodeResult, setting HTTP status code 202

[02:19:51 INF] Starting OpenALPR Agent scrape.

[02:19:51 INF] Executed action OpenAlprWebhookProcessor.Settings.SettingsController.StartScrape (OpenAlprWebhookProcessor) in 3.6949ms

[02:19:51 INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.StartScrape (OpenAlprWebhookProcessor)'

[02:19:51 INF] HTTP POST /settings/agent/scrape responded 202 in 11.3666 ms

[02:19:51 INF] Entity Framework Core 6.0.0-preview.4.21253.1 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite' with options: None

[02:19:51 ERR] Failed to scrape Agent.

System.ArgumentException: no metadata found for given date range

   at OpenAlprWebhookProcessor.WebhookProcessor.OpenAlprAgentScraper.OpenAlprAgentScraper.ScrapeAgentAsync(CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/WebhookProcessor/OpenAlprAgentScraper/OpenAlprAgentScraper.cs:line 68

   at OpenAlprWebhookProcessor.Hydrator.HydrationService.StartHydrationAsync() in /src/OpenAlprWebhookProcessor/Hydration/HydrationService.cs:line 63
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
507
there should be more information after "System.ArgumentException: no metadata found for given date range", did you overlook that line?
 

djmadfx

Getting the hang of it
Joined
Sep 29, 2014
Messages
106
Reaction score
19
there should be more information after "System.ArgumentException: no metadata found for given date range", did you overlook that line?
Code:
[02:51:26 INF] CORS policy execution successful.

[02:51:26 INF] Entity Framework Core 6.0.0-preview.4.21253.1 initialized 'UsersContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite' with options: None

[02:51:26 INF] Successfully validated the token.

[02:51:26 INF] Authorization was successful.

[02:51:26 INF] Executing endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.StartScrape (OpenAlprWebhookProcessor)'

[02:51:26 INF] Route matched with {action = "StartScrape", controller = "Settings"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult StartScrape() on controller OpenAlprWebhookProcessor.Settings.SettingsController (OpenAlprWebhookProcessor).

[02:51:26 INF] Starting OpenALPR Agent scrape.

[02:51:26 INF] Executing HttpStatusCodeResult, setting HTTP status code 202

[02:51:26 INF] Executed action OpenAlprWebhookProcessor.Settings.SettingsController.StartScrape (OpenAlprWebhookProcessor) in 5.3977ms

[02:51:26 INF] Executed endpoint 'OpenAlprWebhookProcessor.Settings.SettingsController.StartScrape (OpenAlprWebhookProcessor)'

[02:51:26 INF] HTTP POST /settings/agent/scrape responded 202 in 16.7520 ms

[02:51:26 INF] Entity Framework Core 6.0.0-preview.4.21253.1 initialized 'ProcessorContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite' with options: None

[02:51:28 ERR] Failed to scrape Agent.

System.ArgumentException: no metadata found for given date range:

   at OpenAlprWebhookProcessor.WebhookProcessor.OpenAlprAgentScraper.OpenAlprAgentScraper.ScrapeAgentAsync(CancellationToken cancellationToken) in /src/OpenAlprWebhookProcessor/WebhookProcessor/OpenAlprAgentScraper/OpenAlprAgentScraper.cs:line 69

   at OpenAlprWebhookProcessor.Hydrator.HydrationService.StartHydrationAsync() in /src/OpenAlprWebhookProcessor/Hydration/HydrationService.cs:line 63
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
507
awesome, so the openalpr agent is returning an error code but no message about what is causing the error, classic lol
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
507
How many plates does your agent see a day? maybe it's trying to get too much data
 

djmadfx

Getting the hang of it
Joined
Sep 29, 2014
Messages
106
Reaction score
19
The "Earliest date epoch: 1624761037594" is shown on the OpenALPR Local Webservice Diagnostics page. Can you use that as a reference? Check from that epoch to the current epoch and then see which are missing from the DB? I'm guessing it is somewhat done in that manner.
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
507
That's pretty strange, if there are no plates it should return an empty json array.. ok try v3.14.3-alpha5 i've removed the exception when the agent doesn't return the proper data, maybe you have a bad date range or something.. it will try them all now
 

biggen

Known around here
Joined
May 6, 2018
Messages
2,596
Reaction score
2,903
Still a no go.
Code:
07/07/2021 11:33:56 +00:00 An exception was thrown attempting to execute the error handler.
07/07/2021 11:33:56 +00:00 HTTP "POST" "/alerts/pushover/test" responded 500 in 8.4912 ms
07/07/2021 11:33:56 +00:00 CORS policy execution successful.
07/07/2021 11:33:56 +00:00 An unhandled exception has occurred while executing the request.
07/07/2021 11:33:56 +00:00 HTTP "POST" "/alerts/pushover/test" responded 500 in 20069.3436 ms
07/07/2021 11:33:56 +00:00 Executed endpoint '"OpenAlprWebhookProcessor.Alerts.AlertsController.UpsertPushover (OpenAlprWebhookProcessor)"'
07/07/2021 11:33:56 +00:00 Executed action "OpenAlprWebhookProcessor.Alerts.AlertsController.UpsertPushover (OpenAlprWebhookProcessor)" in 20031.5287ms
07/07/2021 11:33:56 +00:00 Failed to send alert via Pushover.
Not sure what the deal is. I've made sure the API and User key are correct. I can send tests from the pushover.net website to those keys so I know its working properly on their end. That VM that runs the container has an internet connection. I can ping api.pushover.net
Screenshot from 2021-07-07 06-39-58.jpg

Edit: Actually Docker containers don't have internet access by default do they? I think that is the problem...

Edit2: Well I guess it does have networking access as there is no way I could be using the service currently without it. Here is what my Docker Run file looks like:
Code:
#!/bin/bash

docker run -d \
--name=openalprwebhookprocessor \
--restart unless-stopped \
--net=bridge \
-v /home/user/webhook_alpr/app/config/:/app/config/ \
-p 3859:80 \
mlapaglia/openalprwebhookprocessor:v3.14.3-alpha4
I'm at a loss.
 
Last edited:

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
507
If you are getting a 500 error you are reaching the pushover server but the call is failing.

Can you PM me your user key and api key? i'll try troubleshooting on my side.
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
507
your keys worked fine for me, try v3.14.3-alpha6 i added more logging.
 
Top