aws / aws/chalice

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

Open
#2,051 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

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](https://github.com/aws/chalice/assets/101977910/f5a506aa-e75a-4a3f-9e70-e55d81beca34)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the deployment with `chalice-local deploy` in the LocalStack Docker container, then run `chalice logs` from the app folder. Inspect whether `.chalice/config.json` is available inside the container; done means the deployed app can be debugged with `chalice logs` without the missing-file error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
cloud, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.