RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1325993 - Gkr-Message: secret service operation failed: The secret was transferred or encrypted in an invalid way.
Summary: Gkr-Message: secret service operation failed: The secret was transferred or e...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnome-keyring
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: David King
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-11 14:22 UTC by Vladimir Benes
Modified: 2017-08-01 23:02 UTC (History)
11 users (show)

Fixed In Version: gnome-keyring-3.20.0-2.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1434474 (view as bug list)
Environment:
Last Closed: 2017-08-01 23:02:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
reproducer (1.36 KB, application/x-bzip)
2016-07-12 14:09 UTC, zzambers
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 769666 0 None None None 2016-08-13 06:15:07 UTC
GNOME Bugzilla 778357 0 None None None 2017-03-13 15:00:57 UTC
Launchpad 1221955 0 None None None 2016-08-13 06:14:39 UTC
Red Hat Product Errata RHEA-2017:2159 0 normal SHIPPED_LIVE gnome-keyring bug fix update 2017-08-01 19:40:29 UTC

Description Vladimir Benes 2016-04-11 14:22:39 UTC
Description of problem:
I can see from time to time this error. It's triggered by evolution and can be solved by restarting application. 

Version-Release number of selected component (if applicable):
gnome-keyring-3.14.0-1.el7.x86_64

How reproducible:
from time to time (let's say a few %) 

Steps to Reproduce:
according to https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1221955:
A good way to reproduce could be to write a code that loops through subsequent gnome_keyring_find_password_sync() requests.

Comment 1 Milan Crha 2016-04-11 14:28:49 UTC
I can confirm that I can see this issue with evolution also in the Fedora 23, with:
   gnome-keyring-3.18.3-1.fc23.x86_64
   libsecret-0.18.3-1.fc23.x86_64

It's usually enough to stop the evolution and run it again and the error is gone. It sometimes seemed that the error usually comes up after login, like if there was an issue to connect to the gnome-keyring-deamon from the libsecret, but as I get this error also after running the system for a long time, then it can be something very different.

I also do not know how to reliably reproduce this. My guess is that the libsecret fails to talk over D-Bus to the gnome-keyring-daemon for some reason and instead of reconnecting to it, it simply fails with the "The secret was transferred or encrypted in an invalid way" error message on the console of the application.

Comment 3 zzambers 2016-07-12 14:03:20 UTC
I am also facing this issue. I have seen this issue on fedora 23, rhel-7 (gnome-keyring, libsecret). I have also made a reproducer.


Reproducer
  requirements (on fedora 23): make, gcc, pkgconfig, libsecret, libsecret-devel





While trying to reproduce issue I found that I was not able to reproduce issue when performing libsecret operations in loop, but issue is easily reproduceable by running whole program in loop. Based on that I would guess there is some race condition during initialization.


In my case message is:

** Message: Remote error from secret service: org.freedesktop.DBus.Error.Failed: Couldn't create item: The secret was transferred or encrypted in an invalid way.

But I have also seen other similar (slightly different) messages for this issue. (exact message probably depends on version/system/operation which failed due to issue)

Comment 4 zzambers 2016-07-12 14:09:51 UTC
Created attachment 1178912 [details]
reproducer

Reproducer:

requirements (on fedora 23): make, gcc, pkgconfig, libsecret, libsecret-devel

use:
  make
  make test

( test runs 1000 iterations (runs of reproducer), stops if issue happens)

Comment 6 Matthias Clasen 2016-09-13 13:28:50 UTC
I'd like to argue that this shouldn't be a blocker. It is a sporadic failure, it is not new, it has been seen in many distributions. We will look into it, but given that there's no upstream fix for it, it may not be resolved by Sep 21.

Comment 8 Pacho Ramos 2016-09-30 22:50:49 UTC
Was this reported to upstream? I am also suffering this from time to time on Gentoo :/

Comment 9 Vladimir Benes 2016-11-03 09:29:43 UTC
(In reply to Pacho Ramos from comment #8)
> Was this reported to upstream? I am also suffering this from time to time on
> Gentoo :/

yes it was:
http://bugzilla.gnome.org/show_bug.cgi?id=769666
https://bugs.launchpad.net/bugs/1221955

Comment 11 zzambers 2016-12-06 15:08:30 UTC
oh, I am sorry, I accidentally added comment to wrong bug

Comment 12 Milan Crha 2017-03-13 15:00:58 UTC
There had been merged a fix for this at [1] two weeks ago. I guess it can be backported. What do you think, David?

[1] https://bugzilla.gnome.org/show_bug.cgi?id=778357

Comment 13 Vladimir Benes 2017-03-13 18:14:34 UTC
(In reply to Milan Crha from comment #12)
> There had been merged a fix for this at [1] two weeks ago. I guess it can be
> backported. What do you think, David?
> 
> [1] https://bugzilla.gnome.org/show_bug.cgi?id=778357

YES, PLEASE!!

Comment 15 Matěj Cepl 2017-05-31 16:16:04 UTC
Rebase done.

Comment 16 errata-xmlrpc 2017-08-01 23:02:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:2159


Note You need to log in before you can comment on or make changes to this bug.