Debugging connection issue with Gramps Web Sync Addon (v1.3.5) on Ubuntu 24.04.3 LTS

Hello there.

Assuming this is the right place to post a question for Gramps Web Sync Add-on…

I am encountering an AppArmor access denied error when attempting to connect to Gramps Web using the Gramps Web Sync Add-on.

I was curious, does the installation of the add-on or Gramps suppose to automatically modify the necessary AppArmor profiles, or is there a required post-installation step (by me) to enable proper sync functionality?

Thanks in advance

**********************************************Error from Add-on******************************************

190447: ERROR: grampsapp.py: line 187: Unhandled exception
Traceback (most recent call last):
File “/home/akhemani/snap/gramps/11/.local/share/gramps/gramps60/plugins/GrampsWebSync/grampswebsync.py”, line 255, in prepare
self.save_credentials()
File “/home/akhemani/snap/gramps/11/.local/share/gramps/gramps60/plugins/GrampsWebSync/grampswebsync.py”, line 574, in save_credentials
set_password(url, username, password)
File “/home/akhemani/snap/gramps/11/.local/share/gramps/gramps60/plugins/GrampsWebSync/grampswebsync.py”, line 94, in set_password
keyring.set_password(service, username, password)
File “/snap/gramps/11/usr/lib/python3/dist-packages/keyring/core.py”, line 61, in set_password
get_keyring().set_password(service_name, username, password)
File “/snap/gramps/11/usr/lib/python3/dist-packages/keyring/backends/SecretService.py”, line 87, in set_password
collection = self.get_preferred_collection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/snap/gramps/11/usr/lib/python3/dist-packages/keyring/backends/SecretService.py”, line 61, in get_preferred_collection
collection = secretstorage.get_default_collection(bus)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/snap/gramps/11/usr/lib/python3/dist-packages/secretstorage/collection.py”, line 177, in get_default_collection
return Collection(connection)
^^^^^^^^^^^^^^^^^^^^^^
File “/snap/gramps/11/usr/lib/python3/dist-packages/secretstorage/collection.py”, line 45, in **init**
self.\_collection.get_property(‘Label’)
File “/snap/gramps/11/usr/lib/python3/dist-packages/secretstorage/util.py”, line 67, in get_property
(signature, value), = self.send_and_get_reply(msg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/snap/gramps/11/usr/lib/python3/dist-packages/secretstorage/util.py”, line 48, in send_and_get_reply
raise DBusErrorResponse(resp_msg)
jeepney.wrappers.DBusErrorResponse: \[org.freedesktop.DBus.Error.AccessDenied\] (‘An AppArmor policy prevents this sender from sending this message to this recipient; type=“method_call”, sender=“:1.422” (uid=1000 pid=31942 comm=“python3 /snap/gramps/11/bin/gramps” label=“snap.gramps.gramps (enforce)”) interface=“org.freedesktop.DBus.Properties” member=“Get” error name=“(unset)” requested_reply=“0” destination=“org.freedesktop.secrets” (uid=1000 pid=1982 comm=“/usr/bin/gnome-keyring-daemon --foreground --compo” label=“unconfined”)’,)

**********************************************Error from Add-on******************************************

**********Gramps and Gramp Web version info**********

Gramps version on Ubuntu is 6.0.6-4

Gramps web version paste is below

Gramps 6.0.4
Gramps Web API 3.3.0
Gramps Web Frontend 25.9.0
Gramps QL 0.4.0
Sifts 1.0.0
locale: en
multi-tree: false
task queue: true
OCR: true
chat: false

**********Gramps and Gramp Web version info**********

To allow access to the system keyring from within a snap, type:

sudo snap connect gramps:password-manager-service

You can list all connections enabled for Gramps by typing:

snap connections gramps

Hmmm… Am I missing that service with the way I have installed this or am I just missing something :). Thank you

akhemani@akhemani-Inspiron-5402:/$ sudo snap connect gramps:password-manager-service
error: snap "gramps" has no plug named "password-manager-service"
akhemani@akhemani-Inspiron-5402:/$ snap connections gramps
Interface               Plug                          Slot                            Notes
content[gnome-46-2404]  gramps:gnome-46-2404          gnome-46-2404:gnome-46-2404     -
content[gpu-2404]       gramps:gpu-2404               mesa-2404:gpu-2404              -
content[gtk-3-themes]   gramps:gtk-3-themes           gtk-common-themes:gtk-3-themes  -
content                 gramps:hunspell-dictionaries  -                               -
content[icon-themes]    gramps:icon-themes            gtk-common-themes:icon-themes   -
content[sound-themes]   gramps:sound-themes           gtk-common-themes:sound-themes  -
dbus                    -                             gramps:dbus-svc                 -
desktop                 gramps:desktop                :desktop                        -
desktop-legacy          gramps:desktop-legacy         :desktop-legacy                 -
gsettings               gramps:gsettings              :gsettings                      -
home                    gramps:home                   :home                           -
network                 gramps:network                :network                        -
network-status          gramps:network-status         :network-status                 -
opengl                  gramps:opengl                 :opengl                         -
removable-media         gramps:removable-media        -                               -
wayland                 gramps:wayland                :wayland                        -
x11                     gramps:x11                    :x11                            -

I have uploaded 6.0.6-5 to the edge channel which includes the missing password-manager-service plug. The size has increased because I added the OpenGL python bindings for testing.

1 Like

Thanks @Nick-Hall! With this updated image, is there still an additional step we should document in Synchronize with Gramps - Gramps Web for the Gramps Snap + Sync Addon combination?

The only required step should be typing:

sudo snap connect gramps:password-manager-service

It is possible that I have missed out a dependency though, so I’ll wait until this version is tested before promoting it to the stable channel.

1 Like

Hi there.. I think* this is working. I was able to download/install .5 w/ the latest web sync and make a connection and upload some* stuff. I was able to verify the password service running and was able to use the sudo snap connect…. command to give permission and etc.

I am getting an error (why I said think* and some*) when I specifically move images, but I am pretty sure it’s my config stuff since I am moving images/env from a windows gramps client to a ubuntu gramps client and probably not doing it right. I will open a separate thread if I can’t figure it out.

Thank you

1 Like