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

"Access is denied" while dropping persistent chunks on Windows #1628

Closed
Bounz opened this Issue May 12, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@Bounz
Copy link

Bounz commented May 12, 2016

Hi, everyone.
I have prometheus 0.18.0 installed on Windows Server 2008 R2.
After some time a lot of error messages began to appear in log file:
time="2016-05-11T14:35:09+03:00" level=error msg="Error dropping persisted chunks: rename data\\9f\\109282fa3f2607.db.tmp data\\9f\\109282fa3f2607.db: Access is denied." source="storage.go:1258"

While trying to investigate what's happens I found out that it is connected with SetRenameInformationFile system call, as it can be seen on the screenshot:
aid

Prometheus is running under local SYSTEM account and this account has full access to prometheus directory.
Has anybody faced with problem like this?

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented May 12, 2016

From my vague recollections of Windows, it doesn't like deleting files that are open. I'd guess something similar is happening here.

We'll need a Windows expert here I suspect.

@beorn7 beorn7 self-assigned this May 12, 2016

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented May 12, 2016

I'll check if deletion of files happens when they are still open. Preliminarily assigning to myself for that (although I'm not a Windows expert at all...)

@Bounz

This comment has been minimized.

Copy link
Author

Bounz commented May 12, 2016

Is it possible that prometheus doesn't close files before renaming them?

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented Jul 1, 2016

Fixed by #1754

@beorn7 beorn7 closed this Jul 1, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.