Nextcloud-client snap app armor issue

@kyrofa - I was looking at some other issues with my install of the nextcloud-client snap. I cam accross this error on 18.04:

Gkr-Message: secret service operation failed: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.130" (uid=1000 pid=8688 comm="nextcloud " label="snap.nextcloud-client.nextcloud-client (enforce)") interface="org.freedesktop.DBus.Peer" member="Ping" error name="(unset)" requested_reply="0" destination="org.freedesktop.secrets" (uid=1000 pid=1796 comm="/usr/bin/gnome-keyring-daemon --daemonize --login " label="unconfined")

I’m just troubleshooting an instance where once I launch the app and enter my password, any execution of menu items from the icon in a panel does not result in the action being taken.

Just thought I should post it in here.

1 Like

Sounds like you need to connect the password-manager-service interface.

I think I have the same problem:

nextcloud-client -h
static QPlatformTheme* QKdeTheme::createKdeTheme(): Unable to determine KDE dirs
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.228\" (uid=1000 pid=22402 comm=\"nextcloud -h \" label=\"snap.nextcloud-client.nextcloud-client (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1135 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.228\" (uid=1000 pid=22402 comm=\"nextcloud -h \" label=\"snap.nextcloud-client.nextcloud-client (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1135 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
"Object path cannot be empty"
Nextcloud version 2.3.3
File synchronisation desktop utility.

Options:
  -h --help            : show this help screen.

The beginning looks mangled on a full screen terminal window, I tried to clean it up.
I can’t connect using nextcloud-client CLI or the GUI. Server works fine since I can connect via a web browser.

On KDE Neon User Edition I was able to fix this by running the following:

sudo snap connect nextcloud-client:password-manager-service core:password-manager-service
1 Like

Indeed, or even shorter:

$ sudo snap connect nextcloud-client:password-manager-service