Bug 1408952 - Existing keyring inaccessible after upgrade
Summary: Existing keyring inaccessible after upgrade
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: python-keyring
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christopher Tubbs
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-28 12:00 UTC by Adam Huffman
Modified: 2023-09-14 03:36 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:23:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Huffman 2016-12-28 12:00:59 UTC
Description of problem:
After upgrading a system to Fedora 25, I'm no longer able to gain access to a Python keyring used by EasyBuild, for integration with GitHub. 

Version-Release number of selected component (if applicable):
9.0-5

How reproducible:

Every time

Steps to Reproduce:
1. eb --install-latest-eb-release
2. 
3.

Actual results:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/adam/.local/easybuild/software/EasyBuild/3.0.1/lib/python2.7/site-packages/easybuild_framework-3.0.1-py2.7.egg/easybuild/main.py", line 443, in <module>
    main()
  File "/home/adam/.local/easybuild/software/EasyBuild/3.0.1/lib/python2.7/site-packages/easybuild_framework-3.0.1-py2.7.egg/easybuild/main.py", line 295, in main
    eb_file = find_easybuild_easyconfig()
  File "/home/adam/.local/easybuild/software/EasyBuild/3.0.1/lib/python2.7/site-packages/easybuild_framework-3.0.1-py2.7.egg/easybuild/tools/github.py", line 1269, in find_easybuild_easyconfig
    dev_repo = download_repo(GITHUB_EASYCONFIGS_REPO, branch='develop', account=GITHUB_EB_MAIN)
  File "/home/adam/.local/easybuild/software/EasyBuild/3.0.1/lib/python2.7/site-packages/easybuild_framework-3.0.1-py2.7.egg/easybuild/tools/github.py", line 293, in download_repo
    latest_commit_sha = fetch_latest_commit_sha(repo, account, branch)
  File "/home/adam/.local/easybuild/software/EasyBuild/3.0.1/lib/python2.7/site-packages/easybuild_framework-3.0.1-py2.7.egg/easybuild/tools/github.py", line 255, in fetch_latest_commit_sha
    github_user=github_user, token=token, per_page=GITHUB_MAX_PER_PAGE)
  File "/home/adam/.local/easybuild/software/EasyBuild/3.0.1/lib/python2.7/site-packages/easybuild_framework-3.0.1-py2.7.egg/easybuild/tools/github.py", line 230, in github_api_get_request
    token = fetch_github_token(github_user)
  File "/home/adam/.local/easybuild/software/EasyBuild/3.0.1/lib/python2.7/site-packages/easybuild_framework-3.0.1-py2.7.egg/easybuild/tools/github.py", line 1194, in fetch_github_token
    return GithubToken(user).token
  File "/home/adam/.local/easybuild/software/EasyBuild/3.0.1/lib/python2.7/site-packages/easybuild_framework-3.0.1-py2.7.egg/easybuild/tools/github.py", line 1174, in __init__
    self.token = keyring.get_password(KEYRING_GITHUB_TOKEN, user)
  File "/usr/lib/python2.7/site-packages/keyring/core.py", line 42, in get_password
    return _keyring_backend.get_password(service_name, username)
  File "/usr/lib/python2.7/site-packages/keyring/backends/SecretService.py", line 51, in get_password
    collection = self.get_default_collection()
  File "/usr/lib/python2.7/site-packages/keyring/backends/SecretService.py", line 45, in get_default_collection
    raise InitError("Failed to unlock the collection!")
keyring.errors.InitError: Failed to unlock the collection!

Expected results:

Keyring is unlocked and the application can connect to GitHub.

Additional info:

Comment 1 Christopher Tubbs 2016-12-28 22:52:31 UTC
EasyBuild does not appear packaged for Fedora. Do you have any links or instructions for using it, so I can try to reproduce the issue?

Comment 2 Adam Huffman 2016-12-29 11:06:12 UTC
Yes, there are installation instructions here:

http://easybuild.readthedocs.io/en/latest/Installation.html

I've opened a bug with EasyBuild too, referring to this one, in case it's a problem in the way that they've been using the keyring.

Comment 3 Christopher Tubbs 2017-04-10 23:52:58 UTC
I'm unable to reproduce this bug. I'm preparing an update to version 10.3.2 (bz#1348966). Please check to see if that fixes your problem.

Comment 4 Adam Huffman 2017-04-11 09:38:02 UTC
Just tried with that update and I see this error:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/adam/.local/easybuild/software/EasyBuild/3.1.2/lib/python2.7/site-packages/easybuild_framework-3.1.2-py2.7.egg/easybuild/main.py", line 453, in <module>
    main()
  File "/home/adam/.local/easybuild/software/EasyBuild/3.1.2/lib/python2.7/site-packages/easybuild_framework-3.1.2-py2.7.egg/easybuild/main.py", line 296, in main
    eb_file = find_easybuild_easyconfig()
  File "/home/adam/.local/easybuild/software/EasyBuild/3.1.2/lib/python2.7/site-packages/easybuild_framework-3.1.2-py2.7.egg/easybuild/tools/github.py", line 1274, in find_easybuild_easyconfig
    dev_repo = download_repo(GITHUB_EASYCONFIGS_REPO, branch='develop', account=GITHUB_EB_MAIN)
  File "/home/adam/.local/easybuild/software/EasyBuild/3.1.2/lib/python2.7/site-packages/easybuild_framework-3.1.2-py2.7.egg/easybuild/tools/github.py", line 293, in download_repo
    latest_commit_sha = fetch_latest_commit_sha(repo, account, branch)
  File "/home/adam/.local/easybuild/software/EasyBuild/3.1.2/lib/python2.7/site-packages/easybuild_framework-3.1.2-py2.7.egg/easybuild/tools/github.py", line 255, in fetch_latest_commit_sha
    github_user=github_user, token=token, per_page=GITHUB_MAX_PER_PAGE)
  File "/home/adam/.local/easybuild/software/EasyBuild/3.1.2/lib/python2.7/site-packages/easybuild_framework-3.1.2-py2.7.egg/easybuild/tools/github.py", line 232, in github_api_get_request
    url = request_f(RestClient(GITHUB_API_URL, username=github_user, token=token))
  File "/home/adam/.local/easybuild/software/EasyBuild/3.1.2/lib/python2.7/site-packages/vsc_base-2.5.7-py2.7.egg/vsc/utils/rest.py", line 284, in __init__
    self.client = Client(*args, **kwargs)
  File "/home/adam/.local/easybuild/software/EasyBuild/3.1.2/lib/python2.7/site-packages/vsc_base-2.5.7-py2.7.egg/vsc/utils/rest.py", line 99, in __init__
    raise TypeError("You need a password or an OAuth token to authenticate as " + username)
TypeError: You need a password or an OAuth token to authenticate as verdurin

Comment 5 Christopher Tubbs 2017-04-11 15:32:57 UTC
That new stack trace doesn't mention keyring at all. I'm inclined to think that this has nothing to do with keyring. What do you think? Should this be closed for now, and dealt with as an EasyBuild bug?

Comment 6 Fedora End Of Life 2017-11-16 19:49:59 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2017-12-12 10:23:11 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 8 Red Hat Bugzilla 2023-09-14 03:36:44 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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