Re: [Graphite-dev] [Question #667776]: 502 Bad Gateway
Question #667776 on Graphite changed: https://answers.launchpad.net/graphite/+question/667776 Denis Zhdanov posted a new comment: Gunicorn is only one of many ways how you can run Graphite, systemd is only one of many ways how you can run service. Not sure if we should prefer one way to others. But documentation is on the github - https://github.com/graphite-project/graphite-web/blob/master/docs/admin-webapp.rst , PRs are always welcome. -- You received this question notification because your team graphite-dev is an answer contact for Graphite. ___ Mailing list: https://launchpad.net/~graphite-dev Post to : graphite-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp
Re: [Graphite-dev] [Question #667776]: 502 Bad Gateway
Question #667776 on Graphite changed: https://answers.launchpad.net/graphite/+question/667776 Denis Zhdanov posted a new comment: Gunicorn is only one of many ways how you can run Graphite, systemd is only one of many ways how you can run service. Not sure if we should prefer one way to others. But documentation is on the github - https://github.com/graphite-project/graphite-web/blob/master/docs/admin-webapp.rst , PRs are always welcome. -- You received this question notification because your team graphite-dev is an answer contact for Graphite. ___ Mailing list: https://launchpad.net/~graphite-dev Post to : graphite-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp
Re: [Graphite-dev] [Question #667776]: 502 Bad Gateway
Question #667776 on Graphite changed: https://answers.launchpad.net/graphite/+question/667776 Steven Pine posted a new comment: Please update your documentation, this information here is absolutely required to get a 'working' installation for graphite using gunicorn. Ideally the documentation would provide the file / text required to turn gunicorn into a service. -- You received this question notification because your team graphite-dev is an answer contact for Graphite. ___ Mailing list: https://launchpad.net/~graphite-dev Post to : graphite-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp
Re: [Graphite-dev] [Question #667776]: 502 Bad Gateway
Question #667776 on Graphite changed: https://answers.launchpad.net/graphite/+question/667776 Status: Open => Solved iodisciple confirmed that the question is solved: Solved this as well, with your help. I'll close the ticket. This is what I did. Created /etc/systemd/system/gunicorn.service Put this in it: [Unit] Description=gunicorn daemon After=network.target [Service] User=root Group=www-data WorkingDirectory=/opt/graphite/webapp ExecStart=/usr/bin/gunicorn wsgi --workers=4 --bind=0.0.0.0:8080 --log-file=/var/log/gunicorn.log --preload --pythonpath=/opt/graphite/webapp/graphite [Install] WantedBy=multi-user.target Execute: # systemctl start gunicorn # systemctl enable gunicorn Restart and it should be running. # systemctl status gunicorn -- You received this question notification because your team graphite-dev is an answer contact for Graphite. ___ Mailing list: https://launchpad.net/~graphite-dev Post to : graphite-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp
Re: [Graphite-dev] [Question #667776]: 502 Bad Gateway
Question #667776 on Graphite changed: https://answers.launchpad.net/graphite/+question/667776 iodisciple posted a new comment: Heh that is great. I had the config already indeed. How would you make sure this Gunicorn config is started at (re)boot? -- You received this question notification because your team graphite-dev is an answer contact for Graphite. ___ Mailing list: https://launchpad.net/~graphite-dev Post to : graphite-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp
Re: [Graphite-dev] [Question #667776]: 502 Bad Gateway
Question #667776 on Graphite changed: https://answers.launchpad.net/graphite/+question/667776 Denis Zhdanov posted a new comment: You can peek gunicorn configuration e.g. in official docker image https://github.com/graphite-project/docker-graphite-statsd/blob/master/conf/etc/service/graphite/run export PYTHONPATH=/opt/graphite/webapp && exec /usr/local/bin/gunicorn wsgi --workers=4 --bind=0.0.0.0:8080 --log-file=/var/log/gunicorn.log --preload --pythonpath=/opt/graphite/webapp/graphite You also need to create config for Graphite cp /opt/graphite/webapp/graphite/local_settings.py.example /opt/graphite/webapp/graphite/local_settings.py -- You received this question notification because your team graphite-dev is an answer contact for Graphite. ___ Mailing list: https://launchpad.net/~graphite-dev Post to : graphite-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp
Re: [Graphite-dev] [Question #667776]: 502 Bad Gateway
Question #667776 on Graphite changed: https://answers.launchpad.net/graphite/+question/667776 iodisciple posted a new comment: This seems to get me a couple of steps further: # cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/webapp/graphite/graphite_wsgi.py # cd /opt/graphite/webapp/graphite # gunicorn graphite_wsgi:application & -- You received this question notification because your team graphite-dev is an answer contact for Graphite. ___ Mailing list: https://launchpad.net/~graphite-dev Post to : graphite-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~graphite-dev More help : https://help.launchpad.net/ListHelp