agl / pond

Pond
BSD 3-Clause "New" or "Revised" License
911 stars 109 forks source link

Fatal error: tpm: layer: tpm, code: 0x12: No SRK #213

Open zookozcash opened 8 years ago

zookozcash commented 8 years ago

$ ./bin/client Jan 14 19:39:08: Fatal error: tpm: layer: tpm, code: 0x12: No SRK

Unfortunately, I don't know which version of pond this is (see https://github.com/agl/pond/issues/212).

This is a Google Chromebook Pixel 1, running Ubuntu.

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty

$ sudo lshw 2>&1 | grep -i tpm zooko@spark ~/playground/pond/gopkg $ echo $? 1

$ head -27 /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz stepping : 9 microcode : 0x12 cpu MHz : 1611.843 cache size : 3072 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt bugs : bogomips : 3592.01 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management:

ebfe commented 8 years ago

I can't help with this specific tpm error. But if you want to compile a version without tpm support:

$ go get -tags notpm github.com/agl/pond/client
Phoul commented 8 years ago

Have you done the usual tpm_takeownership1? This may be indicating that the SRK isn't set yet.

zookozcash commented 8 years ago

Thanks! I haven't done tpm_takeownership. I wasn't told to do when I followed these instructions: https://github.com/agl/pond

zookozcash commented 8 years ago

Sorry, I mean these instructions: https://pond.imperialviolet.org/

zookozcash commented 8 years ago

So… maybe the instructions should be updated to instruct people to do tpm_takeownership? And maybe the error message should be changed to instruct the user what to do or where to go for help? Or maybe instead pond should be changed to not require tpm?

zookozcash commented 8 years ago

Okay, I ran tpm_takeownership and afterward this error stopped happening and now pond starts normally. So, how about someone change it so that when this happens the error message says "Perhaps you need to run tpm_takeownership."? And someone change the instructions on https://pond.imperialviolet.org/ to tell people that they need to, or might need to, do this?

(Thanks, @Phoul.)