Zappa: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 500 response code.
I did:
- created a IAM with full
administrativeAccess - Install Zappa on venv
- Init Zappa
- Zappa deploy dev
Now getting error. I am confusing with AWS ROLE and Groups as well.
ERROR:
Deploying API Gateway… Error: Warning! Status check on the deployed lambda failed. A GET request to ‘/’ yielded a 500 response code.
Here is the full result:
(venv) selim@sr ms % zappa deploy dev
Calling deploy for stage dev..
Downloading and installing dependencies..
- typed-ast==1.4.1: Using locally cached manylinux wheel
- pycrypto==2.6.1: Using precompiled lambda package
- psycopg2-binary==2.8.4: Using locally cached manylinux wheel
- markupsafe==1.1.1: Using locally cached manylinux wheel
- lazy-object-proxy==1.4.3: Using locally cached manylinux wheel
- greenlet==0.4.15: Using locally cached manylinux wheel
- gevent==1.4.0: Using locally cached manylinux wheel
- cryptography==2.8: Warning! Using precompiled lambda package version 1.9 instead!
- coverage==5.0.3: Using locally cached manylinux wheel
- cffi==1.13.2: Using locally cached manylinux wheel
- sqlite==python3: Using precompiled lambda package
Packaging project as gzipped tarball.
WARNING: Target directory /Users/selim.bongo/Sites/python/ms/handler_venv/lib/python3.6/site-packages/zappa already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/selim.bongo/Sites/python/ms/handler_venv/lib/python3.6/site-packages/zappa-0.48.2.dist-info already exists. Specify --upgrade to force replacement.
Downloading and installing dependencies..
- sqlite==python3: Using precompiled lambda package
Packaging project as zip.
Uploading dev-1580015449.tar.gz (41.0MiB)..
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 43.0M/43.0M [00:11<00:00, 3.64MB/s]
Uploading handler_dev-1580015525.zip (11.7MiB)..
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 12.2M/12.2M [00:01<00:00, 6.32MB/s]
Uploading dev-template-1580015553.json (1.6KiB)..
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.66K/1.66K [00:00<00:00, 10.3KB/s]
Waiting for stack dev to create (this can take a bit)..
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:09<00:00, 2.81s/res]
Deploying API Gateway..
Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 500 response code.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 9
- Comments: 27
my
zappa_settings… this is working perfectly. :@selimppc Thanks !! worked!!
Hello,
A long shot:
The error seems to be relating with the “compilation incompatibility” of the library bcrypt. Lambda function OS is Unix-like (Amazon Linux) but perhaps you have compiled (or you are using an already compiled) the bcrypt.so in Windows environment. So probably you need to find the appropriate compiled version of the library to suit the Linux based OS of the Lambda function.
This article was the source of above inspiration: invalid ELF header