Issues with Amazon Nitro latest changes: Error E19

0

I have been using Nitro Enclaves for the last 2 months. Then I had to terminate my EC2 instances for a refunding issue. But when I spun up an EC2 today and tried to run the https://github.com/aws/aws-nitro-enclaves-samples/tree/main code in Enclave modem it keeps giving me the below error.

[ec2-user@ip-172-31-14-126 server]$ nitro-cli build-enclave --docker-uri multi-sample-server --output-file multi_server.eif
Start building the Enclave Image...
[ 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: '/usr/share/nitro_enclaves/blobs//cmdline', 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/err2024-03-26T22:15:02.032523546+00:00.log"

The log in the file is given below.

 Action: Build Enclave
  Subactions:
    Failed to build enclave
    Failed to build EIF from docker
    Could not open kernel command line file: Os { code: 2, kind: NotFound, message: "No such file or directory" }
  Root error file: src/lib.rs
  Root error line: 84
  Version: 1.2.3

I am quite confident that I followed the same steps I did before. I mostly follow this article to setup the machine with basic installations.

https://towardsdatascience.com/privacy-preserving-deep-learning-with-aws-nitro-enclaves-74c72a17f857

Bhanuka
질문됨 2달 전128회 조회
2개 답변
1
수락된 답변

Hello.

Looking at this GitHub issue, it seems that an error occurs if the build package is missing.
How about trying to install the package again?
https://github.com/aws/aws-nitro-enclaves-cli/issues/513

It seems that an error will occur if the memory allocation in "/etc/nitro_enclaves/allocator.yaml" is too large.
https://github.com/aws/aws-nitro-enclaves-cli/issues/282

If it does not improve, could you please share the instance type and EC2 OS you are using?

profile picture
전문가
답변함 2달 전
profile picture
전문가
검토됨 2달 전
0

Thanks for pointing out.

Actually, I could not install it but then I thought may be the package is outdated now.

[ec2-user@ip-172-31-14-126 ~]$ sudo amazon-linux-extras install aws-nitro-enclaves-cli-devel -y
Topic aws-nitro-enclaves-cli-devel is not found.

But then because of your comment and the GitHub issue, I tried the yum install and it worked. Consequently, I was able to nitro-cli build-enclave too.

Your answer is spot on.

Bhanuka
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠