Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionMiroslav Vadkerti
2013-01-28 10:45:29 UTC
Description of problem:
By default there is no token installed with opencryptoki in RHEL7 (opencryptoki-{swtok,tpmtok}. This confuses users as the pkcsslotd service is unable to start without a token and doesn't give a good hint what is the problem:
# service pkcsslotd status
Redirecting to /bin/systemctl status pkcsslotd.service
pkcsslotd.service - Daemon which manages cryptographic hardware tokens for the openCryptoki package
Loaded: loaded (/usr/lib/systemd/system/pkcsslotd.service; disabled)
Active: failed (Result: exit-code) since Mon 2013-01-28 10:52:57 CET; 31min ago
Process: 7113 ExecStart=/usr/sbin/pkcsslotd (code=exited, status=1/FAILURE)
Process: 7108 ExecStartPre=/usr/sbin/pkcs11_startup (code=exited, status=0/SUCCESS)
Jan 28 10:52:57 dhcp-25-79.brq.redhat.com systemd[1]: Starting Daemon which manages cryptographic hardware tokens for the openCryptoki package...
Jan 28 10:52:57 dhcp-25-79.brq.redhat.com pkcsslotd[7113]: Cannot open file /var/lib/opencryptoki/pk_config_data
Jan 28 10:52:57 dhcp-25-79.brq.redhat.com pkcsslotd[7113]: Please run /usr/sbin/pkcs11_startup
Jan 28 10:52:57 dhcp-25-79.brq.redhat.com pkcsslotd[7113]: ERROR pkcsslotd-log.o[7113.-1968515264]: Failed to read slot database.
Jan 28 10:52:57 dhcp-25-79.brq.redhat.com pkcsslotd[7113]: Failed to read slot database.
Jan 28 10:52:57 dhcp-25-79.brq.redhat.com systemd[1]: pkcsslotd.service: control process exited, code=exited status=1
Jan 28 10:52:57 dhcp-25-79.brq.redhat.com systemd[1]: Failed to start Daemon which manages cryptographic hardware tokens for the openCryptoki package.
Jan 28 10:52:57 dhcp-25-79.brq.redhat.com systemd[1]: Unit pkcsslotd.service entered failed state
Version-Release number of selected component (if applicable):
opencryptoki-2.4.2-2.el7
How reproducible:
100%
Steps to Reproduce:
1. Install opencryptoki
2. service pkcsslotd start
3. service pkcsslotd status
Actual results:
Service fails to start
Expected results:
Service starts
Additional info:
AFAIK in RHEL6 the soft token is not in separate subpackage so users don't hit this behavior.
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.
Description of problem: By default there is no token installed with opencryptoki in RHEL7 (opencryptoki-{swtok,tpmtok}. This confuses users as the pkcsslotd service is unable to start without a token and doesn't give a good hint what is the problem: # service pkcsslotd status Redirecting to /bin/systemctl status pkcsslotd.service pkcsslotd.service - Daemon which manages cryptographic hardware tokens for the openCryptoki package Loaded: loaded (/usr/lib/systemd/system/pkcsslotd.service; disabled) Active: failed (Result: exit-code) since Mon 2013-01-28 10:52:57 CET; 31min ago Process: 7113 ExecStart=/usr/sbin/pkcsslotd (code=exited, status=1/FAILURE) Process: 7108 ExecStartPre=/usr/sbin/pkcs11_startup (code=exited, status=0/SUCCESS) Jan 28 10:52:57 dhcp-25-79.brq.redhat.com systemd[1]: Starting Daemon which manages cryptographic hardware tokens for the openCryptoki package... Jan 28 10:52:57 dhcp-25-79.brq.redhat.com pkcsslotd[7113]: Cannot open file /var/lib/opencryptoki/pk_config_data Jan 28 10:52:57 dhcp-25-79.brq.redhat.com pkcsslotd[7113]: Please run /usr/sbin/pkcs11_startup Jan 28 10:52:57 dhcp-25-79.brq.redhat.com pkcsslotd[7113]: ERROR pkcsslotd-log.o[7113.-1968515264]: Failed to read slot database. Jan 28 10:52:57 dhcp-25-79.brq.redhat.com pkcsslotd[7113]: Failed to read slot database. Jan 28 10:52:57 dhcp-25-79.brq.redhat.com systemd[1]: pkcsslotd.service: control process exited, code=exited status=1 Jan 28 10:52:57 dhcp-25-79.brq.redhat.com systemd[1]: Failed to start Daemon which manages cryptographic hardware tokens for the openCryptoki package. Jan 28 10:52:57 dhcp-25-79.brq.redhat.com systemd[1]: Unit pkcsslotd.service entered failed state Version-Release number of selected component (if applicable): opencryptoki-2.4.2-2.el7 How reproducible: 100% Steps to Reproduce: 1. Install opencryptoki 2. service pkcsslotd start 3. service pkcsslotd status Actual results: Service fails to start Expected results: Service starts Additional info: AFAIK in RHEL6 the soft token is not in separate subpackage so users don't hit this behavior.