Advertisement
Guest User

migrate_multi

a guest
May 7th, 2021
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.77 KB | None | 0 0
  1. (python_env-3.6) (monolith) cchq@monolith:~/www/monolith/current$ python manage.py migrate_multi users 0016_hqapikey --fake
  2. /home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  3. """)
  4. 2021-05-07 15:17:54,367 INFO AXES: BEGIN LOG
  5.  
  6. The following databases will be migrated:
  7. * default
  8. * p1
  9. * p2
  10. * proxy
  11. * synclogs
  12.  
  13.  
  14. The following databases will be skipped:
  15. * ucr
  16.  
  17. Traceback (most recent call last):
  18. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 114, in handle
  19. migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
  20. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/db/migrations/loader.py", line 141, in get_migration_by_prefix
  21. raise KeyError("There no migrations for '%s' with the prefix '%s'" % (app_label, name_prefix))
  22. KeyError: "There no migrations for 'users' with the prefix '0016_hqapikey'"
  23.  
  24. During handling of the above exception, another exception occurred:
  25.  
  26. Traceback (most recent call last):
  27. File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  28. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 46, in migrate_db
  29. **call_options
  30. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
  31. return command.execute(*args, **defaults)
  32. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  33. output = self.handle(*args, **options)
  34. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 123, in handle
  35. migration_name, app_label))
  36. django.core.management.base.CommandError: Cannot find a migration matching '0016_hqapikey' from app 'users'.
  37. 2021-05-07T15:17:59Z <Greenlet at 0x7fcb74db4e48: migrate_db('p1')> failed with CommandError
  38.  
  39. Traceback (most recent call last):
  40. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 114, in handle
  41. migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
  42. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/db/migrations/loader.py", line 141, in get_migration_by_prefix
  43. raise KeyError("There no migrations for '%s' with the prefix '%s'" % (app_label, name_prefix))
  44. KeyError: "There no migrations for 'users' with the prefix '0016_hqapikey'"
  45.  
  46. During handling of the above exception, another exception occurred:
  47.  
  48. Traceback (most recent call last):
  49. File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  50. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 46, in migrate_db
  51. **call_options
  52. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
  53. return command.execute(*args, **defaults)
  54. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  55. output = self.handle(*args, **options)
  56. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 123, in handle
  57. migration_name, app_label))
  58. django.core.management.base.CommandError: Cannot find a migration matching '0016_hqapikey' from app 'users'.
  59. 2021-05-07T15:17:59Z <Greenlet at 0x7fcb74c19148: migrate_db('proxy')> failed with CommandError
  60.  
  61. Traceback (most recent call last):
  62. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 114, in handle
  63. migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
  64. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/db/migrations/loader.py", line 141, in get_migration_by_prefix
  65. raise KeyError("There no migrations for '%s' with the prefix '%s'" % (app_label, name_prefix))
  66. KeyError: "There no migrations for 'users' with the prefix '0016_hqapikey'"
  67.  
  68. During handling of the above exception, another exception occurred:
  69.  
  70. Traceback (most recent call last):
  71. File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  72. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 46, in migrate_db
  73. **call_options
  74. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
  75. return command.execute(*args, **defaults)
  76. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  77. output = self.handle(*args, **options)
  78. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 123, in handle
  79. migration_name, app_label))
  80. django.core.management.base.CommandError: Cannot find a migration matching '0016_hqapikey' from app 'users'.
  81. 2021-05-07T15:17:59Z <Greenlet at 0x7fcb74db4648: migrate_db('default')> failed with CommandError
  82.  
  83. Traceback (most recent call last):
  84. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 114, in handle
  85. migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
  86. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/db/migrations/loader.py", line 141, in get_migration_by_prefix
  87. raise KeyError("There no migrations for '%s' with the prefix '%s'" % (app_label, name_prefix))
  88. KeyError: "There no migrations for 'users' with the prefix '0016_hqapikey'"
  89.  
  90. During handling of the above exception, another exception occurred:
  91.  
  92. Traceback (most recent call last):
  93. File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  94. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 46, in migrate_db
  95. **call_options
  96. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
  97. return command.execute(*args, **defaults)
  98. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  99. output = self.handle(*args, **options)
  100. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 123, in handle
  101. migration_name, app_label))
  102. django.core.management.base.CommandError: Cannot find a migration matching '0016_hqapikey' from app 'users'.
  103. 2021-05-07T15:17:59Z <Greenlet at 0x7fcb74c19248: migrate_db('synclogs')> failed with CommandError
  104.  
  105. Traceback (most recent call last):
  106. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 114, in handle
  107. migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
  108. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/db/migrations/loader.py", line 141, in get_migration_by_prefix
  109. raise KeyError("There no migrations for '%s' with the prefix '%s'" % (app_label, name_prefix))
  110. KeyError: "There no migrations for 'users' with the prefix '0016_hqapikey'"
  111.  
  112. During handling of the above exception, another exception occurred:
  113.  
  114. Traceback (most recent call last):
  115. File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  116. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 46, in migrate_db
  117. **call_options
  118. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
  119. return command.execute(*args, **defaults)
  120. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  121. output = self.handle(*args, **options)
  122. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 123, in handle
  123. migration_name, app_label))
  124. django.core.management.base.CommandError: Cannot find a migration matching '0016_hqapikey' from app 'users'.
  125. 2021-05-07T15:17:59Z <Greenlet at 0x7fcb74c19048: migrate_db('p2')> failed with CommandError
  126.  
  127.  
  128. ======================= Error During Migration =======================
  129. <Greenlet at 0x7fcb74db4648: migrate_db('default')>
  130. Traceback (most recent call last):
  131. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 114, in handle
  132. migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
  133. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/db/migrations/loader.py", line 141, in get_migration_by_prefix
  134. raise KeyError("There no migrations for '%s' with the prefix '%s'" % (app_label, name_prefix))
  135. KeyError: "There no migrations for 'users' with the prefix '0016_hqapikey'"
  136.  
  137. During handling of the above exception, another exception occurred:
  138.  
  139. Traceback (most recent call last):
  140. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 70, in handle
  141. job.get()
  142. File "src/gevent/greenlet.py", line 683, in gevent._greenlet.Greenlet.get
  143. File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
  144. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/gevent/_compat.py", line 47, in reraise
  145. raise value.with_traceback(tb)
  146. File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  147. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 46, in migrate_db
  148. **call_options
  149. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
  150. return command.execute(*args, **defaults)
  151. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  152. output = self.handle(*args, **options)
  153. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 123, in handle
  154. migration_name, app_label))
  155. django.core.management.base.CommandError: Cannot find a migration matching '0016_hqapikey' from app 'users'.
  156.  
  157.  
  158. ======================= Error During Migration =======================
  159. <Greenlet at 0x7fcb74db4e48: migrate_db('p1')>
  160. Traceback (most recent call last):
  161. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 114, in handle
  162. migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
  163. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/db/migrations/loader.py", line 141, in get_migration_by_prefix
  164. raise KeyError("There no migrations for '%s' with the prefix '%s'" % (app_label, name_prefix))
  165. KeyError: "There no migrations for 'users' with the prefix '0016_hqapikey'"
  166.  
  167. During handling of the above exception, another exception occurred:
  168.  
  169. Traceback (most recent call last):
  170. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 70, in handle
  171. job.get()
  172. File "src/gevent/greenlet.py", line 683, in gevent._greenlet.Greenlet.get
  173. File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
  174. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/gevent/_compat.py", line 47, in reraise
  175. raise value.with_traceback(tb)
  176. File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  177. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 46, in migrate_db
  178. **call_options
  179. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
  180. return command.execute(*args, **defaults)
  181. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  182. output = self.handle(*args, **options)
  183. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 123, in handle
  184. migration_name, app_label))
  185. django.core.management.base.CommandError: Cannot find a migration matching '0016_hqapikey' from app 'users'.
  186.  
  187.  
  188. ======================= Error During Migration =======================
  189. <Greenlet at 0x7fcb74c19048: migrate_db('p2')>
  190. Traceback (most recent call last):
  191. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 114, in handle
  192. migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
  193. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/db/migrations/loader.py", line 141, in get_migration_by_prefix
  194. raise KeyError("There no migrations for '%s' with the prefix '%s'" % (app_label, name_prefix))
  195. KeyError: "There no migrations for 'users' with the prefix '0016_hqapikey'"
  196.  
  197. During handling of the above exception, another exception occurred:
  198.  
  199. Traceback (most recent call last):
  200. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 70, in handle
  201. job.get()
  202. File "src/gevent/greenlet.py", line 683, in gevent._greenlet.Greenlet.get
  203. File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
  204. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/gevent/_compat.py", line 47, in reraise
  205. raise value.with_traceback(tb)
  206. File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  207. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 46, in migrate_db
  208. **call_options
  209. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
  210. return command.execute(*args, **defaults)
  211. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  212. output = self.handle(*args, **options)
  213. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 123, in handle
  214. migration_name, app_label))
  215. django.core.management.base.CommandError: Cannot find a migration matching '0016_hqapikey' from app 'users'.
  216.  
  217.  
  218. ======================= Error During Migration =======================
  219. <Greenlet at 0x7fcb74c19148: migrate_db('proxy')>
  220. Traceback (most recent call last):
  221. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 114, in handle
  222. migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
  223. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/db/migrations/loader.py", line 141, in get_migration_by_prefix
  224. raise KeyError("There no migrations for '%s' with the prefix '%s'" % (app_label, name_prefix))
  225. KeyError: "There no migrations for 'users' with the prefix '0016_hqapikey'"
  226.  
  227. During handling of the above exception, another exception occurred:
  228.  
  229. Traceback (most recent call last):
  230. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 70, in handle
  231. job.get()
  232. File "src/gevent/greenlet.py", line 683, in gevent._greenlet.Greenlet.get
  233. File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
  234. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/gevent/_compat.py", line 47, in reraise
  235. raise value.with_traceback(tb)
  236. File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  237. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 46, in migrate_db
  238. **call_options
  239. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
  240. return command.execute(*args, **defaults)
  241. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  242. output = self.handle(*args, **options)
  243. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 123, in handle
  244. migration_name, app_label))
  245. django.core.management.base.CommandError: Cannot find a migration matching '0016_hqapikey' from app 'users'.
  246.  
  247.  
  248. ======================= Error During Migration =======================
  249. <Greenlet at 0x7fcb74c19248: migrate_db('synclogs')>
  250. Traceback (most recent call last):
  251. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 114, in handle
  252. migration = executor.loader.get_migration_by_prefix(app_label, migration_name)
  253. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/db/migrations/loader.py", line 141, in get_migration_by_prefix
  254. raise KeyError("There no migrations for '%s' with the prefix '%s'" % (app_label, name_prefix))
  255. KeyError: "There no migrations for 'users' with the prefix '0016_hqapikey'"
  256.  
  257. During handling of the above exception, another exception occurred:
  258.  
  259. Traceback (most recent call last):
  260. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 70, in handle
  261. job.get()
  262. File "src/gevent/greenlet.py", line 683, in gevent._greenlet.Greenlet.get
  263. File "src/gevent/greenlet.py", line 317, in gevent._greenlet.Greenlet._raise_exception
  264. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/gevent/_compat.py", line 47, in reraise
  265. raise value.with_traceback(tb)
  266. File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  267. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/corehq/sql_db/management/commands/migrate_multi.py", line 46, in migrate_db
  268. **call_options
  269. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 131, in call_command
  270. return command.execute(*args, **defaults)
  271. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
  272. output = self.handle(*args, **options)
  273. File "/home/cchq/www/monolith/releases/2020-01-13_09.37/python_env-3.6/lib/python3.6/site-packages/django/core/management/commands/migrate.py", line 123, in handle
  274. migration_name, app_label))
  275. django.core.management.base.CommandError: Cannot find a migration matching '0016_hqapikey' from app 'users'.
  276.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement