[GH-ISSUE #3514] [Bug] Can't start snap just after a fresh install #1586

Closed
opened 2026-03-23 20:51:20 +00:00 by mirror · 2 comments
Owner

Originally created by @laszukdawid on GitHub (Sep 24, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3514

Bug Description

I've installed the snap using sudo snap install appflowy and got a response that appflowy 0.3.2 from AppFlowy installed. However, when running it, I'm getting

> appflowy 
OnLoad

** (AppFlowy:19658): WARNING **: 17:21:43.151: Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Connection ":1.138" is not allowed to own the service "io.appflowy.appflowy" due to AppArmor policy

How to Reproduce

Snap install, and snap run?

Expected Behavior

To execute.

Operating System

Ubuntu 22.04 LTS

AppFlowy Version(s)

0.3.2

Screenshots

No response

Additional Context

No response

Originally created by @laszukdawid on GitHub (Sep 24, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3514 ### Bug Description I've installed the _snap_ using `sudo snap install appflowy` and got a response that `appflowy 0.3.2 from AppFlowy installed`. However, when running it, I'm getting ```shell > appflowy OnLoad ** (AppFlowy:19658): WARNING **: 17:21:43.151: Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Connection ":1.138" is not allowed to own the service "io.appflowy.appflowy" due to AppArmor policy ``` ### How to Reproduce Snap install, and snap run? ### Expected Behavior To execute. ### Operating System Ubuntu 22.04 LTS ### AppFlowy Version(s) 0.3.2 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@LucasXu0 commented on GitHub (Sep 25, 2023):

I will update the necessary permission in the snap profile, and there's a workaround for v0.3.2.

sudo ln -s /var/lib/snapd/apparmor/profiles/snap.appflowy.appflowy /etc/apparmor.d/
sudo apt install apparmor-utils
sudo aa-complain snap.appflowy.appflowy
snap run appflowy
<!-- gh-comment-id:1732772083 --> @LucasXu0 commented on GitHub (Sep 25, 2023): I will update the necessary permission in the snap profile, and there's a workaround for v0.3.2. ```bash sudo ln -s /var/lib/snapd/apparmor/profiles/snap.appflowy.appflowy /etc/apparmor.d/ sudo apt install apparmor-utils sudo aa-complain snap.appflowy.appflowy snap run appflowy ```
Author
Owner

@LucasXu0 commented on GitHub (Sep 25, 2023):

@laszukdawid I have added the required permission in the snap file. please try to install the latest version 'appflowy(12)' again.

<!-- gh-comment-id:1733581536 --> @LucasXu0 commented on GitHub (Sep 25, 2023): @laszukdawid I have added the required permission in the snap file. please try to install the latest version 'appflowy(12)' again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1586
No description provided.