Repository navigation
Bug: Openssl not found #8433
Copy link
Copy link
Closed
Labels
stage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.Automatically applied to new issues and PRs, indicating they haven't been looked at.
Description
Description:
When I run sam build, i get:
Building codeuri: /data/kuryart/src/dev/repo/learn/aws/augusto-galego/handlers/user runtime: nodejs22.x architecture: x86_64 functions: CreateUserFunction
Running NodejsNpmBuilder:NpmPack
Build Failed
Error: NodejsNpmBuilder:NpmPack - NPM Failed: /usr/bin/node: /usr/local/aws-sam-cli/1.146.0/dist/_internal/libcrypto.so.3: version `OPENSSL_3.4.0' not found (required by /usr/bin/node)
Steps to reproduce:
Run sam build
Observed result:
2025-11-16 21:35:07,088 | No config file found in this directory.
2025-11-16 21:35:07,092 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/data/kuryart/src/dev/repo/learn/aws/augusto-galego/samconfig.toml'
2025-11-16 21:35:07,093 | Config file location: /data/kuryart/src/dev/repo/learn/aws/augusto-galego/samconfig.toml
2025-11-16 21:35:07,094 | Config file '/data/kuryart/src/dev/repo/learn/aws/augusto-galego/samconfig.toml' does not exist
2025-11-16 21:35:07,098 | Using SAM Template at /data/kuryart/src/dev/repo/learn/aws/augusto-galego/template.yaml
2025-11-16 21:35:07,128 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/data/kuryart/src/dev/repo/learn/aws/augusto-galego/samconfig.toml'
2025-11-16 21:35:07,129 | Using config file: samconfig.toml, config environment: default
2025-11-16 21:35:07,129 | Expand command line arguments to:
2025-11-16 21:35:07,130 | --template_file=/data/kuryart/src/dev/repo/learn/aws/augusto-galego/template.yaml --mount_with=READ --build_dir=.aws-sam/build --cache_dir=.aws-sam/cache
2025-11-16 21:35:07,157 | 'build' command is called
2025-11-16 21:35:07,159 | No Parameters detected in the template
2025-11-16 21:35:07,212 | There is no customer defined id or cdk path defined for resource CreateUserFunction, so we will use the resource logical id as the resource id
2025-11-16 21:35:07,213 | 0 stacks found in the template
2025-11-16 21:35:07,214 | No Parameters detected in the template
2025-11-16 21:35:07,238 | There is no customer defined id or cdk path defined for resource CreateUserFunction, so we will use the resource logical id as the resource id
2025-11-16 21:35:07,239 | 1 resources found in the stack
2025-11-16 21:35:07,239 | Found Serverless function with name='CreateUserFunction' and CodeUri='handlers/user'
2025-11-16 21:35:07,240 | --base-dir is not presented, adjusting uri handlers/user relative to /data/kuryart/src/dev/repo/learn/aws/augusto-galego/template.yaml
2025-11-16 21:35:07,243 | 1 resources found in the stack
2025-11-16 21:35:07,243 | Found Serverless function with name='CreateUserFunction' and CodeUri='handlers/user'
2025-11-16 21:35:07,244 | Instantiating build definitions
2025-11-16 21:35:07,247 | Same function build definition found, adding function (Previous: BuildDefinition(nodejs22.x, /data/kuryart/src/dev/repo/learn/aws/augusto-galego/handlers/user, Zip, ,
c64ceda5-8cf9-4ce9-8d39-1f7299427264, {}, {}, x86_64, []), Current: BuildDefinition(nodejs22.x, /data/kuryart/src/dev/repo/learn/aws/augusto-galego/handlers/user, Zip, , cda3c153-a8e9-4935-b6e8-6809ac5e4817,
{}, {}, x86_64, []), Function: Function({'function_id': 'CreateUserFunction', 'name': 'CreateUserFunction', 'functionname': 'CreateUserFunction', 'runtime': 'nodejs22.x', 'memory': 128, 'timeout': 5,
'handler': 'index.handler', 'imageuri': None, 'packagetype': 'Zip', 'imageconfig': None, 'codeuri': '/data/kuryart/src/dev/repo/learn/aws/augusto-galego/handlers/user', 'environment': None, 'rolearn': None,
'layers': [], 'events': None, 'metadata': {'SamResourceId': 'CreateUserFunction'}, 'inlinecode': None, 'codesign_config_arn': None, 'architectures': ['x86_64'], 'function_url_config': None,
'function_build_info': <FunctionBuildInfo.BuildableZip: ('BuildableZip', 'Regular ZIP function which can be build with SAM CLI')>, 'stack_path': '', 'runtime_management_config': None, 'logging_config': None}))
2025-11-16 21:35:07,253 | Building codeuri: /data/kuryart/src/dev/repo/learn/aws/augusto-galego/handlers/user runtime: nodejs22.x architecture: x86_64 functions: CreateUserFunction
2025-11-16 21:35:07,254 | Building to following folder /data/kuryart/src/dev/repo/learn/aws/augusto-galego/.aws-sam/build/CreateUserFunction
2025-11-16 21:35:07,256 | Loading workflow module 'aws_lambda_builders.workflows'
2025-11-16 21:35:07,258 | Registering workflow 'CustomMakeBuilder' with capability 'Capability(language='provided', dependency_manager=None, application_framework=None)'
2025-11-16 21:35:07,262 | Registering workflow 'DotnetCliPackageBuilder' with capability 'Capability(language='dotnet', dependency_manager='cli-package', application_framework=None)'
2025-11-16 21:35:07,264 | Registering workflow 'GoModulesBuilder' with capability 'Capability(language='go', dependency_manager='modules', application_framework=None)'
2025-11-16 21:35:07,267 | Registering workflow 'JavaGradleWorkflow' with capability 'Capability(language='java', dependency_manager='gradle', application_framework=None)'
2025-11-16 21:35:07,269 | Registering workflow 'JavaMavenWorkflow' with capability 'Capability(language='java', dependency_manager='maven', application_framework=None)'
2025-11-16 21:35:07,271 | Registering workflow 'NodejsNpmBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm', application_framework=None)'
2025-11-16 21:35:07,273 | Registering workflow 'NodejsNpmEsbuildBuilder' with capability 'Capability(language='nodejs', dependency_manager='npm-esbuild', application_framework=None)'
2025-11-16 21:35:07,278 | Registering workflow 'PythonPipBuilder' with capability 'Capability(language='python', dependency_manager='pip', application_framework=None)'
2025-11-16 21:35:07,280 | Registering workflow 'RubyBundlerBuilder' with capability 'Capability(language='ruby', dependency_manager='bundler', application_framework=None)'
2025-11-16 21:35:07,282 | Registering workflow 'RustCargoLambdaBuilder' with capability 'Capability(language='rust', dependency_manager='cargo', application_framework=None)'
2025-11-16 21:35:07,283 | Found workflow 'NodejsNpmBuilder' to support capabilities 'Capability(language='nodejs', dependency_manager='npm', application_framework=None)'
2025-11-16 21:35:07,284 | npm installation actions install only production dependencies. Dev dependencies are omitted from the Lambda artifacts package
2025-11-16 21:35:07,285 | Running workflow 'NodejsNpmBuilder'
2025-11-16 21:35:07,285 | Running NodejsNpmBuilder:NpmPack
2025-11-16 21:35:07,286 | NODEJS packaging file:/data/kuryart/src/dev/repo/learn/aws/augusto-galego/handlers/user to /tmp/tmpkntry2gq
2025-11-16 21:35:07,286 | executing NPM: ['npm', 'pack', '-q', 'file:/data/kuryart/src/dev/repo/learn/aws/augusto-galego/handlers/user']
2025-11-16 21:35:07,317 | NodejsNpmBuilder:NpmPack failed
Traceback (most recent call last):
File "aws_lambda_builders/workflows/nodejs_npm/actions.py", line 61, in execute
File "aws_lambda_builders/workflows/nodejs_npm/npm.py", line 72, in run
aws_lambda_builders.workflows.nodejs_npm.exceptions.NpmExecutionError: NPM Failed: /usr/bin/node: /usr/local/aws-sam-cli/1.146.0/dist/_internal/libcrypto.so.3: version `OPENSSL_3.4.0' not found (required by
/usr/bin/node)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aws_lambda_builders/workflow.py", line 374, in run
File "aws_lambda_builders/workflows/nodejs_npm/actions.py", line 72, in execute
aws_lambda_builders.actions.ActionFailedError: NPM Failed: /usr/bin/node: /usr/local/aws-sam-cli/1.146.0/dist/_internal/libcrypto.so.3: version `OPENSSL_3.4.0' not found (required by /usr/bin/node)
Build Failed
2025-11-16 21:35:07,321 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2025-11-16 21:35:07,331 | No container socket path in global storage, falling back to DOCKER_HOST detection:
2025-11-16 21:35:07,333 | Telemetry endpoint configured to be https://aws-serverless-tools-telemetry.us-west-2.amazonaws.com/metrics
2025-11-16 21:35:07,333 | Sending Telemetry: {'metrics': [{'commandRun': {'requestId': 'b80a2560-b7be-4552-828e-dbba54b055b6', 'installationId': '0d803a93-42f9-49fd-a35f-9a38e3711022', 'sessionId':
'bc2fb7e4-ee48-4df4-a655-583b59cff880', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.11.10', 'samcliVersion': '1.146.0', 'osPlatform': 'Linux', 'awsProfileProvided': False, 'debugFlagProvided':
True, 'region': '', 'commandName': 'sam build', 'metricSpecificAttributes': {'projectType': 'CFN', 'gitOrigin': None, 'projectName': 'cfa3a3cdc45928d850190a81ba5582258533a5d0eaa39c9f3cc6fcf9e4fa057d',
'initialCommit': None, 'containerEngine': 'docker-default', 'adminContainerPreference': None}, 'duration': 192, 'exitReason': 'WorkflowFailedError', 'exitCode': 1}}]}
2025-11-16 21:35:07,333 | Unable to find Click Context for getting session_id.
2025-11-16 21:35:07,338 | No container socket path in global storage, falling back to DOCKER_HOST detection:
2025-11-16 21:35:07,339 | Sending Telemetry: {'metrics': [{'events': {'requestId': '6481f852-758a-49e9-9e57-d287a39d1fb4', 'installationId': '0d803a93-42f9-49fd-a35f-9a38e3711022', 'sessionId':
'bc2fb7e4-ee48-4df4-a655-583b59cff880', 'executionEnvironment': 'CLI', 'ci': False, 'pyversion': '3.11.10', 'samcliVersion': '1.146.0', 'osPlatform': 'Linux', 'commandName': 'sam build',
'metricSpecificAttributes': {'events': [{'event_name': 'SamConfigFileExtension', 'event_value': '.toml', 'thread_id': '25368d40520248caad7e02c08a2d389d', 'time_stamp': '2025-11-17 00:35:07.093279+00',
'exception_name': None}, {'event_name': 'SamConfigFileExtension', 'event_value': '.toml', 'thread_id': '45844528cf0a40609cb75170bf204fa9', 'time_stamp': '2025-11-17 00:35:07.129154+00', 'exception_name':
None}, {'event_name': 'BuildFunctionRuntime', 'event_value': 'nodejs22.x', 'thread_id': 'cf688dd097b04260a3ad25a0b39dc973', 'time_stamp': '2025-11-17 00:35:07.244732+00', 'exception_name': None},
{'event_name': 'BuildWorkflowUsed', 'event_value': 'nodejs-npm', 'thread_id': '336970cff50040fc93f22cb08fcbc9de', 'time_stamp': '2025-11-17 00:35:07.255817+00', 'exception_name': None}], 'containerEngine':
'docker-default'}}}]}
2025-11-16 21:35:07,879 | HTTPSConnectionPool(host='aws-serverless-tools-telemetry.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=0.1)
Error: NodejsNpmBuilder:NpmPack - NPM Failed: /usr/bin/node: /usr/local/aws-sam-cli/1.146.0/dist/_internal/libcrypto.so.3: version `OPENSSL_3.4.0' not found (required by /usr/bin/node)
2025-11-16 21:35:07,893 | HTTPSConnectionPool(host='aws-serverless-tools-telemetry.us-west-2.amazonaws.com', port=443): Read timed out. (read timeout=0.1)
Expected result:
I expected the command to build.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
- Arch Linux:
- 1.146.0:
- sa-east-1:
{
"version": "1.146.0",
"system": {
"python": "3.11.10",
"os": "Linux-6.12.41-1-lts-x86_64-with-glibc2.42"
},
"additional_dependencies": {
"container_engine": "Docker(v28.3.3)",
"aws_cdk": "Not available",
"terraform": "Not available"
},
"available_beta_feature_env_vars": [
"SAM_CLI_BETA_FEATURES",
"SAM_CLI_BETA_BUILD_PERFORMANCE",
"SAM_CLI_BETA_TERRAFORM_SUPPORT",
"SAM_CLI_BETA_PACKAGE_PERFORMANCE",
"SAM_CLI_BETA_RUST_CARGO_LAMBDA"
]
}
Add --debug flag to command you are running
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
stage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.Automatically applied to new issues and PRs, indicating they haven't been looked at.
Activity
[-]Bug: TITLE[/-][+]Bug: Openssl not found[/+]kuryart commentedon Nov 17, 2025
Sorry, I used
sam build --use-containerand it works.github-actions commentedon Nov 17, 2025
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.