Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Having a real hard time installing graphite on centos 6.5. #58

Closed
ereichert opened this issue Apr 30, 2014 · 7 comments
Closed

Having a real hard time installing graphite on centos 6.5. #58

ereichert opened this issue Apr 30, 2014 · 7 comments
Assignees
Labels

Comments

@ereichert
Copy link

This is the error we're seeing.

Error: Could not update: Execution of '/usr/bin/pip-python install -q twisted==11.1.0' returned 1: Command /usr/bin/python -c "import setuptools;file='/tmp/pip-build-root/twisted/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-e3n5qe-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/twisted
Storing complete log in /root/.pip/pip.log

Error: /Stage[main]/Graphite::Install/Package[twisted]/ensure: change from absent to 11.1.0 failed: Could not update: Execution of '/usr/bin/pip-python install -q twisted==11.1.0' returned 1: Command /usr/bin/python -c "import setuptools;file='/tmp/pip-build-root/twisted/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-e3n5qe-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/twisted
Storing complete log in /root/.pip/pip.log

Using this in my node definition.

class { 'graphite':
require => [Yumrepo['rpmforge'], Yumrepo['epel']],
}

Also, this only happens on an initial puppet run. If I run puppet a second time everything installs without issue.

@ereichert
Copy link
Author

I just realized I posted this to the wrong repo.

@ereichert
Copy link
Author

Actually, long day. This was the correct repo.

@ereichert ereichert reopened this Apr 30, 2014
@dwerder
Copy link
Member

dwerder commented Apr 30, 2014

Ok, first: RPMforge is dead a few years. Why do you use it?
And second: YOu get an python error, so take a look into /root/.pip/pip.log . Thats what the error says. ;-)

@dwerder dwerder self-assigned this Apr 30, 2014
@ereichert
Copy link
Author

I figured out the problem late last night. Not knowing anything about python and twisted I didn't know twisted required gcc. I had to install the Development Tools before I could install graphite.

@dwerder
Copy link
Member

dwerder commented May 1, 2014

This is strange because the module should ensure that the gcc is installed. If this is not the case, its a bug.

@dwerder
Copy link
Member

dwerder commented May 1, 2014

I have found and fixed the part where gcc could be installed after twisted. This also explains why it only failed on the first run

@ereichert
Copy link
Author

Great. Glad that got solved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants