{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/4648","repository_url":"https://api.github.com/repos/prometheus/prometheus","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/4648/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/4648/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/4648/events","html_url":"https://github.com/prometheus/prometheus/issues/4648","id":363036742,"node_id":"MDU6SXNzdWUzNjMwMzY3NDI=","number":4648,"title":"Compaction failed - access to data directory denied on Windows 7","user":{"login":"chester89","id":190332,"node_id":"MDQ6VXNlcjE5MDMzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/190332?v=4","gravatar_id":"","url":"https://api.github.com/users/chester89","html_url":"https://github.com/chester89","followers_url":"https://api.github.com/users/chester89/followers","following_url":"https://api.github.com/users/chester89/following{/other_user}","gists_url":"https://api.github.com/users/chester89/gists{/gist_id}","starred_url":"https://api.github.com/users/chester89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chester89/subscriptions","organizations_url":"https://api.github.com/users/chester89/orgs","repos_url":"https://api.github.com/users/chester89/repos","events_url":"https://api.github.com/users/chester89/events{/privacy}","received_events_url":"https://api.github.com/users/chester89/received_events","type":"User","site_admin":false},"labels":[{"id":647078166,"node_id":"MDU6TGFiZWw2NDcwNzgxNjY=","url":"https://api.github.com/repos/prometheus/prometheus/labels/kind/more-info-needed","name":"kind/more-info-needed","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-09-24T07:25:05Z","updated_at":"2018-10-05T06:07:41Z","closed_at":"2018-09-27T14:11:45Z","author_association":"NONE","body":"## Bug Report\r\n**What did you do?**\r\nRan prometheus on a Windows machine with ```prometheus.exe --config.file=..\\config\\prometheus.yml --storage.tsdb.retention=16w --storage.tsdb.path=..\\data --web.enable-admin-api```\r\nPrometheus is fetching data from local 2 instances of [wmi_exporter](https://github.com/martinlindhe/wmi_exporter)\r\n**What did you expect to see?**\r\nNo errors in the logs\r\n\r\n**What did you see instead? Under which circumstances?**\r\nError in the logs about failed compaction, see attached log entries. Access to data subdirectory is denied, which is strange, I haven't set any specific access rights for it\r\n**Environment**\r\n\r\n* System information:\r\n\r\n\tWindows 7 Professional SP1\r\n\r\n* Prometheus version:\r\n\r\n\tversion=2.3.2, branch=HEAD, revision=71af5e29e815795e9dd14742ee7725682fa14b7b\r\n\r\n* Prometheus configuration file:\r\n```\r\nglobal:\r\n  scrape_interval:     15s # By default, scrape targets every 15 seconds.\r\n\r\n\r\nscrape_configs:\r\n\r\n  - job_name: 'win-local'\r\n\r\n    scrape_interval: 15s\r\n\r\n    static_configs:\r\n      - targets: ['localhost:5015']\t  \r\n\r\n  - job_name: 'vs'\r\n    scrape_interval: 5s\r\n\r\n    static_configs:\r\n      - targets: ['localhost:6016']\r\n        labels:\r\n          os: windows\r\n          type: ide\r\n```\r\n\r\n\r\n\r\n\r\n* Logs:\r\n```\r\nlevel=error ts=2018-09-20T05:00:05.003853Z caller=db.go:272 component=tsdb msg=\"compaction failed\" err=\"persist head block: rename block dir: rename E:\\\\db\\\\prometheus\\\\data\\\\01CQTNJWZ9M9NFRGXZYGN22KTQ.tmp E:\\\\db\\\\prometheus\\\\data\\\\01CQTNJWZ9M9NFRGXZYGN22KTQ: Access is denied.\"\r\nlevel=error ts=2018-09-22T11:00:03.5533739Z caller=db.go:272 component=tsdb msg=\"compaction failed\" err=\"persist head block: rename block dir: rename E:\\\\db\\\\prometheus\\\\data\\\\01CR0EZF9VWSCD7NYGKSFERHCJ.tmp E:\\\\db\\\\prometheus\\\\data\\\\01CR0EZF9VWSCD7NYGKSFERHCJ: Access is denied.\"\r\n```\r\nIssue #3253 sounds related, but it's not quite the same error message. I checked process explorer - no process other than Prometheus server is using the data directory. The whole data directory is read-only (not sure if that's intended)"},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/427256311","html_url":"https://github.com/prometheus/prometheus/issues/4648#issuecomment-427256311","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/4648","id":427256311,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzI1NjMxMQ==","user":{"login":"chester89","id":190332,"node_id":"MDQ6VXNlcjE5MDMzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/190332?v=4","gravatar_id":"","url":"https://api.github.com/users/chester89","html_url":"https://github.com/chester89","followers_url":"https://api.github.com/users/chester89/followers","following_url":"https://api.github.com/users/chester89/following{/other_user}","gists_url":"https://api.github.com/users/chester89/gists{/gist_id}","starred_url":"https://api.github.com/users/chester89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chester89/subscriptions","organizations_url":"https://api.github.com/users/chester89/orgs","repos_url":"https://api.github.com/users/chester89/repos","events_url":"https://api.github.com/users/chester89/events{/privacy}","received_events_url":"https://api.github.com/users/chester89/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T06:07:41Z","updated_at":"2018-10-05T06:07:41Z","author_association":"NONE","body":"@gouthamve I think you should reopen the issue"}}
{"actor":{"display_login":"chester89"}}