-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
AdGuardHome Windows edge version [Unknown error: Access is denied. (0x80070005)] #7400
Comments
Yes, it changed everything in the folder. Even I grant access right again,
it did but work. I need to grant access right, delete the whole folder, and
setup the old version again. Luckily, I have backup the yaml file,
otherwise I will have to setup everything from the very beginning.
在 2024年11月3日週日 13:55,観月唯 ***@***.***> 寫道:
… I discovered that the latest edge version modifies the access rights of
the entire folder, which is the main cause of this issue.
—
Reply to this email directly, view it on GitHub
<#7400 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSG6NBQ7RAC6IABK4YWB43Z6W3D5AVCNFSM6AAAAABRCMEMMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTGMYDONRTGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I found that this issue is significantly related to #7314. Moreover, based on the current folder permissions, the service should not be able to start normally after rebooting because the SYSTEM permissions have been removed. |
It happened on my device as well. |
@pekkle-hksar, hello and apologies for the delayed response. It's definitely related to the issue @bestpika mentioned, and we've already pushed the new edge release, that should avoid this behavior. Could you please try updating to it? Note that it indeed changes the permissions of the files in the working directory due to security concerns. I strongly recommend that you to backup the directory before updating AdGuard Home. AFAIK, the problem only appears after an update, so I believe it could be fixed by giving full access rights to |
@EugeneOne1 The problem still exists, and there is an issue with the permission design.
|
When starting service it now says access denied. |
@bestpika, how do you install the AdGuard Home service? Are you using PowerShell running with Administrator privileges? If so, could you please show the result of the following command: ([Security.Principal.WindowsPrincipal]
[Security.Principal.WindowsIdentity]::GetCurrent()
).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) If not, could you please provide a detailed description of the process? Also, which security identifier corresponds to the "SYSTEM"? If it is listed in this resource? @StoneOfStones, what permissions are assigned to the file |
После обновления на v0.107.54 у меня была тоже ошибка с доступом и служба не могла работать и мне пришлось самому по стандарту все учетные записи добавлять и в каждом убирать эти галочки которые на фото. After the update to v0.107.54, I also encountered an access error, and the service could not function. I had to manually add all the accounts according to the standard and uncheck those boxes in each one, as shown in the photo. |
@EugeneOne1 don't know. I fix it with:
Don't want to update to a new version just to break it again |
Services on a windows system run with SYSTEM permissions, so SYSTEM permissions must be kept |
same as others, it's not working... after updated to the new version, it will be access denied. |
SECURITY_LOCAL_SYSTEM_RID https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-identifiers WELL_KNOWN_SID_TYPE enumeration |
I have the same problem. It is really frustrating. 😣 |
Hello again everyone! Unfortunately we can't reproduce the problem on our test machines. I suspect it's due to differences in the behaviour of different versions of Windows. Could you all please provide some common information:
As a temporary workaround for anyone facing this problem, the @Eyeborgs's comment should prevent any further permission issues. It will generate a security warning in the log on every reboot and update, but that's not critical. |
版本 Windows 11 家庭中文版 我使用 |
My OS version is windows server 2025. Even in the latest release, after execute AdGuard Home, the folder permission is reset to "none". I guess, server 2025 has same behavior with Windows 11 24H2 |
My temp workaround is to start AdGuardHome with the following batch file instead of starting it as a Windows service. Change both instances of It works by adding a short delay after starting the AdGuardHome executable and then resetting the folder permissions to NTFS defaults.
|
I'm running Windows 11 canary build + AdGuardHome Edge build.
AGH is running as service.
Using command prompt or terminal or power shell with admin right also got
the same access denied error.
在 2024年11月11日週一 22:43,Eugene ***@***.***> 寫道:
… Hello again everyone! Unfortunately we can't reproduce the problem on our
test machines. I suspect it's due to differences in the behaviour of
different versions of Windows. Could you all please provide some common
information:
- Which version of Windows you are using, e.g. Windows 10 Pro version
22H2 19045.5011 (Windows Feature Experience Pack 1000.19060.1000.0); it's
usually located under *Start* → *Settings* → *System* → *About*.
- How exactly was AdGuard Home installed as a service? Did you use a
custom API (.\AdGuardHome -s install)?
- What command-line tool are you using and what privileges does it
have?
As a temporary workaround for anyone facing this problem, the @Eyeborgs
<https://github.com/Eyeborgs>'s comment
<#7400 (comment)>
should prevent any further permission issues. It will generate a security
warning in the log on every reboot and update, but that's not critical.
—
Reply to this email directly, view it on GitHub
<#7400 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSG6NC2EWJM3DZM54HGGO32AC7BVAVCNFSM6AAAAABRCMEMMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRYGM2DIMJWGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Temporary solution until AdGuard stops mocking around with permissions. Edit: This is a nice way of increasing the security too, because AdGuard is no longer running with SYSTEM (lots of permission) instead with normal user permissions. |
Same problems, same issues for both Edge & Beta. I'm back using edge/beta version before all this permissions issues happened. Here's the file if anyone interested before the day of all this permissions issues happened. |
Actually, this is generally not done on Windows. This kind of practice is more suitable for Linux. Therefore, is it possible to disable this permission check on Windows? |
This issue currently broke internet connections on all windows machines where I installed AGH as service. |
yes.. what a mess.. what i did was to completely remove it and reinstall the latest beta from github. works fine now without having to mess with permissions. you can either backup the yaml config file and restore it or just set it up from scratch which is faster |
did you try restart? It will fail to restart I think |
The latest edge version is problematic, but the beta version is normal. What he should mean is that it will be normal after going back to the beta version. |
Beta v0.108.0-b.60 doesn't resolve the issue. You have to change file and folder permissions every time AGH is restarted to workaround the problem. |
did you reinstall from scratch? for me only by reinstalling from.svratch, worked |
I did yeah, but I used a copy of my existing yaml configuration file. Are you saying there's something in the configuration which is causing the broken permissions to be applied at startup of the latest beta? |
the configuration yaml also had missing permissions in my case (as a matter of fact the whole installation folder and its contents have). you may copy paste the yaml content to restore it to your installation after granting yourself access to the file (you should be able to open the yaml file in an editor) |
Yep I did that and the beta behaved in exactly the same way as the stable with the broken file and folder permissions applied at startup. |
I can confirm too that latest beta in fact did not fix anything. |
To avoid the problem, I've back to stable release already.
在 2024年11月18日週一 18:07,M0N7Y5 ***@***.***> 寫道:
… I can confirm too that latest beta in fact did not fix anything.
—
Reply to this email directly, view it on GitHub
<#7400 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSG6NCADGACMGQE5L7PCM32BG34TAVCNFSM6AAAAABRCMEMMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBSGUYTANRVGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello again everyone! We apologise for not releasing a fix for this issue for a long time and are currently working on it. As far as we can see, the most common problem is the "access denied" error due to insufficient permissions. The main workaround at the moment is to manually reset the permissions via the file properties. For each file in the working directory, do the following:
We'd really appreciate any detailed feedback on this workaround. If it works or if the error has changed. Downgrading to v0.107.53 (v0.108.0-b.58) should help anyway, so those currently considered stable for Windows users. |
Is this mean, until further fix been issued, it is not recommended to run AdGuard Home as a "Windows Service"? |
@junyan-zhang, well, it's indeed true, because the Service subsystem seems to use some opaque permissions logic, as opposed to straightforward PowerShell with Administrator rights. |
A stable urgent update is needed that disables permission changes in the Windows system as it was before. However, for those who want changes, an option to add a launch parameter should be included, for example, "./AdGuardHome -s install --privilege" |
I agree. I don't like the idea of an application changing folder permissions and ownership without my consent. |
I am on the stable release, and I got the same issue. |
Updates #7400. Squashed commit of the following: commit f6508d3 Merge: aa71196 d96e65c Author: Eugene Burkov <[email protected]> Date: Fri Nov 22 15:43:27 2024 +0300 Merge branch 'master' into 7400-disable-perm commit aa71196 Author: Eugene Burkov <[email protected]> Date: Wed Nov 20 16:51:37 2024 +0300 next: add flag commit c16b909 Author: Eugene Burkov <[email protected]> Date: Wed Nov 20 16:42:47 2024 +0300 home: fix help commit 2e096c0 Author: Eugene Burkov <[email protected]> Date: Wed Nov 20 16:37:30 2024 +0300 all: imp code, log changes commit 3685988 Author: Eugene Burkov <[email protected]> Date: Wed Nov 20 16:12:18 2024 +0300 home: add permcheck option
Hello again everyone. We're still working on a better solution to the original security issue, but we've just released the edge build which adds a command line option to disable the whole permission checking feature. Here is how to use it:
Any feedback is still welcome. Note that it's not yet in beta channel. We'll release a fixed version as soon as possible. |
@EugeneOne1 |
100% agree |
Also agree with this. |
Agree. It's to minimize the problem to current users using the standard
command to install service. New feature that may caused problem would be
better an opt-in feature rather than turn on by default.
在 2024年11月23日週六 02:47,Roman ***@***.***> 寫道:
… @EugeneOne1 <https://github.com/EugeneOne1>
That's certainly good, but I would prefer that permcheck is not applied by
default.
For those who want to use permcheck, they can add the option .\AdGuardHome
-s install --permcheck.
—
Reply to this email directly, view it on GitHub
<#7400 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSG6NHZ33GGLD2Z65GH6GT2B533PAVCNFSM6AAAAABRCMEMMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJUGUZDGMRSGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Wow, in stable release, it's happening even when it's not running as service. I just tried the edge biuld, seems fine with |
NOTE: For most relevant workaround see the comment.
Prerequisites
I have checked the Wiki and Discussions and found no answer
I have searched other issues and found no duplicates
I want to report a bug and not ask a question or ask for help
I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Windows, AMD64 (aka x86_64)
Installation
GitHub releases or script from README
Setup
On one machine
AdGuard Home version
v0.108.0-a.977+1d2026bf
Action
run "AdGuardHome.exe" in command prompt with admin right
Expected result
start AdGuardHome properly
Actual result
Error message shown "Unknown error: Access is denied. (0x80070005)"
Additional information and/or screenshots
seems latest edge release in Windows is having problem
I fallback the previous version by remove the whole folder, and unzip the previous edge version (Version:
v0.108.0-a.975+e529d29e), AdGuardHome could start properly
The text was updated successfully, but these errors were encountered: