← Back to team overview

graphite-dev team mailing list archive

[Question #664033]: trying to install graphite-1.1.1 using python3 in ubuntu-16.04

 

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

Hello Guys,

I am trying to install graphite -1.1.1 using source install location on Ubuntu 16.04.3 LTS (Xenial-aws ec2) mentioned below

https://github.com/graphite-project/carbon/tree/1.1.1
https://github.com/graphite-project/graphite-web/tree/1.1.1
https://github.com/graphite-project/whisper/tree/1.1.1

i have issues using starting the carbon-cache, aggregator and relay. Apache2 is coming up fine without issues with WSGI daemon. on port 8080. Here are dependencies i installed on ubuntu

apt-get install for distro packages:

    - python3-setuptools
    - python3-twisted
    - apache2
    - python3-cairo
    - python3-cairocffi
    - python3-django
    - python3-tz
    - python3-fontconfig
    - fontconfig
    - libapache2-mod-wsgi-py3
    - python3-pyparsing
    - python3-pip
    - python3-dev
    - python3-urllib3

pip install for pypi packages

pip3 install scandir
pip3 install django-tagging

Issue with carbon is: i couldn't start any of the  carbon daemon process. This is what i get "ImportError: No module named 'twisted.python.syslog"


root@ip-172.23.22.10:/opt/graphite/storage/log/webapp# systemctl status carbon-cache
● carbon-cache.service - LSB: Carbon Cache
   Loaded: loaded (/etc/init.d/carbon-cache; bad; vendor preset: enabled)
   Active: active (exited) since Sat 2018-02-03 22:06:53 UTC; 4s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 16664 ExecStop=/etc/init.d/carbon-cache stop (code=exited, status=0/SUCCESS)
  Process: 16683 ExecStart=/etc/init.d/carbon-cache start (code=exited, status=0/SUCCESS)

Feb 03 22:06:53 ip-172-31-31-208 carbon-cache[16683]: Traceback (most recent call last):
Feb 03 22:06:53 ip-172-31-31-208 carbon-cache[16683]:   File "bin/carbon-cache.py", line 28, in <module>
Feb 03 22:06:53 ip-172-31-31-208 carbon-cache[16683]:     from carbon.util import run_twistd_plugin  # noqa
Feb 03 22:06:53 ip-172-31-31-208 carbon-cache[16683]:   File "/opt/graphite/lib/carbon/util.py", line 17, in <module>
Feb 03 22:06:53 ip-172-31-31-208 carbon-cache[16683]:     from carbon.log import setDebugEnabled
Feb 03 22:06:53 ip-172-31-31-208 carbon-cache[16683]:   File "/opt/graphite/lib/carbon/log.py", line 7, in <module>
Feb 03 22:06:53 ip-172-31-31-208 carbon-cache[16683]:     from twisted.python.syslog import SyslogObserver
Feb 03 22:06:53 ip-172-31-31-208 carbon-cache[16683]: ImportError: No module named 'twisted.python.syslog'
Feb 03 22:06:53 ip-172-31-31-208 carbon-cache[16683]:  *
Feb 03 22:06:53 ip-172-31-31-208 systemd[1]: Started LSB: Carbon Cache.


Please help me out to solve this issue.




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