-
Notifications
You must be signed in to change notification settings - Fork 6
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
SSLEOFError when connecting web3isgner #11
Comments
The log from running the e2e test is as follows + ./scripts/generate_key_policy.sh nitro_validator_output.json
+ aws kms put-key-policy --policy-name default --key-id arn:aws:kms:us-east-1:727392871343:key/57c7ec84-39ab-480c-ac77-7adc638830dd --policy file://key_policy.json
+ aws lambda invoke --function-name arn:aws:lambda:us-east-1:727392871343:function:devNitroValidator-NitroInvokeLambda398BB8E0-U7iDjgMpV3tz --cli-binary-format raw-in-base64-out --payload '{"operation": "set_tls_key"}' lambda-output
{
"StatusCode": 200,
"ExecutedVersion": "$LATEST"
}
+ ./scripts/start_signing_service.sh nitro_validator_output.json
i-0ad8f7a5a340c6a0b:
● nitro-signing-server.service - Nitro Enclaves Signing Server Loaded: loaded (/etc/systemd/system/nitro-signing-server.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2024-12-16 08:31:23 UTC; 15s ago Main PID: 4057 (python3) Tasks: 5 Memory: 27.7M CGroup: /system.slice/nitro-signing-server.service ├─4057 python3 /home/ec2-user/app/watchdog.py └─4092 /bin/nitro-cli run-enclave --cpu-count 2 --memory 3806 --eif-path /home/ec2-user/app/server/signing_server.eif --enclave-cid 16 --debug-mode Dec 16 08:31:23 ip-10-0-99-156.ec2.internal systemd[1]: Started Nitro Enclaves Signing Server. Dec 16 08:31:23 ip-10-0-99-156.ec2.internal watchdog.py[4057]: Start allocating memory... Dec 16 08:31:25 ip-10-0-99-156.ec2.internal watchdog.py[4057]: Started enclave with enclave-cid: 16, memory: 3806 MiB, cpu-ids: [1, 3]
i-0fb1175f37089eccd:
● nitro-signing-server.service - Nitro Enclaves Signing Server Loaded: loaded (/etc/systemd/system/nitro-signing-server.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2024-12-16 08:31:23 UTC; 15s ago Main PID: 4011 (python3) Tasks: 5 Memory: 27.9M CGroup: /system.slice/nitro-signing-server.service ├─4011 python3 /home/ec2-user/app/watchdog.py └─4043 /bin/nitro-cli run-enclave --cpu-count 2 --memory 3806 --eif-path /home/ec2-user/app/server/signing_server.eif --enclave-cid 16 --debug-mode Dec 16 08:31:23 ip-10-0-183-85.ec2.internal systemd[1]: Started Nitro Enclaves Signing Server. Dec 16 08:31:23 ip-10-0-183-85.ec2.internal watchdog.py[4011]: Start allocating memory... Dec 16 08:31:25 ip-10-0-183-85.ec2.internal watchdog.py[4011]: Started enclave with enclave-cid: 16, memory: 3806 MiB, cpu-ids: [1, 3]
{
"Version": 2,
"Tier": "Standard"
}
(16/12/2024 08:31:41) service has been started and is healthy
+ ./tests/e2e/web3signer_status.sh nitro_validator_output.json
16/12/2024 08:31:41: sending request
{
"StatusCode": 200,
"FunctionError": "Unhandled",
"ExecutedVersion": "$LATEST"
}
result: {"errorMessage": "exception happened: HTTPSConnectionPool(host='signer.devnitrovalidator.private', port=443): Max retries exceeded with url: /upcheck (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1147)')))", "errorType": "Exception", "requestId": "8e74ab26-3d20-420d-b857-ded30a7a99fa", "stackTrace": [" File \"/var/task/lambda_function.py\", line 146, in lambda_handler\n raise Exception(\"exception happened: {}\".format(e))\n"]}
16/12/2024 08:31:57: sending request
{
"StatusCode": 200,
"FunctionError": "Unhandled",
"ExecutedVersion": "$LATEST"
}
result: {"errorMessage": "exception happened: HTTPSConnectionPool(host='signer.devnitrovalidator.private', port=443): Max retries exceeded with url: /api/v1/eth2/publicKeys (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1147)')))", "errorType": "Exception", "requestId": "873b8d38-4f0f-44c5-aa3f-fa1e45dd1caf", "stackTrace": [" File \"/var/task/lambda_function.py\", line 162, in lambda_handler\n raise Exception(\"exception happened: {}\".format(e))\n"]}
16/12/2024 08:32:14: sending request
{
"StatusCode": 200,
"FunctionError": "Unhandled",
"ExecutedVersion": "$LATEST"
} |
Hi @dpdornseifer Sir, can you take a look at this issue. We have been stuck here for a long time and still have no idea, much appreciate! |
Hey @hentai8 @peterpan0708, Created a new PR including different changes. Can you please try this branch and let me know if you are still facing the issue #12 : https://github.com/aws-solutions-library-samples/guidance-for-secure-blockchain-validation-using-aws-nitro-enclaves/tree/feature/IMDSv2_enablement PR will be merged to #main soonish. Cheers |
@dpdornseifer Thank you so much, sir. I will try it later. |
Hi sir, when I'm using python3.9 i got this error: after I upgrade my python version to 3.12, i get this error: ./scripts/start_signing_service.sh output.json |
@peterpan0708 did you delete the previous stack and do the entire setup/walkthrough (https://github.com/aws-solutions-library-samples/guidance-for-secure-blockchain-validation-using-aws-nitro-enclaves/blob/main/docs/walkthrough.md) again? |
yes, i run cdk destroy prodNitroValidator command |
On the new branch , after the deployment, I login in to the prodNitroValidator, there is also no /etc/systemc/system/nitro-signing-server.service. It just seems failed to bootstrap the workflow. |
Can you please remove the ECR image and run |
The new branch you provided is working fine and I can get the pubkey from web3signer in enclaves, thanks a lot for your help!
|
@peterpan0708 @hentai8 realized that there were still some potential issues with multi region environments and also solved a compatibility issue in the |
@dpdornseifer sir, still can't run correctly in ap-east-1. error is still: (23/12/2024 05:57:02) service has been started and is healthy |
I followed the walkthrough exactly, without customizing anything, but I got an SSLEOFError when I tried
web3signer_status
as followsI also tried running
tests/e2e/e2e_setup.sh
at the same time, but got the same error.I ran cdk destroy before each deploy to make sure that no resource errors from the previous deploy will affect this one.
I really want to use this technique so I've tried it over and over again but it's always this SSLEOFError, please let me know if you need more info, thanks a lot!
The text was updated successfully, but these errors were encountered: