← Back to team overview

graphite-dev team mailing list archive

Re: [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.