I have plates working in CPAI and trying to send to ALPR database.
View attachment 217255
I'm seeing these errors on the alpr-app-1 container:
Received plate read data: {
2025-03-21 21:17:41 plate_number: 'CZCC 641',
2025-03-21 21:17:40 Error processing request: error: there is no unique or exclusion constraint matching the ON CONFLICT specification
2025-03-21 21:17:40 at <unknown> (/app/node_modules/pg/lib/client.js:535:17)
2025-03-21 21:17:40 at async p (/app/.next/server/app/api/plate-reads/route.js:1:6064)
2025-03-21 21:17:40 at async te.do (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:17826)
2025-03-21 21:17:40 at async te.handle (/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:22492)
2025-03-21 21:17:40 at async doRender (/app/node_modules/next/dist/server/base-server.js:1455:42)
2025-03-21 21:17:40 at async responseGenerator (/app/node_modules/next/dist/server/base-server.js:1814:28)
2025-03-21 21:17:40 at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/next/dist/server/base-server.js:1824:28)
2025-03-21 21:17:40 at async NextNodeServer.renderPageComponent (/app/node_modules/next/dist/server/base-server.js:2240:24)
2025-03-21 21:17:40 at async NextNodeServer.renderToResponseImpl (/app/node_modules/next/dist/server/base-server.js:2278:32) {
2025-03-21 21:17:40 length: 148,
2025-03-21 21:17:40 severity: 'ERROR',
2025-03-21 21:17:40 code: '42P10',
2025-03-21 21:17:40 detail: undefined,
2025-03-21 21:17:40 hint: undefined,
2025-03-21 21:17:40 position: undefined,
2025-03-21 21:17:40 internalPosition: undefined,
2025-03-21 21:17:40 internalQuery: undefined,
2025-03-21 21:17:40 where: undefined,
2025-03-21 21:17:40 schema: undefined,
2025-03-21 21:17:40 table: undefined,
2025-03-21 21:17:40 column: undefined,
2025-03-21 21:17:40 dataType: undefined,
2025-03-21 21:17:40 constraint: undefined,
2025-03-21 21:17:40 file: 'plancat.c',
2025-03-21 21:17:40 line: '870',
2025-03-21 21:17:40 routine: 'infer_arbiter_indexes'
2025-03-21 21:17:40 }
I also see this odd reference to 172.18.0.1 IP address and reference that relation 'tags' does not exist:
GET /manifest.webmanifest
2025-03-21 17:33:09 POST /api/verify-whitelist
2025-03-21 17:33:09 Checking IP: 172.18.0.1
2025-03-21 17:33:09 No whitelisted IPs configured
2025-03-21 17:33:09 No session cookie block run
2025-03-21 17:33:09 GET /login
2025-03-21 17:33:11 GET /live_feed
2025-03-21 17:33:11 POST /api/verify-session
2025-03-21 17:33:11 GET /api/check-update
2025-03-21 17:33:11 Fetching latest plate reads
2025-03-21 17:33:11 Fetching tags
2025-03-21 17:33:11 Error getting tags: error: relation "tags" does not exist
2025-03-21 17:33:11 at <unknown> (/app/node_modules/pg/lib/client.js:535:17)
2025-03-21 17:33:11 at async (/app/.next/server/chunks/8079.js:296:75)
2025-03-21 17:33:11 at async l (/app/.next/server/chunks/8079.js:1:1502)
2025-03-21 17:33:11 at async $ (/app/.next/server/chunks/7517.js:1:5779)
2025-03-21 17:33:11 at async p (/app/.next/server/app/live_feed/page.js:1:11413) {
2025-03-21 17:33:11 length: 103,
2025-03-21 17:33:11 severity: 'ERROR',
2025-03-21 17:33:11 code: '42P01',
2025-03-21 17:33:11 detail: undefined,
2025-03-21 17:33:11 hint: undefined,
2025-03-21 17:33:11 position: '15',
2025-03-21 17:33:11 internalPosition: undefined,
2025-03-21 17:33:11 internalQuery: undefined,
2025-03-21 17:33:11 where: undefined,
2025-03-21 17:33:11 schema: undefined,
2025-03-21 17:33:11 table: undefined,
2025-03-21 17:33:11 column: undefined,
2025-03-21 17:33:11 dataType: undefined,
2025-03-21 17:33:11 constraint: undefined,
2025-03-21 17:33:11 file: 'parse_relation.c',
2025-03-21 17:33:11 line: '1373',
2025-03-21 17:33:11 routine: 'parserOpenTable'
2025-03-21 17:33:11 }
Alert Macro:
View attachment 217254
Post string: { "plate_number":"&PLATE", "Image":"&ALERT_JPEG", "camera":"&CAM", "ALERT_PATH": "&ALERT_PATH", "ALERT_CLIP": "&ALERT_CLIP", "timestamp":"&ALERT_TIME" }
ALPR Logs show similar messages:
View attachment 217256
Thoughts where I've gone wrong?