Error: "Could not initialize TCTI file" when calling tpm2_nvreadpublic
Chenxi Z
Hi,
I am using the tpm2 tools combination below:
tpm2-tss-2.3.2-fb1.x86_64
tpm2-abrmd-2.3.1-fb1.x86_64
tpm2-tools-4.1.1-fb1.x86_64
After initial installation, I got an error when running tpm2_nvreadpublic. (installation sequence tss -> abrmd -> tools) Could anyone please let me know how I can resolve this issue? thank you so much in advance.
~$ tpm2_nvreadpublic
** (process:3426476): CRITICAL **: 23:52:45.971: CreateConnection expected to return 1 handles, received 2 WARNING:tcti:src/tss2-tcti/tctildr.c:62:tcti_from_init() TCTI init for function 0x7f5a0003da10 failed with a0001 WARNING:tcti:src/tss2-tcti/tctildr.c:92:tcti_from_info() Could not initialize TCTI named: tcti-abrmd ERROR:tcti:src/tss2-tcti/tctildr-dl.c:150:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-tabrmd.so.0 0x1c00002:
... ...
if I do a restart "service tpm2-abrmd restart", then this issue can be resolved. I would like to resolve this without using the workaround.
Tadeusz Struk
Quoted 10 lines · Chenxi Z
~$
tpm2_nvreadpublic** (process:3426476): CRITICAL **: 23:52:45.971: CreateConnection expected to return 1 handles, received 2 WARNING:tcti:src/tss2-tcti/tctildr.c:62:tcti_from_init() TCTI init for function
0x7f5a0003da10failed with a0001 WARNING:tcti:src/tss2-tcti/tctildr.c:92:tcti_from_info() Could not initialize TCTI named: tcti-abrmd ERROR:tcti:src/tss2-tcti/tctildr-dl.c:150:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-tabrmd.so.00x1c00002:
... ...if I do a restart "service tpm2-abrmd restart", then this issue can be resolved. I would like to resolve this without using the workaround.
What do you get when you run "service tpm2-abrmd status" before calling tpm2_nvreadpublic?
Chenxi Z
Thanks Tadeusz for helping me look into this issue. Below is the log i got.
$ service tpm2-abrmd status
Redirecting to /bin/systemctl status tpm2-abrmd.service
● tpm2-abrmd.service - TPM2 Access Broker and Resource Management Daemon
Loaded: loaded (/etc/systemd/system/tpm2-abrmd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2020-06-01 01:05:27 PDT; 13h ago
Main PID: 3544664 (tpm2-abrmd)
IO: 0B read, 0B written
Tasks: 6
Memory: 2.0M
CPU: 4.194s
CGroup: /system.slice/tpm2-abrmd.service
└─3544664 /usr/sbin/tpm2-abrmdWarning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.