Closed itinneed2022 closed 2 years ago
Here's the issue: ● carbon-cache.service - SYSV: carbon-cache Loaded: loaded (/etc/rc.d/init.d/carbon-cache; bad; vendor preset: disabled) Active: active (running) since Wed 2022-07-13 12:25:23 EDT; 5s ago Docs: man:systemd-sysv-generator(8) Process: 27848 ExecStop=/etc/rc.d/init.d/carbon-cache stop (code=exited, status=0/SUCCESS) Process: 27915 ExecStart=/etc/rc.d/init.d/carbon-cache start (code=exited, status=0/SUCCESS) CGroup: /system.slice/carbon-cache.service ├─27928 /usr/bin/python bin/carbon-cache.py --instance=a start └─27934 /usr/bin/python bin/carbon-cache.py --instance=b start
How do I switch /usr/bin/python to /usr/bin/python36?
I'm not sure how I fixed this. But for future use (if any), I stopped the carbon daemons, disabled them, and deleted them. Then I completely removed all carbon-related files at /opt/graphite/bin and /opt/graphite/lib, restarted the server. After that I reinstalled carbon from source using /usr/bin/python3.6 setup.py install and re-copied the services to /etc/init.d/ . After starting them up the daemons were using /usr/bin/python3.6.
I've setup two servers with carbon. My first server, dev, is using this path for its python needs: /usr/local/lib64/python3.6/site-packages This is allowing it to pull the right version of Twisted I need for my RHEL7 setup.
But my 2nd server is using this path for carbon's python: /usr/lib64/python2.7/site-packages
How can I change carbon's python path?