It might take a few hours before it is available
It's not availaible till now. I installed new Gajim on Debian 12 (Whonix 17) via flatpak fot testing today. And I see the same issue with gpg-agent 2.2.40 < 2.4.5. PGP plugin is not working:
[workstation user ~]% flatpak run org.gajim.Gajim
(gajim:2): dbind-WARNING **: 11:59:18.257: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
** (gajim:2): WARNING **: 11:59:20.274: expected enumeration type void, but got PyGLibOptionArg instead
2024-03-27T17:59:21 (W) gajim.p.manager Unable to load manifest: Not a plugin path: /app/plugins/site-packages
2024-03-27T17:59:21 (E) gajim.c.dbus.system_style Couldn’t read the color-scheme setting: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.portal.Desktop" does not exist
2024-03-27T18:00:09 (W) nbxmpp.stream (Account Wizard) Stream can't disconnect, stream state: StreamState.DISCONNECTING
2024-03-27T18:00:58 (W) gnupg potential problem: WARNING: server_version_mismatch 0 server 'gpg-agent' is older than us (2.2.40 < 2.4.5)
2024-03-27T18:00:58 (W) gnupg potential problem: FAILURE: sign 83886166
2024-03-27T18:00:58 (W) gnupg gpg returned a non-zero error code: 2
2024-03-27T18:00:58 (W) gajim.p.pgplegacy (jabjab.de) Sign Error: None
2024-03-27T18:00:59 (W) gajim.c.m.bookmarks (jabjab.de) Error from a@jabjab.de: item-not-found - Node not found
2024-03-27T18:01:28 (W) gnupg potential problem: WARNING: server_version_mismatch 0 server 'gpg-agent' is older than us (2.2.40 < 2.4.5)
2024-03-27T18:01:28 (W) gnupg potential problem: FAILURE: sign 83886166
2024-03-27T18:01:28 (W) gnupg gpg returned a non-zero error code: 2
@wurstsalat do the gajim packages in the official repos also contain the omemo deps that the philfry/gajim copr repo has? My understanding is that they didn't used to, but maybe that has changed over the years.
The issue might be caused by running different versions of gpg-agent, although it is only labelled WARNING.
WARNING: server_version_mismatch 0 server 'gpg-agent' is older than us (2.2.40 < 2.4.5)
(The host is running gpg-agent 2.2.40 and flatpak uses gpg-agent 2.4.5. (provided by the runtime))
I have pushed an update to flathub, please give it try. (It might take a few hours before it is available.)
P.S. --filesystem=xdg-run/gnupg
was added to the manifest, so you don't have to pass it via command line.
use triple backticks around multiline log
Thanks, I fixed this. Please write me if you need any other logs.
The issue is the same as was descibed in 2023. System does not ask the passphrase of PGP key. It's impossible to receive the PGP messages from contacts.
André (750cfa4c) at 24 Mar 13:22
Flatpak: Update runtime + dependencies
Please use triple backticks around multiline log for proper formatting.
I use Gajim on Whonix Workstation none Qubes for a long time. And I try to use the last version of Gajim.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user https://flathub.org/repo/appstream/org.gajim.Gajim.flatpakref
flatpak install --user flathub org.gajim.Gajim.Plugin.omemo
flatpak install --user flathub org.gajim.Gajim.Plugin.pgp
Correct action: system must ask the passphrase of PGP key after this. Real action: system does not ask the passphrase of PGP key. It's impossible to receive the PGP messages from my contacts.
I tried to check the issue. I installed Gajim 1.3.1 with Gajim PGP Plugin 1.3.5 on the same Whonix Workstation:
sudo apt-get install gajim
I added my keys in Gajim PGP Plugin 1.3.5, restarted Gajim 1.3.1 and system asked the passphrase of key, everything is well.
How to use PGP on Gajim 1.7.2 (Gajim PGP Plugin 1.5.1) on Whonix?
@andre The same issue with PGP legacy plugin has returned. It's impossible to use PGP on Gajim in Debian 12. flatpak run --filesystem=xdg-run/gnupg org.gajim.Gajim
does not help. The last Debian release without the PGP plugin issue is Debian 11. The issue is described here.
Please check this:
[workstation user ~]% flatpak run --filesystem=xdg-run/gnupg org.gajim.Gajim
(gajim:2): dbind-WARNING **: 06:25:45.896: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
** (gajim:2): WARNING **: 06:25:46.339: expected enumeration type void, but got PyGLibOptionArg instead
2024-03-24T06:25:46 (W) gajim.p.manager Unable to load manifest: Not a plugin path: /app/plugins/site-packages
2024-03-24T06:25:46 (E) gajim.c.dbus.system_style Couldn’t read the color-scheme setting: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.portal.Desktop" does not exist
2024-03-24T06:26:08 (W) gnupg potential problem: WARNING: server_version_mismatch 0 server 'gpg-agent' is older than us (2.2.40 < 2.4.5)
2024-03-24T06:26:08 (W) gnupg potential problem: FAILURE: sign 83886166
2024-03-24T06:26:08 (W) gnupg gpg returned a non-zero error code: 2
2024-03-24T06:26:08 (W) gajim.p.pgplegacy (jabjab.de) Sign Error: None
2024-03-24T06:26:08 (W) gajim.c.m.bookmarks (jabjab.de) Error from a@jabjab.de: item-not-found - Node not found
2024-03-24T06:26:31 (W) gnupg potential problem: WARNING: server_version_mismatch 0 server 'gpg-agent' is older than us (2.2.40 < 2.4.5)
2024-03-24T06:26:31 (W) gnupg potential problem: ERROR: pkdecrypt_failed 83886166
2024-03-24T06:26:31 (W) gnupg gpg returned a non-zero error code: 2
Please first check if another issue has been opened for your problem
Step 3 to work
Step 4 to work
Step 3 will work
Step 4 will fail
Many people use PGP not only for xmpp, so they have different keys for different purposes. And many bundle them in key chains. For signing, for authentication, for encrypting or combinations of these. It looks like the pgp plugin can only handle the main key.
Are you sure this is working?
André (73ed25d6) at 31 Oct 12:45
Flatpak: Update openpgp
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.9/site-packages/gnupg.py", line 881, in __init__
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.9/site-packages/gnupg.py", line 961, in _open_subprocess
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.9/subprocess.py", line 951, in __init__
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.9/subprocess.py", line 1420, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.9/site-packages/gajim/gtk/plugins.py", line 333, in _on_enabled_toggled
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.9/site-packages/gajim/plugins/pluginmanager.py", line 570, in activate_plugin
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.9/site-packages/gajim/plugins/pluginmanager.py", line 542, in _register_modules_with_handlers
File "C:\gajimportable\Gajim\UserData\Plugins\openpgp\modules\openpgp.py", line 309, in get_instance
return OpenPGP(*args, **kwargs), 'OpenPGP'
File "C:\gajimportable\Gajim\UserData\Plugins\openpgp\modules\openpgp.py", line 95, in __init__
self._pgp = PGPBackend(self.own_jid, path)
File "C:\gajimportable\Gajim\UserData\Plugins\openpgp\backend\pygpg.py", line 83, in __init__
gnupg.GPG.__init__(self, gpgbinary='gpg', gnupghome=str(gnupghome))
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.9/site-packages/gnupg.py", line 885, in __init__
OSError: Unable to run gpg (gpg) - it may not be available.
...
André (7675a98f) at 07 Oct 16:11
Flatpak: Update runtime + dependencies
Traceback (most recent call last):
File "/home/me/.local/share/gajim/plugins/openpgp/gtk/wizard.py", line 93, in _on_page_change
self._activate_encryption()
File "/home/me/.local/share/gajim/plugins/openpgp/gtk/wizard.py", line 83, in _activate_encryption
'set-encryption-%s' % self._chat_control.control_id)
AttributeError: 'ChatControl' object has no attribute 'control_id'
Using Gajim 1.7.1
Traceback (most recent call last):
File "C:\Users\user2\AppData\Roaming\Gajim\Plugins\openpgp\gtk\wizard.py", line 93, in _on_page_change
self._activate_encryption()
File "C:\Users\user2\AppData\Roaming\Gajim\Plugins\openpgp\gtk\wizard.py", line 83, in _activate_encryption
'set-encryption-%s' % self._chat_control.control_id)
AttributeError: 'ChatControl' object has no attribute 'control_id'