Open lightmagic1 opened 3 years ago
I'm having issues deploying my project using Zappa
1) Cloned my project 2) python -m venv venv 3) pip install -r requirements.txt --no-cache-dir 4) zappa update dev 5) Success!
1) Cloned my project 2) python -m venv venv 3) pip install -r requirements.txt --no-cache-dir 4) zappa update dev 5) I get the following error:
Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 500 response code.
Using Zappa tail:
"Failed to find library: libmysqlclient.so.18...right filename?"
pip freeze
alembic==1.0.8 aniso8601==6.0.0 argcomplete==1.9.3 astroid==2.2.5 autopep8==1.4.4 Babel==2.6.0 boto3==1.9.153 botocore==1.12.153 cachetools==3.1.1 certifi==2019.9.11 cfn-flip==1.2.0 chardet==3.0.4 Click==7.0 docutils==0.14 durationpy==0.5 emoji==0.5.4 Flask==1.0.2 Flask-Cors==3.0.7 Flask-Migrate==2.4.0 Flask-RESTful==0.3.7 Flask-SQLAlchemy==2.3.2 future==0.16.0 google-api-core==1.14.3 google-auth==1.7.0 google-cloud-speech==1.2.0 google-cloud-texttospeech==0.5.0 googleapis-common-protos==1.6.0 grpcio==1.25.0 hjson==3.0.1 idna==2.8 importlib-metadata==1.7.0 isort==4.3.16 itsdangerous==1.1.0 Jinja2==2.10 jmespath==0.9.3 kappa==0.6.0 lambda-packages==0.20.0 lazy-object-proxy==1.3.1 Mako==1.0.8 MarkupSafe==1.1.1 mccabe==0.6.1 mysql-connector-python==8.0.21 pip-tools==5.3.1 placebo==0.9.0 protobuf==3.10.0 pyasn1==0.4.7 pyasn1-modules==0.2.7 pycodestyle==2.5.0 pylint==2.3.1 python-dateutil==2.6.1 python-editor==1.0.4 python-slugify==1.2.4 pytz==2019.3 PyYAML==5.1 requests==2.22.0 rsa==4.0 s3transfer==0.2.0 six==1.13.0 SQLAlchemy==1.3.1 text-unidecode==1.3 toml==0.10.0 tqdm==4.19.1 troposphere==2.4.7 typed-ast==1.3.1 Unidecode==1.0.23 urllib3==1.24 Werkzeug==0.15.1 wrapt==1.11.1 wsgi-request-logger==0.4.6 zappa==0.51.0 zipp==3.1.0
zappa_settings.json
"dev": { "app_function": "app.app", "aws_region": "us-east-1", "profile_name": "default", "project_name": "webhook", "runtime": "python3.7", "s3_bucket": "zappa-6132y6l", "slim_handler": true },
I have the same issue on ubuntu also when I try to deploy by Github Actions (it runs on ubuntu too). But it's fine when I deploy from my local which is Mac.
Context
I'm having issues deploying my project using Zappa
Expected Behavior
1) Cloned my project 2) python -m venv venv 3) pip install -r requirements.txt --no-cache-dir 4) zappa update dev 5) Success!
Actual Behavior
1) Cloned my project 2) python -m venv venv 3) pip install -r requirements.txt --no-cache-dir 4) zappa update dev 5) I get the following error:
Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 500 response code.
Using Zappa tail:
"Failed to find library: libmysqlclient.so.18...right filename?"
Possible Fix
Steps to Reproduce
Your Environment
pip freeze
:zappa_settings.json
: