confidential-containers / trustee

Attestation and Secret Delivery Components
Apache License 2.0
59 stars 81 forks source link

kbs and grpc-as service #487

Open ccxiaop opened 3 weeks ago

ccxiaop commented 3 weeks ago

On the physical machine, I run both kbs and grpc-as services. The following error is reported. How can I solve this problem? thread 'main' panicked at attestation-service/src/rvps/store/local_fs/mod.rs:31:28: Failed to create LocalFs Store.: IO error: could not acquire lock on "/opt/confidential-containers/attestation-service/reference_values/db": Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" } note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Xynnn007 commented 3 weeks ago

Try to use grpc-as version kbs and this would avoid the race condition.

Here is a quick deployment using docker-compose. https://github.com/confidential-containers/trustee/blob/main/kbs/docs/cluster.md