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

Permission denied issue on snap install adguard-home #6362

Open
4 tasks done
nkqlee opened this issue Oct 28, 2023 · 5 comments
Open
4 tasks done

Permission denied issue on snap install adguard-home #6362

nkqlee opened this issue Oct 28, 2023 · 5 comments
Labels

Comments

@nkqlee
Copy link

nkqlee commented Oct 28, 2023

Prerequisites

Platform (OS and CPU architecture)

Ubuntu 22.04.3 LTS arm64

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

v0.107.40

Action

permission denied when applying path of privkey.pem

Expected result

config saved

Actual result

permission denied

Additional information and/or screenshots

Screenshot 2023-10-29 010152
1st pic showed that adguard can access /etc/let*/live to view the fullchain.pem without permission issue

Screenshot 2023-10-29 010300
2nd pic showed that when tried to paste the path of privkey.pem, then permission denied

@ainar-g
Copy link
Contributor

ainar-g commented Oct 31, 2023

We cannot reproduce this on our Snapcraft installation. Please make sure that nothing else is blocking access, e.g. AppArmor.

@ainar-g ainar-g added the waiting for data Waiting for users to provide more data. label Oct 31, 2023
@nkqlee
Copy link
Author

nkqlee commented Nov 1, 2023

checked with dmesg that showed denied while access privatekey
Screenshot 2023-11-02 005425
but i cannot find any info that can get rid of denied by apparmor for snap adguard-home

@nkqlee
Copy link
Author

nkqlee commented Nov 1, 2023

found a way to have a quick fix
image
changed from enforced mode to complain mode in apparmor, but should have a bettter solution for this

@ainar-g
Copy link
Contributor

ainar-g commented Nov 2, 2023

Since it is AppArmor, you're probably better off consulting the Snapcraft Forum about this, as I'm not sure what we could do here and how to diagnose, what could be different about that particular file or directory.

@ainar-g ainar-g added help wanted cannot reproduce snap Snap-related issues and removed waiting for data Waiting for users to provide more data. labels Nov 2, 2023
@CDzungx
Copy link

CDzungx commented Feb 8, 2024

Same problem, tried to use aa-complain to put AGH to complain mode but it keeps changing back to enforce mode (which cause permission denied) after some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@ainar-g @nkqlee @CDzungx and others