graphite-project / graphite-web

A highly scalable real-time graphing system
http://graphite.readthedocs.org/
Apache License 2.0
5.89k stars 1.26k forks source link

Installation issue #2004

Closed CCoruble closed 7 years ago

CCoruble commented 7 years ago

Hi,

I'm trying to install graphite from official doc, (link to the doc page), and it does not works. A lot of steps has changed I guess because I can not do some of the given commands.

System :

Ubuntu 16.04 Apache 2.4.18 pip 8.1.1

I'm actually following the "installing from source" tutorial, but I had to install dependencies from "install with pip", with the pip install and checked if I had them all with "check-dependencies.py" script.

Issues:

Setting up the database (link to the doc page) : Using the command to create a new database does not works and show me this error: django-admin.py: command not found I tried to use the default sqlLite database but the file "/opt/graphite/storage/graphite.db" does not exist

Configuring the webapp (link to the doc page) : I must be honnest, I don't understand what I should do here ... One file does not exist, there is no "/srv/graphite", and the "URLPREFIX" is equal to ''. I suppose I must set this parameter to "/graphite_" but I already tried and nothing happened. Also, I assume I need copy the "graphite.wsgi.example" to "graphite.wsgi" in the same directory.

Configure Webserver (link to the doc page): Following the doc I copied the vhost example to "/etc/apache2/site-available" and created a symlink from this copied file to "/etc/apache2/site-enabled".

Filesystem Paths (link to the doc page): For the "_STATICROOT" parameter I assume, since I'm using apache, that I need to run PYTHONPATH=$GRAPHITE_ROOT/webapp django-admin.py collectstatic --noinput --settings=graphite.settings This does not works and gives me an error django-admin.py: command not found Since this doesn't works the "/opt/graphic/static" directory does not exist.

Everytime I tried to install graphite, when accessing to the server (_http://SERVER_IP:2003) I had the page loading for eternity ... When trying to access _http://SERVER_IP/graphite_ I had either "503 service unavailable" or "forbidden access". This must come from a bad configuration but I don't know where, this is why I gave u all the points I don't understand on the installation doc.

Thank you for helping, Regards

CCoruble commented 7 years ago

Finally found a way to make it works with this tutorial.

I hope you will updates you docs, I know this is a lot of works but couldn't manage to make graphite works with official doc...

Regards