I worked on improving and refactoring some 57k + records from two legacy databases into one Jango-compatible object. Now that I have finished, I reset it as a tool and I am trying to load it in a production environment.
My problem is that after a while the process is "killed". My process:
./manage.py syncdb
./manage.py loaddata core/fixtures/auth.json
./manage.py migrate
result:
Running migrations for django_extensions:
- Migrating forwards to 0001_empty.
> django_extensions:0001_empty
- Loading initial data for django_extensions.
Installed 0 object(s) from 0 fixture(s)
Running migrations for myotherapp:
- Migrating forwards to 0001_initial.
> myotherapp:0001_initial
- Loading initial data for myotherapp.
Installed 4 object(s) from 1 fixture(s)
Running migrations for myapp:
- Migrating forwards to 0001_initial.
> myapp:0001_initial
- Loading initial data for myapp.
Killed
I should note that the process goes smoothly on my development machine. One more note: my dev machine works with postgres 9.2, in production 9.1 - maybe this is a big problem?
How do I go about debugging? I donโt even know whatโs wrong, because of the vague "killed." Are there magazines in the South store? Any help was appreciated.
EDIT:
, , JSON . XML-, , . - SQL-. Postgres , , :
pg_dump dbname | gzip > filename.gz
createdb dbname
gunzip -c filename.gz | psql dbname