oncall
oncall copied to clipboard
Unable to use Docker Container
Running the commands from the Documents to run the docker version has no errors when run. However when trying to connect to localhost:8080 the site throws an internal server error
Commands run: mkdir output python gen_packer_cfg.py ./oncall.yaml | tail -n +2 > ./output/oncall.json packer build -only=docker ./output/oncall.json docker run --name oncall-mysql -e MYSQL_ROOT_PASSWORD='1234' -d mysql --default-authentication-plugin=mysql_native_password docker run -d --link oncall-mysql:mysql -p 8080:8080 -e DOCKER_DB_BOOTSTRAP=1 quay.io/iris/oncall
Ran Docker Events& showed no issues
Running docker exec -it (container) bash and looking at processes shows Nginx Master and minion running
Running local for test environment is working but I need this dockerized and able to run with my iris instance.
Found this in the uwsgi logs:
Traceback (most recent call last):
File "/home/oncall/env/bin/oncall-scheduler", line 6, in
We began a migration to Python 3, but have not yet updated the docs (and possibly ironed out all the bugs). I've moved this migration to a feature branch, and reverted master to a working Python 2.7 implementation. When the Python 3 migration is stable, we'll update documentation and merge in the branch. Running docker from HEAD should now work.
This appears to still be an issue on master. From: /home/oncall/var/log/uwsgi/error.log
:
Tue Jun 18 18:54:46 2019 - --- no python application found, check your startup logs for errors ---
Is there a commit prior to the merge/revert we can reference?
you can find fixed code here: https://github.com/cleveritcz/oncall
or just built docker container by github: docker pull cleveritcz/oncall:latest
you can retake the code