Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stale pid files for carbon-cache left #14

Open
dkiser opened this issue Jan 19, 2017 · 0 comments
Open

stale pid files for carbon-cache left #14

dkiser opened this issue Jan 19, 2017 · 0 comments

Comments

@dkiser
Copy link

dkiser commented Jan 19, 2017

On subsequent runs of the container that has exited, stale pid files are kept in the GRAPHITE_STORAGE_DIR per the code in lib/carbon/conf.py.

Supervisord should have a cleanup method to rm -f GRAPHITE_STORAGE_DIR/*.pid on startup.

PID left in ephemeral docker volume from last run of container:

root@b8b663787929:/var/lib/graphite# ls -la /var/lib/graphite/storage/*.pid
-rw-r--r-- 1 www-data www-data 1 Jan 19 21:49 /var/lib/graphite/storage/carbon-cache-a.pid

Error observed:

root@b8b663787929:/var/lib/graphite# tail /var/log/supervisor/carbon-cache.log
carbon-cache (instance a) is already running with pid 9
carbon-cache (instance a) is already running with pid 9
carbon-cache (instance a) is already running with pid 9
carbon-cache (instance a) is already running with pid 9
carbon-cache (instance a) is already running with pid 9
carbon-cache (instance a) is already running with pid 9
carbon-cache (instance a) is already running with pid 9
carbon-cache (instance a) is already running with pid 9
carbon-cache (instance a) is already running with pid 9
carbon-cache (instance a) is already running with pid 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant