← Back to team overview

graphite-dev team mailing list archive

[Question #678035]: Graphite installation help

 

New question #678035 on Graphite:
https://answers.launchpad.net/graphite/+question/678035

Here's what I'm trying to do. 

sudo yum install gcc jq python-pip python-devel cairo cairo-deve pycairo pycairo-devel xfsprogs libffi-devel
sudo pip install python-memcached twisted django==1.11.18 whisper=1.1.5 graphite-web==1.1.5 carbon==1.1.5
sudo yum install https://github.com/lomik/go-carbon/releases/download/v0.13.0/go-carbon-0.13.0-1.x86_64.rpm

sudo mkdir -p /opt/graphite
sudo mkdir -p /var/log/go-carbon
sudo mkdir -p /etc/cron.healthcheck
sudo mkdir -p /mnt/data/graphite
sudo chmod -R 755 /var/log/go-carbon
sudo chown -R ec2-user:ec2-user /mnt/data/

sudo vi /usr/local/etc/go-carbon.conf
sudo vi /etc/cron.hourly/whispercleanup.sh
sudo vi /etc/cron.healthcheck/selfhealthcheck.sh
sudo vi /etc/cron.d/healthcheck
sudo vi /etc/cron.daily/s3backup.sh
sudo vi /etc/cron.d/dxedge_elb_cron
sudo vi /usr/local/bin/dxedge_elb_count.sh

sudo cp dashboard/conf/graphite/conf/* /opt/graphite/conf
sudo cp dashboard/conf/graphite/conf/* /opt/graphite/conf
sudo cp dashboard/conf/graphite/webapp/graphite/local_settings.py /opt/graphite/webapp/graphite/local_settings.py

sudo mv /opt/graphite/storage /mnt/data/graphite/storage
sudo ln -s /mnt/data/graphite/storage /opt/graphite/storage

sudo PYTHONPATH=/opt/graphite/webapp /usr/local/bin/django-admin.py migrate --settings=graphite.settings --run-syncdb
sudo PYTHONPATH=/opt/graphite/webapp /usr/local/bin/django-admin.py collectstatic --settings=graphite.settings

sudo yum install nginx
sudo pip install gunicorn
sudo touch /var/log/nginx/graphite.access.log
sudo touch /var/log/nginx/graphite.error.log
sudo chmod 640 /var/log/nginx/graphite.*
sudo chown www-data:www-data /var/log/nginx/graphite.*
sudo touch /var/log/nginx/graphite.access.log
sudo touch /var/log/nginx/graphite.error.log
sudo chmod 640 /var/log/nginx/graphite.access.log
sudo chmod 640 /var/log/nginx/graphite.error.log
sudo chown ec2-user:ec2-user /var/log/gunicorn.log
sudo chown ec2-user:ec2-user /var/log/nginx/graphite.error.log
sudo ln -s /etc/nginx/sites-available/graphite /etc/nginx/sites-enabled
sudo rm -f /etc/nginx/sites-enabled/default
sudo vi /etc/nginx/sites-available/graphite
sudo mkdir -p /etc/nginx/sites-available
sudo vi /etc/nginx/sites-available/graphite
sudo service nginx reload &

sudo chown -R ec2-user:ec2-user /mnt/data/graphite/storage
sudo chown -R ec2-user:ec2-user /opt/graphite/storage
sudo go-carbon -config /usr/local/etc/go-carbon.conf -daemon

PYTHONPATH=/opt/graphite/webapp gunicorn wsgi --workers=4 --bind=127.0.0.1:8080 --log-file=/var/log/gunicorn.log --preload --pythonpath=/opt/graphite/webapp/graphite &

The graphite web dashboard doesn't load.

Thanks in advance.

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.