tpm2.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [tpm2] Re: Error: "Could not initialize TCTI file" when calling tpm2_nvreadpublic
@ 2020-06-01 16:29 Tadeusz Struk
  0 siblings, 0 replies; 2+ messages in thread
From: Tadeusz Struk @ 2020-06-01 16:29 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 778 bytes --]

On 6/1/20 12:19 AM, Chenxi Z wrote:
> ~$ 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.

What do you get when you run "service tpm2-abrmd status" before calling tpm2_nvreadpublic?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tpm2] Re: Error: "Could not initialize TCTI file" when calling tpm2_nvreadpublic
@ 2020-06-01 21:32 Chenxi Z
  0 siblings, 0 replies; 2+ messages in thread
From: Chenxi Z @ 2020-06-01 21:32 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 733 bytes --]

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-abrmd

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-01 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-01 16:29 [tpm2] Re: Error: "Could not initialize TCTI file" when calling tpm2_nvreadpublic Tadeusz Struk
  -- strict thread matches above, loose matches on Subject: below --
2020-06-01 21:32 Chenxi Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).