chalice icon indicating copy to clipboard operation
chalice copied to clipboard

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

Open alloc7260 opened this issue 2 years ago • 3 comments

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 avatar Jun 26 '23 16:06 alloc7260

@binarymatt @ogrodnek @garnaat @tomdyson

alloc7260 avatar Jun 26 '23 16:06 alloc7260

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

jaeyoung0509 avatar Jul 04 '23 11:07 jaeyoung0509

@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.

alloc7260 avatar Jul 05 '23 16:07 alloc7260