MikeLud1
IPCT Contributor
Most of the time I have no issue, but every so often it shows BI retrying 5 times, then not updating the record count. The image size is only 1920 x 1080 and that size is working usually. The BI settings were for a 10 second timeout and 5 retries. I notice that the calls from BI seem to be immediate, so I'm not sure the timeout means anything. I've tried changing it to a 60 second timeout and 3 retries. I'll see if that matters.I will be adding a page to view the logs from inside the app soon. You can check by attaching to the container. Try reducing your JPEG size/quality in blue Iris and checking the rest of the settings. I encountered that error a few times too when setting up a new cam. That’s fully a BI thing.
2025-01-05 08:09:00 Current plate_reads count: 6876, threshold: 33000
2025-01-05 08:09:01 Received plate read data: {
2025-01-05 08:09:01 plate_number: '6TST589',
2025-01-05 08:09:01 Image: '/9j/4AAQSkZJ'... 456772 more characters,
2025-01-05 08:09:01 camera: 'LPR-rear',
2025-01-05 08:09:01 timestamp: '2025-01-05T16:08:51.074Z'
2025-01-05 08:09:01 }
2025-01-05 08:09:01 Database connection established
2025-01-05 08:09:01 Current plate_reads count: 6876, threshold: 33000
Most of the time I have no issue, but every so often it shows BI retrying 5 times, then not updating the record count. The image size is only 1920 x 1080 and that size is working usually. The BI settings were for a 10 second timeout and 5 retries. I notice that the calls from BI seem to be immediate, so I'm not sure the timeout means anything. I've tried changing it to a 60 second timeout and 3 retries. I'll see if that matters.
Is there any other log that shows what is happening in the database when the API is processing the record and failing?
Code:2025-01-05 08:09:00 Current plate_reads count: 6876, threshold: 33000 2025-01-05 08:09:01 Received plate read data: { 2025-01-05 08:09:01 plate_number: '6TST589', 2025-01-05 08:09:01 Image: '/9j/4AAQSkZJ'... 456772 more characters, 2025-01-05 08:09:01 camera: 'LPR-rear', 2025-01-05 08:09:01 timestamp: '2025-01-05T16:08:51.074Z' 2025-01-05 08:09:01 } 2025-01-05 08:09:01 Database connection established 2025-01-05 08:09:01 Current plate_reads count: 6876, threshold: 33000
That looks like was successful? Can you confirm that you are seeing that in the logs, and the data doesn't actually end up in the database?
That would be really strange. Does it still say no stream when it fails?
I think there’s a setting I can change to avoid this issue in the first place for people. It has to do with the size of the payload for communication between the frontend and backend of the app. I think this might be the reason because it wouldn’t cause it to send an error response, but just never send anything at all, causing the timeout and retries from BI.I'll check again tonight and get more details of both the BI log and the API log, but the record count did not change, even after the 5 retries from BI (or maybe it was 3 now that I reduced it).
For auto-tagging have a rule that you can set if a plate shows up 3 (make it adjustable) times in 15 (make it adjustable) minutes tag it as Suspicious (have it user editable)Something that just came to mind which would be nice is auto-tag functionality based on configurable rules.
The way I would use it is probably during the early morning like 12:00-3:30am and automatically tag those as late-night or something of that sort. I didn’t add the protect functionality in the last update like I said, but auto protect based on rules could be nice too. I don’t really look at the app that often for myself, so something that watches over the feed and collects evidence of anything sus would be nice.
Most of the time I have no issue, but every so often it shows BI retrying 5 times, then not updating the record count. The image size is only 1920 x 1080 and that size is working usually. The BI settings were for a 10 second timeout and 5 retries. I notice that the calls from BI seem to be immediate, so I'm not sure the timeout means anything. I've tried changing it to a 60 second timeout and 3 retries. I'll see if that matters.
The first place is in the BI logs with any line that starts "Web:". Check any lines where the return code isn't 200 success.Where do you see the quoted logs?
Cam3b | Web: No stream: 409 | ||
Cam3a | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3a | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3a | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3a | Web: No stream: 409 | ||
Cam3a | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3a | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3a | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3a | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3a | Web: No stream: 400 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam1a | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3a | Web: No stream: 400 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam1a | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3a | Web: 201 Created | ||
Cam3a | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 400 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam1a | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam1a | Web: No stream: 409 | ||
Cam3a | Web: No stream: 400 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: 201 Created | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 400 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam3b | Web: No stream: 409 | ||
Cam1a | Web: No stream: 409 | ||
47% Failure Rate |
Your known plates table didn't get the new 'ignore' column. Try pulling the latest including the migration.sql.Hmmm, maybe the root cause of the similar issue is different for you and me.
Actually it seems like the known plates are getting ignored on the live feed for me for some reason and at least at the moment I can't seem to see "web: no stream" error in BI as you.
However, I do see the following error in my postgresql log: "ERROR: column kp.ignore does not exist at character 69" - I guess this could be related to the new ignore feature and my db migration was not successful? @algertc do you have a hint here?
This is a camera configuration and/or network issue. It has nothing to do with the ALPR database app.My current failure rate from BI web calls is about 47%.
So what settings do I need to change? How can I debug it? I see the API receiving the request but just not completing the task. I've updated BI to a later version 5.8.* with no change in behavior.This is a camera configuration and/or network issue. It has nothing to do with the ALPR database app.
I'm not sure how to resolve it, but if you open up your log file in a BI status window and type "stream" in the filter, you can see it occurring in real time. I've got two LPR cameras, one uses the new UI and the other is a few years old and I'm only seeing it on the newer cam. I've tried a bunch of configuration options to no avail. I think the next step is to email Ken.So what settings do I need to change? How can I debug it?
I had that issue the first time I was trying to update, but then then known plates page didn't even appear. When I ran migration.sql again, I've got back the known plates table, so I don't think this is the issue, but I will try running it again.Your known plates table didn't get the new 'ignore' column. Try pulling the latest including the migration.sql.
# psql -U postgres -d postgres -f migrations.sql
psql:migrations.sql:1: NOTICE: extension "pg_trgm" already exists, skipping
CREATE EXTENSION
psql:migrations.sql:2: NOTICE: extension "fuzzystrmatch" already exists, skipping
CREATE EXTENSION
psql:migrations.sql:6: NOTICE: column "priority" of relation "plate_notifications" already exists, skipping
ALTER TABLE
psql:migrations.sql:9: NOTICE: column "camera_name" of relation "plate_reads" already exists, skipping
ALTER TABLE
psql:migrations.sql:11: ERROR: column "ignore" of relation "known_plates" already exists
Oh wait, I figured out how to see the logging on the docker container. So looks like the info did get sent correctly, but it was followed by this:I just stumbled across this app, it looks awesome! Trying to get it working, the setup was a piece of cake but I can't seem to get BI to send the data over to it. If I look in the logs, I think the error is "Web: No stream: 500". Any suggestions? I've verified my api key is correct on both ends, url (and ip address) is correct, etc.