ALPR-Database icon indicating copy to clipboard operation
ALPR-Database copied to clipboard

Update error

Open nortonjco1 opened this issue 2 months ago • 4 comments

On the web page, it shows I'm running version 0.1.7 and says 0.1.9 is available

However, when updating via automatic method or manual, I get the following message:

[+] Running 0/1 â ¦ Container alpr-db-1 Starting 0.6s Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint alpr-db-1 (a713d7eea69104b1bd6d900778837d2262ff922564fecb75236bb8b6e85760a3): Bind for 0.0.0.0:5432 failed: port is already allocated

nortonjco1 avatar Nov 12 '25 07:11 nortonjco1

That's super strange. Try running docker compose down or docker-compose down from the app directory, depending on which you have installed. That script hasn't had any isssues with anyone else, but if this app is the only thing occupying that port, this should fix it.

  1. Shut it down.
  2. Run the update
  3. Check the version (that should start it automatically)

algertc avatar Nov 12 '25 07:11 algertc

root@codeprojectai:/etc/alpr# docker compose down [+] Running 3/3 ✔ Container alpr-app-1 Removed 0.0s ✔ Container alpr-db-1 Removed 0.0s ✔ Network alpr_default Removed 0.3s root@codeprojectai:/etc/alpr# ./update.sh

========================================= ALPR Database Update Script

What would you like to do?

  1. Update
  2. Revert to a previous version

Enter your choice (1-2): 1

Select release type:

  1. Stable (recommended)
  2. Nightly (pre-release / latest updates)

Enter your choice (1-2): 1 [INFO] Checking for script updates... ./update.sh: line 118: [: 1 $(curl -sSL "$REMOTE_SCRIPT_URL" 2>/dev/null | grep "SCRIPT_VERSION: integer expression expected [INFO] Checking required directories... [SUCCESS] Directory structure verified! [INFO] Checking for compose file updates... [INFO] Updating migrations file... [SUCCESS] Migrations file updated! [INFO] Stopping running containers... [INFO] Pulling latest images... [+] Pulling 2/2 ✔ app Pulled 0.7s ✔ db Pulled 0.6s [INFO] Starting updated containers... [+] Running 2/3 ✔ Network alpr_default Created 0.2s ⠧ Container alpr-db-1 Starting 0.7s ✔ Container alpr-app-1 Created 0.0s Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint alpr-db-1 (d829c1e9d9644c20fe2a39238df2fa25972dae107e3a55cc05224feb9294a63c): Bind for 0.0.0.0:5432 failed: port is already allocated [ERROR] Failed to start containers: 0

Other than not being able to update, the app seems to work.

nortonjco1 avatar Nov 12 '25 15:11 nortonjco1

Wondering if there is another implementation of the alpr running on the box and the one I think is running isn't

nortonjco1 avatar Nov 12 '25 15:11 nortonjco1

Hi Charlie. I tried to make some changes to the yml file to change ports, it screwed something up and couldn't get it back working, so I just re-installed. Lost my data, but that's the way it goes.

Anyway, I asked another question back in February this year on: https://alprdatabase.featurebase.app/p/dashboard-time-distribution-graph

It shows as completed, but when I click on 11am today, the url tries to show: http://192.168.0.12:3000/live_feed?page=1&hourFrom=18&hourTo=18

So, it seems to take my local time and convert to utc or something. How can I change that?

nortonjco1 avatar Nov 12 '25 18:11 nortonjco1