Replies: 6 comments
-
did some more work We are accessing the data through an NFS mount. SGX=1 DEBUG=1 gramine-sgx sgx_ztee_mstar_classifier_final Looking forward to thoughts on how to fix this |
Beta Was this translation helpful? Give feedback.
-
(please wrap your logs in triple-backtics, ```)
So this Cf.
(note |
Beta Was this translation helpful? Give feedback.
-
Also, please fix your manifest:
I don't know what you have there, but it seems it doesn't conform to our schema. |
Beta Was this translation helpful? Give feedback.
-
In case you want to know where this error message comes from: gramine/pal/src/host/linux-sgx/host_framework.c Lines 139 to 142 in bc479f1 So clearly some issue with this |
Beta Was this translation helpful? Give feedback.
-
I've gotten past my last issue working on deploying a Python convolutional neural network (CNN) application within an Intel SGX enclave using Gramine. The application uses common machine learning libraries such as TensorFlow, Keras, and OpenCV. Despite making progress, I'm currently facing issues related to the application's dependencies and the ELF binary loading process. The error messages I'm receiving are as follows: Gramine is starting. Parsing TOML manifest file, this may take some time... Here are some relevant details from my setup: Makefile Variables: ENTRYPOINT = /usr/bin/python3.9 Manifest Template Snippet: loader.entrypoint = "file:/usr/bin/python3.9" ... environment variables and mount points ...sgx.enclave_size = "32G" Define mount pointsfs.mount.lib.type = "chroot" fs.mount.usr.path = "/usr" fs.mount.etc.type = "chroot" fs.mount.app.type = "chroot" ... trusted files ...sgx.trusted_files = [ I've included the necessary shared libraries in the sgx.trusted_files and set up the fs.mount points to match the expected file system structure. However, the errors persist, indicating an issue with the binary dependencies and loading. I would greatly appreciate any guidance or insights from those who have experience with Gramine and Intel SGX, particularly in the context of Python applications with complex dependencies. |
Beta Was this translation helpful? Give feedback.
-
think I need to try a different approach thanks for the help |
Beta Was this translation helpful? Give feedback.
-
I have several issues with a python application I am trying to run
when I invoke make SGX=1
I get the warning message below that I have hightlighted and do not understand how to resolve the warning.
gramine-manifest
-DARCH_LIBDIR=/lib/x86_64-linux-gnu
-DAPPDIR=/nfs/enclave_a/demo/mstar
-DPYTHONDIR=/usr/local
-DGRAMINEDIR=/usr/local/gramine
-DMODELDIR=/path/to/model
-DLOG_LEVEL=error
sgx_ztee_mstar_classifier_final.manifest.template > sgx_ztee_mstar_classifier_final.manifest.sgx
WARNING: error in manifest (after rendering): extra keys not allowed @ data['loader']['args']
gramine-sgx-sign
--key /XXXX/XXXX/.config/gramine/enclave-key.pem
--manifest sgx_ztee_mstar_classifier_final.manifest.sgx
--output sgx_ztee_mstar_classifier_final.sig
When I run
gramine-sgx sgx_ztee_mstar_classifier_final
Gramine is starting. Parsing TOML manifest file, this may take some time...
error: size of sigstruct size does not match
error: Reading enclave sigstruct failed: Invalid argument (EINVAL)
error: load_enclave() failed with error: Invalid argument (EINVAL)
It is not clear where I need to resolve this error.
Thank in advance for support
Beta Was this translation helpful? Give feedback.
All reactions