Skip to content

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

@wowvwow

Description

@wowvwow

当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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions