Skip to content
New issue

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

Unable to run in simulation mode, only mock mode #24

Open
jason-james opened this issue Jan 31, 2020 · 0 comments
Open

Unable to run in simulation mode, only mock mode #24

jason-james opened this issue Jan 31, 2020 · 0 comments

Comments

@jason-james
Copy link

My program is working fine in mock mode, however I'd like to run in simulation mode to make use of the enclave.so file. When I run it, it says it can't find libsgx_urts_sim.so as below.

Could not load SGX secure worker binary:
Error: libsgx_urts_sim.so: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1133:18)
at Module.load (internal/modules/cjs/loader.js:914:32)
at Function.Module._load (internal/modules/cjs/loader.js:822:14)
at Module.require (internal/modules/cjs/loader.js:956:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/home/jason/WebstormProjects/sgx-test/node_modules/secureworker/lib/real.js:1:28)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1103:10)
at Module.load (internal/modules/cjs/loader.js:914:32)
at Function.Module._load (internal/modules/cjs/loader.js:822:14)
Mock implementation will be used instead. Do not use in production.

This issue is solved by others (presumably not using secureworker) by ensuring their environment variables are set and if that doesn't work then setting a file in r /etc/ld.so.conf.d and running ldconfig, but this doesn't work in my case. Any suggestions? Is simulation mode supposed to work with this package? The file its referring to definitely exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant