gingerlime / graphite-fabric Goto Github PK
View Code? Open in Web Editor NEWfabric-graphite is a fabric script to install Graphite and all dependencies on a debian-based host (with optional vagrant support)
fabric-graphite is a fabric script to install Graphite and all dependencies on a debian-based host (with optional vagrant support)
Running it on a fresh vagrant image running 12.04:
...
[[email protected]:2200] sudo: mkdir -p /etc/nginx
[[email protected]:2200] sudo: mkdir -p /var/log/nginx
[[email protected]:2200] sudo: chown -R www-data: /var/log/nginx
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/fabric/main.py", line 743, in main
*args, **kwargs
File "/usr/local/lib/python2.7/site-packages/fabric/tasks.py", line 368, in execute
multiprocessing
File "/usr/local/lib/python2.7/site-packages/fabric/tasks.py", line 264, in _execute
return task.run(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/fabric/tasks.py", line 171, in run
return self.wrapped(*args, **kwargs)
File "/Users/josephg/Downloads/graphite-fabric/fabfile.py", line 61, in graphite_install
put('config/nginx', '/etc/init.d/', use_sudo=True)
File "/usr/local/lib/python2.7/site-packages/fabric/network.py", line 578, in host_prompting_wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/fabric/operations.py", line 381, in put
raise ValueError(err)
ValueError: 'config/nginx' is not a valid local path or glob.
Disconnecting from 127.0.0.1:2200... done.
If someone needs help with this JavaScript Console error after installing Graphite, I have solved it by upgrading Whisper to the latest version with this command:
sudo pip install 'git+https://github.com/graphite-project/whisper.git#egg=whisper' --upgrade
Tested on Ubuntu 12.04.
Hi there
Thanks very much for this fabric - I'm a windows dev who knows a very small amount of Linux to get by and this enabled me to get statsd/graphite going a few months ago in my dev environment.
I just built out the production server on a clean EC2 Ubuntu Server 12.04 instance and ran into a problem where carbon wasn't starting automatically on boot. The console.log showed permission denied trying to create the /var/run/carbon/carbon.pid file.
If I remove the pidfile bits from /etc/init.d/carbon that were added in this commit:
409bd88
then it starts up fine.
Just fyi - I really don't know what the pid file is for and maybe there is good reason to have it. I'm just fumbling in the dark here in Linux :)
Had the following failure, seems to work if I add "twisted python" to the list of installed packages in fabfile.py.
[root@precise64] sudo: /etc/init.d/carbon start
[root@precise64] out: Starting script carbon
[root@precise64] out: Traceback (most recent call last):
[root@precise64] out: File "/opt/graphite/bin/carbon-cache.py", line 28, in <module>
[root@precise64] out: from carbon.util import run_twistd_plugin
[root@precise64] out: File "/opt/graphite/lib/carbon/util.py", line 21, in <module>
[root@precise64] out: from twisted.scripts._twistd_unix import daemonize
[root@precise64] out: ImportError: cannot import name daemonize
[root@precise64] out:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.