jeudi 27 août 2015

Deploying a Django Application on Elastic Beanstak - AWS official tutorial

I've a Django app which I want to get on AWS. As I've no idea of the AWS, I tried following the official tutorial to do so.I followed this tutorial:

http://ift.tt/1QLXiYn

However, in spite of following the tutorial in totality(also repeating it several times, I'm facing some problems with it.) Firstly, I get an error when I do the

eb create command which are:

ERROR: Your requirements.txt is invalid. Snapshot your logs for details.
ERROR: [Instance: i-fe3f8625] Command failed on instance. Return code: 1 Output: (TRUNCATED)...)
  File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1. 
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
WARN: Environment health has transitioned from Pending to Degraded. Command failed on all instances.
ERROR: Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.

When I try carrying on from here, my

eb open

command does not show the Django "It worked" page but, rather shows, Index of /

If anybody could please tell me the reason for it and what am I doing wrong then it would be really helpful.

I would also like to tell you that I've been audacious enough to run the eb deploy command even after this which fails completely.

My requirements.txt:

awsebcli==3.5.1
backports.ssl-match-hostname==3.4.0.2
blessed==1.9.5
botocore==1.1.10
cement==2.4.0
colorama==0.3.3
Django==1.8.3
docker-py==1.1.0
dockerpty==0.3.4
docopt==0.6.2
docutils==0.12
jmespath==0.7.1
ndg-httpsclient==0.4.0
pathspec==0.3.3
pbr==1.5.0
pyasn1==0.1.8
python-dateutil==2.4.2
PyYAML==3.11
requests==2.6.2
six==1.9.0
stevedore==1.7.0
texttable==0.8.3
virtualenv==13.1.0
virtualenv-clone==0.2.6
virtualenvwrapper==4.6.0
wcwidth==0.1.4
websocket-client==0.32.0
wheel==0.24.0




Aucun commentaire:

Enregistrer un commentaire