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

sam build image buffers output from docker until it's finished #6576

Closed
kwanxyz opened this issue Jan 18, 2024 · 7 comments
Closed

sam build image buffers output from docker until it's finished #6576

kwanxyz opened this issue Jan 18, 2024 · 7 comments
Labels
stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.

Comments

@kwanxyz
Copy link

kwanxyz commented Jan 18, 2024

Description:

sam build appears to be hanging when building the docker image. There is no output during the build process and this makes it appear as the sam build process is frozen and not responding when an image takes a long time to build. The output does eventually get displayed when the build process completes. I can see the docker output when I ran docker build. I have also confirmed this behavior with aws support team.

This does not happen when using my old intel mac.

Steps to reproduce:

Create a sam project in python with an docker image

Run command "sam build"

Observed result:

Docker build outputs are missing until the image build is completed.

Expected result:

Docker build outputs during the build process

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS:
  2. sam --version:
  3. AWS region: us-east-1

I am on M2 macbook pro running apple silicon,
SAM CLI, version 1.107.0
Docker Desktop 4.26.0

# Paste the output of `sam --info` here

{
"version": "1.107.0",
"system": {
"python": "3.8.13",
"os": "macOS-13.5-arm64-arm-64bit"
},
"additional_dependencies": {
"docker_engine": "24.0.7",
"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"
]
}

Add --debug flag to command you are running

@kwanxyz kwanxyz added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jan 18, 2024
@fade2black
Copy link

@kwanxyz I guess I mentioned the same issues in this issue (6507). Are they same?

@kwanxyz
Copy link
Author

kwanxyz commented Jan 21, 2024

@fade2black yes, same issue. It's super annoying since my image takes a while to build, around 10 minutes. And sometimes the build process would fail but I wouldn't know of the failure since I get no output during the build process,

@fade2black
Copy link

fade2black commented Jan 21, 2024

@kwanxyz yes, the same is here. It fails, and you don't know the reason. Really annoying. Then you have to build it using docker command without sam and see what happens. This issue is already around at least for 3-4 months.

@kwanxyz
Copy link
Author

kwanxyz commented Jan 21, 2024

@fade2black I contacted aws support and they are seeing the same problem using the latest sam cli.

@fade2black
Copy link

fade2black commented Jan 21, 2024

@kwanxyz I hope they'll assign this issue the highest priority, otherwise it is really annoying.

@hnnasit
Copy link
Contributor

hnnasit commented Jan 22, 2024

Hi @kwanxyz, thanks for reporting the issue. As @fade2black mentioned, this seems similar to the issue 6507. I am closing this issue since it's a duplicate. Please track the other issue for updates and we will prioritize fixing the bug.

@hnnasit hnnasit closed this as completed Jan 22, 2024
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.
Projects
None yet
Development

No branches or pull requests

3 participants