Coder Social home page Coder Social logo

Error: "Unzipped size must be smaller than 262144000 bytes (Service: AWSLambdaInternal; Status Code: 400" about pace-genai-demos HOT 2 CLOSED

aws-samples avatar aws-samples commented on June 14, 2024
Error: "Unzipped size must be smaller than 262144000 bytes (Service: AWSLambdaInternal; Status Code: 400"

from pace-genai-demos.

Comments (2)

ztanruan avatar ztanruan commented on June 14, 2024

As of 11/12/2023, the size of our lambda layer, which utilizes the latest version of LangChain, is approximately 211.3MB, well within AWS's size constraint of 262.144MB.

To resolve this issue, I recommend the following steps:

  • Delete the Existing Lambda Layer Folder: Begin by removing the lambda_langchain_layer folder from your project. This action ensures that any corrupted or oversized files are cleared.
  • Recreate the Layer: After deletion, recreate the lambda layer using the deploy.sh command. This process should generate a fresh, size-compliant layer with the necessary components.
  • Clean Docker Resources: It's also crucial to ensure that no residual Docker images or containers are occupying unnecessary space. Clean all running Docker images and containers to free up space and avoid any potential conflicts.

By following these steps, you should be able to deploy the lambda layer without encountering the size limit error. If the problem persists, please let me know, and we can explore further solutions.

from pace-genai-demos.

ztanruan avatar ztanruan commented on June 14, 2024

An updated to the Lambda layer has been implemented. To access the latest version, please clone the latest code and execute the deployment steps outlined in the README document. At present, our Docker container build process for the Lambda layer is compatible exclusively with the Arm64 architecture. Future updates will extend support to X86 and Linux platforms.

from pace-genai-demos.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.