← Back to team overview

graphite-dev team mailing list archive

[Question #170699]: carbon-cache.py not stopping

 

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

Trying to use the stop command doesn't stop the carbon-cache.py daemon.  It works just fine for the carbon-relay.py script.


$ sudo /usr/local/rnt/bin/carbon-cache.py --config=/usr/local/rnt/conf/carbon.conf --logdir=/scratch/graphite/storage/log/  --pidfile=/scratch/graphite/storage/log/graphite-cache.pid  stop 
 
Deleting /scratch/graphite/storage/log/graphite-cache.pid (contained pid 18917)
Sending kill signal to pid 18917


Doing a ps still shows a running process:

$ ps -ef | grep cache
hms      18917     1 32 12:44 ?        00:20:34 /usr/local/bin/python /usr/local/bin/carbon-cache.py --config=/usr/local/conf/carbon.conf --logdir=/scratch/graphite/storage/log/ --pidfile=/scratch/graphite/storage/log/graphite-cache.pid start


Even a few minutes later it is still running: 
$ ps -ef | grep cache
hms      18917     1 31 12:44 ?        00:21:04 /usr/local/rnt/bin/python /usr/local/rnt/bin/carbon-cache.py --config=/usr/local/rnt/conf/carbon.conf --logdir=/scratch/graphite/storage/log/ --pidfile=/scratch/graphite/storage/log/graphite-cache.pid start


Trying again it complains that the pidfile does not exist: 

$ sudo /usr/local/rnt/bin/carbon-cache.py --pidfile=/scratch/graphite/storage/log/graphite-cache.pid  stop 
Pidfile /scratch/graphite/storage/log/graphite-cache.pid does not exist


I stumbled upon  this after making some carbon.conf config changes I needed to take effect.   I do not remember having this issue in my dev environment but the load in our prod environment is significantly higher.

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.