question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppArmor policy error accessing password manager

See original GitHub issue

This is a duplicate of https://github.com/desktop/desktop/issues/5606, as requested here.

Description

Can’t login to GitHub using the snap version of GitHub Desktop.

github desktop bug

Version

$ snap info github-desktop 
name:      github-desktop
summary:   Extend your GitHub workflow beyond your browser with GitHub Desktop
publisher: Snapcrafters
contact:   https://github.com/snapcrafters/github-desktop/issues
license:   unset
description: |
  Extend your GitHub workflow beyond your browser with our Desktop,
  completely redesigned with Electron. Get a unified cross-platform
  experience that's completely open source and ready to customize.
commands:
  - github-desktop
snap-id:      vxuDrMy9vuqIU5Abf2MQOowf2e09tcm9
tracking:     edge
refresh-date: today at 15:50 EDT
channels:                     
  stable:    –                
  candidate: –                
  beta:      –                
  edge:      1.3.4 (31) 140MB -
installed:   1.3.4 (31) 140MB -
* Operating system:
$ neofetch --off
nato@HelionUbuntu 
----------------- 
OS: Ubuntu 18.04.1 LTS x86_64 
Kernel: 4.15.0-34-generic 
Uptime: 4 hours, 44 mins 
Packages: 2148 
Shell: bash 4.4.19 
Resolution: 1920x1080 
DE: GNOME 3.28.3 
WM: GNOME Shell 
WM Theme: Adwaita 
Theme: Adwaita-dark [GTK2/3] 
Icons: Ubuntu-mono-dark [GTK2/3] 
Terminal: gnome-terminal 
CPU: Intel i5-3570K (4) @ 4.100GHz 
GPU: NVIDIA GeForce GTX 660 Ti 
Memory: 6003MiB / 7922MiB 

Steps to Reproduce

1. `sudo snap install github-desktop --edge`

2. Open GitHub Desktop. It takes a while the first time.

3. Login

Expected Behavior

The login completes successfully.

Actual Behavior

The login fails with the following message : An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.291" (uid=1000 pid=22162 comm="/snap/github-desktop/31/opt/GitHubDesktop/desktop " label="snap.github-desktop.github-desktop (enforce)") interface="org.freedesktop.Secret.Service" member="OpenSession" error name="(unset)" requested_reply="0" destination=":1.20" (uid=1000 pid=1732 comm="/usr/bin/gnome-keyring-daemon --daemonize --login " label="unconfined").

Additional Information

I believe it’s because of an undeclared capability in the app. It should be as simple as modifying the package.json file by adding an interface.

Logs

… and I noticed I reported at the wrong place. There’s already snapcrafters/github-desktop#9.

Edit

Solution :

sudo snap connect github-desktop:password-manager-service

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
shiftkeycommented, Apr 7, 2019

With the help of the Snapcraft team, I’ve now been able to publicize the app again on the Snapcraft store now the enclosures are migrated. It is recommended to install the beta channel currently if you are working from a fresh install.

For existing installs the edge channel will remain using the strict enclosure for the moment, and refreshing to the latest version there will ask you to install the beta channel, which is using the classic enclosure and requires a manual upgrade:

3reactions
NatoBoramcommented, Oct 5, 2018

@bb441db It works!

sudo snap connect github-desktop:password-manager-service

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snap: "AppArmor policy prevents" login error - Inkdrop Forum
Snap is missing a required password-manager-service connection to setup AppArmor profiles. When logging into the application, this error is ...
Read more >
Cannot connect MySQL Workbench to MySQL server
On selecting store in keychain it prompts for a password, and I enter the password. But then it shows an error: Could not...
Read more >
Errors from snap install on Ubuntu.... · Issue #215 - GitHub
Go to Ubuntu Software · Search for the app throwing the error · Click Permissions · Turn ON Read, add, change, or remove...
Read more >
Security - AppArmor - Ubuntu
AppArmor. AppArmor is a Linux Security Module implementation of name-based mandatory access controls. AppArmor confines individual programs to a set of ...
Read more >
MySQL Workbench, Ubuntu 20.04 and App Armor - blockdev.io
... on a clean Ubuntu 20.04 install I've run into the following error when connecting locally using a stored password: "An AppArmor policy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found