17π
I had the exact same problem. The only thing that worked for me was (automatically) rebuilding my entire environment. You can do that in the AWS console. Go to your environment and click Actions > Rebuild Environment. This will take some time, afterwards it will automatically relaunch your app without this error.
Update:
The problem keeps returning so now and then. I figured out that something is going wrong when pip compiles psycopg
, which is needed for postgreSQL support. Havenβt found a real solution yet.
13π
I was able to make this work by adding postgresql93-devel
and postgresql93
to my .ebextensions
as described in Customizing the Software on EC2 Instances Running Linux
This is working for 64bit Amazon Linux 2014.09 v1.0.9 running Python 2.7
in .ebextensions/01_pre_deps.config
:
packages:
yum:
gcc-c++: []
make: []
openssl-devel: []
git: []
python-devel: []
python27-devel: []
ruby-devel: []
postgresql93: []
postgresql93-devel: []
# nginx: []
rubygems:
bundler: '1.7.3'
compass-core: '1.1.0.alpha.3'
neat-compass: '1.6.0'
- [Django]-Django for loop counter break
- [Django]-Is there a way to list Django signals?
- [Django]-Get the list of checkbox post in django views
2π
Although a different scenario than described by the OP, it may be of use to someone:
We got the same ERROR Your requirements.txt is invalid. Snapshot your logs for details.
message while trying to deploy a minimal test app to a newly created t1.micro
instance on Elastic Beanstalk.
The test app consisted of the basic AWS Python sample app (from here), to which we added the .ebextensions/software.config
and requirements.txt
from our production environment. The sole purpose was to test these two files in deployment.
Closer inspection of the logs uncovered a MemoryError
during pip install
. After upgrading to a t2.small
instance, the deployment succeeded without issue.
- [Django]-Django: AppRegistryNotReady()
- [Django]-How to create a unique slug in Django
- [Django]-Django connection to postgres by docker-compose
1π
Have you made sure mysql-devel
package is installed? It doesnβt seem to be included in the yum
section of your config file.
- [Django]-Django: Error: You don't have permission to access that port
- [Django]-Pip install -r requirements.txt [Errno 2] No such file or directory: 'requirements.txt'
- [Django]-Django Invalid HTTP_HOST header: 'testserver'. You may need to add u'testserver' to ALLOWED_HOSTS
0π
For whatever reason AWS wouldnβt install postgresql-devel
packets from my .extensions/01_packets.config
as yolk suggested. So instead I had to add
container_commands:
01_addPostgreSQLPacket:
command: 'yum install postgresql95-devel'
leader_only: true
to my 02_django.config
. After That it worked just fine.
- [Django]-How to use Query Strings for filtering Querysets in Django?
- [Django]-How to disable formatting for FloatField in template for Django
- [Django]-Django setting : psycopg2.OperationalError: FATAL: Peer authentication failed for user "indivo"