question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Container fails to start if built locally

See original GitHub issue

Hello,

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
YosubShincommented, Jun 23, 2021

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.

RUN pip3 install \
    peewee_migrate \
    zeroconf \
    voluptuous\
    flask==1.1.4 \
    Flask-Sockets \
    gevent \
    gevent-websocket
0reactions
stale[bot]commented, Jun 19, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found