Container fails to start if built locally
See original GitHub issueHello,
Describe the bug I tried to build the Docker image manually using make. The build succeed, but the container fails to start.
Steps to reproduce:
- Clone master branch
$ git checkout 7060f220246669d01832a52d5d51a0773e8cedfc
$ make amd64_all
$ docker run -it --rm -v $(pwd)/config:/config frigate:latest
Version of frigate master branch (7060f220246669d01832a52d5d51a0773e8cedfc)
Config file N/A
Frigate container logs
frigate | * Starting nginx nginx
frigate | ...done.
frigate | frigate.app INFO : Creating directory: /media/frigate/recordings
frigate | Starting migrations
frigate | peewee_migrate INFO : Starting migrations
frigate | There is nothing to migrate
frigate | peewee_migrate INFO : There is nothing to migrate
frigate | frigate.mqtt INFO : MQTT connected
frigate | frigate.app INFO : Camera processor started for Camera1: 40
frigate | detector.coral INFO : Starting detection process: 36
frigate | frigate.edgetpu INFO : Attempting to load TPU as pci
frigate | frigate.app INFO : Capture process started for Camera1: 48
frigate | Traceback (most recent call last):
frigate | File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
frigate | return _run_code(code, main_globals, None,
frigate | File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
frigate | exec(code, run_globals)
frigate | File "/opt/frigate/frigate/__main__.py", line 15, in <module>
frigate | frigate_app.start()
frigate | File "/opt/frigate/frigate/app.py", line 230, in start
frigate | self.init_web_server()
frigate | File "/opt/frigate/frigate/app.py", line 140, in init_web_server
frigate | self.flask_app = create_app(self.config, self.db, self.stats_tracking, self.detected_frames_processor, self.mqtt_client)
frigate | File "/opt/frigate/frigate/http.py", line 101, in create_app
frigate | sockets.register_blueprint(ws)
frigate | File "/usr/local/lib/python3.8/dist-packages/flask_sockets.py", line 104, in register_blueprint
frigate | blueprint.register(self, options, first_registration)
frigate | TypeError: register() takes 3 positional arguments but 4 were given
frigate | frigate.edgetpu INFO : TPU found
Frigate stats N/A
FFprobe from your camera N/A
Screenshots N/A
Computer Hardware
- OS: Debian
- Install method: Docker
- Virtualization: No
- Coral Version: PCIe
- Network Setup: N/A
Camera Info: N/A
Additional context N/A
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Docker container not starting (docker start) - Stack Overflow
It will try to contact a process manager like systemd or upstart to start the service. Because there is no service manager running,...
Read more >How to Debug and Fix Common Docker Issues - DigitalOcean
In this troubleshooting guide aimed at people new to Docker, you'll troubleshoot problems when building Docker images, resolve naming collisions ...
Read more >How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >6 ways to debug an exploding Docker container - Medium
Can't start your container at all? If you've got a initial command or entrypoint that immediately crashes, Docker will immediately shut it back...
Read more >Docker build "FROM" Fails to search local images #795 - GitHub
When building containers FROM another container image I've built locally, Docker build is failing to find the image and searching externally ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems to be the same issue as https://github.com/priyankark/PhonePi_SampleServer/issues/14
I got around it by specifying the compatible flask version in
docker/Dockerfile.base
.i.e.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.