Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1684945 - [abrt] yubikey-manager: __init__(): PCSCContext.py:40:__init__:smartcard.pcsc.PCSCExceptions.EstablishContextException: 'Failure to establish context: Service not available.'
Summary: [abrt] yubikey-manager: __init__(): PCSCContext.py:40:__init__:smartcard.pcsc...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: yubikey-manager
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Seth Jennings
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:53718569e207fa1478d7c48eb0a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-03 23:57 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2019-03-03 23:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
File: backtrace (deleted)
2019-03-03 23:57 UTC, Dominik 'Rathann' Mierzejewski
no flags Details
File: cgroup (deleted)
2019-03-03 23:57 UTC, Dominik 'Rathann' Mierzejewski
no flags Details
File: cpuinfo (deleted)
2019-03-03 23:57 UTC, Dominik 'Rathann' Mierzejewski
no flags Details
File: environ (deleted)
2019-03-03 23:57 UTC, Dominik 'Rathann' Mierzejewski
no flags Details
File: mountinfo (deleted)
2019-03-03 23:57 UTC, Dominik 'Rathann' Mierzejewski
no flags Details
File: namespaces (deleted)
2019-03-03 23:57 UTC, Dominik 'Rathann' Mierzejewski
no flags Details
File: open_fds (deleted)
2019-03-03 23:57 UTC, Dominik 'Rathann' Mierzejewski
no flags Details

Description Dominik 'Rathann' Mierzejewski 2019-03-03 23:57:20 UTC
Description of problem:
Invoke ykman list with pcscd.service not running.

Version-Release number of selected component:
yubikey-manager-2.0.0-3.gite17b3de.fc29

Additional info:
reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 /usr/bin/ykman list
crash_function: __init__
exception_type: smartcard.pcsc.PCSCExceptions.EstablishContextException
executable:     /usr/bin/ykman
interpreter:    python3-3.7.2-4.fc29.x86_64
kernel:         4.20.3-200.fc29.x86_64
runlevel:       N 5
type:           Python3
uid:            5242

Truncated backtrace:
PCSCContext.py:40:__init__:smartcard.pcsc.PCSCExceptions.EstablishContextException: 'Failure to establish context: Service not available.'

Traceback (most recent call last):
  File "/usr/bin/ykman", line 11, in <module>
    load_entry_point('yubikey-manager==2.0.0', 'console_scripts', 'ykman')()
  File "/usr/lib/python3.7/site-packages/ykman/cli/__main__.py", line 246, in main
    cli(obj={})
  File "/usr/lib/python3.7/site-packages/click/core.py", line 721, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.7/site-packages/click/core.py", line 1065, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.7/site-packages/click/core.py", line 894, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/ykman/cli/__main__.py", line 206, in list_keys
    for dev in list_devices():
  File "/usr/lib/python3.7/site-packages/ykman/descriptor.py", line 152, in list_devices
    for d in _list_drivers(transports):
  File "/usr/lib/python3.7/site-packages/ykman/descriptor.py", line 138, in _list_drivers
    for dev in open_ccid():
  File "/usr/lib/python3.7/site-packages/ykman/driver_ccid.py", line 322, in open_devices
    readers = _list_readers()
  File "/usr/lib/python3.7/site-packages/ykman/driver_ccid.py", line 312, in _list_readers
    return System.readers()
  File "/usr/lib64/python3.7/site-packages/smartcard/System.py", line 42, in readers
    return smartcard.reader.ReaderFactory.ReaderFactory.readers(groups)
  File "/usr/lib64/python3.7/site-packages/smartcard/reader/ReaderFactory.py", line 58, in readers
    zreaders += fm(groups)
  File "/usr/lib64/python3.7/site-packages/smartcard/pcsc/PCSCReader.py", line 108, in readers
    hcontext = PCSCContext().getContext()
  File "/usr/lib64/python3.7/site-packages/smartcard/pcsc/PCSCContext.py", line 53, in __init__
    PCSCContext.instance = PCSCContext.__PCSCContextSingleton()
  File "/usr/lib64/python3.7/site-packages/smartcard/pcsc/PCSCContext.py", line 40, in __init__
    raise EstablishContextException(hresult)
smartcard.pcsc.PCSCExceptions.EstablishContextException: 'Failure to establish context: Service not available.'

Local variables in innermost frame:
self: <smartcard.pcsc.PCSCContext.PCSCContext.__PCSCContextSingleton object at 0x7f0a40b887b8>
hresult: 2148532253

Comment 1 Dominik 'Rathann' Mierzejewski 2019-03-03 23:57:22 UTC
Created attachment 1540424 [details]
File: backtrace

Comment 2 Dominik 'Rathann' Mierzejewski 2019-03-03 23:57:24 UTC
Created attachment 1540425 [details]
File: cgroup

Comment 3 Dominik 'Rathann' Mierzejewski 2019-03-03 23:57:25 UTC
Created attachment 1540426 [details]
File: cpuinfo

Comment 4 Dominik 'Rathann' Mierzejewski 2019-03-03 23:57:26 UTC
Created attachment 1540427 [details]
File: environ

Comment 5 Dominik 'Rathann' Mierzejewski 2019-03-03 23:57:27 UTC
Created attachment 1540428 [details]
File: mountinfo

Comment 6 Dominik 'Rathann' Mierzejewski 2019-03-03 23:57:28 UTC
Created attachment 1540429 [details]
File: namespaces

Comment 7 Dominik 'Rathann' Mierzejewski 2019-03-03 23:57:29 UTC
Created attachment 1540430 [details]
File: open_fds


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