apache / incubator-teaclave

Apache Teaclave (incubating) is an open source universal secure computing platform, making computation on privacy-sensitive data safe and simple.
https://teaclave.apache.org
Apache License 2.0
765 stars 158 forks source link

An error was encountered while Launch Teaclave Services #709

Open digitalinformation opened 1 year ago

digitalinformation commented 1 year ago

Sorry very much,the following error occurs when executing the following command, how can I solve it?Thank you. $ (cd docker && ./run-teaclave-services.sh) QQ图片20230719113626

hiroki-chen commented 1 year ago

You should modify line 206 in ./run-teaclave-services.sh:

DOCKER_COMPOSE_FILE="docker-compose-ubuntu-1804.yml"

to DOCKER_COMPOSE_FILE="docker-compose-ubuntu-2004.yml" to match your OS version.

digitalinformation commented 1 year ago

Hello, thanks for your help, but after I changed the configuration in ./run-teaclave-services.sh , the same error is still displayed, do I have any other errors not corrected? Thanks for your help. @hiroki-chen hiroki-chen

$ (cd docker && ./run-teaclave-services.sh) QQ图片20230719185833 QQ图片20230719185825

hiroki-chen commented 1 year ago

Try to add -b when invoking the command to rebuild the docker, i.e.,

./run-teaclave-services.sh -b
digitalinformation commented 1 year ago

Hello, I am sorry to disturb you again.when I follow the following command execution, the program keeps showing that it is running, there is no sign of stopping, what else can I do? Looking forward to your reply, thank you. @hiroki-chen

./run-teaclave-services.sh -b QQ图片20230720121125

hiroki-chen commented 1 year ago

It seems that you need to set the environment variable TEACLAVE_LOG to debug (you can do it via export TEACLAVE_LOG="debug") and re-run the docker to see the log output. Only then we can know what was going on inside Teaclave's services.

digitalinformation commented 1 year ago

Hello, thank you again for your help, I have listed some error messages as follows, please take a look, thank you. @hiroki-chen

  1. teaclave-access-control-service | [ERROR teaclave_access_control_service_enclave] Failed to run service: Kind(UnexpectedEof) is not allowed
  2. teaclave-access-control-service | [2023-07-20T07:35:04Z ERROR teaclave_binder::ipc::app] ecall_ipc_entry_point, app sgx_error:InvalidEcnalveId
  3. teaclave-access-control-service | [2023-07-20T07:35:04Z ERROR teaclave_binder::binder] IpcError(SgxError(InvalidEcnalveId))
  4. teaclave-authentication-service | [ERROR teaclave_authentication_service_enclave] Failed to run service: Kind(UnexpectedEof) is not allowed
  5. teaclave-authentication-service | [2023-07-20T07:35:05Z ERROR teaclave_binder::ipc::app] ecall_ipc_entry_point, app sgx_error:InvalidEcnalveId
  6. teaclave-authentication-service | [2023-07-20T07:35:05Z ERROR teaclave_binder::binder] IpcError(SgxError(InvalidEcnalveId))
  7. teaclave-scheduler-service | [ERROR teaclave_scheduler_service_enclave] Failed to run service: Kind(UnexpectedEof) is not allowed
  8. teaclave-scheduler-service | [2023-07-20T07:35:09Z ERROR teaclave_binder::ipc::app] ecall_ipc_entry_point, app sgx_error:InvalidEcnalveId
  9. teaclave-scheduler-service | [2023-07-20T07:35:09Z ERROR teaclave_binder::binder] IpcError(SgxError(InvalidEcnalveId))
  10. teaclave-management-service | [ERROR teaclave_management_service_enclave] Failed to run service: Kind(UnexpectedEof) is not allowed
  11. teaclave-storage-service | [ERROR teaclave_storage_service_enclave] Failed to run service: Kind(UnexpectedEof) is not allowed
  12. teaclave-storage-service | [2023-07-20T07:35:13Z ERROR teaclave_binder::ipc::app] ecall_ipc_entry_point, app sgx_error:InvalidEcnalveId
  13. teaclave-storage-service | [2023-07-20T07:35:13Z ERROR teaclave_binder::binder] IpcError(SgxError(InvalidEcnalveId))
  14. teaclave-frontend-service | [ERROR teaclave_frontend_service_enclave] Failed to run service: Kind(UnexpectedEof) is not allowed
  15. teaclave-frontend-service | [2023-07-20T07:35:15Z ERROR teaclave_binder::ipc::app] ecall_ipc_entry_point, app sgx_error:InvalidEcnalveId
  16. teaclave-frontend-service | [2023-07-20T07:35:15Z ERROR teaclave_binder::binder] IpcError(SgxError(InvalidEcnalveId))
  17. teaclave-execution-service | [ERROR teaclave_execution_service_enclave::ecall] Failed to run service: Kind(UnexpectedEof) is not allowed

错误日志.odt