brotherjing.github.io - Brotherjing

next (2075) hexo (1118)

Example domain paragraphs

After moving our product towards serverless architecture, our daily development now heavily relies on AWS. For local debugging, we use aws-sam-cli to run Lambda in Docker and then use remote debugging feature of our IDE, which allows us to set breakpoints.

However on some of my colleagues’ machine, when a Docker container is started, it fails immediately and prints the following message: 1 error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

Since it’ll be very inconvenient if we can’t locally debug Lambda, I decided to investigate the issue.