kizniche / ttn-tracker

Download GPS data transmitted to The Things Network for live display on a map
https://kylegabriel.com/projects/2019/04/lorawan-tracker-and-mapper.html
62 stars 17 forks source link

gunicorn container always does restart #2

Closed vrees closed 3 years ago

vrees commented 3 years ago

Hi,

Cannot get it run. It seems that the gunicorn container does not start correctly and therefor end in a restart loop:

i@raspi-docker:~/work/git-repos/ttn-tracker $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b7063ce22375 ttn-tracker_nginx "nginx -g 'daemon of…" 44 minutes ago Up 22 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp nginx b7661640bdf4 ttn-tracker_flask_app "gunicorn -w 1 --wor…" 44 minutes ago Restarting (3) 38 seconds ago flask_app

I tried to start a shell inside container: pi@raspi-docker:~/work/git-repos/ttn-tracker $ docker exec -i -t b766 /bin/bash Error response from daemon: Container b7661640bdf4638b191345db29e0d37ac00e4e46b34b78db4519e18331bfcb59 is restarting, wait until the container is running

Is there a way to debug or some other ideas to get rid of this problem?

vrees commented 3 years ago

Fixed the problem. Was a typo in config.py