Public bug reported:
during boot the opencryptoki service fails to start:
(RaspberryPi2)ubuntu@localhost:~$ sudo systemctl status opencryptoki.service
● opencryptoki.service - LSB: starts pkcsslotd
Loaded: loaded (/etc/init.d/opencryptoki)
Active: failed (Result: exit-code) since Fri 2015-09-25 20:52:02 UTC; 16h ago
Docs: man:systemd-sysv-generator(8)
Process: 646 ExecStart=/etc/init.d/opencryptoki start (code=exited,
status=1/FAILURE)
Sep 25 20:52:02 localhost.localdomain opencryptoki[646]: chgrp: cannot access
‘/var/lib/opencryptoki/swtok/TOK_OBJ’: No such file or directory
Sep 25 20:52:02 localhost.localdomain opencryptoki[646]: /usr/sbin/pkcs_slot:
line 496: /var/lib/opencryptoki/pk_config_data: Read-only file system
Sep 25 20:52:02 localhost.localdomain opencryptoki[646]: chmod: changing
permissions of ‘.’: Read-only file system
Sep 25 20:52:02 localhost.localdomain opencryptoki[646]: Cannot open file
/var/lib/opencryptoki/pk_config_data
Sep 25 20:52:02 localhost.localdomain opencryptoki[646]: Please run
/usr/sbin/pkcs11_startup
Sep 25 20:52:02 localhost.localdomain opencryptoki[646]: ERROR
pkcsslotd[689.1996083200]: Failed to read slot database.
Sep 25 20:52:02 localhost.localdomain systemd[1]: opencryptoki.service: control
process exited, code=exited status=1
Sep 25 20:52:02 localhost.localdomain systemd[1]: Failed to start LSB: starts
pkcsslotd.
Sep 25 20:52:02 localhost.localdomain systemd[1]: Unit opencryptoki.service
entered failed state.
Sep 25 20:52:02 localhost.localdomain systemd[1]: opencryptoki.service failed.
(RaspberryPi2)ubuntu@localhost:~$
adding /var/lib/opencryptok to /etc/system-image/writable-paths like:
/var/lib/opencryptoki auto
persistent transition none
makes /usr/sbin/pkcsslotd start properly ...
** Affects: snappy
Importance: Undecided
Status: New
** Affects: ubuntu-core-config (Ubuntu)
Importance: Undecided
Status: New
** Also affects: ubuntu-core-config (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1500020
Title:
/var/lib/opencryptoki needs to be in /etc/system-image/writable-paths
To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1500020/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs