We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug
binary
0.4.0b0
Ubuntu 20.04.6 LTS
3.8.10
No response
大佬您好,我在在按照仿真模式配置trustflow时,步骤四生成完psi_task.json之后,运行命令:
./main --plat=sim --enable_console_logger=true --enable_capsule_tls=false --entry_task_config_path=/host/integration_test/psi_task.json
遇到错误party id is not exist,请问应该怎么解决呢?
root@hpclab03:/home/teeapp/sim/teeapps# ./main --plat=sim --enable_console_logger=true --enable_capsule_tls=false --entry_task_config_path=/host/integration_test/psi_task.json 2024-12-07 12:55:31.490 [info] [log.cc:SetupLogger:81] Initialize logger app_log succeed. 2024-12-07 12:55:31.490 [info] [log.cc:SetupLogger:81] Initialize logger monitor_log succeed. 2024-12-07 12:55:31.490 [info] [app.cc:App:95] Start parsing Local Task Config... 2024-12-07 12:55:31.493 [info] [app.cc:App:101] Parsing Local Task Config succeed 2024-12-07 12:55:31.781 [info] [app.cc:App:126] Gen teeapps private key and certificate success 2024-12-07 12:55:31.781 [info] [app.cc:App:131] Create Capsule Manager Client success 2024-12-07 12:55:31.781 [info] [app.cc:PreProcess:270] Starting pre-processing, component preprocessing-psi-0.0.1... 2024-12-07 12:55:31.781 [info] [app.cc:GetInputDataKeys:209] Try to get Ra Cert from Capsule Manager 2024-12-07 12:55:31.782 [info] [app.cc:GetInputDataKeys:211] Got Ra Cert 2024-12-07 12:55:31.782 [info] [app.cc:GetInputDataKeys:212] Try to get data keys from Capsule Manager 2024-12-07 12:55:31.797 [error] [app.cc:Run:140] Running TEE application failed, error message: [Enforce fail at teeapps/framework/capsule_manager_client.cc:42] status.code() == secretflowapis::v2::Code::OK. Call service failed, error code: 13, message: err code: Not found; err detail: party id is not existed; location: [line = 371, file = capsule-manager/src/storage/in_memory_storage.rs] Stacktrace: #0 teeapps::framework::CapsuleManagerClient::GetDataKeys()+0x55ee7ebe4fd6 #1 teeapps::framework::App::GetInputDataKeys()+0x55ee7ebd9414 #2 teeapps::framework::App::PreProcess()+0x55ee7ebda578 #3 teeapps::framework::App::Run()+0x55ee7ebdc46f #4 main+0x55ee7eb89b42 #5 (unknown)+0x7f21ea788d90 2024-12-07 12:55:31.797 [error] [main.cc:main:53] [teeapps/framework/app.cc:144] Exiting application with exception task process error: task execution error:
alice.yaml相关的配置如下:
# Copyright 2023 Ant Group Co., Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # (required) str, capsule-manager's ip:port host: "127.0.0.1:8888" # (required) str, capsule-manager's tee platform type, sim/sgx/tdx/csv tee_plat: "sim" # (optional) capsule-manager's identity constraints tee_constraints: # (optional) str, The measurement of TEE implement internal stuff mr_plat: # (optional) str, The measurement of TEE instance boot time stuff mr_boot: # (optional) str, The static measurement of trust application when loading the code mr_ta: # (optional) str, The measurement or other identity of the trust application signer mr_signer: # (optional) str, root ca cert path root_ca_file: # (optional) str, sdk's private key path private_key_file: # (optional) List[str], sdk's cert chain path cert_chain_file: common: # (required) str, should be generated from cert party_id: "B2VFQXYW5WPUFQHH4Z6RJDLWCVZXS2NLK4RYSIYMVPFGVTC36HJQ" # (required) List[str], cert chain files, the order is [cert, mid_ca_cert, root_ca_cert] # file num can be 1 if the cert is self-signed cert_pems_file: # (required) str, keep it be "RSA" here - alice.crt scheme: "RSA" # (required) str, file contains private key private_key_file: alice.key register_data_keys: data_keys: # (required) str - resource_uri: breast_cancer_alice # (required) str data_key_b64: "oPG1IB8DyO/Lbwnwz40dzg==" get_data_policys: # (required) str scope: register_data_policy: # (required) str scope: default # (required) str data_uuid: breast_cancer_alice rules: # (required) str - rule_id: alice_rule_id_1 # (required) List[str] grantee_party_ids: - B2VFQXYW5WPUFQHH4Z6RJDLWCVZXS2NLK4RYSIYMVPFGVTC36HJQ # alice - 2KEPHIGYPFFANWGMLBWQ6577374ZDHPHOZFUEERWNL4AXTDPCWPQ # carol # (required) List[str] columns: - id - mean radius - mean texture - mean perimeter - mean area - mean smoothness # (optional) List[str] global_constraints: # (required) List[dict] op_constraints: # (required) str - op_name: psi # (optional) List[str] constraints: - # (required) str op_name: train_test_split # (optional) List[str] constraints: - # (required) str op_name: xgb_train # (optional) List[str] constraints: - # (required) str op_name: xgb_predict # (optional) List[str] constraints: - # (required) str op_name: biclassification_eval # (optional) List[str] constraints: delete_data_policy: # (required) str scope: # (required) str data_uuid: add_data_rule: # (required) str scope: # (required) str data_uuid: # (required) dict rule: # (required) str rule_id: # (required) List[str] grantee_party_ids: # (required) List[str] columns: # (optional) List[str] global_constraints: # (required) List[dict] op_constraints: # (required) str - op_name: # (optional) List[str] constraints: delete_data_rule: # (required) str scope: # (required) str data_uuid: # (required) str rule_id: get_export_data_key_b64: # (required) str party_id: # (required) str resource_uri: # (required) str data_export_certificate_file: delete_data_key: # (required) str resource_uri:
The text was updated successfully, but these errors were encountered:
psi.json中要求alice和bob两者的resourse_uri,如果其中之一没有的话可能会引发后面执行时party_id的报错,或许可以检查一下alice和bob的密钥上传和数据授权等操作是否都完整进行了,有无遗漏?
Sorry, something went wrong.
Stale issue message. Please comment to remove stale tag. Otherwise this issue will be closed soon.
No branches or pull requests
Issue Type
Bug
Source
binary
Capsule Manager Version
0.4.0b0
Capsule Manager SDK Version
0.4.0b0
Tee Apps Version
0.4.0b0
OS Platform and Distribution
Ubuntu 20.04.6 LTS
Python version
3.8.10
Bazel version
No response
GCC/Compiler version
No response
What happend and What you expected to happen.
大佬您好,我在在按照仿真模式配置trustflow时,步骤四生成完psi_task.json之后,运行命令:
遇到错误party id is not exist,请问应该怎么解决呢?
alice.yaml相关的配置如下:
Reproduction code to reproduce the issue.
The text was updated successfully, but these errors were encountered: