Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upProblem with access rights on data subdirectory on Windows #4641
Comments
This comment has been minimized.
This comment has been minimized.
|
Hi, I'm fixing a bunch of things with Having said that, could you try |
This comment has been minimized.
This comment has been minimized.
|
Yes, I can try 2.3.2. I tried 2.3.0 yesterday and it had the same issue. |
This comment has been minimized.
This comment has been minimized.
|
C:\Programs\prometheus-2.3.2.windows-amd64>prometheus.exe --config.file=prometheus.yml It looks the same. |
This comment has been minimized.
This comment has been minimized.
|
I got it up and running with this fix. $ cd prometheus-2.3.2.windows-amd64 |
This comment has been minimized.
This comment has been minimized.
|
Hi, this should be fixed in |
bjornea commentedSep 20, 2018
I installed version 2.4.1 for Windows and tried to start the server. It fails with the following error msg:
C:\Programs\prometheus-2.4.1.windows-amd64>prometheus.exe --config.file=prometheus.yml
....
level=error ts=2018-09-20T08:55:41.614057Z caller=main.go:617 err="opening storage failed: list block dirs in "data/": open data/: Access is denied."
Access rights for data directory:
PS C:\Programs\prometheus-2.4.1.windows-amd64> Get-Acl data | fl
Path : Microsoft.PowerShell.Core\FileSystem::C:\Programs\prometheus-2.4.1.windows-amd64\data
Owner : CORP\bal
Group : CORP\Domain Users
Access : NULL SID Deny ReadExtendedAttributes, WriteExtendedAttributes, ExecuteFile, DeleteSubdirectoriesAndFiles, ReadPermissions
BUILTIN\Administrators Allow DeleteSubdirectoriesAndFiles, Write, ReadAndExecute, Synchronize
S-1-99-0 Allow DeleteSubdirectoriesAndFiles, Write, ReadAndExecute, Synchronize
NT AUTHORITY\SYSTEM Allow DeleteSubdirectoriesAndFiles, Write, ReadAndExecute, Synchronize
Audit :
Sddl : O:S-1-5-21-1043938702-3518237282-2318151422-14557G:DUD:(D;OICIID;SWRPWPDTRC;;;S-1-0-0)(A;OICIID;0x1201ff;;;BA)(A;OICIID;0x1201ff;;;S-1-99-0)(A;OICIID;0x1201ff;;;SY)
Listed from MobaXTerm before start:
drwxr-x--- 1 bal UsersGrp 0 Sep 20 10:51 data
after start:
d---rwx--- 1 bal UsersGrp 0 Sep 20 10:46 data
It looks as the server modifies the access rights, possible to safeguard the data directory, but the access right ends up 070 and not 700?