Ask and ye shall receive. Thank you much!
Ask and ye shall receive. Thank you much!
There are two ways of sending data to the database. One is via MQTT and the other is to use the API key. The API key is the preferred method so if you have it configured correctly you don't need anything in the MQTT section. The 172.19.0.1 you are seeing in your log file is the internal IP of your docker application so this is normal.In the web interface, the MQTT/HTTP section is not modified, do I need to do anything here? i.e. do I need to fill out MQTT Broker URL/IP?
I edited the Blue Iris Configuration to point to the Blue Iris IP address and port number, that should probably be added to the instructions.
In the logs, I see this:
4/29/2025, 12:08:41 PM [INFO] Checking IP: 172.19.0.1 <- this is not an IP in my local network, did I miss a setting somewhere?
Try downloading the update script to the same directory your app is in and run it using PowerShell with admin rights.Thanks for the clarification! It seems that the default docker image has some permission issues with the database, see thread here:
![]()
Error processing request: error: there is no unique or exclusion constraint matching the ON CONFLICT specification · algertc ALPR-Database · Discussion #55
Seems like everything is working except the data being added to the database. The App receives and saves the image. Not sure what I'm doing wrong I followed the install instructions exactly. I can ...github.com
At first I was getting this error:
[ERROR] Error processing request: error: there is no unique or exclusion constraint matching the ON CONFLICT specification
After running psql -d postgres -U postgres -f /docker-entrypoint-initdb.d/schema.sql
I now get this error in the logs:
Error processing request: error: null value in column "plate_number" of relation "plate_reads" violates not-null constraint
Both In CodeProject and BI, I'm getting the plate recognized, i.e. the plate number is showing up in my LPR alert, so it's just an issue of saving to the ALPR database. Unfortunately I'm not familiar enough with postgres to figure out how to fix this.
Thanks for the tip! I ran it earlier and updated successfully but didn't solve the error, trying it now to upgrade to nightly release and see if that works.Try downloading the update script to the same directory your app is in and run it using PowerShell with admin rights.
Thanks for the tip! I ran it earlier and updated successfully but didn't solve the error, trying it now to upgrade to nightly release and see if that works.
I've done this:
Bash:root@alpr:/opt/ALPR_Database# docker compose down [+] Running 3/3 ✔ Container alpr_database-app-1 Removed [URL='https://github.com/algertc/ALPR-Database']GitHub Repository[/URL] 1.2s ✔ Container alpr_database-db-1 Removed 11.2s ✔ Network alpr_database_default Removed 0.3s root@alpr:/opt/ALPR_Database# docker compose pull [+] Pulling 2/2 ✔ db Pulled...
I downloaded directly from GitHub and compared md5 between the new and existing files, no difference.
Code:root@alpr:/opt/ALPR_Database# md5sum new/* 68299a0cc953f95cf27525b3c3023d41 new/migrations.sql 9caab0fb987b904a13f3e325f5fa5fbe new/schema.sql root@alpr:/opt/ALPR_Database# md5sum *.sql 68299a0cc953f95cf27525b3c3023d41 migrations.sql 9caab0fb987b904a13f3e325f5fa5fbe schema.sql
The error does seem DB related:
3/25/2025, 11:32:31 AM [INFO] POST /api/plate-reads
3/25/2025, 11:32:31 AM [INFO] Received plate read data: [object Object]
3/25/2025, 11:32:31 AM [INFO] Database connection...
So you've confirmed the storage directory exists, I assume. If not manually create it.Thanks so much @PeteJ @VideoDad - I did not see these earlier, but I did find the discussions on the Git project with several similar comments and same issues on my end. I'll go through a sequence of testing to see if I can get this to work, I'm running the current version of Docker Desktop, on Windows 10.
For beginners, I started with a completely new directory and installed the docker image again. Verified that my .sql files are identical to the ones in the latest branch
migrations.sql: 68299A0CC953F95CF27525B3C3023D41
schema.sql: 9560C7EA414F7787F82E704FF379A69D
Saw a plate come through just now, the good news is that I'm not seeing any database errors this time around with my fresh install, but the bad news is that the images are not being stored in the folders. My previous install had database errors, but did get the images stored...
Log from CodeProjectAI:
14:58:22:Response rec'd from License Plate Reader command 'alpr' (...bed481) ['Found Plate: 68770K'] took 653ms
Log from ALPR Database:
View attachment 220163
Just wanted to add that I was playing with this all last night trying to get it installed and running. I am getting the same error despite running the update script several times, some docker compose pull, and even scrapping everything and starting fresh.Ok I saw a plate come through in the logs but it's not hitting the dashboard etc. just yet. Here's what the logs show:
View attachment 220097