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

release.sh issue #785

Open
Deepak021899 opened this issue Feb 18, 2025 · 1 comment
Open

release.sh issue #785

Deepak021899 opened this issue Feb 18, 2025 · 1 comment

Comments

@Deepak021899
Copy link

Hello,

We are able to deploy it from default one but when we try to deploy it from our own s3 bucket with same steps that is mention, it fails we get following error at ./release.sh. I am trying to do it from ec2 instance were we already installed python3, after this error also we continued and that gave the error at cloud formation stack at s3cleanup, type -Custom::S3Cleanup , and it gave error- "CloudFormation did not receive a response from your Custom Resource. Please check your logs for requestId [cd1e38d1-b762-47c9-a84a-ce00d96cd192]. If you are using the Python cfn-response module, you may need to update your Lambda function code so that CloudFormation can attach the updated version."

ERROR-

Entrypoint lex-web-ui-loader [big] 785 KiB (1.03 MiB) = lex-web-ui-loader.min.css 1.5 KiB lex-web-ui-loader.min.js 783 KiB 2 auxiliary assets
webpack 5.97.1 compiled successfully in 3509 ms
[INFO] Copying library files
cp ../src/dependencies/3.3.10_dist_vue.global.prod.js ../src/dependencies/3.4.6_dist_vuetify.min.css ../src/dependencies/3.4.6_dist_vuetify.min.js ../src/dependencies/4.1.0_dist_vuex.min.js ../src/dependencies/aws-sdk-2.903.0.min.js ../src/dependencies/initiate-loader.js ../src/dependencies/material_icons.css .
make[1]: Leaving directory '/home/ec2-user/git/aws-lex-web-ui/dist'
pushd ../templates/custom-resources ;
[ -f requirements.txt ] &&
python3 -m pip install --upgrade -r requirements.txt -t ./py_modules || true ;
popd ;
~/git/aws-lex-web-ui/templates/custom-resources ~/git/aws-lex-web-ui/build
/usr/bin/python3: No module named pip
~/git/aws-lex-web-ui/build
mkdir -p "out"
[INFO] Creating custom resource Lambda zip file
zip -u -j "out/custom-resources-v0.21.7.zip" ../templates/custom-resources/cfnresponse.py ../templates/custom-resources/codebuild-start.py ../templates/custom-resources/s3-cleanup.py ../templates/custom-resources/py_modules ;
pushd ../templates/custom-resources/py_modules ;
zip -r -q "../../../build/out/custom-resources-v0.21.7.zip" . ;
popd ;
zip warning: out/custom-resources-v0.21.7.zip not found or empty
zip warning: name not matched: ../templates/custom-resources/py_modules
adding: cfnresponse.py (deflated 56%)
adding: codebuild-start.py (deflated 62%)
adding: s3-cleanup.py (deflated 63%)
/bin/sh: line 2: pushd: ../templates/custom-resources/py_modules: No such file or directory
zip I/O error: No such file or directory
zip error: Could not create output file (../../../build/out/custom-resources-v0.21.7.zip)
/bin/sh: line 4: popd: directory stack empty
make: *** [Makefile:65: custom-resources-v0.21.7.zip] Error 1
[INFO] Creating initiate chat Lambda zip file
zip -r -j "out/initiate-chat-lambda-v0.21.7.zip" ../src/initiate-chat-lambda ;
adding: index.js (deflated 70%)
[INFO] Creating streaming Lambda zip file
zip -r -j "out/streaming-lambda-v0.21.7.zip" ../src/streaming-lambda ;
adding: index.js (deflated 50%)

@atjohns
Copy link
Contributor

atjohns commented Feb 20, 2025

This part indicates it did not download the Python modules it needed. You might need to install Python on the machine where you are executing the build if its not there

/bin/sh: line 2: pushd: ../templates/custom-resources/py_modules: No such file or directory zip I/O error: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants