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

Error in chalice logs while running it on LocalStack inside docker container #2051

Open
alloc7260 opened this issue Jun 26, 2023 · 3 comments

Comments

@alloc7260
Copy link

We are using chalice-local deploy to deploy our chalice app in LocalStack lambda running inside docker container.

It successfully deployed in LocalStack with no errors.
lambda ARN also generated.

But our app is not running as it should be, so while debugging we found error in chalice logs by running it inside the docker contained at the app folder.

So the error says it doesn't found the config.json file which is inside the .chalice folder.

We have this file in our repo.

But the problem is the when deploying chalice does not copy the .chalice folder into docker container, i guess so the error occurred.

This is the full traceback screenshot of error (inside the container) :

docker logs

@alloc7260
Copy link
Author

@jaeyoung0509
Copy link

How is your package structured?
I recommend checking if the package is set up as follows

├── README.md
├── __pycache__
├── app.py
├── chalicelib
├── .chalice
      ├── config.json
      ├── deployed
      ├── deployments

@alloc7260
Copy link
Author

@jaeyoung0509 Ya I already knew that, I have cloned a working repo https://github.com/Sam1320/GroupLang
It has same structure that you gave, I want to test and debug it locally and I am using telegram for testing but as an alternative of aws I use localstack(docker).
But after deploying the lambda function It can't able to run the app, and also produces errors.

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