python - Django 1.7 Migrations hanging -


i have django migration trying apply. gets made fine (it's small, it's adding charfield 2 different models. when run actual migrate hangs (no failure, no success, sits).

through googling i've found other open connections can mess restarted db. db connect continuously running jobs , new queries sneak in right away. small, , last time tried restarting think able execute migrate before else. still nothing.

are there other known issues cause this?

at least in postgresql cannot modify tables (even if it's adding new columns) while there active transactions. easiest workaround to:

  • run migration script (which hang)
  • restart webserver/wsgi container

when restarting webserver open transactions aborted (assuming don't have background processes have transactions open), no transactions blocking table, migration finish.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

c# - MSDN OneNote Api: Navigate to never before opened page without opening a OneNote Application Window -