postgresql - Django on AWS Elastic Beanstalk: Unexpected syncdb error on deploy -
i have django/postgresql application. use elastic beanstalk deploy amazon ec2 instance rds.
today, deployment failed following error. older code versions not able deploy.
[instance: i-f8ae27ce module: awsebautoscalinggroup configset: null] command failed on instance. return code: 1 output: error occurred during build: command 01_syncdb failed .
it's related command in elastic beanstalk config file:
command: "django-admin.py syncdb --noinput"
digging in log files shows above command raises error:
improperlyconfigured("error loading psycopg2 module: %s" % e) django.core.exceptions.improperlyconfigured: error loading psycopg2 module: no module named psycopg2
this weird, because have psycopg2
in requirements.txt, , can verify it's installed. also, have postgresql-devel
installed yum package via eb config file.
does know why deployment failed?
Comments
Post a Comment