You are not logged in.

#1 2014-04-07 09:41:42

Depado
Member
Registered: 2013-02-28
Posts: 49

Systemd and Tmpfiles : Fail to start because of opencryptoki

Hi,

I got an error message on boot saying that tmpfiles fails to start. 

systemctl --failed
● systemd-tmpfiles-clean.service     loaded failed failed Cleanup of Temporary Directories
● systemd-tmpfiles-setup-dev.service loaded failed failed Create Static Device Nodes in /dev
● systemd-tmpfiles-setup.service     loaded failed failed Create Volatile Files and Directories

sudo systemctl status systemd-tmpfiles-setup
● systemd-tmpfiles-setup.service - Create Volatile Files and Directories
   Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; static)
   Active: failed (Result: exit-code) since lun. 2014-04-07 11:06:29 CEST; 22min ago
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)
  Process: 371 ExecStart=/usr/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=1/FAILURE)
 Main PID: 371 (code=exited, status=1/FAILURE)

avril 07 11:06:29 silence systemd-tmpfiles[371]: [/usr/lib/tmpfiles.d/opencryptoki.conf:39] Unknown modifier 'stdll'
avril 07 11:06:29 silence systemd-tmpfiles[371]: [/usr/lib/tmpfiles.d/opencryptoki.conf:40] Syntax error.
avril 07 11:06:29 silence systemd-tmpfiles[371]: [/usr/lib/tmpfiles.d/opencryptoki.conf:42] Unknown modifier 'slot'
avril 07 11:06:29 silence systemd-tmpfiles[371]: [/usr/lib/tmpfiles.d/opencryptoki.conf:43] Syntax error.
avril 07 11:06:29 silence systemd-tmpfiles[371]: [/usr/lib/tmpfiles.d/opencryptoki.conf:44] Unknown modifier 'stdll'
avril 07 11:06:29 silence systemd-tmpfiles[371]: [/usr/lib/tmpfiles.d/opencryptoki.conf:45] Unknown modifier 'confname'
avril 07 11:06:29 silence systemd-tmpfiles[371]: [/usr/lib/tmpfiles.d/opencryptoki.conf:46] Syntax error.
avril 07 11:06:29 silence systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE
avril 07 11:06:29 silence systemd[1]: Failed to start Create Volatile Files and Directories.
avril 07 11:06:29 silence systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state.

Inside /usr/lib/tmpfiles.d there is indeed a opencryptoki.conf that is a symobolic link like this :
lrwxrwxrwx 1 root root   35  4 avril 11:06 opencryptoki.conf -> /etc/opencryptoki/opencryptoki.conf

And finally here is the content of my opencryptoki.conf

version opencryptoki-3.0

# The following defaults are defined:
#	hwversion = 0.0
# 	firmwareversion = 0.0
#	description = Linux
#	manufacturer = IBM
#
# The slot definitions below may be overriden and/or customized.
# For example:
#	slot 0
#	{
#	   stdll = libpkcs11_cca.so
#	   description = "OCK CCA Token"
#	   manufacturer = "MyCompany Inc."
#	   hwversion = 2.32
#          firmwareversion = 1.0
#	}
#
# See man(5) opencryptoki.conf for further information.
#
slot 0
{
stdll = libpkcs11_tpm.so
}

slot 1
{
stdll = libpkcs11_ica.so
}

slot 2
{
stdll = libpkcs11_cca.so
}

slot 3
{
stdll = libpkcs11_sw.so
}

slot 4
{
stdll = libpkcs11_ep11.so
confname = ep11tok.conf
}

There is no .pacnew in this folder, so I guess something broke opencryptoki. That doesn't seem to cause me troubles right now but right now I failed to start my httpd service because of a lack of disk space. I guess that is not a good thing.

Could someone help me ?

Offline

#2 2014-04-07 10:35:31

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Systemd and Tmpfiles : Fail to start because of opencryptoki

It looks like a configuration file for opencryptoki, unrelated to tmpfiles.d. The PKGBUILD creates that symlink, but that doesn't make sense. You should add a comment to the AUR page. There's also an older comment about the need for a tmpfiles.d file to create a certain directory; perhaps that's somehow related.

Offline

#3 2014-04-07 10:59:24

Depado
Member
Registered: 2013-02-28
Posts: 49

Re: Systemd and Tmpfiles : Fail to start because of opencryptoki

I really don't know where to search now. Do I have to look at the aur package opencryptoki or tmpfiles ?

Offline

#4 2014-05-08 16:43:45

youngian
Member
Registered: 2012-08-06
Posts: 26

Re: Systemd and Tmpfiles : Fail to start because of opencryptoki

Agree with Raynman, it doesn't make sense for that link to be there. That file is supposed to get a different sort of config (see `man tmpfiles.d`). I would just try:

sudo rm /usr/lib/tmpfiles.d/opencryptoki.conf

It's not a 100% kosher solution, but it should fix the issue for now, and hopefully if the AUR package gets an update they will fix that problem.

But mostly I'm posting because I wanted to say thanks for sharing all of your troubleshooting steps! I had an unrelated problem with my tmpfiles, searching brought me here, and your steps helped me both confirm that I had a different issue and fix my own issue.

Offline

#5 2014-07-11 00:32:49

tritron4
Member
Registered: 2012-04-14
Posts: 153

Re: Systemd and Tmpfiles : Fail to start because of opencryptoki

I wonder if the aur package could create pkcs11 group

Offline

Board footer

Powered by FluxBB