You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting non-zero code 139 when updating dotnet 6 docker file to dotnet 8, for container lambda functions, also occurs on sam init with hello world container lambda function creation.
Steps to reproduce:
sam init hello world, select container image type.
add "function-architecture": "arm64",
change build image to
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim-arm64v8 AS build-image
delete Samconfig.toml
Change Template to include
Architectures:
- arm64
Observed result:
Error: The command '/bin/sh -c dotnet tool install -g Amazon.Lambda.Tools' returned a non-zero code: 139
Expected result:
sam build successfully.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
WSL2 Ubuntu 20.04 on Windows 11 24H2
WSL2 Ubuntu 20.04 on Windows 11 24H2
sam --version
AWS region 'us-east-1'
# Paste the output of `sam --info` here
{
"version": "1.127.0",
"system": {
"python": "3.11.10",
"os": "Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.31"
},
"additional_dependencies": {
"docker_engine": "27.2.1",
"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_RUST_CARGO_LAMBDA"
]
}
Still the same:
2024-11-15 16:05:15,958 | Telemetry response: 200
Error: The command '/bin/sh -c dotnet tool install -g Amazon.Lambda.Tools' returned a non-zero code: 139
2024-11-15 16:05:15,967 | Telemetry response: 200
The text was updated successfully, but these errors were encountered:
change build image to
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim-arm64v8 AS build-image
Thanks for reporting this issue, may I ask why did you change the image before starting the build? Does building succeed if you use the original image?
Description:
Getting non-zero code 139 when updating dotnet 6 docker file to dotnet 8, for container lambda functions, also occurs on sam init with hello world container lambda function creation.
Steps to reproduce:
sam init hello world, select container image type.
add "function-architecture": "arm64",
change build image to
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim-arm64v8 AS build-image
delete Samconfig.toml
Change Template to include
Architectures:
- arm64
Observed result:
Error: The command '/bin/sh -c dotnet tool install -g Amazon.Lambda.Tools' returned a non-zero code: 139
Expected result:
sam build successfully.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
WSL2 Ubuntu 20.04 on Windows 11 24H2
sam --version
The text was updated successfully, but these errors were encountered: