I'm using Amazon's EBS and Django 1.8.2. Here is my container commands,
container_commands:
01_wsgipass:
command: 'echo "WSGIPassAuthorization On" >> ../wsgi.conf'
02_makemigrations:
command: "source /opt/python/run/venv/bin/activate && python manage.py makemigrations --merge --noinput"
leader_only: true
03_migrate:
command: "source /opt/python/run/venv/bin/activate && python manage.py migrate --noinput"
leader_only: true
For some reasons the migrate
command is being killed. All migrations are working fine even with a fresh database in my local. But following is the error appearing on eb-activity.log.
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
Rendering model states.../bin/sh: line 1: 21228 Killed python manage.py migrate --noinput
(ElasticBeanstalk::ExternalInvocationError)
Note: The same container commands were working fine without any issues earlier at EBS. I tried with --verbose 3
with migrate command but didn't get any other debug messages.
Any solutions? Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire