apache / incubator-teaclave-java-tee-sdk

Apache Teaclave (incubating) Java TEE SDK is an open source universal confidential computing framework, making java computation on privacy-sensitive data safe and simple.
https://teaclave.apache.org
Apache License 2.0
50 stars 15 forks source link

ErrorCode: A0001 , ErrorMessage: creating enclave failed. DetailErrorMessage: create tee sdk enclave by native calling failed #30

Open seasonouc opened 1 year ago

seasonouc commented 1 year ago

instance type: aliyun compute enhance operation system version: Linux version 5.4.0-106-generic (buildd@lcy02-amd64-093) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04)) sgx driver have been installed,version:https://download.01.org/intel-sgx/latest/dcap-latest/linux/distro/ubuntu20.04-server/sgx_linux_x64_driver_1.41.bin image

according to the readme.md ,I run helloworld by the docker image falied ,show the error message below image

and if I run helloworld ./run.sh,it show the following eorr: image I think maybe there is no file named " private final static String TEE_SDK_SIGNED_PACKAGE_PATH = "lib_tee_sdk_svm_load.signed"; "

superajun-wsj commented 1 year ago

Maybe it's a bug in teaclave java tee sdk. If adopt a aliyun ecs with anolis os, it's ok. We will continue debug and fix it.

image
zeroRains commented 11 months ago

Have it solved now? I also have the same problem.

superajun-wsj commented 11 months ago

did you enable rdfsbase kernal module please?

image
zeroRains commented 11 months ago

I see Linux Kernel before 5.9 need to install it, but my Linux Kernel is 5.15.0. Therefore, I have ignored it. image

superajun-wsj commented 11 months ago

you'd better try to enable it again. If it still exist, could you please change the os as Alibaba Cloud Linux?

zeroRains commented 11 months ago

oh, It solved. May be I use a docker container of the lab's server. It lacked rdfsbase kernel module. Thanks for your help!

zeroRains commented 11 months ago

oh, It solved. May be I use a docker container of the lab's server. It lacked rdfsbase kernel module. Thanks for your help!

Hi! I meet a strange problem. I install the enable rdfsbase kernal module, and it exactly solve this problem. But I exit the docker teaclave/teaclave-java-tee-sdk:v0.1.0-ubuntu18.04 and re-enter it. This problem happened again.

superajun-wsj commented 11 months ago

have you ever rebooted your machine, please? maybe you should enable rdfsbase kernal module again if you did that.

zeroRains commented 11 months ago

I didn't rebooted the machine. enable rdfsabse kernel module again means re-install it ?

superajun-wsj commented 11 months ago

does it report the same error info?

zeroRains commented 11 months ago

yes, It is strange

zeroRains commented 11 months ago

oh, It solved. May be I use a docker container of the lab's server. It lacked rdfsbase kernel module. Thanks for your help!

Hi! I meet a strange problem. I install the enable rdfsbase kernal module, and it exactly solve this problem. But I exit the docker teaclave/teaclave-java-tee-sdk:v0.1.0-ubuntu18.04 and re-enter it. This problem happened again.

I used the other server to re-install and rerun, which solved this problem. I wonder whether incubator-teaclave-java-tee-sdk only can be used in the docker container? If not, how should I generate a new project outside the docker container?

zeroRains commented 11 months ago

oh, It solved. May be I use a docker container of the lab's server. It lacked rdfsbase kernel module. Thanks for your help!

Hi! I meet a strange problem. I install the enable rdfsbase kernal module, and it exactly solve this problem. But I exit the docker teaclave/teaclave-java-tee-sdk:v0.1.0-ubuntu18.04 and re-enter it. This problem happened again.

I used the other server to re-install and rerun, which solved this problem. I wonder whether incubator-teaclave-java-tee-sdk only can be used in the docker container? If not, how should I generate a new project outside the docker container?

oh! I solved it. Because my jdk version is too old, the archetype can not find.

superajun-wsj commented 11 months ago

That's very good!!!