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

Incorrect error handling in case of broken permissions to whisper file #21

Closed
pavel-odintsov opened this issue Nov 26, 2015 · 2 comments

Comments

@pavel-odintsov
Copy link

Hello!

I have changed user for go-carbon from root to _graphite and fit interesting bug.

Actually files stored on disk with root permissions and go-carbon could not read it from user _graphite.

It's OK but it tried to create new files:

[2015-11-26 13:49:14] E [persister] Failed to create new whisper file /var/lib/graphite/whisper/carbon/agents/netflow_fv_ee/cache/checkpointTime.wsp: file already exists
[2015-11-26 13:49:14] E [persister] Failed to create new whisper file /var/lib/graphite/whisper/carbon/agents/netflow_fv_ee/cache/overflow.wsp: file already exists
[2015-11-26 13:49:14] E [persister] Failed to create new whisper file /var/lib/graphite/whisper/carbon/agents/netflow_fv_ee/cache/queries.wsp: file already exists
[2015-11-26 13:49:14] E [persister] Failed to create new whisper file /var/lib/graphite/whisper/carbon/agents/netflow_fv_ee/cache/metrics.wsp: file already exists
[2015-11-26 13:49:14] E [persister] Failed to create new whisper file /var/lib/graphite/whisper/carbon/agents/netflow_fv_ee/cache/size.wsp: file already exists

So I suggest to report this sort of error in more detailed way and do not try to create file in this case.

Thanks!

@lomik
Copy link
Member

lomik commented May 5, 2016

Fixed in master cb2724e

@lomik lomik closed this as completed May 5, 2016
@pavel-odintsov
Copy link
Author

Nice! Thanks!

On Thursday, 5 May 2016, Roman Lomonosov notifications@github.com wrote:

Closed #21 #21.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#21 (comment)

Sincerely yours, Pavel Odintsov

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

2 participants