graphite_docker icon indicating copy to clipboard operation
graphite_docker copied to clipboard

updated Django Break supervisor.conf

Open ringofhealth opened this issue 7 years ago • 1 comments

So with the latest update to django(1.9.x) when building the dock image will actually break the run command for the supervisor command, specifically

command = /usr/bin/gunicorn_django -b127.0.0.1:8000 -w2 graphite/settings.py

where gunicorn_django has been apparently been depricated and is no longer in use. The solution to use is to link gunicorn directorly with wsig, however I am not versed in python or django and cant get that command to run successfully.

How Do i i fix it?

ringofhealth avatar May 12 '17 04:05 ringofhealth

I concur with you... The later version Django is breaking the graphite_docker when the container is being rebuilt from scratch:

  • http://www.rkblog.rk.edu.pl/w/p/first-impressions-django-17-beta-upgrade-young-project/

After some research on the net, I have found the following article useful...

  • http://trudgian.net/posts/graphite-grafana-with-gunicorn-and-nginx/

You would need to look into the followings before rebuilding the container:

  • Create a graphite.wsgi file based on graphite.wsgi.example
  • Include pip install scandir
  • Make minor changes to nginx.conf and supervisord.conf

I hope these help!

mathew-bulletin avatar Jun 15 '17 00:06 mathew-bulletin