Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phala在ubuntu20.04运行后,将系统升级到22.04会导致无法加载之前的key文件信息 #1373

Open
wowvwow opened this issue Aug 30, 2023 · 2 comments

Comments

@wowvwow
Copy link

wowvwow commented Aug 30, 2023

当phala在ubuntu20.04运行后,生成key上链运行后,系统自动升级到ubuntu22.04后,phala对应的pruntime无法加载之前的key文件信息,报错信息如下:

Gramine detected the following insecure configurations:

  • loader.insecure__use_cmdline_argv = true (forwarding command-line args from untrusted host to the app)
  • sys.insecure__allow_eventfd = true (host-based eventfd is enabled)
  • sgx.allowed_files = [ ... ] (some files are passed through from untrusted host without verification)

Gramine will continue application execution, but this configuration must not be used in production!

Running in Gramine-SGX
mr_enclave : 0x613d6e739dd0b8fed8b5d1bd0a5d494d4c378d6090c6d709d409cbcefac7ad42
mr_signer : 0x815f42f11cf64430c30bab7816ba596a1da0130c3b028b673133a66cf9a3e0e6
isv_svn : 0x0000
isv_prod_id : 0x0000
git revision: 77dbf62
2023-08-30T20:52:58.150350Z INFO main: pruntime: Starting pruntime... sgx=true
2023-08-30T20:52:58.150378Z INFO main: pruntime: bench_cores=6
2023-08-30T20:52:58.150393Z INFO main: pruntime: init_args: InitArgs {
sealing_path: "/data/protected_files",
storage_path: "/data/storage_files",
init_bench: false,
version: "2.0.1",
git_revision: "77dbf62d40a77339436354266709af7ee10fa740-20230414102905",
enable_checkpoint: true,
checkpoint_interval: 3600,
remove_corrupted_checkpoint: true,
max_checkpoint_files: 2,
cores: 6,
public_port: None,
safe_mode_level: 0,
no_rcu: false,
}
thread 'main' panicked at 'Initialize Failed: Failed to load checkpoint: Failed to load persistent data

Caused by:
0: IoError(Permission denied (os error 13))
1: Permission denied (os error 13)', src/main.rs:161:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@wowvwow
Copy link
Author

wowvwow commented Aug 30, 2023

对应给出的错误原因,并不是有效的方式

@kvinwang
Copy link
Collaborator

The issue would be resolved by #1370. However, the already broken key can not be restored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants