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 open /dev/nitro_enclaves on latest amazon emi enclave #518

Open
last61474 opened this issue Jul 28, 2023 · 2 comments
Open

Unable to open /dev/nitro_enclaves on latest amazon emi enclave #518

last61474 opened this issue Jul 28, 2023 · 2 comments

Comments

@last61474
Copy link

Hi, I spawned a new ec2 instance and the nitro-cli enclave run is unable to start the enclave. Same eif and dockerfile works on an older enclave.

Can I check if you have any idea on what can be the possible issue:

  Action: Run Enclave
  Subactions:
    Failed to execute command `Run`
    Failed to trigger enclave run
    Failed to construct EnclaveManager with given arguments
    Failed to create enclave handle
    Failed to open device file: Os { code: 2, kind: NotFound, message: "No such file or directory" }
  Root error file: src/enclave_proc/resource_manager.rs
  Root error line: 521
  Version: 1.2.2
  Action: Run Enclave
  Subactions:
    Failed to handle all enclave process replies
    Failed to connect to 1 enclave processes
  Root error file: src/enclave_proc_comm.rs
  Root error line: 358
  Version: 1.2.2
[ E19 ] File operation failure. Such error appears when the system fails to perform the requested file operations, such as opening the EIF file when launching an enclave, or seeking to a specific offset in the EIF file, or writing to the log file.
File: '/dev/nitro_enclaves', failing operation: 'Open'.

For more details, please visit https://docs.aws.amazon.com/enclaves/latest/user/cli-errors.html#E19

If you open a support ticket, please provide the error log found at "/var/log/nitro_enclaves/err2023-07-27T23:54:30.234475648+00:00.log"
Failed connections: 1
[ E39 ] Enclave process connection failure. Such error appears when the enclave manager fails to connect to at least one enclave process for retrieving the description information.

For more details, please visit https://docs.aws.amazon.com/enclaves/latest/user/cli-errors.html#E39

If you open a support ticket, please provide the error log found at "/var/log/nitro_enclaves/err2023-07-27T23:54:30.234651195+00:00.log"

@last61474 last61474 changed the title Container build is not working on latest amazon emi enclave Unable to open /dev/nitro_enclaves on latest amazon emi enclave Jul 28, 2023
@xparticle
Copy link
Contributor

Check if the enclaves option was enabled to true on the ec2 at launch.

@braverdever
Copy link

@last61474 , did you resolve the issue?

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

No branches or pull requests

3 participants