Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get the container to run reliably #37

Open
heffneil opened this issue Sep 10, 2024 · 1 comment
Open

Can't get the container to run reliably #37

heffneil opened this issue Sep 10, 2024 · 1 comment

Comments

@heffneil
Copy link

heffneil commented Sep 10, 2024

I had several issues getting things to work and through hodgepodge I was able to determine how to configure things in with docker compose - where it was running but now it will not run. Below are the errors I receive in logs:

today at 11:55:53 AMalways restart: false
today at 1:57:47 PMnpm ERR! path /app
today at 1:57:47 PMnpm ERR! command failed
today at 1:57:47 PMnpm ERR! signal SIGTERM
today at 1:57:47 PMnpm ERR! command sh -c -- node index.js
today at 1:57:47 PM
today at 1:57:47 PMnpm ERR! A complete log of this run can be found in:
today at 1:57:47 PMnpm ERR!     /home/app/.npm/_logs/2024-09-10T15_55_51_112Z-debug-0.log
today at 1:58:29 PM
today at 1:58:29 PM> [email protected] start
today at 1:58:29 PM> node index.js
today at 1:58:29 PM
today at 1:58:32 PMalways restart: false
today at 2:04:47 PMnpm ERR! path /app
today at 2:04:47 PMnpm ERR! command failed
today at 2:04:47 PMnpm ERR! signal SIGTERM
today at 2:04:47 PMnpm ERR! command sh -c -- node index.js
today at 2:04:47 PM
today at 2:04:47 PMnpm ERR! A complete log of this run can be found in:
today at 2:04:47 PMnpm ERR!     /home/app/.npm/_logs/2024-09-10T17_58_29_936Z-debug-0.log
today at 2:04:48 PM
today at 2:04:48 PM> [email protected] start
today at 2:04:48 PM> node index.js
today at 2:04:48 PM
today at 2:04:50 PMalways restart: false
today at 2:04:50 PMalways restart: false
today at 2:04:50 PMalways restart: false
today at 2:04:50 PMalways restart: false
today at 2:04:50 PMalways restart: false
today at 2:04:50 PMalways restart: false
today at 2:04:50 PMalways restart: false

I don't know what the problem is but the other two containers for the other services are running but I get an error saying Error
Failed to fetch but I believe this is because the plate-minder service will not run.

docker compose yaml:

 plate-minder:
    container_name: plate-minder
    restart: unless-stopped
    image: sclaflin/plate-minder:latest
    ports:
      - 4000:4000
    environment:
      - TZ=America/New_York
    volumes:
      # Set's the docker container to the host container local time
      - /etc/localtime:/etc/localtime:ro
      - /home/neil/docker/data/plate-minder/data:/app/data
      - /home/neil/docker/data/plate-minder/config.yaml:/app/config.yaml
    # For Intel related hardware acceleration, the container needs the same
    # group id as /dev/dri/renderD128.
  open-alpr-http-wrapper:
    container_name: open-alpr-http-wrapper
    restart: unless-stopped
    image: sclaflin/open-alpr-http-wrapper:latest
    ports:
      - 3000:3000
  plate-minder-web:
    container_name: plate-minder-web
    image: sclaflin/plate-minder-web:latest
    restart: unless-stopped
    # The default configuration assumes docker is running on the same machine
    # you're viewing the web UI with. If you're accessing the service from a
    # different computer, you should set the PLATE_MINDER_URL to whatever host
    environment:
      - PLATE_MINDER_URL=http://localhost:4000
    ports:
      - 8080:80
@heffneil
Copy link
Author

config.yaml for plate-minder:

sources:
  - type: rtsp
    name: mainlpr
    captureInterval: 0.5
    url: 'rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0'
openALPR:
  url: http://192.168.10.253:3000/detect
  country_code: 'us'
recorders:
  - type: file
    pattern: './data/images/{{DATE}}/{{SOURCE}}/{{TIME}}_{{PLATE}}.jpg'
    retainDays: 30
filters:
  - type: mask
    shapes:
      - 1267,0,1920,0,1920,100,1267,100
    debug: false
restService:
  enable: true
  port: 4000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant