AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Permission denied issue on snap install adguard-home

Open nkqlee opened this issue 1 year ago • 5 comments

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

nkqlee avatar Oct 28 '23 17:10 nkqlee

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

ainar-g avatar Oct 31 '23 17:10 ainar-g

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 avatar Nov 01 '23 17:11 nkqlee

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

nkqlee avatar Nov 01 '23 17:11 nkqlee

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 avatar Nov 02 '23 12:11 ainar-g

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.

CDzungx avatar Feb 08 '24 15:02 CDzungx