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

docker-compose not working? #821

Open
lolouk44 opened this issue Jul 8, 2019 · 1 comment
Open

docker-compose not working? #821

lolouk44 opened this issue Jul 8, 2019 · 1 comment

Comments

@lolouk44
Copy link

lolouk44 commented Jul 8, 2019

Trying to use docker-compose
My config is:

  version: '3'
  services:

    openalpr:
      container_name: openalpr
      image: openalpr/commercial-agent:latest
      volumes:
        - /home/cctv2/openalpr/config/:/etc/openalpr/
        - /home/cctv2/openalpr/images/:/var/lib/openalpr/
      restart: always
      cap_add:
        - SYS_NICE

Can't see anything special here but please do step in if you spot something
After running it, my docker log is this:

/usr/lib/python2.7/dist-packages/supervisor/options.py:297: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  'Supervisord is running as root and it is searching '
2019-07-08 11:55:08,628 CRIT Supervisor running as root (no user in config file)
2019-07-08 11:55:08,629 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2019-07-08 11:55:08,640 INFO RPC interface 'supervisor' initialized
2019-07-08 11:55:08,641 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2019-07-08 11:55:08,641 INFO supervisord started with pid 1
2019-07-08 11:55:09,643 INFO spawned: 'alprlink' with pid 8
2019-07-08 11:55:09,645 INFO spawned: 'beanstalk' with pid 9
2019-07-08 11:55:09,646 INFO spawned: 'alprd' with pid 10
2019-07-08 11:55:09,720 INFO exited: alprd (exit status 1; not expected)
No such file or directory
2019-07-08 11:55:10,734 INFO success: beanstalk entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-07-08 11:55:10,737 INFO spawned: 'alprd' with pid 22
2019-07-08 11:55:10,799 INFO exited: alprd (exit status 1; not expected)
2019-07-08 11:55:09 alprlink 140519618914944:  INFO - Writing logs to console
2019-07-08 11:55:09 alprlink 140519618914944:  INFO - Running OpenALPR Link daemon in the foreground.
2019-07-08 11:55:09 alprlink 140519618914944:  INFO - Using: /etc/openalpr/alprd.conf for daemon configuration
2019-07-08 11:55:09 alprlink 140519618914944:  INFO - Image Archive: Initialized archive.  Path: /var/lib/openalpr/plateimages/ - Maximum of 2 chunks at 500 MB per chunk
2019-07-08 11:55:09 alprlink 140519618914944:  INFO - Image Archive: Not deleting chunks in Read Only thread 
2019-07-08 11:55:09 alprlink 140519618914944:  INFO - Image Archive: Initialized archive.  Path: /var/lib/openalpr/videoclips/ - Maximum of 2 chunks at 500 MB per chunk
2019-07-08 11:55:09 alprlink 140519618914944:  INFO - Image Archive: Not deleting chunks in Read Only thread 
2019-07-08 11:55:09 alprlink 140519090382592:  INFO - Image archive watching: /var/lib/openalpr/plateimages/image_db
2019-07-08 11:55:09 alprlink 140519081989888:  INFO - Image archive watching: /var/lib/openalpr/videoclips/image_db
2019-07-08 11:55:10 alprlink 140519618914944:  INFO - Attempting Websockets connection to https://cloud.openalpr.com/
2019-07-08 11:55:11 alprlink 140519618914944:  INFO - Received endpoint address wss://link.openalpr.com/link
2019-07-08 11:55:11 alprlink 140519618914944:  INFO - Established connection to: wss://link.openalpr.com/link
2019-07-08 11:55:11 alprlink 140519618914944:  INFO - Using SSL: 1
[2019-07-08 11:55:11] [connect] Successful connection
[2019-07-08 11:55:11] [connect] WebSocket Connection 23.20.115.124:443 v-2 "WebSocket++/0.7.0" /link 101
2019-07-08 11:55:11,654 INFO success: alprlink entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
2019-07-08 11:55:13,658 INFO spawned: 'alprd' with pid 25
2019-07-08 11:55:13,726 INFO exited: alprd (exit status 1; not expected)
2019-07-08 11:55:16,733 INFO spawned: 'alprd' with pid 27
2019-07-08 11:55:16,799 INFO exited: alprd (exit status 1; not expected)
2019-07-08 11:55:20,807 INFO spawned: 'alprd' with pid 29
2019-07-08 11:55:20,871 INFO exited: alprd (exit status 1; not expected)

Can someone help point out what I'm missing?

@EmileSpecs
Copy link

For anyone else that's interested, I wanted to get OpenALPR to work as a container on my Home Assistant setup.
I use the Portainer add-on and simply created a custom template using the following:

  services:

    openalpr:
      container_name: openalpr
      image: openalpr/agent:latest
      volumes:
        - /mnt/data/supervisor/addons/data/openalpr/config/:/etc/openalpr/
        - /mnt/data/supervisor/addons/data/openalpr/images/:/var/lib/openalpr/
      ports:
        - "11300:11300"
        - "8355:8355"
      restart: always
      cap_add:
        - SYS_NICE

I then went through the registration process using the method as described in the docs through the terminal you can launch from Portainer.

Works like a charm!

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

2 participants