aws / aws/codecatalyst-blueprints

CDKDeployAction fails for gen-ai-chatbot - "no space left on device"

Open
#577 1 comment 0 reactions 1 assignee Claimed by @aggagen View on GitHub
bug
Dominant language
TypeScript
Stars
58
Forks
22
Avg merge
19m
Merged PRs (30d)
1

Description

## Describe the bug

I attempted to install the `gen-ai-chatbot` workflow today in an almost blank AWS account, in us-west-1. Everything seems to go well until the `CDKDeployAction` stage where the workflow fails. I note in the workflow logs these entries:

```
Error processing tar file(exit status 1): write /usr/local/lib/python3.11/site-packages/torch/lib/libtorch_cpu.so: no space left on device
BedrockChatBotStack-dli7sh11: fail: docker build --tag cdkasset-6a370a2d2473385a0c53557b9dd3dc3e038d66b41d2330b7bbddb9dfda48251f --file embedding.Dockerfile --platform linux/amd64 . exited with error code 1: DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/

Error processing tar file(exit status 1): write /usr/local/lib/python3.11/site-packages/torch/lib/libtorch_cpu.so: no space left on device

❌ Deployment failed: Error: Failed to build asset 6a370a2d2473385a0c53557b9dd3dc3e038d66b41d2330b7bbddb9dfda48251f:current_account-us-west-2
at Deployments.buildSingleAsset (/usr/local/npm/lib/node_modules/aws-cdk/lib/index.js:430:11312)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.buildAsset (/usr/local/npm/lib/node_modules/aws-cdk/lib/index.js:430:196295)
at async /usr/local/npm/lib/node_modules/aws-cdk/lib/index.js:430:180311
Failed to build asset 6a370a2d2473385a0c53557b9dd3dc3e038d66b41d2330b7bbddb9dfda48251f:current_account-us-west-2

::set-output name=ACTION_RUN_SUMMARY::[{text:CDK_DEPLOY_COMMAND_ERROR,level:Error,message:"The AWS CDK deploy action failed to perform one or more commands. Check the action logs for more information."}]
Error: The AWS CDK deploy action failed to perform one or more commands. Check the action logs for more information.
```

Is there something that needs to be set or changed for this to work correctly?

## Steps to reproduce

Steps to reproduce the behavior:

1. Enable Bedrock modesl in us-west-1
2. Set up a new CodeCatalyst environment in us-west-1, set up a new space.
3. Select "Start with a blueprint"
4. Select the "LLM Playground" (currently showing version 0.3.133"
5. Deploy the `gen-ai-chatbot` workflow
6. Deploy using default settings. Create the default IAM role suited for development environments only.
7. Deployment stages all pass until the `CDKDeployAction` fails with the `no space left on device error`

## Expected behavior

All stages should complete successfully.

## Version information

N/A

## Additional context

Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.